@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=DM+Sans:opsz,wght@9..40,300;9..40,400;9..40,500;9..40,700&family=DM+Mono:wght@400;500&display=swap');

:root {
  --accent: #1a56ff;
  --accent-dark: #1040cc;
  --accent-glow: rgba(26,86,255,.18);
  --accent2: #00c97a;
  --warning: #ff6b35;
  --bg: #f5f7fa;
  --surface: #ffffff;
  --surface2: #f0f4ff;
  --border: #e8ecf0;
  --border2: #d0d5de;
  --text: #0d1117;
  --muted: #6b7280;
  --muted2: #9ca3af;
  --shadow: 0 1px 4px rgba(0,0,0,.06), 0 2px 12px rgba(0,0,0,.04);
  --shadow-lg: 0 4px 24px rgba(0,0,0,.10), 0 8px 40px rgba(0,0,0,.06);
  --radius: 10px;

  /* ── EMOJI-SAFE FONT STACKS ────────────────────────────────────────
     Every --font-* variable now ends with the three major OS emoji
     fonts BEFORE the generic fallback. This guarantees emoji characters
     resolve correctly regardless of which CSS rule sets font-family,
     because the emoji fonts are always in the declared stack — not
     just inherited from body. Without this, Bebas Neue and DM Mono
     take precedence and the browser finds no glyph → blank box.

     Stack order:
       1. Named typeface (Bebas Neue / DM Sans / DM Mono)
       2. "Apple Color Emoji"    — macOS / iOS
       3. "Segoe UI Emoji"       — Windows 10/11
       4. "Noto Color Emoji"     — Android / Linux
       5. Generic fallback
  ─────────────────────────────────────────────────────────────────── */
  --font-head: 'Bebas Neue', "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
  --font-body: 'DM Sans', "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
  --font-mono: 'DM Mono', "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", monospace;
}

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

/* ── BASE TYPOGRAPHY ───────────────────────────────────────────────
   body uses --font-body which already contains the emoji stack.
   h1-h5 use --font-head which also contains the emoji stack.
   All other elements inherit, so emoji works universally.
──────────────────────────────────────────────────────────────────── */
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1,h2,h3,h4,h5 { font-family: var(--font-head); line-height: 1.1; letter-spacing: .03em; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
img { max-width: 100%; display: block; }
select, input, textarea { font-family: inherit; }

/* ── LAYOUT ── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 8px; }
.gap-4 { gap: 16px; }
.gap-6 { gap: 24px; }
.gap-8 { gap: 32px; }

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 42px; padding: 0 20px; border-radius: var(--radius); font-weight: 700;
  font-size: .9rem; transition: all .15s; letter-spacing: .01em; white-space: nowrap;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-1px); box-shadow: 0 4px 16px var(--accent-glow); }
.btn-outline { background: transparent; color: var(--text); border: 1.5px solid var(--border2); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.btn-success { background: var(--accent2); color: #fff; }
.btn-warning { background: var(--warning); color: #fff; }
.btn-lg { height: 52px; padding: 0 28px; font-size: 1.05rem; border-radius: 12px; }
.btn-sm { height: 34px; padding: 0 14px; font-size: .82rem; }
.btn-icon { width: 40px; height: 40px; padding: 0; border-radius: 8px; border: 1.5px solid var(--border2); background: var(--surface); }
.btn-icon:hover { border-color: var(--accent); color: var(--accent); }
.btn-block { width: 100%; }

/* ── CARDS ── */
.card { background: var(--surface); border: 1.5px solid var(--border); border-radius: 14px; box-shadow: var(--shadow); }
.card-body { padding: 28px; }
.card-hover:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); transition: all .2s; }

