/* ─────────────────────────────────────────────────────────
   LEXIQ — Master Stylesheet
   Refined Legal-Academic meets Modern Gamification
───────────────────────────────────────────────────────── */

:root {
  /* Requested Light Mode Variables */
  --base: #F8FAFC;
  --surface: #FFFFFF;
  --text-primary: #0F172A;
  --text-secondary: #64748B;
  --action: #2563EB;
  --success: #10B981;
  --warning: #F59E0B;

  /* Backward Compatibility Mappings */
  --bg: var(--base);
  --navy: #0F172A;
  --navy-deep: #0B1120;
  --primary: var(--action);
  --on-primary: #ffffff;
  --text: var(--text-primary);
  --text-body: var(--text-secondary);
  --muted: var(--text-secondary);
  --warn: var(--warning);
  --error: #EF4444; 
  --border: rgba(0, 0, 0, 0.1);
  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(0, 0, 0, 0.05);
  
  --secondary: #94a3b8; 
  --tertiary: #d4af37; 
  --gold: var(--tertiary);
  --border-light: rgba(0,0,0,0.05);

  --surface-container-lowest: var(--surface);
  --surface-container-low: #F1F5F9;
  --surface-container: #E2E8F0;
  --surface-container-high: #CBD5E1;
  --surface-container-highest: #94A3B8;
  --surface-bright: #FFFFFF;
  
  --r-sm: 4px;
  --r: 12px;
  --rl: 16px;
  --rxl: 24px;
  --r-full: 9999px;
  
  --shadow-sm: 0 4px 10px rgba(0, 0, 0, 0.05);
  --shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 20px 30px rgba(0, 0, 0, 0.15);
  --shadow-lg: 0 30px 50px rgba(0, 0, 0, 0.2);
  --glow-teal: 0 0 15px rgba(37, 99, 235, 0.1);
  --shadow-premium: var(--shadow-lg), var(--glow-teal);
  
  --outline-variant: rgba(0, 0, 0, 0.1);

  /* Shared semantic tokens used by page-specific templates */
  --surface2: #EEF2F7;
  --surface3: #D8E0EA;
  --surface-glass: rgba(255, 255, 255, 0.86);
  --gold-light: #E2BF54;
  --gold-deep: #A67C00;
  --orange: #EA580C;
  --light: #94A3B8;
  --navy-mid: #1E293B;
  --rs: 8px;
  --section-gap: 96px;
}

[data-theme="dark"] {
  /* Requested Dark Mode Variables */
  --base: #0F172A;
  --surface: #1E293B;
  --text-primary: #F1F5F9;
  --text-secondary: #94A3B8;
  --action: #3B82F6;
  --success: #34D399;
  --warning: #FBBF24;

  --bg: var(--base);
  --navy: #0F172A;
  --navy-deep: #0B1120;
  --primary: var(--action);
  --on-primary: #ffffff;
  --text: var(--text-primary);
  --text-body: var(--text-secondary);
  --muted: var(--text-secondary);
  --warn: var(--warning);
  
  --border: rgba(255, 255, 255, 0.1);
  --glass-bg: rgba(15, 23, 42, 0.7);
  --glass-border: rgba(255, 255, 255, 0.05);
  --border-light: rgba(255,255,255,0.05);

  --surface-container-lowest: var(--surface);
  --surface-container-low: #0F172A;
  --surface-container: #1E293B;
  --surface-container-high: #334155;
  --surface-container-highest: #475569;
  --surface-bright: #334155;
  
  --shadow-sm: 0 4px 20px rgba(0, 0, 0, 0.4);
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  --shadow-md: 0 20px 40px rgba(0, 0, 0, 0.6);
  --shadow-lg: 0 30px 60px rgba(0, 0, 0, 0.7);
  --glow-teal: 0 0 15px rgba(59, 130, 246, 0.1);
  
  --outline-variant: rgba(255, 255, 255, 0.15);

  /* Shared semantic tokens used by page-specific templates */
  --surface2: #1E293B;
  --surface3: #334155;
  --surface-glass: rgba(15, 23, 42, 0.78);
  --gold-light: #F7D26A;
  --gold-deep: #E2BF54;
  --orange: #FB923C;
  --light: #CBD5E1;
  --navy-mid: #1E293B;
  --rs: 8px;
  --section-gap: 96px;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; color-scheme: light; }
[data-theme="dark"] { color-scheme: dark; }

body {
  font-family: 'Josefin Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Dot grid texture */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(circle at 1px 1px, var(--border) 1px, transparent 0);
  background-size: 32px 32px;
  pointer-events: none;
}

/* ── SCROLLBAR */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 100px; }

/* ── TYPOGRAPHY ── */
h1, h2, h3, h4, .nav-logo { 
  font-family: 'Melody Variable Font', 'Josefin Sans', sans-serif;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.3; 
  color: var(--text-primary);
  margin-bottom: 0.25em;
}
.gold { color: var(--tertiary); }
.gold-italic { color: var(--tertiary); font-style: italic; text-transform: none; }
em { color: var(--tertiary); font-style: italic; border-bottom: 2px solid rgba(212, 175, 55, 0.3); text-transform: none; }
a { text-decoration: none; color: inherit; transition: color 0.2s; }
a:hover { color: var(--primary); }

/* Theme-safe overrides for page templates that still use legacy hardcoded colors */
.about-hero h1,
.contact-hero h1,
.legal-hero h1,
.legal-sec h2,
.legal-sec h3,
.story-heading,
.sign-off-name,
.connect-section h2,
.intro-text,
.jc-name {
  color: var(--text-primary);
}

.legal-hero .meta,
.legal-sec p,
.legal-sec li,
.legal-toc h4,
.about-hero-sub,
.contact-hero-sub,
.story-body p,
.sign-off-label,
.sign-off-sub,
.connect-sub,
.jc-meta,
.jc-about,
.intro-text {
  color: var(--text-body);
}

.legal-toc a,
.story-label,
.about-hero-eyebrow,
.contact-hero-eyebrow,
.sec-eyebrow,
.jc-badge {
  color: var(--gold-light);
}

[style*="color:var(--navy)"],
[style*="color: var(--navy)"] {
  color: var(--text-primary) !important;
}

a[style*="color:var(--navy)"],
a[style*="color: var(--navy)"] {
  color: var(--primary) !important;
}

.about-hero,
.contact-hero,
.legal-hero,
.story-section,
.mission-strip,
.connect-section,
.hero-cji,
.wrap,
.judge-card,
.jc-content {
  position: relative;
}

.founder-card {
  isolation: isolate;
}

.section-mark {
  z-index: 0;
}

@media (max-width: 900px) {
  .story-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .story-left {
    position: static;
    top: auto;
  }

  .section-mark {
    right: -90px;
    top: 20px;
    opacity: 0.02;
  }
}

/* ── LAYOUT */
.container { max-width: 1200px; margin: 0 auto; padding: 0 28px; }
.container-sm { max-width: 800px; margin: 0 auto; padding: 0 28px; }
.container-xs { max-width: 600px; margin: 0 auto; padding: 0 28px; }
.pt-nav { padding-top: 110px !important; }

/* ─────────────────────────────────────────────────────────
   NAVBAR
───────────────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 900;
  background: var(--glass-bg);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--glass-border);
  padding: 18px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all .3s cubic-bezier(0.4, 0, 0.2, 1);
}
.nav.scrolled { 
  padding: 12px 40px;
  background: var(--surface);
  box-shadow: var(--shadow-md); 
}

.nav-logo {
  display: flex; align-items: center; gap: 10px;
  font-size: 22px; font-weight: 700;
  color: var(--text); text-decoration: none;
  cursor: pointer;
}
.nav-logo:hover { opacity: 0.9; }
.nav-logo-icon { width: 28px; height: 28px; }

.nav-right { display: flex; align-items: center; gap: 12px; }
.nav-user { display: flex; align-items: center; gap: 9px; }
.nav-avatar {
  width: 34px; height: 34px; border-radius: 50%;
  border: none; object-fit: cover; cursor: pointer;
}
.nav-avatar-placeholder {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--navy); border: none;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 13px; color: var(--gold);
  cursor: pointer; flex-shrink: 0;
}
.nav-name { font-size: 14px; font-weight: 600; color: var(--text-primary); }

/* ─────────────────────────────────────────────────────────
   BUTTONS
───────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 28px;
  border-radius: var(--rl);
  font-family: 'Inter', sans-serif;
  font-size: 14px; font-weight: 600;
  border: none; cursor: pointer;
  text-decoration: none;
  transition: all .3s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
}
.btn-sm { padding: 10px 20px; font-size: 13px; }
.btn-lg { padding: 18px 36px; font-size: 16px; border-radius: var(--rl); }
.btn-w { width: 100%; }

.btn-primary { 
  background: var(--primary); 
  color: var(--on-primary); 
  box-shadow: 0 4px 15px rgba(32, 193, 193, 0.25);
}
.btn-primary:hover { 
  transform: translateY(-2px); 
  box-shadow: 0 8px 25px rgba(32, 193, 193, 0.4); 
  filter: brightness(1.1);
}

.btn-outline { 
  background: transparent; 
  color: var(--primary); 
  border: 1px solid rgba(32, 193, 193, 0.3);
}
.btn-outline:hover { 
  background: rgba(32, 193, 193, 0.05); 
  border-color: var(--primary); 
}

.btn-ghost { 
  background: transparent; 
  color: var(--muted); 
}
.btn-ghost:hover { 
  background: rgba(148, 163, 184, 0.1); 
  color: var(--text); 
}

.btn-obsidian {
  background: var(--surface-container-high);
  color: var(--text);
  border: 1px solid var(--outline-variant);
  font-weight: 600;
}
.btn-obsidian:hover {
  background: var(--surface-bright);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn:disabled { opacity: .4; cursor: not-allowed; transform: none !important; }

/* ─────────────────────────────────────────────────────────
   CARD
───────────────────────────────────────────────────────── */
.card {
  background: var(--surface-container-lowest);
  border-radius: var(--rl);
  border: none;
  box-shadow: var(--shadow-sm);
  transition: all .28s;
}
.card-hover:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card-pad { padding: 28px; }
.card-padlg { padding: 40px; }

