/* ============================================================
   REDESIGN.CSS — visual + UX polish layered on top of styles.css
   Loaded AFTER styles.css so these rules win without !important
   except where existing rules use it.
   ============================================================ */

/* ============================================================
   0. Z-INDEX HOTFIX — pre-existing collision in styles.css
   ------------------------------------------------------------
   styles.css:2474 has:
     body > :not(.aurora-bg):not(#lab-container) { z-index: 2; }
   That selector's specificity (1,1,1) beats `.navbar { z-index:100 }`
   (0,1,0), so navbar/sidebar/overlay all get forced to z=2. With
   everyone at z=2, DOM order decides — `.main` (later in body) paints
   on top of `.navbar` and `.sidebar` and swallows every menu click.
   Restore the intended stacking with !important. The "load-bearing
   !important" pattern is already used elsewhere in styles.css for the
   same pair (pointer-events on navbar/sidebar).
   ============================================================ */
.navbar          { z-index: 2000 !important; }
.sidebar         { z-index: 1990 !important; }
.sidebar-overlay { z-index: 1980 !important; }
.main            { z-index: 1    !important; }
#scroll-progress { z-index: 1500 !important; }
#class-toc       { z-index: 1700 !important; }
#class-toc-fab   { z-index: 1800 !important; }
#present-exit    { z-index: 1850 !important; }


/* ============================================================
   1. TONED-DOWN AURORA — keep the brand, stop competing with text.
   ============================================================ */
.aurora-bg, .aurora-bg::before { opacity: 0.55; }
[data-theme="light"] .aurora-bg, [data-theme="light"] .aurora-bg::before { opacity: 0.35; }

/* ============================================================
   2. TYPOGRAPHY SCALE — capped line length, calmer headings
   ============================================================ */
.section-body { font-size: 1.02rem; line-height: 1.7; }
.section-body p,
.section-body ul,
.section-body ol,
.section-body h4,
.section-body blockquote,
.section-body .info-box,
.section-body .case-study,
.section-body .example-box {
  max-width: 72ch;
}
.section-body h4 { margin-top: 22px; margin-bottom: 8px; font-size: 1.05rem; }
.section-body p + p { margin-top: 0; }

.class-header h1 { line-height: 1.15; letter-spacing: -0.015em; }

/* ============================================================
   3. CLASS-HEADER META ROW (reading time, sections, words)
   ============================================================ */
