:root {
  --bg: #070a12;
  --surface: rgba(13, 18, 30, 0.72);
  --surface-solid: #0e1322;
  --text: #e2e8f0;
  --muted: #94a3b8;
  --border: rgba(255, 255, 255, 0.08);
  --accent: #6366f1;
  --accent-2: #a855f7;
  --glass-bg: rgba(13, 18, 30, 0.72);
  --glass-border: rgba(255, 255, 255, 0.08);
  --shadow-glass: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  --radius: 16px;
  --font-arabic: 'IBM Plex Sans Arabic', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-arabic);
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

.ambient-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.ambient-orb {
  position: absolute;
  border-radius: 9999px;
  filter: blur(100px);
  opacity: 0.22;
  transition: all 1s ease-in-out;
}
.ambient-orb-1 {
  width: 500px;
  height: 500px;
  top: -100px;
  right: -80px;
  background: radial-gradient(circle, #4f46e5 0%, #312e81 70%);
}
.ambient-orb-2 {
  width: 450px;
  height: 450px;
  top: 40%;
  left: -120px;
  background: radial-gradient(circle, #2563eb 0%, #1e1b4b 70%);
}
.ambient-orb-3 {
  width: 400px;
  height: 400px;
  bottom: 5%;
  right: 25%;
  background: radial-gradient(circle, #7c3aed 0%, #1e1b4b 70%);
}

.header-wrap {
  position: sticky;
  top: 1rem;
  z-index: 50;
  width: min(94%, 1240px);
  margin: 1rem auto 0;
  padding-top: 0;
}

.glass-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 0.75rem 1.25rem;
  border-radius: 1rem;
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-glass);
  transition: all 0.3s ease;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(to top right, #4f46e5, #7c3aed 50%, #a855f7);
  padding: 2px;
  box-shadow: 0 8px 20px rgba(99, 102, 241, 0.25);
  flex-shrink: 0;
}
.brand-mark svg {
  width: 20px;
  height: 20px;
  color: #e0e7ff;
}
.brand-mark-sm {
  width: 28px;
  height: 28px;
  border-radius: 8px;
}
.brand-mark-sm svg {
  width: 14px;
  height: 14px;
}
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  min-width: 0;
}
.brand-name {
  font-weight: 700;
  font-size: 1.05rem;
  color: #fff;
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  gap: 6px;
}
.brand-badge {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 2px 6px;
  background: rgba(99, 102, 241, 0.2);
  color: #c7d2fe;
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: 6px;
}
.brand-tag {
  font-size: 12px;
  color: var(--muted);
  font-weight: 300;
}

.glass-nav {
  display: none;
  align-items: center;
  gap: 4px;
  background: rgba(15, 23, 42, 0.6);
  padding: 4px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}
.glass-nav-link {
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 500;
  color: #cbd5e1;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.glass-nav-link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}
.glass-nav-link.is-active {
  background: #4f46e5;
  color: #fff;
  box-shadow: 0 2px 8px rgba(79, 70, 229, 0.4);
}

.header-actions { display: flex; align-items: center; gap: 8px; }

.lang-btn {
  background: rgba(255, 255, 255, 0.06);
  color: #e2e8f0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s ease;
}
.lang-btn:hover { background: rgba(255, 255, 255, 0.12); }

.page {
  position: relative;
  z-index: 10;
  width: min(94%, 1240px);
  margin: 0 auto;
  padding: 32px 0 96px;
}

.section { margin: 32px 0; }

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.section-title {
  margin: 0;
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  font-weight: 700;
  color: #fff;
}
.section-kicker {
  font-size: 11px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  color: #a5b4fc;
}

.hero {
  text-align: center;
  max-width: 52rem;
  margin: 32px auto 56px;
}
.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(49, 46, 129, 0.6);
  border: 1px solid rgba(99, 102, 241, 0.3);
  font-size: 12px;
  color: #c7d2fe;
  margin-bottom: 24px;
}
.hero-pill-badge {
  background: #4f46e5;
  color: #fff;
  font-weight: 600;
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 999px;
}
.hero-title {
  margin: 0 0 12px;
  font-size: clamp(1.8rem, 5vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.15;
  color: #fff;
}
.gradient-text {
  background: linear-gradient(135deg, #60a5fa 0%, #a78bfa 50%, #f472b6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-desc {
  margin: 0 0 8px;
  font-size: clamp(1rem, 2.4vw, 1.25rem);
  color: #e2e8f0;
  font-weight: 400;
}
.hero-sub {
  margin: 0 0 28px;
  color: var(--muted);
  font-size: clamp(0.9rem, 2vw, 1.05rem);
  font-weight: 300;
  line-height: 1.65;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 28px;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}
.trust-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 14px;
  background: rgba(13, 18, 30, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  text-align: start;
}
.trust-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: rgba(99, 102, 241, 0.14);
  border: 1px solid rgba(99, 102, 241, 0.28);
  color: #a5b4fc;
  flex-shrink: 0;
}
.trust-icon svg {
  width: 18px;
  height: 18px;
}
.trust-text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}
.trust-text strong {
  font-size: 13px;
  color: #fff;
  font-weight: 700;
}
.trust-text small {
  font-size: 11px;
  color: var(--muted);
}

.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}
.btn-primary {
  background: linear-gradient(to right, #4f46e5, #7c3aed);
  color: #fff;
  box-shadow: 0 10px 25px rgba(99, 102, 241, 0.3);
}
.btn-primary:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}
.btn-secondary {
  background: rgba(15, 23, 42, 0.8);
  color: #e2e8f0;
  border-color: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
}
.btn-secondary:hover {
  background: rgba(30, 41, 59, 0.9);
  color: #fff;
}
.btn-ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.16);
  color: #e2e8f0;
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.activity-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.activity-card {
  background: linear-gradient(to bottom, rgba(19, 26, 44, 0.85), rgba(11, 16, 28, 0.9));
  border: 1px solid rgba(99, 102, 241, 0.25);
  border-radius: var(--radius);
  padding: 18px 20px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--shadow-glass);
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.activity-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #4f46e5, #a855f7);
  opacity: 0.85;
}
.activity-label {
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.activity-value {
  font-size: 28px;
  font-weight: 800;
  color: #fff;
  font-variant-numeric: tabular-nums;
}
.activity-value.updating {
  animation: pulse-value 0.45s ease;
}
.activity-live {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 11px;
  color: #34d399;
}
.activity-live-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #34d399;
  box-shadow: 0 0 8px #34d399;
  animation: pulse 2s ease-in-out infinite;
}
.activity-hint {
  font-size: 11px;
  color: var(--muted);
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--shadow-glass);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #4f46e5, #a855f7);
  opacity: 0.75;
}
.stat-value {
  font-size: 32px;
  font-weight: 800;
  background: linear-gradient(135deg, #60a5fa, #a78bfa);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.stat-label {
  margin-top: 6px;
  color: var(--muted);
  font-size: 14px;
}

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--shadow-glass);
  transition: border-color 0.2s ease, transform 0.2s ease;
  position: relative;
  overflow: hidden;
}
.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #4f46e5, #a855f7);
  opacity: 0;
  transition: opacity 0.2s ease;
}
.feature-card:hover {
  border-color: rgba(99, 102, 241, 0.45);
  transform: translateY(-2px);
}
.feature-card:hover::before { opacity: 1; }
.feature-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.25);
  color: #a5b4fc;
  margin-bottom: 12px;
}
.feature-icon svg {
  width: 20px;
  height: 20px;
}
.feature-title {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 700;
  color: #fff;
}
.feature-body {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.highlights {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.highlight-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--shadow-glass);
  position: relative;
  overflow: hidden;
}
.highlight-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #4f46e5, #a855f7);
  opacity: 0.7;
}
.highlight-title {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
}
.highlight-body {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.sections-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.section-card {
  background: linear-gradient(to bottom, rgba(19, 26, 44, 0.85), rgba(11, 16, 28, 0.9));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--shadow-glass);
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color 0.2s ease, transform 0.2s ease;
  position: relative;
  overflow: hidden;
}
.section-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #4f46e5, #a855f7);
  opacity: 0.9;
}
.section-card:hover {
  border-color: rgba(99, 102, 241, 0.5);
  transform: translateY(-2px);
}
.section-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.25);
  color: #a5b4fc;
}
.section-icon svg {
  width: 20px;
  height: 20px;
}
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.section-card-title {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: #fff;
}
.section-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid transparent;
  white-space: nowrap;
}
.section-badge-active {
  background: rgba(16, 185, 129, 0.12);
  color: #34d399;
  border-color: rgba(16, 185, 129, 0.3);
}
.section-badge-coming-soon {
  background: rgba(249, 115, 22, 0.12);
  color: #fdba74;
  border-color: rgba(249, 115, 22, 0.3);
}
.section-badge-under-construction {
  background: rgba(239, 68, 68, 0.12);
  color: #fca5a5;
  border-color: rgba(239, 68, 68, 0.3);
}
.section-desc {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  flex: 1;
}
.section-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 6px;
  padding: 10px 14px;
  border-radius: 10px;
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  width: fit-content;
  transition: filter 0.2s ease;
}
.section-link:hover { filter: brightness(1.12); }
.section-link-disabled {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 6px;
  padding: 10px 14px;
  border-radius: 10px;
  background: rgba(148, 163, 184, 0.08);
  color: var(--muted);
  border: 1px solid var(--border);
  font-weight: 600;
  font-size: 14px;
  width: fit-content;
}