/* ── GLASSMORPHISM ── */
.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
}

.glass-dark {
  background: rgba(13, 26, 58, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: none;
  color: #fff;
}

/* ── PREMIUM BANNERS ── */
.premium-hero {
  position: relative;
  padding: 120px 24px 100px;
  text-align: center;
  overflow: hidden;
  color: white;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.premium-hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image: 
    radial-gradient(circle at 2px 2px, rgba(255,255,255,0.05) 1px, transparent 0),
    url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMDAiIGhlaWdodD0iMjAwIj48ZmlsdGVyIGlkPSJuIj48ZmVUdXJidWxlbmNlIHR5cGU9ImZyYWN0YWxOb2lzZSIgYmFzZUZyZXF1ZW5jeT0iMC42NSIgbnVtT2N0YXZlcz0iMyIgc3RpdGNoVGlsZXM9InN0aXRjaCIvPjwvZmlsdGVyPjxyZWN0IHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiIGZpbHRlcj0idW4iIG9wYWNpdHk9IjAuMDUiLz48L3N2Zz4=');
  background-size: 32px 32px, 200px 200px;
  opacity: 0.4;
  z-index: 1;
}

.premium-hero-glass {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
  padding: 60px 40px;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: none;
  border-radius: 24px;
  box-shadow: 0 24px 80px rgba(0,0,0,0.3);
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.premium-hero-glass:hover {
  transform: translateY(-8px) scale(1.01);
}

.premium-hero h1 {
  font-family: 'Manrope', sans-serif;
  font-size: clamp(34px, 8vw, 60px);
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.premium-hero .hero-tag {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 100px;
  border: none;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 24px;
}

.premium-hero .hero-sub {
  font-size: 18px;
  color: rgba(255,255,255,0.8);
  max-width: 600px;
  margin: 0 auto;
}

/* ─────────────────────────────────────────────────────────
   ARTICLES SLIDER (NEW SPEC)
───────────────────────────────────────────────────────── */
.articles-slider-container {
  width: 100%;
  overflow-x: auto;
  padding: 40px 0;
  cursor: grab;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.articles-slider-container::-webkit-scrollbar { display: none; }

.articles-slider {
  display: flex;
  gap: 24px;
  padding: 0 4px;
  width: max-content;
}

.article-slider-card {
  min-width: 260px;
  background: var(--surface);
  border: none;
  border-radius: 20px;
  padding: 30px 24px;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  cursor: pointer;
}

.article-slider-card:hover {
  transform: translateY(-8px);
  border-color: var(--gold);
  box-shadow: var(--shadow-premium);
  background: var(--surface-glass);
  backdrop-filter: blur(10px);
}

.asc-icon {
  font-size: 36px;
  margin-bottom: 20px;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,0.1));
  transition: transform 0.4s;
}
.article-slider-card:hover .asc-icon { transform: scale(1.2) rotate(5deg); }

.asc-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 16px;
  line-height: 1.4;
  height: 2.8em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.asc-read {
  font-size: 13px;
  font-weight: 700;
  color: var(--gold);
  transition: opacity 0.3s;
}
.article-slider-card:hover .asc-read { color: var(--text-primary); }

/* ── LEGAL DISCLAIMER box ── */
.legal-disclaimer-box {
  background: var(--surface-container-low);
  border-left: 4px solid var(--gold);
  padding: 24px;
  border-radius: 0 12px 12px 0;
  margin: 60px 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
}
.ldb-title {
  display: block;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}

/* ─────────────────────────────────────────────────────────
   ARTICLE CONTENT LAYOUT
───────────────────────────────────────────────────────── */
.article-wrap, .legal-wrap {
  max-width: 800px;
  margin: 0 auto;
  padding: 60px 24px 100px;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 40px;
  align-items: center;
}
.meta-dot { width: 4px; height: 4px; background: var(--gold); border-radius: 50%; opacity: 0.5; }

.intro-block, .legal-sec {
  font-size: 18px;
  line-height: 1.8;
  color: var(--text-body);
  margin-bottom: 40px;
}

.article-wrap h2, .legal-wrap h2 {
  font-family: 'Manrope', sans-serif;
  font-size: 32px;
  color: var(--text-primary);
  margin: 60px 0 20px;
}

.article-wrap p, .legal-wrap p {
  margin-bottom: 20px;
  color: var(--text-body);
}

.promo {
  background: var(--surface-container-low);
  border: none;
  padding: 40px;
  border-radius: 20px;
  margin: 60px 0;
  text-align: center;
}
.promo h3 { margin-bottom: 12px; font-family: 'Inter', sans-serif; font-size: 24px; }
.promo p { max-width: 600px; margin: 0 auto 24px; }

/* ── ARTICLE UTILITIES ── */
.num {
  display: inline-flex;
  align-items: center; justify-content: center;
  width: 32px; height: 32px;
  background: var(--navy);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  border-radius: 50%;
  margin-right: 12px;
  font-family: 'Inter', sans-serif;
}

.highlight-box {
  background: var(--surface-container-low);
  border-left: 4px solid var(--gold);
  padding: 30px;
  border-radius: 0 16px 16px 0;
  margin: 40px 0;
  font-style: italic;
  font-size: 19px;
  line-height: 1.6;
  color: var(--text-primary);
}

.box {
  border-radius: 12px;
  padding: 30px;
  margin: 30px 0;
}
.box-parchment {
  background: var(--surface-container-low);
  border: none;
  border-left: 4px solid var(--gold);
}
.box-dark {
  background: var(--navy-deep);
  color: #fff;
}
.box-dark h3 { color: var(--gold-light); margin-bottom: 10px; }
.box-dark p { color: rgba(255,255,255,0.8); }
.box-gold {
  background: var(--surface-container-highest);
  border: none;
  border-left: 4px solid var(--gold);
}

.box ul, .box ol {
  padding-left: 20px;
  margin-top: 15px;
}
.box li { margin-bottom: 10px; }

/* ── TABLES ── */
.tbl-wrap {
  overflow-x: auto;
  margin: 40px 0;
  border-radius: 12px;
  border: none;
  box-shadow: var(--shadow-sm);
}
table { width: 100%; border-collapse: collapse; font-size: 15px; }
thead { background: var(--navy-deep); color: #fff; }
thead th { padding: 16px; text-align: left; font-weight: 600; text-transform: uppercase; font-size: 12px; letter-spacing: 1px; }
tbody tr { border-bottom: 1px solid var(--border-light); }
tbody td { padding: 16px; color: var(--text-body); vertical-align: top; }
tbody tr:nth-child(even) { background: var(--surface-container-low); }

/* ── VERSUS / COMPARISON ── */
.versus {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  margin: 40px 0;
  border-radius: 16px;
  overflow: hidden;
  border: none;
  box-shadow: var(--shadow-md);
}
.versus-side { padding: 30px; font-size: 15px; line-height: 1.7; }
.versus-ipc { background: #fffcfc; }
.versus-bns { background: #fcfdfc; }
.versus-mid {
  background: var(--navy);
  color: var(--gold);
  display: flex; align-items: center; justify-content: center;
  padding: 0 20px;
  font-family: 'Manrope', sans-serif;
  font-size: 24px;
  font-weight: 700;
  writing-mode: vertical-rl;
  letter-spacing: 2px;
}
.versus-label {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
  display: block;
  border-bottom: 2px solid var(--gold);
  padding-bottom: 4px;
}

/* ── FAQ ── */
.faq-box { margin: 40px 0; }
.faq-item {
  background: var(--surface);
  border: none;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 16px;
  transition: all 0.3s;
}
.faq-item:hover { transform: translateX(8px); border-color: var(--gold); }
.faq-q {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
  display: flex; gap: 12px;
}
.faq-q::before { content: 'Q'; color: var(--gold); font-weight: 900; }
.faq-a {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.6;
  padding-left: 24px;
}

/* ─────────────────────────────────────────────────────────
   BADGES
───────────────────────────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px; border-radius: 100px;
  font-size: 11px; font-weight: 700;
  letter-spacing: .5px; text-transform: uppercase;
}
.badge-gold { background: rgba(200,153,26,.12); color: var(--gold); }
.badge-navy { background: rgba(27,43,94,.08); color: var(--text-primary); }
.badge-orange { background: rgba(232,88,12,.1); color: var(--orange); }
.badge-success { background: rgba(13,148,72,.1); color: var(--success); }
.badge-muted { background: rgba(122,116,144,.08); color: var(--muted); }
.badge-easy { background: rgba(13,148,72,.1); color: var(--success); }
.badge-medium { background: rgba(217,119,6,.1); color: var(--warn); }
.badge-hard { background: rgba(220,38,38,.1); color: var(--error); }
.badge-mixed { background: rgba(99,102,241,.1); color: #6366f1; }

.guest-notice { background: rgba(200,153,26,.08); border: 1px solid rgba(200,153,26,.25); border-radius: var(--rs); padding: 12px 14px; font-size: 13px; color: var(--muted); margin-bottom: 14px; text-align: center; }

/* ─────────────────────────────────────────────────────────
   SECTION HEADERS
───────────────────────────────────────────────────────── */
.sec-header { text-align: center; margin-bottom: 52px; }
.sec-eyebrow {
  display: inline-block;
  color: var(--gold-deep); font-size: 11px; font-weight: 800;
  letter-spacing: 1.2px; text-transform: uppercase;
  margin-bottom: 10px;
}
.sec-title {
  font-size: clamp(28px, 7vw, 58px);
  color: var(--text-primary); line-height: 1.1;
  margin-bottom: 14px;
}
.sec-sub {
  font-size: 16px; color: var(--muted);
  max-width: 500px; margin: 0 auto; line-height: 1.75;
}

/* ─────────────────────────────────────────────────────────
   PAGE ANIMATION
───────────────────────────────────────────────────────── */
[data-anim] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .55s ease, transform .55s ease;
}
[data-anim].anim-in { opacity: 1; transform: translateY(0); }

/* ─────────────────────────────────────────────────────────
   HERO — index.html
───────────────────────────────────────────────────────── */
.hero {
  min-height: 90vh;
  padding: 160px 40px 100px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 80px;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--primary);
  font-size: 11px; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase;
  margin-bottom: 24px;
}

.hero-title {
  font-size: clamp(48px, 6vw, 84px);
  line-height: 1.05;
  color: var(--text);
  margin-bottom: 24px;
  letter-spacing: -0.03em;
}

.hero-sub {
  font-size: 18px; line-height: 1.7;
  color: var(--text-body);
  margin-bottom: 40px;
  max-width: 540px;
}

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-stats {
  display: flex; align-items: center; gap: 48px;
  margin-top: 64px;
}
.hstat-num {
  font-family: 'Inter', sans-serif;
  font-size: 44px; font-weight: 700; color: var(--text); line-height: 1;
}
.hstat-plus { color: var(--primary); font-size: 28px; }
.hstat-label { font-size: 13px; color: var(--muted); margin-top: 4px; font-weight: 500; }
.hstat-div { width: 1px; height: 40px; background: var(--outline-variant); }

/* Hero Visual */
.hero-visual {
  position: relative;
  padding: 20px;
  perspective: 900px;
}

.hv-main {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: var(--rl);
  box-shadow: var(--shadow-premium);
  border: 1px solid var(--glass-border);
  overflow: hidden;
  /* Removed 3D rotation and floating animation for a clean flat look */
}

.hv-header {
  background: var(--navy);
  padding: 12px 18px;
  display: flex; align-items: center; gap: 7px;
}
.hv-dot {
  width: 11px; height: 11px; border-radius: 50%;
}
.hv-dot.r { background: #FF5F57; }
.hv-dot.y { background: #FEBC2E; }
.hv-dot.g { background: #28C840; }
.hv-htitle {
  font-size: 12px; font-weight: 600; color: rgba(255,255,255,.7);
  margin-left: 6px; font-family: 'Space Mono', monospace;
}

.hv-body { padding: 20px; }
.hv-q {
  font-family: 'Manrope', sans-serif;
  font-size: 17px; font-weight: 600; color: var(--text-primary);
  line-height: 1.45; margin-bottom: 16px;
}
.hv-opts { display: flex; flex-direction: column; gap: 7px; margin-bottom: 14px; }
.hv-opt {
  padding: 9px 13px;
  border-radius: var(--rs);
  border: none;
  font-size: 12px; font-weight: 500; color: var(--muted);
  background: var(--surface);
}
.hv-opt-wrong {
  border-color: var(--error);
  background: rgba(220,38,38,.05);
  color: var(--error);
}
.hv-opt-correct {
  border-color: var(--success);
  background: rgba(13,148,72,.06);
  color: var(--success); font-weight: 700;
}
.hv-exp {
  background: rgba(13,148,72,.06);
  border-left: 3px solid var(--success);
  padding: 9px 12px; border-radius: 0 var(--rs) var(--rs) 0;
  font-size: 11px; line-height: 1.6; color: var(--muted);
}
.hv-exp-label {
  display: block; font-size: 10px; font-weight: 800;
  text-transform: uppercase; letter-spacing: .5px;
  color: var(--success); margin-bottom: 4px;
}

.hv-float {
  position: absolute;
  background: var(--surface); 
  color: var(--text-primary);
  border-radius: var(--r);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  padding: 12px 16px; text-align: center;
}
.hv-float1 {
  top: 0px; right: -8px;
  animation: floatBadge1 3.2s ease-in-out infinite;
}
.hv-float2 {
  bottom: 40px; left: -16px;
  animation: floatBadge2 3.6s ease-in-out infinite .3s;
}
.hv-float3 {
  top: 50%; right: -24px;
  transform: translateY(-50%);
  animation: floatBadge1 4s ease-in-out infinite .6s;
}
@keyframes floatBadge1 {
  0%,100%{transform:translateY(0)} 50%{transform:translateY(-9px)}
}
@keyframes floatBadge2 {
  0%,100%{transform:translateY(0) rotate(-4deg)} 50%{transform:translateY(-10px) rotate(-4deg)}
}

.hv-f-score, .hv-f-streak, .hv-f-rank {
  font-family: 'Space Mono', monospace;
  font-size: 20px; font-weight: 700; color: var(--text-primary); line-height: 1;
}
.hv-f-label { font-size: 10px; color: var(--muted); margin-top: 3px; font-weight: 600; }

/* ─────────────────────────────────────────────────────────
   FEATURES SECTION
───────────────────────────────────────────────────────── */
.features-sec {
  padding: var(--section-gap) 40px;
  background: var(--surface-container-low);
}
.feat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  max-width: 1200px;
  margin: 0 auto;
}
.feat-card {
  padding: 40px;
  background: var(--surface-container-high);
  border-radius: var(--rxl);
  border: none;
  transition: all .4s cubic-bezier(0.4, 0, 0.2, 1);
}
.feat-card:hover { 
  transform: translateY(-8px);
  background: var(--surface-bright);
  box-shadow: var(--shadow-lg);
}
.feat-icon {
  width: 56px; height: 56px; border-radius: var(--rl);
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; margin-bottom: 24px;
  background: rgba(32, 193, 193, 0.1) !important;
  color: var(--primary);
}
.feat-card h3 { font-size: 20px; font-weight: 600; margin-bottom: 12px; color: var(--text); }
.feat-card p { font-size: 15px; color: var(--text-body); line-height: 1.7; }

/* ─────────────────────────────────────────────────────────
   ACTS SECTION
───────────────────────────────────────────────────────── */
.acts-sec { padding: var(--section-gap) 40px; }
.acts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.act-card {
  padding: 32px;
  border-radius: var(--rl);
  background: var(--surface-container-low);
  display: flex; flex-direction: column; align-items: flex-start; gap: 16px;
  transition: all .3s cubic-bezier(0.4, 0, 0.2, 1);
  border: none;
}
.act-card:hover {
  transform: translateY(-8px);
  background: var(--surface-container-high);
  box-shadow: var(--shadow-md);
}
.act-card.act-soon { 
  opacity: 0.5;
  cursor: not-allowed;
}
.ac-icon { font-size: 32px; }
.ac-name { font-size: 16px; font-weight: 600; color: var(--text); line-height: 1.4; }

@keyframes radarPulse {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(3.5); opacity: 0; }
}

.act-chip {
  padding: 11px 14px;
  border-radius: var(--r);
  font-size: 12px; font-weight: 500;
  display: flex; align-items: center; gap: 7px;
  border: none;
  background: var(--surface);
  transition: all .2s;
  cursor: default;
  position: relative;
}
.act-chip.act-live {
  background: linear-gradient(135deg, #FFFEF7, #FFF8DC);
  border-color: rgba(200,153,26,.4);
  color: var(--text-primary);
}
.act-chip.act-soon { color: var(--muted); }

.ac-badge { 
  display: inline-block; padding: 4px 12px; border-radius: 20px; 
  font-size: 10px; font-weight: 800; letter-spacing: .5px; 
  margin-top: auto; 
}
.ac-badge.live { 
  background: var(--success); color: white; 
  position: relative;
}
.ac-badge.live::after {
  content: ''; position: absolute; inset: 0;
  border-radius: inherit; background: var(--success);
  z-index: -1; animation: radarPulse 2s cubic-bezier(0.2, 0.8, 0.2, 1) infinite;
}
.ac-badge.soon { 
  background: var(--border); color: var(--text-body); 
}

.chip-live {
  margin-left: auto;
  font-size: 9px; font-weight: 800;
  text-transform: uppercase; letter-spacing: .5px;
  background: var(--success); color: white;
  padding: 2px 6px; border-radius: 100px;
  position: relative;
}
.chip-live::after {
  content: ''; position: absolute; inset: 0;
  border-radius: inherit; background: var(--success);
  z-index: -1; animation: radarPulse 2s cubic-bezier(0.2, 0.8, 0.2, 1) infinite;
}
.chip-soon {
  margin-left: auto;
  font-size: 9px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .5px;
  color: var(--light);
}

/* ─────────────────────────────────────────────────────────
   SIGN IN SECTION
───────────────────────────────────────────────────────── */
.signin-sec {
  padding: var(--section-gap) 40px;
  background: var(--surface-container-low);
}
.signin-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}
.signin-left h2 {
  font-size: clamp(34px, 4vw, 56px);
  color: var(--text); margin-bottom: 32px;
}
.si-perks { list-style: none; display: flex; flex-direction: column; gap: 16px; }
.si-perks li {
  display: flex; align-items: center; gap: 14px;
  font-size: 15px; color: var(--text-body);
}
.perk-ic {
  width: 24px; height: 24px; border-radius: 50%;
  background: rgba(32, 193, 193, 0.1); color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 800; flex-shrink: 0;
}

.signin-card { 
  padding: 60px 48px; 
  text-align: center; 
  background: var(--surface-container-high);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-premium);
  border-radius: var(--rxl);
}
.signin-icon { font-size: 52px; margin-bottom: 24px; }
.signin-card h3 { font-size: 32px; color: var(--text); margin-bottom: 12px; }
.signin-desc { font-size: 15px; color: var(--muted); margin-bottom: 32px; }

.google-btn {
  width: 100%; padding: 16px 24px;
  background: var(--on-primary); border: none;
  border-radius: var(--rl); cursor: pointer;
  font-family: 'Inter', sans-serif;
  font-size: 16px; font-weight: 600; color: var(--bg);
  display: flex; align-items: center; justify-content: center; gap: 12px;
  transition: all .25s; margin-bottom: 16px;
}
.google-btn:hover:not(:disabled) { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.google-btn:disabled { opacity: .4; cursor: not-allowed; }
.signin-note { font-size: 12px; color: var(--muted); }

/* ─────────────────────────────────────────────────────────
   FOOTER
───────────────────────────────────────────────────────── */
.footer {
  background: var(--navy-deep);
  padding: 56px 28px 28px;
  color: rgba(255,255,255,.6);
}
.footer .gold {
  color: var(--gold-light);
}
.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 36px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer-brand p { font-size: 14px; line-height: 1.7; max-width: 300px; margin-top: 12px; }
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links strong { color: white; font-size: 13px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; margin-bottom: 4px; }
.fl-head { color: white; font-size: 13px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; margin-bottom: 4px; }
.footer-links a { font-size: 14px; transition: color .2s; }
.footer-links a:hover { color: var(--gold-light); }
.footer-bottom { font-size: 13px; text-align: center; }

/* ─────────────────────────────────────────────────────────
   DASHBOARD
───────────────────────────────────────────────────────── */
.dash-hero {
  background: var(--surface-container-low);
  padding: 80px 40px 120px;
  position: relative; overflow: hidden;
}
.dh-inner { position: relative; z-index: 1; max-width: 1200px; margin: 0 auto; }
.dh-welcome { font-size: 12px; font-weight: 700; color: var(--primary); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 8px; }
.dh-name {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 700; color: var(--text); margin-bottom: 8px;
}
.dh-sub { color: var(--muted); font-size: 16px; }

.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  max-width: 1200px; margin: -52px auto 0;
  padding: 0 28px;
  position: relative; z-index: 10;
}
.stat-card {
  background: var(--surface-container-high);
  border-radius: var(--rl);
  border: none;
  padding: 32px;
  transition: all .3s;
}
.stat-card:hover { transform: translateY(-4px); background: var(--surface-bright); }
.stat-ic { font-size: 32px; margin-bottom: 16px; }
.stat-num {
  font-size: 36px; font-weight: 700; color: var(--text); line-height: 1;
}
.stat-label { font-size: 13px; color: var(--muted); margin-top: 6px; font-weight: 500; }

.dash-body {
  max-width: 1200px; margin: 28px auto 0;
  padding: 0 28px 60px;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 22px;
}

.dash-section-title {
  font-size: 22px; color: var(--text-primary);
  margin-bottom: 16px;
}

.qa-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 24px;
}
.qa-card {
  padding: 32px; cursor: pointer;
  background: var(--surface-container-low); border-radius: var(--rl);
  border: none;
  transition: all .3s; text-align: left;
}
.qa-card:hover { transform: translateY(-4px); background: var(--surface-container-high); box-shadow: var(--shadow-md); }
.qa-ic { font-size: 36px; margin-bottom: 12px; }
.qa-title { font-size: 18px; font-weight: 600; color: var(--text); margin-bottom: 4px; }
.qa-sub { font-size: 13px; color: var(--muted); }

.prog-card { padding: 22px; margin-bottom: 10px; }
.prog-item {
  display: flex; align-items: center; gap: 13px;
  padding: 12px 0; border-bottom: 1px solid var(--border-light);
}
.prog-item:last-child { border-bottom: none; }
.prog-ic { font-size: 22px; flex-shrink: 0; }
.prog-info { flex: 1; min-width: 0; }
.prog-name { font-weight: 600; font-size: 14px; margin-bottom: 5px; color: var(--text-primary); }
.prog-bar { background: var(--surface-container-low); border-radius: 100px; height: 5px; overflow: hidden; }
.prog-fill {
  height: 100%; border-radius: 100px;
  background: linear-gradient(90deg, var(--navy), var(--gold));
  width: 0%; transition: width 1.2s ease;
}
.prog-pct { font-size: 12px; font-weight: 700; color: var(--text-primary); white-space: nowrap; }

.activity-list { display: flex; flex-direction: column; }
.act-row {
  display: flex; gap: 11px;
  padding: 11px 0; border-bottom: 1px solid var(--border-light);
}
.act-dot {
  width: 8px; height: 8px; border-radius: 50%;
  margin-top: 6px; flex-shrink: 0;
}
.act-text { font-size: 13px; color: var(--text-body); line-height: 1.55; }
.act-time { font-size: 11px; color: var(--light); margin-top: 2px; }

/* ─────────────────────────────────────────────────────────
   QUIZ HUB
───────────────────────────────────────────────────────── */
.hub-header {
  padding: 40px 0 28px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 36px;
}
.hub-header h1 { font-size: 50px; color: var(--text-primary); }
.hub-header p { color: var(--muted); font-size: 15px; margin-top: 7px; }

.filter-row {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 28px; flex-wrap: wrap;
}
.filter-btn {
  padding: 8px 16px; border-radius: 100px;
  border: none;
  background: var(--surface); cursor: pointer;
  font-family: 'Inter', sans-serif;
  font-size: 13px; font-weight: 600; color: var(--muted);
  transition: all .2s;
}
.filter-btn.active {
  border-color: var(--text-primary); background: var(--navy); color: white;
}

.acts-hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px; padding-bottom: 56px;
}
.act-hub-card {
  padding: 24px; cursor: pointer;
  background: var(--surface); border-radius: var(--rl);
  border: none;
  transition: all .28s; position: relative; overflow: hidden;
}
.act-hub-card.available:hover { border-color: var(--text-primary); transform: translateY(-4px); box-shadow: var(--shadow-md); }
.act-hub-card.unavailable { cursor: default; }
.act-coming-soon {
  position: absolute; inset: 0;
  background: rgba(254,252,243,.75);
  backdrop-filter: blur(3px);
  border-radius: var(--rl);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 13px; color: var(--muted);
}
.ahc-icon { font-size: 32px; margin-bottom: 11px; }
.ahc-name { font-size: 17px; font-weight: 700; color: var(--text-primary); margin-bottom: 5px; }
.ahc-desc { font-size: 12px; color: var(--muted); line-height: 1.6; margin-bottom: 14px; }
.ahc-footer { display: flex; align-items: center; justify-content: space-between; }

/* ─────────────────────────────────────────────────────────
   QUIZ CONFIG
───────────────────────────────────────────────────────── */
.cfg-wrap { max-width: 660px; margin: 36px auto 60px; }
.cfg-card { padding: 44px; }

.cfg-act-header {
  display: flex; align-items: center; gap: 18px;
  margin-bottom: 36px; padding-bottom: 28px;
  border-bottom: 1px solid var(--border);
}
.cfg-act-icon {
  width: 64px; height: 64px; border-radius: var(--r);
  background: var(--navy); display: flex;
  align-items: center; justify-content: center;
  font-size: 28px; flex-shrink: 0;
}
.cfg-act-name { font-size: 32px; color: var(--text-primary); line-height: 1.2; }
.cfg-act-sub { font-size: 13px; color: var(--muted); margin-top: 4px; }

.cfg-section { margin-bottom: 28px; }
.cfg-label {
  font-size: 11px; font-weight: 800;
  text-transform: uppercase; letter-spacing: .7px;
  color: var(--muted); margin-bottom: 11px; display: block;
}

.diff-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; }
.diff-choice {
  padding: 15px; border-radius: var(--r);
  border: none;
  cursor: pointer; text-align: center;
  transition: all .2s; background: var(--surface);
}
.diff-choice:hover { border-color: var(--muted); }
.diff-choice.selected { border-color: var(--text-primary); background: rgba(27,43,94,.04); }
.diff-icon { font-size: 24px; margin-bottom: 5px; }
.diff-name { font-weight: 700; font-size: 14px; color: var(--text-primary); }
.diff-desc { font-size: 11px; color: var(--muted); margin-top: 2px; }