/* ── NAV ── */
.ue-nav {
  position: sticky; top: 0; z-index: 200;
  background: rgba(255,255,255,.95); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border); height: 64px;
  display: flex; align-items: center;
}
.ue-nav .container { display: flex; align-items: center; justify-content: space-between; height: 100%; }
.nav-logo { font-family: var(--font-head); font-size: 1.5rem; color: var(--accent); letter-spacing: .07em; }
.nav-links { display: flex; gap: 28px; }
.nav-links a { font-size: .9rem; font-weight: 600; color: var(--muted); transition: color .15s; }
.nav-links a:hover, .nav-links a.active { color: var(--accent); }
.nav-right { display: flex; align-items: center; gap: 12px; }
.nav-user-pill {
  display: flex; align-items: center; gap: 10px;
  background: var(--bg); border: 1.5px solid var(--border); border-radius: 999px;
  padding: 4px 14px 4px 4px;
}
.nav-avatar {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--accent); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: .85rem; position: relative;
}
.nav-pro-badge {
  position: absolute; top: -4px; right: -4px;
  background: #f59e0b; color: #000; font-size: 8px;
  padding: 1px 4px; border-radius: 4px; font-weight: 700;
  border: 1.5px solid #fff; text-transform: uppercase;
}
.nav-xp { font-family: var(--font-mono); font-size: .78rem; color: var(--muted); }
.streak-badge {
  display: flex; align-items: center; gap: 6px; font-size: .82rem; font-weight: 700;
  background: #fff7ed; color: #c2410c; padding: 6px 12px; border-radius: 999px;
}

/* ── HAMBURGER — animated ☰ → ✕ ──────────────────────────────────
   Three spans form the bars. When .nav-mobile-open is on the nav,
   bars 1 and 3 rotate into an X shape; bar 2 fades out.
   z-index: 210 keeps the button above the expanded mobile menu.
──────────────────────────────────────────────────────────────────── */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  background: none;
  border: none;
  cursor: pointer;
  margin-left: auto;
  flex-shrink: 0;
  position: relative;
  z-index: 210;
}
.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .3s ease, opacity .3s ease, background .3s ease;
  transform-origin: center center;
}
/* ✕ state */
.nav-mobile-open .nav-hamburger span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-mobile-open .nav-hamburger span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.nav-mobile-open .nav-hamburger span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ── TOAST ── */
#toast {
  position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%);
  background: var(--text); color: #fff; padding: 12px 24px; border-radius: 10px;
  font-weight: 600; font-size: .9rem; box-shadow: var(--shadow-lg);
  z-index: 9999; opacity: 0; transition: opacity .3s; pointer-events: none; white-space: nowrap;
}
#toast.show { opacity: 1; }

/* ── DEFAULTER BANNER ──────────────────────────────────────────────
   Only shown on protected dashboard pages via auth-guard.js.
   Never visible on index.html or pricing.html by default (display:none).
   JS sets display:block when subscriptionStatus === 'EXPIRED'.
──────────────────────────────────────────────────────────────────── */
#defaulter-banner {
  display: none; background: #dc2626; color: #fff; text-align: center;
  padding: 10px; font-weight: 700; font-size: .9rem;
}
#defaulter-banner a { text-decoration: underline; color: #fef2f2; }