.cta {
  text-align: center;
  padding: 40px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--shadow-glass);
  position: relative;
  overflow: hidden;
}
.cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #4f46e5, #a855f7, #60a5fa);
}
.cta-title {
  margin: 0 0 8px;
  font-size: clamp(1.2rem, 3vw, 1.6rem);
  font-weight: 800;
  color: #fff;
}
.cta-sub {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 14px;
}
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.footer {
  color: var(--muted);
  font-size: 13px;
  padding: 8px 0 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.footer-links a {
  color: var(--muted);
  font-size: 13px;
  transition: color 0.2s ease;
}
.footer-links a:hover { color: #c7d2fe; }

.bottom-nav {
  position: fixed;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 4px;
  padding: 8px 12px;
  background: rgba(12, 17, 29, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
  width: min(92%, 420px);
}
.bottom-nav-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 4px 10px;
  border-radius: 10px;
  font-size: 10px;
  color: #94a3b8;
  transition: all 0.2s ease;
}
.bottom-nav-link.is-active,
.bottom-nav-link:hover {
  color: #a5b4fc;
  background: rgba(99, 102, 241, 0.12);
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}
@keyframes pulse-value {
  0% { transform: scale(1); }
  40% { transform: scale(1.06); color: #a5b4fc; }
  100% { transform: scale(1); }
}

::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: #070a12; }
::-webkit-scrollbar-thumb { background: #1e293b; border-radius: 9999px; }
::-webkit-scrollbar-thumb:hover { background: #334155; }

@media (max-width: 880px) {
  .stats, .features, .highlights, .sections-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .activity-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
  .footer-brand {
    justify-content: center;
  }
  .footer-links {
    justify-content: center;
  }
}

@media (min-width: 900px) {
  .glass-nav { display: flex; }
}

@media (max-width: 480px) {
  .stats, .features, .highlights, .sections-grid {
    grid-template-columns: 1fr;
  }
  .activity-grid {
    grid-template-columns: 1fr;
  }
  .glass-header {
    flex-wrap: wrap;
    padding: 0.65rem 0.85rem;
  }
  .brand-tag { display: none; }
  .header-actions { width: 100%; }
  .lang-btn { width: 100%; }
  .page { padding-bottom: 110px; }
  .hero-trust {
    flex-direction: column;
    align-items: stretch;
  }
  .trust-chip {
    justify-content: flex-start;
  }
}

[dir="rtl"] .glass-nav-link { direction: rtl; }
[dir="rtl"] .section-header { flex-direction: row-reverse; }
[dir="rtl"] .section-link { direction: rtl; }
[dir="rtl"] .section-link-disabled { direction: rtl; }
[dir="rtl"] .lang-btn { direction: rtl; }
[dir="rtl"] .activity-card { text-align: right; }
[dir="rtl"] .footer { text-align: center; }
[dir="rtl"] .cta { text-align: center; }
[dir="rtl"] .activity-grid { direction: rtl; }
[dir="rtl"] .hero-actions { direction: rtl; }
[dir="rtl"] .footer-inner { direction: rtl; }
[dir="rtl"] .trust-chip { direction: rtl; }

/* Section lockdown — locked nav entries render as honest non-links. */
.glass-nav-link.is-soon,
.bottom-nav-link.is-soon,
.footer-links .footer-link.is-soon {
  opacity: 0.72;
  cursor: default;
}
.glass-nav-link.is-soon:hover {
  color: #cbd5e1;
  background: transparent;
}
.bottom-nav-link.is-soon:hover {
  color: #94a3b8;
  background: transparent;
}
.footer-links .footer-link.is-soon {
  color: var(--muted);
  font-size: 13px;
}
.nav-soon {
  display: inline-block;
  margin-inline-start: 6px;
  padding: 1px 6px;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 700;
  line-height: 1.5;
  color: #fdba74;
  background: rgba(249, 115, 22, 0.15);
  border: 1px solid rgba(249, 115, 22, 0.35);
}
.bottom-nav-link .nav-soon {
  margin: 2px 0 0;
  margin-inline-start: 0;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Compact auth entry: a small side drawer, never a blocking screen. Logical
   properties keep it on the inline-end side (right in the Arabic RTL layout,
   left in LTR) and fully visible behind it stays the public page. */
.btn-login {
  white-space: nowrap;
}
.auth-drawer-overlay[hidden],
.auth-drawer[hidden] {
  display: none;
}
.auth-drawer-overlay {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(2, 6, 16, 0.55);
}
.auth-drawer {
  position: fixed;
  inset-block: 0;
  inset-inline-end: 0;
  z-index: 91;
  width: min(360px, 92vw);
  overflow-y: auto;
  padding: 1.25rem;
  border-start-start-radius: 1rem;
  border-end-start-radius: 1rem;
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-glass);
}
.auth-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.auth-drawer-head h2 {
  margin: 0;
  font-size: 1.1rem;
}
.auth-drawer-close {
  border: 1px solid var(--glass-border);
  background: transparent;
  color: inherit;
  border-radius: 8px;
  width: 32px;
  height: 32px;
  cursor: pointer;
}
.auth-drawer-sub {
  color: var(--muted);
  font-size: 0.85rem;
}
.auth-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
}
.auth-field label {
  font-size: 0.8rem;
  color: var(--muted);
}
.auth-field input {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--glass-border);
  background: transparent;
  color: inherit;
  font-size: 1rem;
}
.auth-pass-wrap {
  display: flex;
  gap: 8px;
}
.auth-pass-wrap input {
  flex: 1;
  min-width: 0;
}
.auth-pass-toggle {
  border: 1px solid var(--glass-border);
  background: transparent;
  color: inherit;
  border-radius: 10px;
  padding: 0 12px;
  cursor: pointer;
}
.auth-error {
  color: #f87171;
  font-size: 0.85rem;
  min-height: 1.2em;
}
.auth-error[hidden] {
  display: none;
}
#platformAuthForm .btn-primary,
#platformAuthForm .btn-secondary,
#platformAuthLogout {
  width: 100%;
  margin-top: 8px;
}
#platformAuthLogout[hidden] {
  display: none;
}
@media (max-width: 480px) {
  .auth-drawer {
    width: 100vw;
    border-radius: 0;
  }
}

/* ================= Homepage visual redesign =================
   Premium dark-navy glass system layered on the existing markup.
   Nothing below renames or removes selectors the JS builds on;
   it only deepens depth, rhythm, typography and responsive behavior. */

/* Keyboard users must always see where they are. */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid #a5b4fc;
  outline-offset: 2px;
  border-radius: 8px;
}