.nq-row { display: flex; gap: 9px; flex-wrap: wrap; }
.nq-choice {
  padding: 9px 19px; border-radius: 100px;
  border: none; cursor: pointer;
  font-weight: 700; font-size: 15px; font-family: 'Space Mono', monospace;
  background: var(--surface); color: var(--text); transition: all .2s;
}
.nq-choice:hover { border-color: var(--muted); }
.nq-choice.selected { border-color: var(--text-primary); background: var(--navy); color: white; }

/* ─────────────────────────────────────────────────────────
   QUIZ PLAY
───────────────────────────────────────────────────────── */
.quiz-bar {
  position: sticky; top: 0; z-index: 100;
  background: rgba(254,252,243,.95);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  padding: 13px 24px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
}
.qbar-left { display: flex; align-items: center; gap: 11px; }
.qbar-act { font-size: 13px; font-weight: 600; color: var(--text-primary); }
.qbar-track {
  flex: 1; max-width: 360px;
  height: 5px; background: var(--surface3);
  border-radius: 100px; overflow: hidden;
}
.qbar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--navy), var(--gold));
  border-radius: 100px; transition: width .4s ease;
}
.qbar-count {
  font-family: 'Space Mono', monospace;
  font-size: 12px; color: var(--muted);
}
.qbar-timer {
  font-family: 'Space Mono', monospace;
  font-size: 14px; font-weight: 700;
  background: var(--surface-container-low);
  padding: 5px 12px; border-radius: var(--rs);
  color: var(--text-primary);
}