/* ── STATUS PILLS ── */
.status-nil    { background: var(--border); color: var(--muted); font-size: .78rem; font-weight: 700; padding: 2px 10px; border-radius: 999px; }
.status-good   { background: #d1fae5; color: #065f46; font-size: .78rem; font-weight: 700; padding: 2px 10px; border-radius: 999px; }
.status-warn   { background: #fff7ed; color: #c2410c; font-size: .78rem; font-weight: 700; padding: 2px 10px; border-radius: 999px; }
.status-danger { background: #fee2e2; color: #991b1b; font-size: .78rem; font-weight: 700; padding: 2px 10px; border-radius: 999px; }

/* ── PROGRESS BAR ── */
.progress-track { width: 100%; height: 8px; background: var(--border); border-radius: 999px; overflow: hidden; }
.progress-fill  { height: 100%; border-radius: 999px; transition: width .4s ease; }
.fill-green  { background: var(--accent2); }
.fill-orange { background: var(--warning); }
.fill-blue   { background: var(--accent); }
.fill-grey   { background: var(--border2); }

/* ── FORM FIELDS ── */
.form-group { margin-bottom: 20px; }
.form-label { display: block; font-weight: 700; font-size: .85rem; margin-bottom: 6px; color: var(--text); }
.form-input, .form-select {
  width: 100%; height: 44px; padding: 0 14px; border-radius: var(--radius);
  border: 1.5px solid var(--border2); background: var(--surface); color: var(--text);
  font-size: .95rem; transition: border-color .15s;
}
.form-input:focus, .form-select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow); }
.form-hint { font-size: .8rem; color: var(--muted); margin-top: 4px; }

/* ── DRILL OPTION BUTTONS (CBT) ── */
.drill-option {
  display: flex; align-items: center; width: 100%; min-height: 56px; padding: 12px 20px;
  border-radius: 12px; border: 2px solid var(--border2); background: var(--surface);
  font-weight: 700; font-size: 1rem; text-align: left; transition: all .15s; gap: 14px;
}
.drill-option:hover { border-color: var(--accent); background: var(--accent-glow); }
.drill-option.selected { border-color: var(--accent); background: rgba(26,86,255,.06); color: var(--accent); }
.drill-option .opt-label { font-family: var(--font-mono); color: var(--muted); min-width: 24px; }

/* ── FLAG BUTTON ── */
.btn-flag { height: 44px; background: transparent; border: 1.5px solid var(--warning); color: var(--warning); border-radius: 9px; font-weight: 700; font-size: .85rem; padding: 0 18px; cursor: pointer; display: inline-flex; align-items: center; gap: 7px; transition: all .2s; }
.btn-flag.flagged { background: rgba(255,107,53,.1); }
.q-dot { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 6px; border: 1.5px solid var(--border2); font-size: .78rem; font-weight: 700; cursor: pointer; transition: all .15s; font-family: var(--font-mono); }
.q-dot:hover { border-color: var(--accent); }
.q-dot.answered { border-color: var(--accent); background: rgba(26,86,255,.1); color: var(--accent); }
.q-dot.flagged  { border-color: var(--warning); background: rgba(255,107,53,.1); color: var(--warning); }
.q-dot.current  { background: var(--accent); color: #fff; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow); }

/* ── PERFORMANCE BAR CHART ── */
.perf-bar-row { display: flex; align-items: center; gap: 14px; padding: 14px 16px; cursor: pointer; border-radius: 10px; transition: background .15s; }
.perf-bar-row:hover { background: var(--bg); }
.perf-subject-name { font-weight: 700; min-width: 160px; font-size: .95rem; }
.perf-bar-track { flex: 1; height: 10px; background: var(--border); border-radius: 999px; overflow: hidden; }
.perf-bar-fill { height: 100%; border-radius: 999px; transition: width .4s; }
.perf-expand-chevron { font-size: 1.1rem; color: var(--muted); transition: transform .2s; }
.perf-bar-row.open .perf-expand-chevron { transform: rotate(180deg); }
.perf-subject-detail { display: none; padding: 0 16px 14px 188px; }
.perf-subject-detail.open { display: block; }
.perf-topic-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.perf-topic-name  { font-size: .88rem; font-weight: 600; min-width: 120px; }
.perf-topic-track { flex: 1; height: 6px; background: var(--border); border-radius: 999px; overflow: hidden; }
.perf-topic-fill  { height: 100%; border-radius: 999px; }
.perf-topic-label { font-size: .78rem; font-weight: 700; min-width: 120px; color: var(--muted); }

/* ── FEATURES SLIDER ── */
.slider-wrap  { overflow: hidden; position: relative; }
.slider-track { display: flex; gap: 16px; transition: transform .4s cubic-bezier(.25,.8,.25,1); will-change: transform; }
.feature-slide { flex: 0 0 280px; }
.feature-card  { background: var(--surface); border: 1.5px solid var(--border); border-radius: 14px; padding: 28px; height: 100%; transition: box-shadow .2s; }
.feature-card:hover { box-shadow: var(--shadow-lg); }
.feature-icon  { font-size: 2rem; margin-bottom: 16px; }
.feature-title { font-weight: 700; font-size: 1.05rem; margin-bottom: 8px; }
.feature-desc  { font-size: .88rem; color: var(--muted); line-height: 1.5; }

/* ── SUBJECT CARDS ── */
.subject-card {
  background: var(--surface); border: 1.5px solid var(--border); border-radius: 14px;
  padding: 24px; text-align: center; cursor: pointer; transition: all .2s;
  display: flex; flex-direction: column; align-items: center; gap: 12px; flex: 0 0 180px;
}
.subject-card:hover { border-color: var(--accent); box-shadow: var(--shadow-lg); }
.subject-icon { width: 60px; height: 60px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.6rem; }
.subject-name { font-family: var(--font-head); font-size: 1.3rem; }

/* ── CLASSROOM ── */
.classroom-layout  { display: flex; height: calc(100vh - 56px); overflow: hidden; }
.classroom-sidebar { width: 320px; border-right: 1.5px solid var(--border); background: var(--surface); display: flex; flex-direction: column; flex-shrink: 0; overflow-y: auto; }
.classroom-main    { flex: 1; overflow-y: auto; padding: 32px; }
.topic-item { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 8px; cursor: pointer; transition: all .15s; border-left: 3px solid transparent; }
.topic-item:hover { background: var(--bg); }
.topic-item.active { background: rgba(26,86,255,.06); border-left-color: var(--accent); }
.topic-item.locked { opacity: .55; cursor: default; }
.subject-tabs { display: flex; gap: 4px; padding: 8px; background: var(--bg); border-radius: 10px; overflow-x: auto; }
.subject-tab { padding: 7px 16px; border-radius: 7px; font-weight: 700; font-size: .85rem; white-space: nowrap; transition: all .15s; color: var(--muted); }
.subject-tab.active { background: var(--surface); color: var(--text); box-shadow: var(--shadow); }
.video-area { background: #000; border-radius: 14px; aspect-ratio: 16/9; max-height: 420px; position: relative; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.video-play-btn { font-size: 5rem; color: rgba(255,255,255,.25); transition: color .2s; cursor: pointer; }
.video-play-btn:hover { color: rgba(255,255,255,.5); }
.video-locked { position: absolute; inset: 0; background: rgba(0,0,0,.8); backdrop-filter: blur(4px); display: flex; flex-direction: column; align-items: center; justify-content: center; color: #fff; text-align: center; }
.formula-box { background: #eff6ff; border: 1.5px solid #bfdbfe; border-radius: 10px; padding: 20px 24px; font-family: var(--font-mono); font-size: 1rem; }

/* ── AUTH PAGE ── */
.auth-wrap  { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; background: var(--bg); padding: 24px; }
.auth-card  { background: var(--surface); border: 1.5px solid var(--border); border-radius: 18px; box-shadow: var(--shadow-lg); width: 100%; max-width: 520px; padding: 40px; }
.auth-tabs  { display: flex; background: var(--bg); border-radius: 10px; padding: 4px; margin-bottom: 28px; }
.auth-tab   { flex: 1; padding: 9px; border-radius: 8px; font-weight: 700; font-size: .92rem; color: var(--muted); transition: all .15s; text-align: center; cursor: pointer; }
.auth-tab.active { background: var(--surface); color: var(--text); box-shadow: var(--shadow); }
.step-indicator { font-size: .8rem; color: var(--muted); margin-bottom: 4px; font-weight: 600; }
.exam-checks { display: flex; flex-wrap: wrap; gap: 10px; }
.exam-check-label { display: flex; align-items: center; gap: 8px; padding: 9px 16px; border: 1.5px solid var(--border2); border-radius: 8px; font-weight: 600; font-size: .88rem; cursor: pointer; transition: all .15s; }
.exam-check-label:has(input:checked) { border-color: var(--accent); background: var(--accent-glow); color: var(--accent); }
.exam-check-label input { display: none; }
.subject-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.subj-card        { border: 2px solid var(--border2); border-radius: 10px; padding: 14px 10px; text-align: center; cursor: pointer; transition: all .15s; position: relative; }
.subj-card.selected { border-color: var(--accent); background: var(--accent-glow); }
.subj-card-icon   { font-size: 1.5rem; margin-bottom: 6px; }
.subj-card-name   { font-weight: 700; font-size: .82rem; }
.subj-check { position: absolute; top: 6px; right: 6px; width: 18px; height: 18px; border-radius: 50%; background: var(--accent); color: #fff; font-size: .65rem; display: none; align-items: center; justify-content: center; }
.subj-card.selected .subj-check { display: flex; }
.study-pref-option { display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; border: 2px solid var(--border2); border-radius: 10px; cursor: pointer; transition: all .15s; margin-bottom: 10px; }
.study-pref-option input[type=radio] { margin-top: 3px; accent-color: var(--accent); }
.study-pref-option:has(input:checked) { border-color: var(--accent); background: var(--accent-glow); }
.jamb-hint { font-size: .82rem; color: var(--muted); padding: 8px 12px; border-radius: 7px; background: var(--bg); border: 1px solid var(--border); margin-bottom: 14px; }
.jamb-hint.ok { color: #065f46; background: #d1fae5; border-color: #6ee7b7; }

/* ── DASHBOARD SUBJECT CARDS ── */
.dash-subj-card { flex: 0 0 300px; background: var(--surface); border: 1.5px solid var(--border); border-radius: 16px; padding: 24px; }
.dash-subj-head { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.dash-subj-icon { font-size: 1.8rem; }
.dash-subj-name { font-family: var(--font-head); font-size: 1.7rem; }

/* ── SMARTPATH CARDS ── */
.smartpath-card { background: var(--surface2); border: 1.5px solid var(--border); border-radius: 14px; padding: 22px; }
.smartpath-tag  { font-size: .75rem; font-weight: 700; color: var(--accent); background: var(--accent-glow); padding: 3px 10px; border-radius: 6px; margin-bottom: 10px; display: inline-block; }

/* ── HERO ── */
.hero-section   { padding: 64px 0 48px; }
.hero-grid      { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.hero-headline  { font-family: var(--font-head); font-size: 4rem; line-height: 1; letter-spacing: .03em; margin-bottom: 20px; }
.hero-sub       { font-size: 1.1rem; color: var(--muted); max-width: 440px; margin-bottom: 32px; line-height: 1.6; }
.hero-ctas      { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-cbt-card  { background: var(--surface); border: 1.5px solid var(--border); border-radius: 16px; box-shadow: var(--shadow-lg); padding: 28px; }
.hero-timer     { font-family: var(--font-mono); font-weight: 700; font-size: .95rem; }
.hero-jamb-badge { background: rgba(26,86,255,.1); color: var(--accent); padding: 4px 12px; border-radius: 999px; font-size: .82rem; font-weight: 700; }
.hero-question  { font-size: 1.15rem; font-weight: 700; margin: 20px 0; }
.hero-opts      { display: flex; flex-direction: column; gap: 10px; }
.hero-opt       { padding: 12px 16px; border-radius: 10px; border: 2px solid var(--border); font-weight: 700; font-size: .88rem; }
.hero-opt.selected { border-color: var(--accent); background: rgba(26,86,255,.05); }

/* ── STATS STRIP ── */
.stats-strip { background: var(--accent); color: #fff; padding: 36px 0; }
.stats-grid  { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; text-align: center; }
.stat-item   { padding: 8px 0; border-right: 1px solid rgba(255,255,255,.2); }
.stat-item:last-child { border-right: none; }
.stat-value  { font-family: var(--font-head); font-size: 2rem; letter-spacing: .04em; }
.stat-label  { font-size: .8rem; font-weight: 600; opacity: .8; margin-top: 2px; }

/* ── PRICING ────────────────────────────────────────────────────────
   Tier badge colours differentiate Basic / Pro / Elite visually.
──────────────────────────────────────────────────────────────────── */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; max-width: 900px; margin: 0 auto; }
.pricing-card { background: var(--surface); border: 1.5px solid var(--border); border-radius: 16px; padding: 36px; position: relative; }
.pricing-card.featured { border-color: var(--accent); box-shadow: var(--shadow-lg); }
.pricing-badge { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); background: var(--accent); color: #fff; font-size: .72rem; font-weight: 700; padding: 4px 14px; border-radius: 999px; text-transform: uppercase; letter-spacing: .08em; white-space: nowrap; }
.pricing-price { font-family: var(--font-head); font-size: 2.5rem; }
.pricing-save  { color: var(--accent2); font-size: .85rem; font-weight: 700; margin: 4px 0 20px; }
.pricing-features { list-style: none; margin-bottom: 28px; }
.pricing-features li { display: flex; align-items: flex-start; gap: 10px; font-size: .9rem; padding: 6px 0; line-height: 1.45; }
.pricing-check      { color: var(--accent2); font-size: 1rem; flex-shrink: 0; margin-top: 1px; }
/* Tier label chips inside plan cards */
.tier-chip {
  display: inline-block;
  font-size: .65rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  padding: 2px 8px; border-radius: 4px; margin-bottom: 12px;
}
.tier-chip-basic  { background: #f3f4f6; color: #374151; }
.tier-chip-pro    { background: rgba(26,86,255,.1); color: var(--accent); border: 1px solid rgba(26,86,255,.2); }
.tier-chip-elite  { background: linear-gradient(135deg,#7c3aed,#4f46e5); color: #fff; }

/* Section divider inside feature list */
.pricing-features .feat-section {
  font-size: .68rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em;
  color: var(--muted2); padding: 10px 0 4px; border-top: 1px solid var(--border);
  margin-top: 4px; display: block; list-style: none;
}

/* ── SECTION HEADERS ── */
.section-header { margin-bottom: 32px; }
.section-title  { font-family: var(--font-head); font-size: 2.4rem; margin-bottom: 8px; }
.section-sub    { color: var(--muted); font-size: .95rem; }

/* ── FOOTER ── */
.site-footer { background: #0d1117; color: rgba(255,255,255,.75); padding: 56px 0 32px; margin-top: 80px; }
.footer-grid    { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer-logo    { font-family: var(--font-head); font-size: 1.6rem; color: var(--accent); letter-spacing: .07em; margin-bottom: 16px; }
.footer-tagline { font-size: .88rem; color: rgba(255,255,255,.45); line-height: 1.6; max-width: 320px; }
.footer-heading { font-weight: 700; color: #fff; margin-bottom: 16px; font-size: .92rem; text-transform: uppercase; letter-spacing: .07em; }
.footer-links   { list-style: none; }
.footer-links li { margin-bottom: 8px; }
.footer-links a  { font-size: .88rem; color: rgba(255,255,255,.45); transition: color .15s; }
.footer-links a:hover { color: #fff; }
.footer-divider  { border-top: 1px solid rgba(255,255,255,.1); padding-top: 24px; text-align: center; font-size: .82rem; color: rgba(255,255,255,.3); }

/* ── MODAL ── */
.modal-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,.4); z-index: 500; display: none; align-items: center; justify-content: center; padding: 24px; }
.modal-backdrop.open { display: flex; }
.modal-card  { background: var(--surface); border-radius: 18px; box-shadow: var(--shadow-lg); width: 100%; max-width: 480px; padding: 32px; position: relative; max-height: 90vh; overflow-y: auto; }
.modal-close { position: absolute; top: 16px; right: 16px; width: 32px; height: 32px; border-radius: 50%; background: var(--bg); border: none; font-size: 1.2rem; cursor: pointer; display: flex; align-items: center; justify-content: center; }

/* ── EXAM COVERAGE ── */
.exam-cards    { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.exam-card     { background: var(--surface); border: 1.5px solid var(--border); border-radius: 14px; padding: 28px; }
.exam-card-icon  { font-size: 2rem; margin-bottom: 14px; }
.exam-card-title { font-family: var(--font-head); font-size: 1.6rem; margin-bottom: 10px; }
.exam-card-desc  { font-size: .88rem; color: var(--muted); line-height: 1.6; }

/* ── CLASSROOM BAND ── */
.classroom-band       { background: #0d1117; color: #fff; padding: 72px 0; }
.classroom-band-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.classroom-video-mock { background: #1a1d23; border: 1.5px solid rgba(255,255,255,.1); border-radius: 14px; aspect-ratio: 16/9; display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; }
.topic-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.topic-pill  { background: rgba(26,86,255,.15); color: #a5b4fc; font-size: .78rem; font-weight: 700; padding: 4px 12px; border-radius: 999px; }

/* ── PAYMENT SPINNER ── */
.pay-spinner {
  display: inline-block; width: 14px; height: 14px;
  border: 2px solid rgba(255,255,255,.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: paySpinAnim .7s linear infinite;
  vertical-align: middle; margin-right: 6px;
}
.pay-spinner-lg {
  display: block; width: 36px; height: 36px;
  border: 3px solid rgba(26,86,255,.2);
  border-top-color: #1a56ff;
  border-radius: 50%;
  animation: paySpinAnim .8s linear infinite;
  margin: 8px auto;
}
@keyframes paySpinAnim { to { transform: rotate(360deg); } }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .hero-grid, .footer-grid, .pricing-grid, .exam-cards, .classroom-band-inner { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(3, 1fr); }
  .stat-item:nth-child(3) { border-right: none; }
  .hero-headline { font-size: 2.8rem; }
  /* nav-links are hidden at 768px with hamburger — not at 900px */
  .nav-links { gap: 12px; }
  .classroom-sidebar { display: none; }
  .classroom-layout { height: auto; flex-direction: column; }
  .classroom-main { padding: 16px; }
  .perf-subject-detail { padding-left: 16px; }
  .perf-subject-name { min-width: 100px; }
}
@media (max-width: 768px) {
  .ue-nav .container { flex-wrap: wrap; height: auto; padding: 12px 16px; position: relative; }
  .nav-hamburger { display: flex; }
  /* Nav link collapse handled by index.html inline styles using
     max-height animation. These rules are kept minimal to avoid conflicts. */
  .nav-links a { font-size: .92rem; }
  .nav-right .btn { width: 100%; justify-content: center; }
  .pricing-card.featured { transform: none; }
}
@media (max-width: 600px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-item:nth-child(2) { border-right: none; }
  .hero-headline { font-size: 2.2rem; }
  .container { padding: 0 16px; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 400px; }
}