/* Layered deep-navy mesh behind the ambient orbs. Pure CSS, no assets. */
body {
  background:
    radial-gradient(1100px 520px at 85% -80px, rgba(99, 102, 241, 0.16), transparent 60%),
    radial-gradient(900px 480px at 8% 22%, rgba(37, 99, 235, 0.12), transparent 60%),
    radial-gradient(760px 460px at 70% 78%, rgba(168, 85, 247, 0.10), transparent 60%),
    var(--bg);
}

/* Arabic-first hero typography: no negative tracking (it fractures Arabic
   joining), generous line-height and a readable measure. */
.hero {
  margin: 40px auto 60px;
}
.hero-title {
  letter-spacing: 0;
  line-height: 1.35;
  text-wrap: balance;
}
.hero-desc,
.hero-sub {
  max-width: 44rem;
  margin-inline: auto;
}
.hero-sub {
  line-height: 1.9;
}

/* Decorative hero composition: concentric glass rings around the brand mark.
   Strictly presentational (aria-hidden in markup): no links, no text, no data. */
.hero-visual {
  position: relative;
  height: 190px;
  max-width: 560px;
  margin: 8px auto 30px;
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background:
    radial-gradient(closest-side at 50% 55%, rgba(99, 102, 241, 0.28), transparent 72%),
    linear-gradient(to bottom, rgba(19, 26, 44, 0.55), rgba(11, 16, 28, 0.75));
  box-shadow: var(--shadow-glass);
}
.hero-orbit {
  position: absolute;
  left: 50%;
  top: 58%;
  border: 1px solid rgba(165, 180, 252, 0.22);
  border-radius: 9999px;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.hero-orbit-1 { width: 150px; height: 150px; }
.hero-orbit-2 {
  width: 230px; height: 230px;
  border-color: rgba(165, 180, 252, 0.13);
}
.hero-orbit-3 {
  width: 320px; height: 320px;
  border-color: rgba(165, 180, 252, 0.07);
}
.hero-core {
  position: absolute;
  left: 50%;
  top: 58%;
  width: 76px;
  height: 76px;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  border-radius: 22px;
  color: #e0e7ff;
  background: linear-gradient(to top right, #4f46e5, #7c3aed 55%, #a855f7);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 18px 48px rgba(99, 102, 241, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.hero-core svg { width: 38px; height: 38px; }

/* Section rhythm: stronger heads, calmer grids. */
.section { margin: 44px 0; }
.section-head {
  margin-bottom: 20px;
  padding-bottom: 14px;
}
.section-title {
  font-size: clamp(1.25rem, 2.8vw, 1.6rem);
  letter-spacing: 0;
}
.section-kicker {
  background: rgba(99, 102, 241, 0.14);
  border: 1px solid rgba(99, 102, 241, 0.32);
  color: #c7d2fe;
  border-radius: 999px;
  padding: 3px 10px;
}
.section-card {
  background:
    linear-gradient(to bottom, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0) 42%),
    linear-gradient(to bottom, rgba(19, 26, 44, 0.88), rgba(11, 16, 28, 0.92));
  box-shadow: var(--shadow-glass), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.section-card:hover {
  border-color: rgba(165, 180, 252, 0.55);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(99, 102, 241, 0.12);
}
.section-desc { line-height: 1.75; }

/* Activity: keep the honest placeholders, give them quieter presence. */
.activity-value { text-shadow: 0 2px 18px rgba(99, 102, 241, 0.25); }

/* CTA band with a gradient frame. */
.cta {
  padding: 52px 24px;
  background:
    linear-gradient(var(--surface-solid), var(--surface-solid)) padding-box,
    linear-gradient(135deg, rgba(99, 102, 241, 0.55), rgba(168, 85, 247, 0.45), rgba(96, 165, 250, 0.5)) border-box;
  border: 1px solid transparent;
}

/* Header: keep every link reachable while never overflowing mid widths.
   The nav becomes its own scrollable row instead of pushing actions off. */
.glass-nav { scrollbar-width: thin; }
@media (max-width: 1150px) {
  .glass-header { flex-wrap: wrap; row-gap: 10px; }
  .glass-nav {
    order: 3;
    flex-basis: 100%;
    overflow-x: auto;
    max-width: 100%;
  }
  .header-actions { margin-inline-start: auto; }
}

/* Footer rhythm + login button alignment in the header row. */
.footer { padding: 16px 0 40px; }
.footer-inner { row-gap: 20px; }
.header-actions .btn-login { padding: 8px 16px; font-size: 13px; }