.quiz-main {
  max-width: 780px; margin: 0 auto;
  padding: 36px 24px 60px;
}

.q-card { padding: 36px; margin-bottom: 22px; }
.q-meta {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 14px;
}
.q-num { font-size: 11px; font-weight: 800; color: var(--gold); text-transform: uppercase; letter-spacing: 1px; }

.q-text {
  font-family: 'Manrope', sans-serif;
  font-size: 28px; line-height: 1.42;
  color: var(--text-primary); font-weight: 600;
}

.options-list { display: flex; flex-direction: column; gap: 10px; }
.option-btn {
  width: 100%; padding: 16px 20px;
  background: var(--surface); border: none;
  border-radius: var(--r); cursor: pointer; text-align: left;
  font-size: 15px; font-weight: 500; color: var(--text);
  font-family: 'Inter', sans-serif;
  display: flex; align-items: center; gap: 13px;
  transition: all .2s;
}
.opt-label {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--surface-container-low); border: none;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 800; flex-shrink: 0;
  transition: all .2s;
}
.option-btn:hover:not(:disabled) { border-color: var(--text-primary); }
.option-btn:hover:not(:disabled) .opt-label {
  background: var(--navy); color: white; border-color: var(--text-primary);
}
.option-btn.correct { border-color: var(--success); background: rgba(13,148,72,.06); }
.option-btn.correct .opt-label { background: var(--success); color: white; border-color: var(--success); }
.option-btn.wrong { border-color: var(--error); background: rgba(220,38,38,.06); }
.option-btn.wrong .opt-label { background: var(--error); color: white; border-color: var(--error); }
.option-btn:disabled { cursor: default; }