.class-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
  margin-bottom: 4px;
}
.class-meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: var(--glass, rgba(255,255,255,0.05));
  border: 1px solid var(--glass-edge, rgba(255,255,255,0.1));
  border-radius: 999px;
  font-size: 0.78rem;
  color: var(--text-muted, #b8b3d6);
  font-weight: 500;
  letter-spacing: 0.01em;
}
.class-meta-pill .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--aurora-3, #a78bfa);
}
.class-meta-pill .dot-mint { background: var(--aurora-1, #5eead4); }
.class-meta-pill .dot-amber { background: #fbbf24; }
[data-theme="light"] .class-meta-pill {
  background: rgba(0,0,0,0.04);
  border-color: rgba(0,0,0,0.08);
  color: #4b5563;
}

/* ============================================================
   4. SCROLL PROGRESS BAR (top of class pages)
   ============================================================ */
.scroll-progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: transparent;
  z-index: 85;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.scroll-progress.is-visible { opacity: 1; }
.scroll-progress-fill {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg,
    var(--aurora-1, #5eead4) 0%,
    var(--aurora-3, #a78bfa) 50%,
    var(--aurora-2, #60a5fa) 100%);
  transition: width 0.05s linear;
  box-shadow: 0 0 10px rgba(167, 139, 250, 0.55);
}

/* ============================================================
   5. IN-CLASS SECTION TOC SIDEBAR (right rail on desktop)
   ============================================================ */
.class-toc {
  position: fixed;
  top: 80px;
  right: 24px;
  width: 240px;
  max-height: calc(100vh - 120px);
  z-index: 50;
  pointer-events: auto;
  display: none;
}
@media (min-width: 1280px) {
  body.has-class-toc .class-toc { display: block; }
  body.has-class-toc .main { padding-right: 280px; }
}
.class-toc-inner {
  background: var(--glass, rgba(255,255,255,0.04));
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--glass-edge, rgba(255,255,255,0.08));
  border-radius: 14px;
  padding: 16px 14px;
  max-height: inherit;
  overflow-y: auto;
}
[data-theme="light"] .class-toc-inner {
  background: rgba(255,255,255,0.85);
  border-color: rgba(0,0,0,0.08);
  box-shadow: 0 4px 20px rgba(15,23,42,0.06);
}
.class-toc-heading {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted, #9c98c1);
  margin-bottom: 10px;
  padding: 0 4px;
}
.class-toc-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.class-toc-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  text-decoration: none;
  color: var(--text-muted, #b8b3d6);
  font-size: 0.86rem;
  line-height: 1.35;
  border-left: 2px solid transparent;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.class-toc-item:hover {
  background: var(--glass-hover, rgba(255,255,255,0.06));
  color: var(--heading, #f3f0ff);
}
.class-toc-item.is-active {
  color: var(--heading, #f3f0ff);
  background: linear-gradient(90deg,
    rgba(167,139,250,0.12),
    rgba(167,139,250,0.02));
  border-left-color: var(--aurora-3, #a78bfa);
}
.class-toc-icon {
  flex-shrink: 0;
  width: 22px; height: 22px;
  display: inline-flex;
  align-items: center; justify-content: center;
  font-size: 0.95rem;
}
.class-toc-text {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Mobile/tablet: floating button → bottom sheet */
.class-toc-fab {
  display: none;
  position: fixed;
  right: 18px;
  bottom: 20px;
  width: 52px; height: 52px;
  border-radius: 50%;
  border: 1px solid var(--glass-edge, rgba(255,255,255,0.18));
  background: linear-gradient(135deg,
    rgba(167,139,250,0.85),
    rgba(96,165,250,0.85));
  color: white;
  cursor: pointer;
  z-index: 90;
  box-shadow: 0 8px 24px rgba(15,23,42,0.35);
  transition: transform 0.15s ease;
}
.class-toc-fab:hover { transform: translateY(-2px); }
.class-toc-fab svg { width: 22px; height: 22px; display: block; margin: auto; }
@media (max-width: 1279px) {
  body.has-class-toc .class-toc-fab { display: block; }
  body.has-class-toc.toc-open .class-toc {
    display: block;
    position: fixed;
    left: 12px; right: 12px;
    bottom: 86px; top: auto;
    width: auto;
    max-height: 60vh;
  }
}

/* ============================================================
   6. CODE BLOCK + COPY BUTTON
   ============================================================ */
.code-wrap {
  position: relative;
  margin: 16px 0;
}
.code-wrap pre {
  margin: 0 !important;
  padding-right: 56px;
}
.code-copy {
  position: absolute;
  top: 8px; right: 8px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-muted, #b8b3d6);
  background: var(--glass, rgba(255,255,255,0.05));
  border: 1px solid var(--glass-edge, rgba(255,255,255,0.1));
  border-radius: 7px;
  cursor: pointer;
  opacity: 0;
  transform: translateY(-2px);
  transition: opacity 0.15s ease, transform 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.code-wrap:hover .code-copy,
.code-copy:focus {
  opacity: 1;
  transform: none;
}
.code-copy:hover {
  background: var(--glass-hover, rgba(255,255,255,0.09));
  color: var(--heading, #f3f0ff);
}
.code-copy svg { width: 13px; height: 13px; flex-shrink: 0; }
.code-copy .i-check { display: none; color: var(--aurora-1, #5eead4); }
.code-copy.is-copied .i-copy { display: none; }
.code-copy.is-copied .i-check { display: inline-block; }
.code-copy.is-copied {
  color: var(--aurora-1, #5eead4);
  border-color: rgba(94, 234, 212, 0.4);
}
.code-copy-label { letter-spacing: 0.04em; }
[data-theme="light"] .code-copy {
  background: rgba(15,23,42,0.06);
  border-color: rgba(15,23,42,0.1);
  color: #475569;
}
[data-theme="light"] .code-copy:hover {
  background: rgba(15,23,42,0.1);
  color: #0f172a;
}

/* ============================================================
   7. INTERACTIVE QUIZZES
   ============================================================ */
.quiz-interactive .quiz-options {
  list-style: none !important;
  padding-left: 0 !important;
  margin: 12px 0 !important;
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}
.quiz-interactive .quiz-options > li {
  list-style: none !important;
  margin: 0 !important;
  padding: 0;
}
.quiz-opt {
  width: 100%;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  background: var(--glass, rgba(255,255,255,0.04));
  border: 1px solid var(--glass-edge, rgba(255,255,255,0.1));
  border-radius: 10px;
  color: var(--text, #d8d3f3);
  text-align: left;
  font: inherit;
  font-size: 0.95rem;
  line-height: 1.5;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.08s ease;
}
.quiz-opt:hover:not(:disabled) {
  background: var(--glass-hover, rgba(255,255,255,0.07));
  border-color: rgba(167,139,250,0.4);
}
.quiz-opt:active:not(:disabled) { transform: scale(0.99); }
.quiz-opt:disabled { cursor: default; }
.quiz-opt-letter {
  flex-shrink: 0;
  width: 26px; height: 26px;
  display: inline-flex;
  align-items: center; justify-content: center;
  background: rgba(167,139,250,0.12);
  border: 1px solid rgba(167,139,250,0.25);
  border-radius: 6px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--aurora-3, #a78bfa);
}
.quiz-opt-text { flex: 1; }
.quiz-opt-text code { font-size: 0.88em; }

.quiz-opt.is-correct {
  background: rgba(94, 234, 212, 0.10);
  border-color: rgba(94, 234, 212, 0.5);
  color: var(--heading, #f3f0ff);
}
.quiz-opt.is-correct .quiz-opt-letter {
  background: rgba(94, 234, 212, 0.2);
  border-color: rgba(94, 234, 212, 0.5);
  color: var(--aurora-1, #5eead4);
}
.quiz-opt.is-wrong {
  background: rgba(248, 113, 113, 0.10);
  border-color: rgba(248, 113, 113, 0.45);
  color: var(--heading, #f3f0ff);
}
.quiz-opt.is-wrong .quiz-opt-letter {
  background: rgba(248, 113, 113, 0.18);
  border-color: rgba(248, 113, 113, 0.45);
  color: #f87171;
}

.quiz-interactive .quiz-reveal { display: none; }
.quiz-interactive.quiz-answered .quiz-answer {
  display: block !important;
  margin-top: 12px;
  padding: 12px 14px;
  background: var(--glass, rgba(255,255,255,0.04));
  border: 1px solid var(--glass-edge, rgba(255,255,255,0.1));
  border-radius: 8px;
  font-size: 0.92rem;
  color: var(--text-muted, #b8b3d6);
}

[data-theme="light"] .quiz-opt {
  background: rgba(15,23,42,0.03);
  border-color: rgba(15,23,42,0.1);
  color: #1f2937;
}
[data-theme="light"] .quiz-opt:hover:not(:disabled) {
  background: rgba(15,23,42,0.06);
  border-color: rgba(124,58,237,0.4);
}
[data-theme="light"] .quiz-opt-letter {
  background: rgba(124,58,237,0.08);
  border-color: rgba(124,58,237,0.2);
  color: #7c3aed;
}
[data-theme="light"] .quiz-opt.is-correct {
  background: rgba(16,185,129,0.08);
  border-color: rgba(16,185,129,0.4);
}
[data-theme="light"] .quiz-opt.is-correct .quiz-opt-letter {
  background: rgba(16,185,129,0.15);
  border-color: rgba(16,185,129,0.4);
  color: #047857;
}
[data-theme="light"] .quiz-opt.is-wrong {
  background: rgba(220,38,38,0.06);
  border-color: rgba(220,38,38,0.4);
}
[data-theme="light"] .quiz-opt.is-wrong .quiz-opt-letter {
  background: rgba(220,38,38,0.12);
  border-color: rgba(220,38,38,0.4);
  color: #b91c1c;
}

/* ============================================================
   8. SECTION CARD POLISH
   ============================================================ */
.section {
  border-radius: 14px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.section:hover {
  box-shadow: 0 6px 24px rgba(15, 23, 42, 0.12);
}
.section-header { padding: 18px 22px; }
.section-body { padding-left: 22px; padding-right: 22px; padding-bottom: 24px; }
.section-title { font-weight: 600; letter-spacing: -0.005em; }

/* Anchor offset so sticky-nav doesn't cover the section title on jump */
.section { scroll-margin-top: 80px; }

/* ============================================================
   9. MODULE CARD ON HOME — slightly tighter, clearer progress
   ============================================================ */
.module-card-inner { padding: 22px 22px 20px; }
.module-card h3 { letter-spacing: -0.01em; }
.module-card .module-progress-track {
  height: 5px;
  background: rgba(255,255,255,0.06);
  border-radius: 3px;
  overflow: hidden;
}
.module-card .module-progress-fill {
  height: 100%;
  width: var(--w, 0%);
  background: linear-gradient(90deg,
    var(--aurora-1, #5eead4),
    var(--aurora-3, #a78bfa));
  border-radius: 3px;
  transition: width 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.module-card .module-progress-text {
  font-size: 0.78rem;
  color: var(--text-muted, #9c98c1);
  margin-top: 6px;
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.02em;
}
.module-card .module-progress-text b { color: var(--heading, #f3f0ff); }
.module-card .module-progress-text .dot { margin: 0 4px; opacity: 0.6; }

/* ============================================================
   10. PRESENTATION MODE — keep TOC + scroll bar out of the way
   ============================================================ */
body.presentation-mode .scroll-progress,
body.presentation-mode .class-toc,
body.presentation-mode .class-toc-fab {
  display: none !important;
}

/* ============================================================
   11. LIGHT THEME — quick polish on existing components
   ============================================================ */
[data-theme="light"] .section { background: rgba(255,255,255,0.85); }
[data-theme="light"] .section:hover {
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.08);
}

/* ============================================================
   STYLE BORROW — patterns adapted from external reference
   Applied only to existing bepro components. No new markup.
   ============================================================ */

/* ── 1. Brighter, more confident kicker (replaces understated grey)
       Maps to: .kicker, .hero-kicker, .class-toc-heading, .module-num
       Inspiration: their .label — 11px, 3px tracking, cyan, uppercase.
   ───────────────────────────────────────────────────────────── */
.kicker, .hero-kicker, .module-num.kicker, .class-toc-heading {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--aurora-1, #5eead4);
  opacity: 0.92;
  font-weight: 600;
}
[data-theme="light"] .kicker,
[data-theme="light"] .hero-kicker,
[data-theme="light"] .module-num.kicker,
[data-theme="light"] .class-toc-heading {
  color: #0891b2;
  opacity: 1;
}

/* ── 2. Neon glow utilities for emphasis words — opt-in via class.
       Existing .shine gradient stays; these add single-color glow.
       Use sparingly (1 word per heading, like the reference).
   ───────────────────────────────────────────────────────────── */
.glow-cyan {
  color: var(--aurora-1, #5eead4);
  text-shadow:
    0 0 12px var(--aurora-1, #5eead4),
    0 0 30px rgba(94, 234, 212, 0.45);
}
.glow-violet {
  color: var(--aurora-3, #a78bfa);
  text-shadow:
    0 0 12px var(--aurora-3, #a78bfa),
    0 0 30px rgba(167, 139, 250, 0.45);
}
.glow-mint {
  color: #34d399;
  text-shadow:
    0 0 12px #34d399,
    0 0 30px rgba(52, 211, 153, 0.45);
}
[data-theme="light"] .glow-cyan,
[data-theme="light"] .glow-violet,
[data-theme="light"] .glow-mint {
  text-shadow: none;
}

/* ── 3. Hero "shine" gradient — broaden the existing 2-color treatment
       to a richer 3-stop (cyan → violet → mint). Already used on the
       word "real" in the subtitle.
   ───────────────────────────────────────────────────────────── */
.hero .shine,
.hero-subtitle .shine,
.shine {
  background: linear-gradient(135deg,
    var(--aurora-1, #5eead4) 0%,
    var(--aurora-3, #a78bfa) 55%,
    #34d399 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  filter: drop-shadow(0 0 18px rgba(167, 139, 250, 0.25));
}

/* ── 4. Stat numbers — neon glow on the digits.
       Maps to: .hero-stat-num.
   ───────────────────────────────────────────────────────────── */
.hero-stat-num {
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg,
    var(--aurora-1, #5eead4) 0%,
    var(--aurora-3, #a78bfa) 70%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  filter: drop-shadow(0 0 14px rgba(94, 234, 212, 0.35));
}
[data-theme="light"] .hero-stat-num { filter: none; }

/* ── 5. Pulsing live-dot on the hero kicker (cohort year line)
       Pure CSS — no JS, no new markup; uses ::before on .hero-kicker.
   ───────────────────────────────────────────────────────────── */
.hero-kicker { display: inline-flex; align-items: center; gap: 8px; }
.hero-kicker::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--aurora-1, #5eead4);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--aurora-1, #5eead4);
  animation: live-pulse 2.4s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes live-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.45; transform: scale(0.7); }
}

/* ── 6. Module cards — colored top stripe rotating cyan/violet/mint
       per card via :nth-child. Adds the "category accent" effect
       without changing markup.
   ───────────────────────────────────────────────────────────── */
.module-card { position: relative; isolation: isolate; }
.module-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  border-top-left-radius: inherit;
  border-top-right-radius: inherit;
  opacity: 0.85;
  pointer-events: none;
  z-index: 1;
}
.module-card:nth-child(3n+1)::before {
  background: linear-gradient(90deg, var(--aurora-1, #5eead4), transparent 80%);
}
.module-card:nth-child(3n+2)::before {
  background: linear-gradient(90deg, var(--aurora-3, #a78bfa), transparent 80%);
}
.module-card:nth-child(3n)::before {
  background: linear-gradient(90deg, #34d399, transparent 80%);
}
.module-card.locked::before { opacity: 0.25; }

/* Hover: lift + colored shadow tinted to that card's accent */
.module-card:not(.locked):hover {
  transform: translateY(-4px);
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.25s ease;
}
.module-card:nth-child(3n+1):not(.locked):hover {
  box-shadow: 0 12px 40px rgba(94, 234, 212, 0.14);
}
.module-card:nth-child(3n+2):not(.locked):hover {
  box-shadow: 0 12px 40px rgba(167, 139, 250, 0.16);
}
.module-card:nth-child(3n):not(.locked):hover {
  box-shadow: 0 12px 40px rgba(52, 211, 153, 0.14);
}

/* ── 7. Class-meta pills — match their tech-tag treatment.
       Bolder colored backgrounds, thinner borders, scale-on-hover.
   ───────────────────────────────────────────────────────────── */
.class-meta-pill {
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.04em;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.class-meta-pill:hover { transform: scale(1.04); }
.class-meta-pill:nth-child(1) {
  background: rgba(167, 139, 250, 0.08);
  border-color: rgba(167, 139, 250, 0.28);
  color: var(--aurora-3, #a78bfa);
}
.class-meta-pill:nth-child(1) .dot { background: var(--aurora-3, #a78bfa); }
.class-meta-pill:nth-child(2) {
  background: rgba(94, 234, 212, 0.07);
  border-color: rgba(94, 234, 212, 0.28);
  color: var(--aurora-1, #5eead4);
}
.class-meta-pill:nth-child(3) {
  background: rgba(251, 191, 36, 0.07);
  border-color: rgba(251, 191, 36, 0.28);
  color: #fbbf24;
}
[data-theme="light"] .class-meta-pill:nth-child(1) {
  background: rgba(124, 58, 237, 0.06);
  border-color: rgba(124, 58, 237, 0.22);
  color: #7c3aed;
}
[data-theme="light"] .class-meta-pill:nth-child(2) {
  background: rgba(8, 145, 178, 0.06);
  border-color: rgba(8, 145, 178, 0.22);
  color: #0891b2;
}
[data-theme="light"] .class-meta-pill:nth-child(3) {
  background: rgba(217, 119, 6, 0.06);
  border-color: rgba(217, 119, 6, 0.22);
  color: #b45309;
}

/* ── 8. Section cards — accent border on hover (was just shadow).
   ───────────────────────────────────────────────────────────── */
.section:hover {
  border-color: rgba(167, 139, 250, 0.28);
  box-shadow: 0 8px 30px rgba(167, 139, 250, 0.08);
}

/* ── 9. Inline <code> chips — tech-tag treatment so code references
       in body text stand out (their .tech-t style, scaled down).
   ───────────────────────────────────────────────────────────── */
.section-body code,
.section-body p code,
.section-body li code {
  background: rgba(94, 234, 212, 0.07);
  border: 1px solid rgba(94, 234, 212, 0.22);
  color: var(--aurora-1, #5eead4);
  padding: 1px 7px;
  border-radius: 5px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.86em;
  letter-spacing: 0;
}
[data-theme="light"] .section-body code,
[data-theme="light"] .section-body p code,
[data-theme="light"] .section-body li code {
  background: rgba(8, 145, 178, 0.06);
  border-color: rgba(8, 145, 178, 0.18);
  color: #0e7490;
}
/* Code blocks (multi-line <pre>) keep their existing styling */
.section-body pre code {
  background: transparent;
  border: none;
  padding: 0;
  color: inherit;
  font-size: inherit;
}

/* ── 10. Class TOC active item — stronger accent (left bar + bg)
   ───────────────────────────────────────────────────────────── */
.class-toc-item.is-active {
  background: linear-gradient(90deg,
    rgba(94, 234, 212, 0.14),
    rgba(167, 139, 250, 0.04));
  border-left-color: var(--aurora-1, #5eead4);
  box-shadow: -2px 0 12px rgba(94, 234, 212, 0.15);
}

/* ── 11. Scroll progress bar — richer 3-stop gradient + bigger glow
   ───────────────────────────────────────────────────────────── */
.scroll-progress-fill {
  background: linear-gradient(90deg,
    var(--aurora-1, #5eead4) 0%,
    var(--aurora-3, #a78bfa) 55%,
    #34d399 100%);
  box-shadow: 0 0 14px rgba(167, 139, 250, 0.65);
}

/* ── 12. Search box — slight cyan accent on focus (matches nav-cta vibe)
   ───────────────────────────────────────────────────────────── */
.search-box input:focus {
  border-color: rgba(94, 234, 212, 0.45) !important;
  box-shadow: 0 0 0 3px rgba(94, 234, 212, 0.1),
              0 0 16px rgba(94, 234, 212, 0.18) !important;
  outline: none !important;
}

/* ============================================================
   12. MOBILE TWEAKS
   ============================================================ */
@media (max-width: 720px) {
  .class-meta-row { gap: 6px; }
  .class-meta-pill { font-size: 0.72rem; padding: 5px 10px; }
  .section-header { padding: 16px 16px; }
  .section-body { padding-left: 16px; padding-right: 16px; padding-bottom: 18px; }
  .quiz-opt { padding: 10px 12px; font-size: 0.92rem; }
  .quiz-opt-letter { width: 24px; height: 24px; font-size: 0.7rem; }
}