.exp-box {
  padding: 20px 22px; border-radius: var(--r);
  margin-top: 18px;
  animation: fadeUp .3s ease;
}
.exp-box.correct { background: rgba(13,148,72,.06); border-left: 4px solid var(--success); }
.exp-box.wrong { background: rgba(220,38,38,.05); border-left: 4px solid var(--error); }
.exp-head {
  font-size: 11px; font-weight: 800; text-transform: uppercase;
  letter-spacing: .6px; margin-bottom: 7px;
}
.exp-box.correct .exp-head { color: var(--success); }
.exp-box.wrong .exp-head { color: var(--error); }
.exp-text { font-size: 14px; line-height: 1.75; color: var(--muted); }

.quiz-next-row {
  display: flex; justify-content: flex-end;
  margin-top: 22px;
}

/* ─────────────────────────────────────────────────────────
   RESULTS
───────────────────────────────────────────────────────── */
.results-wrap {
  max-width: 720px; margin: 0 auto;
  padding: 36px 24px 60px;
}
.score-circle-wrap { text-align: center; margin-bottom: 44px; }
.score-circle {
  width: 200px; height: 200px; border-radius: 50%;
  margin: 0 auto 22px;
  display: flex; align-items: center; justify-content: center;
  flex-direction: column;
  background: conic-gradient(var(--gold) var(--score-pct, 0%), var(--surface2) 0%);
  position: relative;
}
.score-circle::before {
  content: '';
  position: absolute; inset: 18px;
  background: var(--surface); border-radius: 50%;
}
.score-inner { position: relative; z-index: 1; text-align: center; }
.score-num {
  font-family: 'Space Mono', monospace;
  font-size: 52px; font-weight: 700; color: var(--text-primary); line-height: 1;
}
.score-total { font-size: 16px; color: var(--muted); }
.score-label {
  font-family: 'Manrope', sans-serif;
  font-size: 22px; font-weight: 700; color: var(--text-primary);
  margin-bottom: 4px;
}
.score-pct-txt { font-size: 14px; color: var(--muted); }

.quote-card {
  padding: 32px; text-align: center;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  color: white; border-radius: var(--rl);
  margin-bottom: 22px;
}
.quote-text {
  font-family: 'Manrope', sans-serif;
  font-size: 24px; font-style: italic; line-height: 1.5;
  margin-bottom: 11px;
}
.quote-author { font-size: 13px; opacity: .6; }
.quote-card.hidden { display: none; }

.review-card { padding: 28px; margin-bottom: 22px; }
.review-row {
  display: flex; align-items: flex-start; gap: 11px;
  padding: 11px 0; border-bottom: 1px solid var(--border-light);
}
.review-row:last-child { border-bottom: none; }
.review-num { font-size: 11px; color: var(--light); width: 22px; flex-shrink: 0; margin-top: 2px; }
.review-q { flex: 1; font-size: 13px; line-height: 1.55; color: var(--text); }
.review-badge {
  font-size: 10px; font-weight: 800;
  padding: 3px 8px; border-radius: 100px; white-space: nowrap;
}

.results-actions {
  display: flex; gap: 11px; justify-content: center;
  flex-wrap: wrap; padding: 8px 0 20px;
}

/* ─────────────────────────────────────────────────────────
   FLASHCARDS
───────────────────────────────────────────────────────── */
.fc-hub-header {
  padding: 40px 0 28px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 36px;
}
.fc-hub-header h1 { font-size: 50px; color: var(--text-primary); }
.fc-hub-header p { font-size: 15px; color: var(--muted); margin-top: 7px; }

.fc-hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 18px; padding-bottom: 56px;
}
.fc-act-card {
  padding: 26px; cursor: pointer;
  background: var(--surface); border-radius: var(--rl);
  border: none;
  transition: all .28s;
}
.fc-act-card.fc-available:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--gold); }
.fc-act-card.fc-locked { cursor: default; }
.fc-act-icon { font-size: 36px; margin-bottom: 14px; }
.fc-act-name { font-size: 20px; font-weight: 700; color: var(--text-primary); margin-bottom: 4px; }
.fc-act-count { font-size: 13px; color: var(--muted); }

/* Flashcard Player */
.fc-player-wrap {
  max-width: 720px; margin: 0 auto;
  padding: 36px 24px 60px;
}
.fc-player-top {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 32px;
}
.fc-scores { display: flex; gap: 22px; }
.fc-score-item { text-align: center; }
.fc-score-num {
  font-family: 'Space Mono', monospace;
  font-size: 22px; font-weight: 700;
}
.fc-score-label { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; }
.fc-count { font-family: 'Space Mono', monospace; font-size: 13px; color: var(--muted); }

.fc-card-wrap {
  perspective: 1200px;
  height: 360px; margin-bottom: 28px; cursor: pointer;
}
.fc-card {
  width: 100%; height: 100%;
  position: relative; transform-style: preserve-3d;
  transition: transform .65s cubic-bezier(.4,0,.2,1);
  border-radius: var(--rxl);
}
.fc-card.flipped { transform: rotateY(180deg); }

.fc-face {
  position: absolute; inset: 0;
  backface-visibility: hidden; border-radius: var(--rxl);
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; padding: 44px; text-align: center;
}
.fc-front {
  background: linear-gradient(145deg, var(--navy), var(--navy-mid));
  color: white;
}
.fc-back {
  background: linear-gradient(145deg, #FFFEF7, #FFF8DC);
  transform: rotateY(180deg);
  border: 2px solid rgba(200,153,26,.4);
}
.fc-face-hint {
  font-size: 11px; text-transform: uppercase; letter-spacing: 1px;
  margin-bottom: 14px; opacity: .5;
}
.fc-face-q {
  font-family: 'Manrope', sans-serif;
  font-size: 26px; line-height: 1.45; font-weight: 600;
}
.fc-face-ans-label {
  font-size: 11px; font-weight: 800;
  text-transform: uppercase; letter-spacing: 1px;
  color: var(--gold); margin-bottom: 11px;
}
.fc-face-ans {
  font-size: 17px; line-height: 1.72; color: var(--text-primary);
}
.fc-tap-hint { font-size: 11px; opacity: .35; margin-top: 18px; }

.fc-card-btns {
  display: flex; gap: 11px; justify-content: center;
}

/* ─────────────────────────────────────────────────────────
   LEADERBOARD
───────────────────────────────────────────────────────── */
.lb-wrap {
  max-width: 900px; margin: 0 auto;
  padding: 36px 24px 60px;
}
.lb-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 24px;
}
.lb-head h1 { font-size: 50px; color: var(--text-primary); }

.lb-tabs {
  display: flex; gap: 4px;
  background: var(--surface-container-low); border-radius: var(--r);
  padding: 4px; margin-bottom: 22px; overflow-x: auto;
}
.lb-tab {
  flex: 1; padding: 9px 14px;
  border-radius: calc(var(--r) - 4px);
  border: none; background: transparent;
  cursor: pointer; font-family: 'Inter', sans-serif;
  font-size: 13px; font-weight: 600; color: var(--muted);
  transition: all .2s; white-space: nowrap;
}
.lb-tab.active { background: var(--surface); color: var(--text-primary); box-shadow: var(--shadow-sm); }

.lb-table {
  background: var(--surface); border-radius: var(--rl);
  border: none; overflow: hidden;
  box-shadow: var(--shadow-sm);
}
table { width: 100%; border-collapse: collapse; }
thead th {
  text-align: left; padding: 12px 16px;
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .5px;
  color: var(--muted); border-bottom: 2px solid var(--border);
}
tbody td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-light);
  font-size: 14px; vertical-align: middle;
}
tbody tr:last-child td { border-bottom: none; }
tbody tr.lb-me { background: rgba(200,153,26,.06); }
tbody tr:hover { background: var(--surface-container-low); }

.lb-rank { font-family: 'Space Mono', monospace; font-weight: 700; font-size: 16px; }
.lb-rank.r1 { color: var(--gold); }
.lb-rank.r2 { color: #9CA3AF; }
.lb-rank.r3 { color: #B45309; }

.lb-user { display: flex; align-items: center; gap: 10px; }
.lb-av {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--navy); color: white;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 12px; flex-shrink: 0;
}
.lb-av img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.lb-un { font-weight: 600; }
.lb-score { font-family: 'Space Mono', monospace; font-weight: 700; color: var(--text-primary); }
.lb-acc { font-size: 13px; color: var(--muted); }

/* ─────────────────────────────────────────────────────────
   LIVE QUIZ
───────────────────────────────────────────────────────── */
.live-wrap {
  max-width: 900px; margin: 0 auto;
  padding: 36px 24px 60px;
}
.live-head { margin-bottom: 28px; }
.live-head h1 { font-size: 50px; color: var(--text-primary); }
.live-head p { font-size: 15px; color: var(--muted); margin-top: 7px; }

.live-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; margin-bottom: 32px; }
.live-tab {
  padding: 16px; border-radius: var(--r);
  border: none;
  cursor: pointer; text-align: center;
  font-weight: 600; font-size: 16px;
  background: var(--surface); transition: all .2s;
  font-family: 'Inter', sans-serif; color: var(--text);
}
.live-tab.active { border-color: var(--text-primary); background: var(--navy); color: white; }
.live-tab-icon { font-size: 28px; display: block; margin-bottom: 6px; }

.live-panel { display: none; }
.live-panel.active { display: block; }

.live-opt-card { padding: 44px; text-align: center; }
.lop-icon { font-size: 52px; margin-bottom: 16px; }
.lop-title { font-size: 30px; color: var(--text-primary); margin-bottom: 8px; }
.lop-desc { color: var(--muted); font-size: 14px; margin-bottom: 28px; line-height: 1.7; }

.room-code-input {
  width: 100%; padding: 16px 20px;
  font-size: 26px; text-align: center;
  letter-spacing: 10px; font-family: 'Space Mono', monospace;
  font-weight: 700; text-transform: uppercase;
  border: none; border-radius: var(--r);
  background: var(--surface); color: var(--text-primary);
  outline: none; margin-bottom: 18px;
  transition: border-color .2s;
}
.room-code-input:focus { border-color: var(--text-primary); }

.host-config { padding: 36px; }
.host-act-select { margin-bottom: 22px; }
.hac-label { display: block; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .7px; color: var(--muted); margin-bottom: 9px; }
.hac-dropdown {
  width: 100%; padding: 12px 16px;
  border: none; border-radius: var(--r);
  background: var(--surface); font-family: 'Inter', sans-serif;
  font-size: 15px; color: var(--text); cursor: pointer;
  outline: none; transition: border-color .2s;
}
.hac-dropdown:focus { border-color: var(--text-primary); }

.lobby-card { padding: 36px; }
.lobby-code-display {
  background: var(--surface-container-low); border-radius: var(--r);
  padding: 22px; text-align: center; margin-bottom: 24px;
}
.lcd-label { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); margin-bottom: 6px; }
.lcd-code {
  font-family: 'Space Mono', monospace;
  font-size: 44px; font-weight: 700; color: var(--text-primary); letter-spacing: 10px;
}
.lcd-hint { font-size: 13px; color: var(--muted); margin-top: 7px; }

.participants-list { margin-bottom: 22px; }
.part-item {
  display: flex; align-items: center; gap: 9px;
  padding: 10px 0; border-bottom: 1px solid var(--border-light);
}
.part-av {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--navy); color: white;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700;
}
.part-name { font-weight: 500; font-size: 14px; }
.part-host {
  font-size: 10px; background: var(--gold); color: white;
  padding: 2px 7px; border-radius: 100px; font-weight: 700;
}

/* Live Quiz Question */
.live-q-wrap { max-width: 780px; margin: 0 auto; padding: 36px 24px; }
.live-qbar {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--navy); color: white;
  padding: 14px 22px; border-radius: var(--r);
  margin-bottom: 24px;
}
.live-qbar-info { font-size: 14px; font-weight: 600; }
.live-timer {
  font-family: 'Space Mono', monospace;
  font-size: 28px; font-weight: 700; color: var(--gold);
}
.live-lb-row {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: var(--rs);
  border: none; margin-bottom: 8px;
}
.live-lb-rk { font-family: 'Space Mono', monospace; font-weight: 700; font-size: 14px; width: 28px; }
.live-lb-nm { flex: 1; font-weight: 500; font-size: 14px; }
.live-lb-sc { font-family: 'Space Mono', monospace; font-weight: 700; color: var(--text-primary); }

/* ─────────────────────────────────────────────────────────
   PROFILE
───────────────────────────────────────────────────────── */
.profile-wrap {
  max-width: 900px; margin: 0 auto;
  padding: 36px 24px 60px;
}
.profile-hero {
  display: flex; align-items: center; gap: 26px;
  padding: 36px; border-radius: var(--rl);
  background: var(--surface); border: none;
  margin-bottom: 22px; box-shadow: var(--shadow-sm);
}
.profile-av {
  width: 80px; height: 80px; border-radius: 50%;
  border: 3px solid var(--gold); object-fit: cover; flex-shrink: 0;
}
.profile-av-placeholder {
  width: 80px; height: 80px; border-radius: 50%;
  background: var(--navy); border: 3px solid var(--gold);
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; font-weight: 700; color: var(--gold); flex-shrink: 0;
}
.profile-name { font-size: 34px; color: var(--text-primary); margin-bottom: 3px; }
.profile-email { color: var(--muted); font-size: 14px; }
.profile-stats { display: flex; gap: 28px; margin-top: 16px; }
.ps-item { text-align: center; }
.ps-num { font-family: 'Space Mono', monospace; font-size: 22px; font-weight: 700; color: var(--text-primary); line-height: 1; }
.ps-label { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; margin-top: 3px; }

.history-card { padding: 28px; }
.history-table { width: 100%; border-collapse: collapse; }
.history-table th {
  text-align: left; padding: 10px 14px;
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .5px;
  color: var(--muted); border-bottom: 2px solid var(--border);
}
.history-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border-light);
  font-size: 13px;
}
.history-table tbody tr:hover { background: var(--surface-container-low); }

.danger-zone {
  padding: 24px; border-radius: var(--rl);
  border: 2px solid rgba(220,38,38,.25);
  background: rgba(220,38,38,.02);
  margin-top: 22px;
}
.danger-zone h3 { color: var(--error); font-size: 20px; margin-bottom: 7px; }
.danger-zone p { color: var(--muted); font-size: 13px; margin-bottom: 18px; line-height: 1.65; }

/* ─────────────────────────────────────────────────────────
   ARTICLES BENTO GRID
───────────────────────────────────────────────────────── */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 240px;
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.bento-card {
  border-radius: var(--rl);
  padding: 40px;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  transition: all .4s cubic-bezier(0.4, 0, 0.2, 1);
  background: var(--surface-container-low);
  position: relative;
  overflow: hidden;
  border: none;
}

.bento-card:hover {
  transform: translateY(-8px);
  background: var(--surface-container-high);
  box-shadow: var(--shadow-lg);
}

.bento-dark {
  background: var(--surface-container-highest);
  color: var(--text);
}
.bento-dark h3, .bento-dark p { color: var(--text) !important; }

.bento-large { grid-column: span 2; grid-row: span 2; }
.bento-medium { grid-column: span 2; grid-row: span 1; justify-content: space-between; }
.bento-small { grid-column: span 1; grid-row: span 1; align-items: center; justify-content: center; text-align: center; }
.bento-wide { grid-column: span 4; grid-row: span 1; flex-direction: row; align-items: center; gap: 40px; }

.bc-tag {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 100px;
  background: rgba(32, 193, 193, 0.1);
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  color: var(--primary); align-self: flex-start; margin-bottom: auto;
}

.bento-card h3 { font-size: 24px; color: var(--text); margin-bottom: 12px; line-height: 1.2; }
.bento-large h3 { font-size: 32px; margin-bottom: 16px; }
.bento-card p { font-size: 15px; color: var(--text-body); line-height: 1.6; }
.bc-icon { font-size: 40px; margin-bottom: 16px; }

.bc-read {
  margin-top: 24px; display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 700; color: var(--primary);
  text-transform: uppercase; letter-spacing: 1px;
}
.bc-arrow { transition: transform .3s; }
.bento-card:hover .bc-arrow { transform: translateX(5px); }
.bento-wide .bc-content { flex: 1; }
.bento-wide .bc-tag { margin-bottom: 0; }

/* ─────────────────────────────────────────────────────────
   MODAL
───────────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(13,26,58,.5);
  backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  padding: 24px; opacity: 0; pointer-events: none;
  transition: opacity .25s;
}
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal {
  background: var(--surface); border-radius: var(--rxl);
  padding: 44px; width: 100%; max-width: 480px;
  box-shadow: var(--shadow-lg);
  transform: scale(.95) translateY(16px);
  transition: transform .28s;
}
.modal-overlay.open .modal { transform: scale(1) translateY(0); }
.modal h3 { font-size: 28px; color: var(--text-primary); margin-bottom: 11px; }
.modal p { color: var(--muted); font-size: 14px; line-height: 1.7; margin-bottom: 24px; }
.modal-btns { display: flex; gap: 10px; }

/* ─────────────────────────────────────────────────────────
   TOAST
───────────────────────────────────────────────────────── */
.toast-container {
  position: fixed; top: 86px; right: 22px; z-index: 9999;
  display: flex; flex-direction: column; gap: 8px;
}
.toast {
  padding: 12px 18px; border-radius: var(--r);
  font-size: 14px; font-weight: 500;
  box-shadow: var(--shadow-md);
  animation: toastIn .3s ease;
  max-width: 340px;
}
.toast-success { background: var(--surface); color: var(--success); border-left: 4px solid var(--success); }
.toast-error { background: var(--surface); color: var(--error); border-left: 4px solid var(--error); }
.toast-info { background: var(--surface); color: var(--text-primary); border-left: 4px solid var(--navy); }
@keyframes toastIn { from { opacity:0; transform:translateX(20px); } to { opacity:1; transform:translateX(0); } }

/* ─────────────────────────────────────────────────────────
   LOADING
───────────────────────────────────────────────────────── */
.loading {
  display: flex; align-items: center; justify-content: center;
  min-height: 60vh; flex-direction: column; gap: 16px;
}
.spinner {
  width: 44px; height: 44px; border-radius: 50%;
  border: 3px solid var(--border);
  border-top-color: var(--text-primary);
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loading p { color: var(--muted); font-size: 14px; }

/* ─────────────────────────────────────────────────────────
   ANIMATIONS
───────────────────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity:0; transform:translateY(18px); }
  to { opacity:1; transform:translateY(0); }
}

/* ─────────────────────────────────────────────────────────
   ARTICLES DROPDOWN & SLIDER
───────────────────────────────────────────────────────── */
.nav-dropdown { position: relative; display: inline-block; }
.nav-dropbtn { display: inline-flex; align-items: center; justify-content: center; }
.nav-dropdown:hover .nav-dropdown-content { display: block; animation: fadeUp .2s ease; }
.nav-dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  right: -20px;
  background-color: var(--surface);
  min-width: 240px;
  box-shadow: var(--shadow-lg);
  border-radius: var(--r);
  border: none;
  z-index: 1000;
  padding: 8px 0;
  margin-top: 10px;
  max-height: 400px;
  overflow-y: auto;
}
.nav-dropdown-content a {
  color: var(--text-primary);
  padding: 10px 18px;
  text-decoration: none;
  display: block;
  font-size: 13px;
  font-weight: 600;
  transition: all .2s;
  border-left: 3px solid transparent;
}
.nav-dropdown-content a:hover {
  background-color: var(--surface2);
  color: var(--navy-deep);
  border-left-color: var(--gold);
}

.articles-slider-container {
  width: 100%;
  overflow-x: auto;
  padding: 10px 0 24px 0;
  scrollbar-width: thin;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
}
.articles-slider-container::-webkit-scrollbar { height: 6px; }
.articles-slider-container::-webkit-scrollbar-track { background: var(--surface-container-low); border-radius: 10px; }
.articles-slider-container::-webkit-scrollbar-thumb { background: var(--light); border-radius: 10px; }
.articles-slider {
  display: flex;
  gap: 16px;
  width: max-content;
  padding: 0 4px;
}
.article-slider-card {
  width: 320px;
  flex-shrink: 0;
  background: var(--surface-container-low);
  border-radius: var(--rl);
  padding: 40px 32px;
  transition: all .4s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  scroll-snap-align: start;
  border: none;
}
.article-slider-card:hover {
  transform: translateY(-8px);
  background: var(--surface-container-high);
  box-shadow: var(--shadow-lg);
}
.asc-icon { font-size: 36px; margin-bottom: 24px; }
.asc-title { font-size: 18px; font-weight: 600; color: var(--text); line-height: 1.4; margin-bottom: 12px; }
.asc-read { margin-top: auto; padding-top: 16px; font-size: 12px; font-weight: 700; color: var(--primary); text-transform: uppercase; letter-spacing: 1px; display: flex; align-items: center; gap: 8px; }

/* ─────────────────────────────────────────────────────────
   ARTICLE SPECIFIC COMPONENTS (BNSS vs CrPC)
───────────────────────────────────────────────────────── */
.timeline {
  position: relative; margin: 40px 0; padding-left: 20px;
}
.timeline::before {
  content: ''; position: absolute; left: 35px; top: 10px; bottom: 10px;
  width: 2px; background: var(--border);
}
.tl-item {
  position: relative; display: flex; gap: 24px; margin-bottom: 30px;
}
.tl-dot {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--surface); border: none;
  color: var(--text-primary); font-size: 13px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  z-index: 1; flex-shrink: 0;
}
.tl-dot.accent { background: var(--navy); color: white; border-color: var(--text-primary); }
.tl-body { flex: 1; padding-top: 4px; }
.tl-year { font-family: 'Manrope', sans-serif; font-size: 22px; font-weight: 700; color: var(--text-primary); margin-bottom: 4px; }
.tl-text { color: var(--text-body); font-size: 15px; line-height: 1.6; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin: 40px 0; }
.split-card { padding: 30px; border-radius: var(--rl); border: none; }
.split-card.old { background: var(--surface-container-low); }
.split-card.new { background: var(--surface); border-color: var(--gold); box-shadow: var(--shadow-sm); }
.sc-label {
  display: inline-block; padding: 4px 12px; border-radius: 100px;
  font-size: 11px; font-weight: 800; text-transform: uppercase; margin-bottom: 16px;
}
.split-card.old .sc-label { background: var(--border); color: var(--muted); }
.split-card.new .sc-label { background: rgba(200,153,26,.15); color: var(--gold-deep); border: 1px solid var(--gold); }

.box-teal { background: rgba(13,148,114,0.04); border-left: 4px solid #0D9472; border-radius: 12px; }
.box-teal h3 { color: #0D9472; margin-bottom: 12px; }
.box-amber { background: rgba(217,119,6,0.04); border-left: 4px solid var(--warn); border-radius: 12px; }
.box-amber h3 { color: var(--warn); margin-bottom: 12px; }

.tag-new {
  display: inline-block; padding: 2px 8px; border-radius: 4px;
  font-size: 10px; font-weight: 700; text-transform: uppercase;
  background: var(--success); color: white; margin-left: 8px;
  vertical-align: middle;
}
td .tag-new { margin-top: 4px; display: inline-block; }

.callout {
  padding: 24px 30px; border-radius: var(--rl);
  background: var(--navy-deep); color: white;
  margin: 40px 0; font-size: 16px; line-height: 1.7;
  border-left: 4px solid var(--gold);
}

.study-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin: 40px 0; }
.study-card {
  padding: 30px; border-radius: var(--rxl);
  background: var(--surface); border: none;
  box-shadow: var(--shadow-sm); transition: all 0.3s;
}
.study-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--gold); }
.sc-num {
  font-family: 'Space Mono', monospace; font-size: 32px; font-weight: 700;
  color: var(--gold); opacity: 0.5; margin-bottom: 12px; line-height: 1;
}
.study-card h4 { font-family: 'Inter', sans-serif; font-size: 18px; color: var(--text-primary); margin-bottom: 8px; }

.conclusion { margin: 60px 0; padding-top: 40px; border-top: 1px solid var(--border); }
.conclusion h2 { margin-top: 0; }

/* ─────────────────────────────────────────────────────────
   HAMBURGER BUTTON
───────────────────────────────────────────────────────── */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px 8px;
  border-radius: 8px;
  min-width: 40px;
  min-height: 40px;
  flex-shrink: 0;
  transition: background .2s;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all .3s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: center;
}
.nav-hamburger:hover { background: var(--surface-container-low); }
.nav.nav-open .nav-hamburger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav.nav-open .nav-hamburger span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav.nav-open .nav-hamburger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ─────────────────────────────────────────────────────────
   RESPONSIVE
───────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; text-align: center; }
  .hero-left, .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-stats { justify-content: center; }
  .feat-grid { grid-template-columns: repeat(2, 1fr); }
  .dash-body { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .signin-wrap { grid-template-columns: 1fr; gap: 48px; }
  .footer-top { grid-template-columns: repeat(2, 1fr); }
  .bento-grid { grid-template-columns: repeat(2, 1fr); }
  .bento-wide { grid-column: span 2; flex-direction: column; align-items: flex-start; }
}

@media (max-width: 768px) {
  :root { --section-gap: 64px; }

  /* Layout — containers: these sections have a .container inside so remove
     the section-level horizontal padding to avoid double-padding on mobile */
  .container { padding: 0 20px; }
  .container-sm { padding: 0 20px; }
  .container-xs { padding: 0 20px; }
  .pt-nav { padding-top: 72px !important; }

  /* Hero — remove section horizontal padding (container inside already pads) */
  .hero { padding: 80px 0 60px; }
  .features-sec { padding: var(--section-gap) 0; }
  .acts-sec { padding: var(--section-gap) 0; }
  .signin-sec { padding: var(--section-gap) 0; }

  /* Navigation — hamburger */
  .nav { padding: 12px 16px; }
  .nav.scrolled { padding: 10px 16px; }
  .nav-hamburger { display: flex; }
  .nav-right {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 12px 16px 16px;
    flex-direction: column;
    gap: 6px;
    box-shadow: var(--shadow-md);
    z-index: 899;
    max-height: 80vh;
    overflow-y: auto;
  }
  .nav.nav-open .nav-right { display: flex; }
  .nav-right .btn { width: 100%; justify-content: center; text-align: center; }
  .nav-dropdown { width: 100%; }
  .nav-dropbtn { width: 100%; justify-content: center; }
  .nav-dropdown-content {
    position: static;
    box-shadow: none;
    background: var(--surface-container-low);
    max-height: none;
    margin-top: 4px;
    border-radius: var(--r);
    animation: none;
    display: none;
  }
  .nav-dropdown:hover .nav-dropdown-content { display: none; }
  .nav-dropdown.open .nav-dropdown-content { display: block; }
  .nav-user { flex-direction: column; align-items: stretch; gap: 8px; width: 100%; }
  .nav-user .nav-name { text-align: center; }

  /* Buttons — WCAG minimum touch target */
  .btn { min-height: 44px; }
  .btn-sm { min-height: 40px; }

  /* Hero */
  .feat-grid { grid-template-columns: 1fr; }
  .hero-title { font-size: 44px; }
  .hero-sub { font-size: 16px; }
  .hero-stats { gap: 24px; margin-top: 40px; }
  .hstat-num { font-size: 32px; }
  .hv-float1, .hv-float2, .hv-float3 { display: none; }
  .hero-visual { padding: 0; }

  /* Dashboard */
  .dash-hero { padding: 48px 20px 80px; }
  .stats-row { padding: 0 20px; }
  .stat-card { padding: 20px; }
  .qa-card { padding: 20px; }
  .dash-body { padding: 0 20px 40px; }

  /* Quiz config card */
  .cfg-card { padding: 24px 20px; }
  .cfg-act-name { font-size: 24px; }
  .cfg-act-icon { width: 48px; height: 48px; font-size: 22px; }

  /* Profile */
  .profile-wrap { padding: 24px 20px 40px; }
  .profile-hero { flex-direction: column; align-items: flex-start; gap: 16px; padding: 24px; }
  .profile-name { font-size: 26px; }
  .profile-stats { flex-wrap: wrap; gap: 16px; }
  .profile-hero > div:last-child { width: 100%; flex-direction: row; align-self: auto; }
  .profile-hero > div:last-child .btn { flex: 1; }

  /* History table — horizontal scroll */
  .history-card { padding: 16px; overflow-x: auto; }
  .history-table { min-width: 520px; }

  /* Leaderboard */
  .lb-head { flex-direction: column; align-items: flex-start; gap: 12px; }
  .lb-head h1 { font-size: 36px; }
  .lb-wrap { padding: 24px 20px 40px; }
  .lb-table { overflow-x: auto; }
  .lb-table table { min-width: 480px; }

  /* Flashcards */
  .fc-hub-header h1 { font-size: 36px; }
  .fc-card-wrap { height: 300px; }
  .fc-face { padding: 28px; }
  .fc-face-q { font-size: 20px; }
  .fc-player-wrap { padding: 24px 20px 40px; }
  .fc-player-top { flex-wrap: wrap; gap: 12px; }
  .fc-scores { flex-wrap: wrap; gap: 14px; }

  /* Quiz */
  .quiz-bar { padding: 10px 16px; gap: 10px; }
  .quiz-bar { top: 52px !important; }
  .qbar-left { gap: 8px; }
  .qbar-track { max-width: none; flex: 1; min-width: 80px; }
  .quiz-main { padding: 24px 16px 40px; }
  .q-card { padding: 24px; }
  .q-text { font-size: 22px; }

  /* Live */
  .live-head h1 { font-size: 36px; }
  .live-wrap { padding: 24px 20px 40px; }

  /* Footer */
  .footer { padding: 40px 20px 20px; }

  /* Sign-in card */
  .signin-card { padding: 36px 24px; }

  /* Article-specific */
  .split { grid-template-columns: 1fr; }
  .study-grid { grid-template-columns: 1fr; }

  /* Modal */
  .modal { padding: 28px 20px; }

  /* Premium hero */
  .premium-hero { padding: 72px 20px 60px; }

  /* Feat cards & touch feedback — no separate media block needed */
  .feat-card { padding: 24px; }
  .btn:active { opacity: 0.85; transform: scale(0.98); }
}

@media (max-width: 480px) {
  :root { --section-gap: 48px; }

  /* Layout */
  .container { padding: 0 14px; }
  .container-sm { padding: 0 14px; }
  .container-xs { padding: 0 14px; }
  .pt-nav { padding-top: 64px !important; }

  /* Hero — keep no horizontal padding so container provides the only margin */
  .hero { padding: 56px 0 40px; }

  /* Hero */
  .hero-title { font-size: 30px; letter-spacing: -0.02em; }
  .hero-sub { font-size: 15px; margin-bottom: 28px; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  .hero-stats { gap: 12px; flex-wrap: wrap; justify-content: flex-start; margin-top: 28px; }
  .hstat-num { font-size: 26px; }
  .hstat-div { display: none; }
  .hstat-label { font-size: 12px; }

  /* Dashboard */
  .dash-hero { padding: 36px 14px 68px; }
  .stats-row { grid-template-columns: 1fr 1fr; padding: 0 14px; gap: 10px; margin-top: -36px; }
  .stat-card { padding: 14px; }
  .stat-num { font-size: 26px; }
  .stat-ic { font-size: 22px; margin-bottom: 8px; }
  .stat-label { font-size: 11px; }
  .qa-grid { grid-template-columns: 1fr; }
  .qa-card { padding: 16px; }
  .qa-ic { font-size: 26px; margin-bottom: 8px; }
  .qa-title { font-size: 16px; }
  .qa-sub { font-size: 12px; }
  .dash-body { padding: 0 14px 32px; }
  .dash-section-title { font-size: 18px; }

  /* Quiz config card */
  .cfg-card { padding: 16px 14px; }
  .cfg-act-name { font-size: 20px; }
  .cfg-act-icon { width: 40px; height: 40px; font-size: 18px; }
  .cfg-act-header { gap: 12px; margin-bottom: 24px; padding-bottom: 18px; }

  /* Quiz */
  .quiz-bar { padding: 8px 12px; gap: 8px; flex-wrap: nowrap; }
  .qbar-act { display: none; }
  .qbar-left { gap: 6px; min-width: 0; flex-shrink: 1; }
  .qbar-track { min-width: 60px; }
  .qbar-timer { font-size: 12px; padding: 4px 8px; }
  .qbar-count { font-size: 11px; }
  .quiz-main { padding: 14px 12px 32px; }
  .q-card { padding: 16px; margin-bottom: 14px; }
  .q-text { font-size: 18px; line-height: 1.45; }
  .option-btn { padding: 12px 14px; font-size: 14px; gap: 10px; }
  .opt-label { width: 28px; height: 28px; font-size: 11px; }
  .exp-box { padding: 14px 16px; }

  /* Profile */
  .profile-wrap { padding: 20px 14px 32px; }
  .profile-name { font-size: 22px; }
  .profile-stats { gap: 10px; }
  .ps-num { font-size: 18px; }
  .history-card { padding: 12px; }

  /* Leaderboard */
  .lb-head h1 { font-size: 28px; }
  .lb-tabs { flex-wrap: wrap; }
  .lb-tab { flex: 1 1 auto; min-width: max-content; padding: 8px 10px; font-size: 12px; }
  .lb-wrap { padding: 16px 14px 32px; }

  /* Flashcards */
  .fc-hub-header h1 { font-size: 26px; }
  .fc-card-wrap { height: 240px; }
  .fc-face { padding: 20px; }
  .fc-face-q { font-size: 17px; }
  .fc-card-btns { gap: 8px; }
  .fc-card-btns .btn { flex: 1; }
  .fc-player-wrap { padding: 16px 14px 32px; }
  .fc-player-top { gap: 8px; }
  .fc-count { font-size: 11px; }
  .fc-hub-grid { padding-bottom: 32px; }

  /* Footer */
  .footer-top { grid-template-columns: 1fr; gap: 28px; }
  .footer { padding: 28px 14px 16px; }
  .footer-bottom { font-size: 12px; }

  /* Bento grid — reset span-2 items so grid stays single-column */
  .bento-large, .bento-medium { grid-column: span 1; }
  .bento-large { grid-row: span 1; }

  /* Bento grid */
  .bento-grid { grid-template-columns: 1fr; grid-auto-rows: auto; }
  .bento-wide { grid-column: span 1; }

  /* Card padding */
  .card-pad { padding: 16px; }
  .card-padlg { padding: 22px; }

  /* Modal */
  .modal { padding: 22px 16px; margin: 12px; max-width: calc(100% - 24px); }
  .modal-btns { flex-direction: column; }
  .modal h3 { font-size: 22px; }

  /* Toast */
  .toast-container { right: 10px; left: 10px; }
  .toast { max-width: none; }

  /* Live */
  .live-head h1 { font-size: 28px; }
  .live-wrap { padding: 16px 14px 32px; }

  /* Sign-in card */
  .signin-card { padding: 28px 16px; }

  /* Article specific */
  .callout { padding: 18px 20px; font-size: 14px; }
  .tl-item { gap: 14px; }

  /* Premium hero */
  .premium-hero { padding: 56px 14px 48px; min-height: 280px; }
}

/* ─────────────────────────────────────────────────────────
   SECTION HORIZONTAL PADDING — mobile overrides
   Sections that have BOTH section-level padding AND a .container
   inside should use 0 horizontal padding on mobile to avoid
   double-padding (container already provides the margin).
   These rules are intentionally kept here as documentation.
   The actual override rules live in the main breakpoint blocks
   above (features-sec, acts-sec, signin-sec, feat-card, btn:active).
───────────────────────────────────────────────────────── */
