:root {
  --primary: #0A4D2E;
  --primary-dark: #05331E;
  --primary-light: #12794B;
  --emerald: #10B981;
  --emerald-soft: #ECFDF5;
  --gold: #F59E0B;
  --gold-light: #FEF3C7;
  --copper: #EA580C;
  --sky: #0284C7;
  --sky-soft: #E0F2FE;
  --slate-900: #0F172A;
  --slate-800: #1E293B;
  --slate-700: #334155;
  --slate-500: #64748B;
  --slate-300: #CBD5E1;
  --slate-100: #F1F5F9;
  --slate-50: #F8FAFC;
  --card-bg: #FFFFFF;
  --surface-border: #E2E8F0;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-full: 9999px;
  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 10px 25px -3px rgba(15, 23, 42, 0.08), 0 4px 6px -2px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 20px 35px -5px rgba(10, 77, 46, 0.12), 0 10px 10px -5px rgba(10, 77, 46, 0.04);
  --font: 'Inter', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* ================================================================
   MODERN HOMEPAGE — focused, editorial and future-facing
   ================================================================ */
.home-modern {
  --hm-ink: #071813;
  --hm-muted: #52645e;
  --hm-green: #087a4c;
  --hm-green-bright: #12b978;
  --hm-mint: #dff8ed;
  --hm-cyan: #6de0ec;
  --hm-line: rgba(7, 24, 19, 0.12);
  --hm-surface: #f4f8f6;
  color: var(--hm-ink);
  background: #fff;
}

.home-modern main { overflow: hidden; }
.hm-container { width: min(1180px, calc(100% - 48px)); margin-inline: auto; }

.home-modern .gamified-ticker-bar {
  min-height: 38px; padding: 7px max(24px, calc((100vw - 1180px) / 2));
  background: var(--hm-ink); border: 0; color: #d9e7e1;
}
.home-modern .gamified-ticker-bar::before { display: none; }
.home-modern .ticker-content { gap: 20px; font-size: 12px; letter-spacing: 0; }
.home-modern .ticker-badge-live { color: #89f0bd; font-size: 10px; letter-spacing: .12em; }
.home-modern .ticker-quest-link { color: #fff; border-bottom-color: rgba(255,255,255,.45); font-weight: 700; }
.home-modern .ticker-location { color: #99aaa4; font-size: 11px; }
.home-modern .topbar {
  height: 78px; padding: 0 max(24px, calc((100vw - 1180px) / 2));
  background: rgba(255,255,255,.9); border-color: rgba(7,24,19,.09); backdrop-filter: blur(18px);
}
.home-modern .brand img { height: 42px; }
.home-modern .brand-info b { font-size: 17px; }
.home-modern .brand-info small { font-size: 10px; }
.home-modern .topbar nav { gap: 24px; }
.home-modern .topbar nav a { position: relative; color: #3e5049; }
.home-modern .topbar nav a.active::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -28px; height: 2px; background: var(--hm-green-bright);
}
.home-modern .header-actions .btn { min-height: 44px; }
.home-modern .btn-quest-start { background: var(--hm-ink); box-shadow: none; border-radius: 12px; }
.home-modern .btn-quest-start span { display: none; }
.home-modern .btn-quest-start:hover { background: var(--hm-green); box-shadow: none; }

.hm-hero {
  position: relative; padding: 92px 0 90px; isolation: isolate;
  background:
    linear-gradient(rgba(7,24,19,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(7,24,19,.035) 1px, transparent 1px),
    radial-gradient(circle at 82% 28%, rgba(18,185,120,.16), transparent 31%),
    linear-gradient(180deg, #f9fcfa 0%, #fff 100%);
  background-size: 48px 48px, 48px 48px, auto, auto;
}
.hm-orbit { position: absolute; border: 1px solid rgba(8,122,76,.14); border-radius: 50%; z-index: -1; pointer-events: none; }
.hm-orbit::after { content: ''; position: absolute; width: 9px; height: 9px; background: var(--hm-green-bright); border-radius: 50%; box-shadow: 0 0 0 7px rgba(18,185,120,.12); }
.hm-orbit-one { width: 500px; height: 500px; right: -240px; top: -220px; }
.hm-orbit-one::after { left: 42px; bottom: 87px; }
.hm-orbit-two { width: 260px; height: 260px; left: -150px; bottom: -130px; }
.hm-orbit-two::after { right: 23px; top: 62px; }
.hm-hero-grid { display: grid; grid-template-columns: minmax(0, .94fr) minmax(0, 1.06fr); gap: 76px; align-items: center; }
.hm-hero-copy { position: relative; z-index: 2; }
.hm-eyebrow, .hm-section-kicker {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 20px;
  color: var(--hm-green); font: 700 11px/1.2 'JetBrains Mono', monospace; letter-spacing: .13em; text-transform: uppercase;
}
.hm-status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--hm-green-bright); box-shadow: 0 0 0 5px rgba(18,185,120,.12); }
.hm-hero h1 { max-width: 690px; margin: 0; color: var(--hm-ink); font-size: clamp(48px, 5.2vw, 74px); line-height: .99; letter-spacing: -.057em; font-weight: 800; }
.hm-hero h1 span { display: block; color: var(--hm-green); }
.hm-hero-lede { max-width: 620px; margin: 28px 0 0; color: var(--hm-muted); font-size: 18px; line-height: 1.7; }
.hm-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hm-button {
  min-height: 52px; display: inline-flex; align-items: center; justify-content: center; gap: 11px;
  padding: 0 22px; border: 1px solid transparent; border-radius: 12px; font-size: 14px; font-weight: 750;
  transition: transform .2s ease, background-color .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.hm-button svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.hm-button:hover { transform: translateY(-2px); }
.hm-button-primary { color: #fff; background: var(--hm-ink); box-shadow: 0 14px 30px rgba(7,24,19,.14); }
.hm-button-primary:hover { background: var(--hm-green); box-shadow: 0 18px 34px rgba(8,122,76,.2); }
.hm-button-secondary { color: var(--hm-ink); background: rgba(255,255,255,.8); border-color: rgba(7,24,19,.2); }
.hm-button-secondary:hover { border-color: var(--hm-green); color: var(--hm-green); }
.hm-trust-list { display: flex; flex-wrap: wrap; gap: 14px 20px; margin-top: 30px; list-style: none; }
.hm-trust-list li { display: flex; gap: 7px; align-items: center; color: #52645e; font-size: 12px; font-weight: 650; }
.hm-trust-list svg { width: 16px; height: 16px; fill: none; stroke: var(--hm-green); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.hm-hero-visual { position: relative; padding: 24px 0 30px; }
.hm-visual-frame { position: relative; overflow: hidden; aspect-ratio: 1.04; border-radius: 28px; background: #dce9e3; box-shadow: 0 38px 80px rgba(7,24,19,.18); }
.hm-visual-frame::before { content: ''; position: absolute; z-index: 2; inset: 12px; border: 1px solid rgba(255,255,255,.44); border-radius: 19px; pointer-events: none; }
.hm-visual-frame > img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hm-image-shade { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(2,15,10,.75) 100%); }
.hm-project-card { position: absolute; z-index: 3; left: 28px; right: 28px; bottom: 26px; color: #fff; }
.hm-project-card-head { display: flex; align-items: center; gap: 9px; color: #d4e5de; font-size: 11px; font-weight: 650; }
.hm-project-icon { width: 27px; height: 27px; display: grid; place-items: center; border: 1px solid rgba(109,224,236,.45); border-radius: 8px; background: rgba(109,224,236,.12); }
.hm-project-icon svg { width: 14px; height: 14px; fill: none; stroke: var(--hm-cyan); stroke-width: 1.4; }
.hm-live-label { margin-left: auto; padding: 5px 9px; border-radius: 999px; color: #83edb7; background: rgba(18,185,120,.14); border: 1px solid rgba(131,237,183,.3); font: 700 9px 'JetBrains Mono', monospace; text-transform: uppercase; letter-spacing: .08em; }
.hm-project-card > p { margin: 14px 0 12px; font-size: 24px; font-weight: 750; letter-spacing: -.025em; }
.hm-project-meta { display: flex; gap: 7px; flex-wrap: wrap; }
.hm-project-meta span { padding: 5px 9px; border: 1px solid rgba(255,255,255,.24); border-radius: 7px; color: #e7f0ec; background: rgba(4,24,17,.32); font-size: 10px; backdrop-filter: blur(8px); }
.hm-floating-note { position: absolute; z-index: 4; display: flex; align-items: center; gap: 12px; padding: 13px 15px; border: 1px solid rgba(7,24,19,.1); border-radius: 14px; background: rgba(255,255,255,.92); box-shadow: 0 18px 45px rgba(7,24,19,.14); backdrop-filter: blur(16px); }
.hm-floating-note > span { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; color: var(--hm-green); background: var(--hm-mint); font: 800 10px 'JetBrains Mono', monospace; }
.hm-floating-note strong, .hm-floating-note small { display: block; }
.hm-floating-note strong { color: var(--hm-ink); font-size: 11px; }
.hm-floating-note small { margin-top: 3px; color: var(--hm-muted); font-size: 9px; }
.hm-note-top { top: 0; right: -22px; }
.hm-note-bottom { bottom: 0; left: -34px; }

.hm-signal { color: #dbe8e2; background: var(--hm-ink); }
.hm-signal-grid { min-height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.hm-signal p { font-size: 13px; font-weight: 650; }
.hm-signal-flow { display: flex; align-items: center; gap: 14px; color: #fff; font: 700 10px 'JetBrains Mono', monospace; letter-spacing: .1em; text-transform: uppercase; }
.hm-signal-flow i { width: clamp(20px, 4vw, 58px); height: 1px; background: linear-gradient(90deg, var(--hm-green-bright), var(--hm-cyan)); position: relative; }
.hm-signal-flow i::after { content: ''; position: absolute; right: -1px; top: -2px; width: 5px; height: 5px; border-radius: 50%; background: var(--hm-cyan); }

.hm-section { padding: 112px 0; }
.hm-section-intro { display: grid; grid-template-columns: 1.25fr .75fr; gap: 80px; align-items: end; margin-bottom: 48px; }
.hm-section-intro h2, .hm-lab-copy h2, .hm-outcomes-copy h2, .hm-final-cta h2 { margin: 0; font-size: clamp(36px, 4.3vw, 56px); line-height: 1.06; letter-spacing: -.045em; color: var(--hm-ink); }
.hm-section-intro > p { max-width: 440px; margin: 0 0 5px; color: var(--hm-muted); font-size: 16px; line-height: 1.7; }
.hm-pathway-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.hm-pathway-card { overflow: hidden; display: flex; flex-direction: column; min-width: 0; border: 1px solid var(--hm-line); border-radius: 22px; background: #fff; transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease; }
.hm-pathway-card:hover { transform: translateY(-6px); border-color: rgba(8,122,76,.3); box-shadow: 0 24px 55px rgba(7,24,19,.11); }
.hm-card-media { position: relative; aspect-ratio: 1.22; overflow: hidden; background: #e7efeb; }
.hm-card-media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 58%, rgba(7,24,19,.3)); }
.hm-card-media img { width: 100%; height: 100%; display: block; object-fit: cover; transition: transform .55s cubic-bezier(.2,.8,.2,1); }
.hm-pathway-card:hover .hm-card-media img { transform: scale(1.035); }
.hm-age-pill { position: absolute; z-index: 2; left: 16px; top: 16px; padding: 7px 10px; border-radius: 8px; background: rgba(255,255,255,.92); color: var(--hm-ink); font-size: 10px; font-weight: 800; backdrop-filter: blur(8px); }
.hm-card-body { display: flex; flex-direction: column; flex: 1; padding: 24px; }
.hm-card-number { color: var(--hm-green); font: 700 9px 'JetBrains Mono', monospace; letter-spacing: .13em; }
.hm-card-body h3 { margin: 11px 0 9px; color: var(--hm-ink); font-size: 24px; letter-spacing: -.03em; }
.hm-card-body > p { margin: 0; color: var(--hm-muted); font-size: 14px; line-height: 1.65; }
.hm-card-body ul { display: flex; flex-wrap: wrap; gap: 7px; margin: 20px 0 25px; padding: 0; list-style: none; }
.hm-card-body li { padding: 6px 9px; border-radius: 7px; background: var(--hm-surface); color: #43534d; font-size: 10px; font-weight: 650; }
.hm-card-body a { display: flex; justify-content: space-between; margin-top: auto; padding-top: 18px; border-top: 1px solid var(--hm-line); color: var(--hm-ink); font-size: 12px; font-weight: 800; }
.hm-card-body a:hover { color: var(--hm-green); }

.hm-lab-section { position: relative; padding: 120px 0; color: #fff; background: #071813; }
.hm-lab-section::before { content: ''; position: absolute; inset: 0; opacity: .35; background: radial-gradient(circle at 85% 25%, rgba(18,185,120,.3), transparent 30%), linear-gradient(rgba(109,224,236,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(109,224,236,.08) 1px, transparent 1px); background-size: auto, 56px 56px, 56px 56px; pointer-events: none; }
.hm-lab-grid { position: relative; display: grid; grid-template-columns: .78fr 1.22fr; gap: 80px; align-items: center; }
.hm-section-kicker-light { color: #82edb7; }
.hm-lab-copy h2, .hm-final-cta h2 { color: #fff; }
.hm-lab-copy > p { margin: 22px 0 28px; color: #a9bbb4; font-size: 16px; line-height: 1.7; }
.hm-feature-tabs { display: flex; gap: 6px; padding: 5px; border: 1px solid rgba(255,255,255,.12); border-radius: 11px; background: rgba(255,255,255,.035); }
.hm-feature-tabs button { flex: 1; min-height: 41px; border: 0; border-radius: 7px; color: #91a39c; background: transparent; cursor: pointer; font: 700 10px 'JetBrains Mono', monospace; }
.hm-feature-tabs button[aria-selected="true"] { color: #071813; background: #82edb7; }
.hm-tab-panels { min-height: 126px; padding: 23px 0 12px; }
.hm-tab-panels [hidden] { display: none; }
.hm-tab-panels h3 { margin: 0 0 8px; color: #fff; font-size: 17px; }
.hm-tab-panels p { margin: 0; color: #9fb1aa; font-size: 13px; line-height: 1.7; }
.hm-text-link { display: inline-flex; gap: 10px; color: #82edb7; font-size: 12px; font-weight: 750; }
.hm-workspace { overflow: hidden; border: 1px solid rgba(130,237,183,.22); border-radius: 20px; background: rgba(2,13,9,.84); box-shadow: 0 30px 80px rgba(0,0,0,.36), inset 0 1px rgba(255,255,255,.04); }
.hm-workspace-bar { min-height: 52px; display: grid; grid-template-columns: 90px 1fr auto; align-items: center; padding: 0 18px; border-bottom: 1px solid rgba(255,255,255,.09); color: #91a39c; font: 500 10px 'JetBrains Mono', monospace; }
.hm-window-controls { display: flex; gap: 6px; }
.hm-window-controls span { width: 7px; height: 7px; border-radius: 50%; background: #395047; }
.hm-window-controls span:first-child { background: #6de0ec; }
.hm-workspace-status { display: flex; align-items: center; gap: 7px; color: #82edb7; }
.hm-workspace-status i, .hm-output-panel strong i { width: 6px; height: 6px; border-radius: 50%; background: #12b978; box-shadow: 0 0 10px rgba(18,185,120,.8); }
.hm-workspace-body { display: grid; grid-template-columns: 38px 1fr; min-height: 260px; padding: 30px 24px 20px; }
.hm-code-rail { display: flex; flex-direction: column; gap: 11px; color: #3f554c; font: 10px/1.2 'JetBrains Mono', monospace; }
.hm-workspace pre { margin: 0; overflow: auto; color: #d9e5df; font: 12px/1.9 'JetBrains Mono', monospace; }
.hm-code-comment { color: #61766d; }.hm-code-function { color: #6de0ec; }.hm-code-keyword { color: #82edb7; }.hm-code-string { color: #f4d177; }
.hm-output-panel { margin: 0 18px 18px; padding: 18px; border: 1px solid rgba(109,224,236,.14); border-radius: 12px; background: rgba(109,224,236,.045); }
.hm-output-panel > div:first-child { display: flex; justify-content: space-between; color: #63776f; font: 700 8px 'JetBrains Mono', monospace; letter-spacing: .1em; }
.hm-output-panel strong { display: flex; align-items: center; gap: 9px; margin: 15px 0 12px; color: #d9f8e8; font-size: 12px; }
.hm-output-meter { height: 4px; border-radius: 99px; overflow: hidden; background: #1a2b24; }
.hm-output-meter span { display: block; width: 78%; height: 100%; background: linear-gradient(90deg, #12b978, #6de0ec); }
.hm-output-panel small { display: block; margin-top: 10px; color: #71847c; font-size: 9px; }

.hm-outcomes { background: #f4f8f6; }
.hm-outcomes-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 100px; align-items: center; }
.hm-outcomes-copy > p { margin: 22px 0 30px; color: var(--hm-muted); font-size: 16px; line-height: 1.7; }
.hm-outcome-list { border-top: 1px solid var(--hm-line); }
.hm-outcome-list article { display: grid; grid-template-columns: 54px 1fr; gap: 16px; padding: 25px 0; border-bottom: 1px solid var(--hm-line); }
.hm-outcome-list article > span { color: var(--hm-green); font: 700 10px 'JetBrains Mono', monospace; }
.hm-outcome-list h3 { margin: -4px 0 7px; color: var(--hm-ink); font-size: 18px; }
.hm-outcome-list p { margin: 0; color: var(--hm-muted); font-size: 13px; line-height: 1.6; }
.hm-final-cta { position: relative; padding: 88px 0; background: var(--hm-green); overflow: hidden; }
.hm-final-cta::after { content: ''; position: absolute; width: 480px; height: 480px; right: -120px; top: -280px; border: 1px solid rgba(255,255,255,.2); border-radius: 50%; box-shadow: 0 0 0 70px rgba(255,255,255,.03), 0 0 0 140px rgba(255,255,255,.025); }
.hm-cta-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr auto; gap: 70px; align-items: end; }
.hm-final-cta h2 { max-width: 700px; font-size: clamp(36px, 4vw, 54px); }
.hm-cta-actions { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.hm-button-white { color: var(--hm-ink); background: #fff; }
.hm-cta-link { color: #fff; font-size: 13px; font-weight: 750; border-bottom: 1px solid rgba(255,255,255,.45); }

.home-modern :is(a, button):focus-visible { outline: 3px solid #6de0ec; outline-offset: 3px; }
.home-modern .topbar-mobile-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }

@media (max-width: 1080px) {
  .home-modern .topbar nav { gap: 16px; }
  .home-modern .topbar nav a { font-size: 12px; }
  .home-modern .brand-info small { display: none; }
  .hm-hero-grid { gap: 44px; }
  .hm-floating-note { display: none; }
  .hm-lab-grid { gap: 44px; }
}

@media (max-width: 840px) {
  .hm-container { width: min(100% - 40px, 720px); }
  .home-modern .topbar nav a.active::after { display: none; }
  .hm-hero { padding: 72px 0 68px; }
  .hm-hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hm-hero-copy { max-width: 690px; }
  .hm-hero-visual { width: min(100%, 650px); }
  .hm-visual-frame { aspect-ratio: 1.35; }
  .hm-signal-grid { min-height: 112px; align-items: flex-start; justify-content: center; flex-direction: column; gap: 18px; padding-block: 22px; }
  .hm-section { padding: 88px 0; }
  .hm-section-intro { grid-template-columns: 1fr; gap: 22px; }
  .hm-pathway-grid { grid-template-columns: repeat(2, 1fr); }
  .hm-pathway-card:last-child { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; }
  .hm-lab-section { padding: 92px 0; }
  .hm-lab-grid, .hm-outcomes-grid { grid-template-columns: 1fr; gap: 52px; }
  .hm-lab-copy { max-width: 650px; }
  .hm-cta-inner { grid-template-columns: 1fr; gap: 32px; align-items: start; }
}

@media (max-width: 640px) {
  .hm-container { width: min(100% - 32px, 560px); }
  .home-modern .gamified-ticker-bar { min-height: 34px; padding: 6px 16px; }
  .home-modern .ticker-content { justify-content: flex-start; }
  .home-modern .ticker-content > span:not(.ticker-badge-live), .home-modern .ticker-location { display: none; }
  .home-modern .ticker-quest-link { display: inline; margin-left: auto; }
  .home-modern .topbar { height: 68px; padding-inline: 16px; }
  .home-modern .brand { gap: 9px; }
  .home-modern .brand img { height: 37px; }
  .home-modern .brand-info b { font-size: 14px; }
  .hm-hero { padding: 56px 0 55px; }
  .hm-hero h1 { font-size: clamp(42px, 13vw, 58px); }
  .hm-hero-lede { font-size: 16px; line-height: 1.65; }
  .hm-hero-actions { align-items: stretch; flex-direction: column; }
  .hm-button { width: 100%; }
  .hm-trust-list { display: grid; gap: 10px; }
  .hm-visual-frame { aspect-ratio: .9; border-radius: 22px; }
  .hm-project-card { left: 20px; right: 20px; bottom: 20px; }
  .hm-project-card > p { font-size: 20px; }
  .hm-signal-flow { width: 100%; justify-content: space-between; gap: 7px; font-size: 8px; }
  .hm-signal-flow i { flex: 1; }
  .hm-section { padding: 72px 0; }
  .hm-section-intro h2, .hm-lab-copy h2, .hm-outcomes-copy h2, .hm-final-cta h2 { font-size: 36px; }
  .hm-pathway-grid { grid-template-columns: 1fr; }
  .hm-pathway-card:last-child { grid-column: auto; display: flex; }
  .hm-card-media { aspect-ratio: 1.28; }
  .hm-lab-section { padding: 76px 0; }
  .hm-feature-tabs button { font-size: 9px; }
  .hm-workspace-bar { grid-template-columns: 50px 1fr; }
  .hm-workspace-status { display: none; }
  .hm-workspace-body { min-height: 235px; padding: 25px 16px 16px; grid-template-columns: 28px minmax(0,1fr); }
  .hm-workspace pre { font-size: 10px; }
  .hm-output-panel { margin: 0 12px 12px; }
  .hm-outcomes-grid { gap: 42px; }
  .hm-outcome-list article { grid-template-columns: 38px 1fr; }
  .hm-final-cta { padding: 72px 0; }
  .hm-cta-actions { align-items: stretch; flex-direction: column; }
  .hm-cta-link { align-self: center; }
}

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

* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: var(--font); color: var(--slate-900); background: #FFFFFF; -webkit-font-smoothing: antialiased; }
a { text-decoration: none; color: inherit; transition: all 0.2s ease; }
button, input, select, textarea { font-family: inherit; }

/* Global Utilities */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  font-size: 14px;
  font-weight: 700;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--emerald));
  color: #FFFFFF;
  box-shadow: 0 6px 18px rgba(16, 185, 129, 0.28);
}
.btn-primary:hover { box-shadow: 0 10px 24px rgba(16, 185, 129, 0.38); }
.btn-ghost { background: transparent; color: var(--primary); border-color: var(--slate-300); }
.btn-ghost:hover { background: var(--emerald-soft); border-color: var(--emerald); }
.btn-light { background: #FFFFFF; color: var(--slate-700); border-color: var(--slate-300); }
.btn-light:hover { border-color: var(--primary); color: var(--primary); }
.btn-gold { background: linear-gradient(135deg, #F59E0B, #D97706); color: #FFF; }
.btn-lg { padding: 14px 28px; font-size: 16px; border-radius: 16px; }
.btn-sm { padding: 7px 14px; font-size: 12px; border-radius: 10px; }

/* Header & Navigation */
.topbar {
  height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5vw;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--surface-border);
}
.brand { display: flex; align-items: center; gap: 14px; }
.brand img { height: 48px; object-fit: contain; }
.brand-info { display: flex; flex-direction: column; }
.brand-info b { font-size: 19px; font-weight: 800; color: var(--slate-900); letter-spacing: -0.02em; }
.brand-info small { font-size: 11px; font-weight: 600; color: var(--slate-500); }
.topbar nav { display: flex; gap: 28px; align-items: center; }
.topbar nav a { font-size: 14px; font-weight: 600; color: var(--slate-700); }
.topbar nav a:hover, .topbar nav a.active { color: var(--primary); }
.header-actions { display: flex; align-items: center; gap: 12px; }

/* Marketing Hero */
.hero {
  min-height: 580px;
  padding: 70px 5vw 60px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 40px;
  background: radial-gradient(circle at 85% 15%, #E6F7EC 0%, transparent 45%), linear-gradient(180deg, #FAFAF9 0%, #FFFFFF 100%);
  position: relative;
  overflow: hidden;
}
.kicker {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.18em;
  color: var(--primary);
  margin-bottom: 14px;
}
.hero h1 {
  font-size: 64px;
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -0.04em;
  color: var(--slate-900);
  margin-bottom: 18px;
}
.hero h1 span { color: var(--primary); }
.hero-copy > p {
  font-size: 18px;
  line-height: 1.6;
  color: var(--slate-700);
  max-width: 580px;
  margin-bottom: 30px;
}
.hero-actions { display: flex; gap: 14px; align-items: center; margin-bottom: 34px; }
.trust-row { display: flex; gap: 18px; flex-wrap: wrap; }
.trust-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #FFFFFF;
  border: 1px solid var(--surface-border);
  padding: 8px 14px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 700;
  color: var(--slate-700);
  box-shadow: var(--shadow-sm);
}

/* Hero Showcase Visual */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero-img-wrap {
  width: 100%;
  max-width: 540px;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 6px solid #FFFFFF;
  position: relative;
  animation: floatSlow 6s ease-in-out infinite;
}
.hero-img-wrap img { width: 100%; height: auto; display: block; object-fit: cover; }
.floating-badge {
  position: absolute;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  padding: 10px 16px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  font-size: 12px;
  font-weight: 800;
  color: var(--slate-900);
  display: flex;
  align-items: center;
  gap: 8px;
}
.fb-top { top: -14px; right: 20px; border-left: 4px solid var(--gold); }
.fb-bottom { bottom: -14px; left: 20px; border-left: 4px solid var(--emerald); }

/* Learning Journeys Section */
.section { padding: 80px 5vw; }
.section-header { text-align: center; max-width: 720px; margin: 0 auto 50px; }
.section-header h2 { font-size: 38px; font-weight: 900; letter-spacing: -0.03em; margin: 8px 0 14px; }
.section-header p { font-size: 16px; color: var(--slate-500); line-height: 1.6; }

.journey-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.journey-card {
  background: #FFFFFF;
  border-radius: 26px;
  border: 1px solid var(--surface-border);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}
.journey-media {
  width: 100%;
  position: relative;
  background: #F8FAFC;
  overflow: hidden;
  line-height: 0;
}
.journey-media img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  transition: transform 0.4s ease;
}
.journey-card:hover .journey-media img { transform: scale(1.02); }
.journey-age-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: rgba(255, 255, 255, 0.95);
  padding: 6px 12px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 800;
  color: var(--slate-900);
  box-shadow: var(--shadow-sm);
}
.journey-body { padding: 26px; display: flex; flex-direction: column; flex-grow: 1; }
.journey-body h3 { font-size: 24px; font-weight: 800; margin-bottom: 10px; }
.journey-body p { font-size: 14px; color: var(--slate-500); line-height: 1.6; margin-bottom: 20px; flex-grow: 1; }
.journey-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 22px; }
.journey-chips span {
  background: var(--slate-100);
  padding: 5px 12px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 700;
  color: var(--slate-700);
}
.journey-cta {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
  font-weight: 800;
  color: var(--primary);
  padding-top: 14px;
  border-top: 1px solid var(--slate-100);
}

/* Impact Band */
.impact-banner {
  background: linear-gradient(135deg, var(--primary), #05331E);
  color: #FFFFFF;
  padding: 34px 5vw;
}
.impact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.impact-item {
  display: flex;
  align-items: center;
  gap: 16px;
  border-right: 1px solid rgba(255, 255, 255, 0.15);
  padding-right: 14px;
}
.impact-item:last-child { border-right: none; }
.impact-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.12);
  display: grid;
  place-items: center;
  font-size: 22px;
  flex-shrink: 0;
}
.impact-item b { font-size: 15px; font-weight: 800; display: block; }
.impact-item small { font-size: 12px; opacity: 0.8; }

/* Community Trust & Quote */
.trust-section {
  padding: 70px 5vw;
  background: var(--slate-50);
}
.trust-header { text-align: center; margin-bottom: 34px; }
.trust-header h3 { font-size: 26px; font-weight: 800; }
.trust-header p { color: var(--slate-500); font-size: 14px; }
.trust-icons-row {
  display: flex;
  justify-content: center;
  gap: 36px;
  flex-wrap: wrap;
  margin-bottom: 50px;
}
.trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--slate-700);
}
.trust-item-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: #FFFFFF;
  border: 1px solid var(--surface-border);
  display: grid;
  place-items: center;
  font-size: 26px;
  box-shadow: var(--shadow-sm);
}

.quote-card {
  max-width: 860px;
  margin: 0 auto;
  background: #FFFFFF;
  border: 1px solid var(--surface-border);
  border-radius: 24px;
  padding: 34px 44px;
  text-align: center;
  box-shadow: var(--shadow-md);
  position: relative;
}
.quote-card blockquote {
  font-size: 20px;
  font-weight: 600;
  font-style: italic;
  color: var(--slate-800);
  line-height: 1.6;
  margin-bottom: 16px;
}
.quote-card cite {
  font-size: 14px;
  font-weight: 800;
  color: var(--primary);
  font-style: normal;
}

/* ═══════════════════════════════════════════════════════════
   FUTURISTIC FOOTER
═══════════════════════════════════════════════════════════ */
.footer {
  position: relative;
  background: #020817;
  border-top: 1px solid rgba(16,185,129,.2);
  overflow: hidden;
  padding: 0;
}
.footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(16,185,129,.9), rgba(52,211,153,.6), rgba(110,231,183,.4), transparent);
}
.footer::after {
  content: '';
  position: absolute;
  top: -200px; left: 50%; transform: translateX(-50%);
  width: 800px; height: 400px;
  background: radial-gradient(ellipse at center, rgba(16,185,129,.05) 0%, transparent 70%);
  pointer-events: none;
}
.footer-main {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1fr;
  gap: 48px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 64px 5vw 48px;
}
.footer-brand-col {}
.footer-brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.footer-brand-logo img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  filter: brightness(0) invert(1) opacity(.9);
}
.footer-brand-name {
  font-size: 18px;
  font-weight: 900;
  color: #F1F5F9;
  letter-spacing: -.3px;
}
.footer-brand-tagline {
  font-size: 11px;
  color: #10B981;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}
.footer-brand-desc {
  font-size: 13px;
  color: #64748B;
  line-height: 1.75;
  margin-bottom: 24px;
  max-width: 280px;
}
.footer-social-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.footer-social-btn {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(30,41,59,.8);
  border: 1px solid rgba(16,185,129,.2);
  display: grid;
  place-items: center;
  color: #94A3B8;
  font-size: 14px;
  text-decoration: none;
  transition: all .2s ease;
  cursor: pointer;
}
.footer-social-btn:hover {
  background: rgba(16,185,129,.15);
  border-color: rgba(16,185,129,.5);
  color: #34D399;
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(16,185,129,.2);
}
.footer-col-title {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #475569;
  margin-bottom: 18px;
  position: relative;
  padding-bottom: 10px;
}
.footer-col-title::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 24px; height: 2px;
  background: linear-gradient(90deg, #10B981, #34D399);
  border-radius: 2px;
}
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-links a {
  font-size: 13.5px;
  color: #64748B;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all .18s ease;
  font-weight: 500;
}
.footer-links a:hover {
  color: #34D399;
  transform: translateX(4px);
}
.footer-links a::before {
  content: '›';
  color: #10B981;
  font-weight: 900;
  opacity: 0;
  transform: translateX(-6px);
  transition: all .18s ease;
}
.footer-links a:hover::before {
  opacity: 1;
  transform: translateX(0);
}
.footer-badge-strip {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 16px;
}
.footer-badge {
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .8px;
}
.footer-badge-stem  { background: rgba(16,185,129,.15); color: #34D399; border: 1px solid rgba(16,185,129,.3); }
.footer-badge-ai    { background: rgba(52,211,153,.1);  color: #6EE7B7; border: 1px solid rgba(52,211,153,.25); }
.footer-badge-zmb   { background: rgba(110,231,183,.1); color: #A7F3D0; border: 1px solid rgba(110,231,183,.25); }

.footer-divider {
  border: none;
  border-top: 1px solid rgba(30,41,59,.8);
  margin: 0;
}
.footer-copy {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 5vw;
  max-width: 1280px;
  margin: 0 auto;
  font-size: 12px;
  color: #334155;
  flex-wrap: wrap;
  gap: 12px;
  width: 100%;
}
.footer-copy-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.footer-copy-right {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #334155;
}
.footer-copy-right span {
  color: #10B981;
  font-weight: 700;
}
.footer-status-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #10B981;
  animation: footerPulse 2s ease-in-out infinite;
}
@keyframes footerPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(16,185,129,.4); }
  50% { box-shadow: 0 0 0 5px rgba(16,185,129,0); }
}

/* ==========================================================================
   STUDENT LEARNER PORTAL & APP SHELL
   ========================================================================== */
.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 260px 1fr;
  background: #F8FAFC;
}
.sidebar {
  background: linear-gradient(180deg, #0A4D2E 0%, #05331E 100%);
  color: #FFFFFF;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}
.sidebar-top {
  padding: 24px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  gap: 12px;
}
.sidebar-logo {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: #FFFFFF;
  padding: 4px;
  object-fit: contain;
}
.sidebar-title { display: flex; flex-direction: column; }
.sidebar-title b { font-size: 16px; font-weight: 900; letter-spacing: -0.01em; }
.sidebar-title small { font-size: 10px; opacity: 0.75; }

.sidebar-nav {
  padding: 20px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex-grow: 1;
}
.nav-section-title {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  opacity: 0.5;
  padding: 10px 12px 4px;
  text-transform: uppercase;
}
.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.82);
  transition: all 0.2s ease;
}
.sidebar-nav a:hover, .sidebar-nav a.active {
  background: rgba(255, 255, 255, 0.14);
  color: #FFFFFF;
  transform: translateX(4px);
}
.sidebar-nav a.active {
  background: #10B981;
  color: #FFFFFF;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
}

.sidebar-footer {
  padding: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.user-mini-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
}
.user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #FEF3C7;
  color: #92400E;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 15px;
}

/* App Main Workspace */
.app-workspace {
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.app-header {
  height: 80px;
  background: #FFFFFF;
  border-bottom: 1px solid var(--surface-border);
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 50;
}
/* Header Search Wrap & Spotlight Dropdown */
.header-search-wrap {
  position: relative;
  z-index: 100;
}
.header-search {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--slate-50);
  border: 1.5px solid var(--surface-border);
  padding: 8px 14px;
  border-radius: var(--radius-full);
  width: 330px;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}
.header-search:focus-within {
  background: #FFFFFF;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(10, 77, 46, 0.12), 0 4px 12px rgba(0,0,0,0.06);
  width: 380px;
}
.header-search input {
  border: none;
  background: transparent;
  outline: none;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--slate-800);
  width: 100%;
}
.search-kbd {
  font-family: inherit;
  font-size: 11px;
  font-weight: 700;
  color: var(--slate-400);
  background: #FFFFFF;
  border: 1px solid var(--surface-border);
  border-radius: 6px;
  padding: 2px 6px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
  pointer-events: none;
  flex-shrink: 0;
  transition: opacity 0.2s ease;
}
.search-clear-btn {
  background: none;
  border: none;
  color: var(--slate-400);
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 50%;
  font-size: 13px;
  display: grid;
  place-items: center;
  transition: color 0.15s ease;
}
.search-clear-btn:hover {
  color: var(--slate-700);
}
.search-spinner {
  width: 14px;
  height: 14px;
  border: 2px solid rgba(10, 77, 46, 0.2);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: searchSpin 0.6s linear infinite;
  flex-shrink: 0;
}
@keyframes searchSpin {
  to { transform: rotate(360deg); }
}

/* Spotlight Dropdown */
.search-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: 480px;
  max-width: 92vw;
  background: #FFFFFF;
  border: 1px solid var(--surface-border);
  border-radius: 20px;
  box-shadow: 0 20px 45px -8px rgba(0, 0, 0, 0.16), 0 0 0 1px rgba(0, 0, 0, 0.04);
  overflow: hidden;
  max-height: 520px;
  display: flex;
  flex-direction: column;
  animation: searchDropdownFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1000;
}
@keyframes searchDropdownFadeIn {
  from { opacity: 0; transform: translateY(-6px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
#searchDropdownContent {
  overflow-y: auto;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 420px;
}
.search-group-title {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--slate-400);
  padding: 6px 12px 2px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.search-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 12px;
  border-radius: 12px;
  text-decoration: none;
  color: var(--slate-800);
  transition: all 0.15s ease;
  cursor: pointer;
}
.search-item:hover, .search-item.search-item-active {
  background: #F1F5F9;
}
.search-item-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: #F8FAFC;
  border: 1px solid var(--surface-border);
  display: grid;
  place-items: center;
  font-size: 16px;
  flex-shrink: 0;
}
.search-item-info {
  flex: 1;
  min-width: 0;
}
.search-item-title {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--slate-900);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
}
.search-item-title mark {
  background: #FEF08A;
  color: #854D0E;
  font-weight: 800;
  padding: 0 2px;
  border-radius: 3px;
}
.search-item-meta {
  font-size: 11.5px;
  color: var(--slate-500);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 1px;
}
.search-item-badge {
  font-size: 10.5px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 99px;
  background: var(--slate-100);
  color: var(--slate-600);
  flex-shrink: 0;
}

/* Quick Explore Chips */
.search-chips-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 4px 6px;
}
.search-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 10px;
  background: #F8FAFC;
  border: 1px solid var(--surface-border);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--slate-700);
  text-decoration: none;
  transition: all 0.15s ease;
  cursor: pointer;
}
.search-chip:hover, .search-chip.search-item-active {
  background: #EFF6FF;
  border-color: #BFDBFE;
  color: #1E40AF;
}

/* Dropdown Footer */
.search-dropdown-footer {
  background: #F8FAFC;
  border-top: 1px solid var(--surface-border);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--slate-500);
}
.search-hints {
  display: flex;
  gap: 10px;
}
.search-hints kbd {
  background: #FFFFFF;
  border: 1px solid var(--surface-border);
  border-radius: 4px;
  padding: 1px 5px;
  font-size: 10px;
  color: var(--slate-600);
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}
.search-view-all {
  color: var(--primary);
  font-weight: 800;
  text-decoration: none;
  font-size: 12px;
}
.search-view-all:hover {
  text-decoration: underline;
}

/* Empty Dropdown State */
.search-empty-state {
  padding: 30px 20px;
  text-align: center;
}
.search-empty-state span {
  font-size: 28px;
  display: block;
  margin-bottom: 8px;
}
.search-empty-state b {
  font-size: 14px;
  color: var(--slate-800);
  display: block;
  margin-bottom: 4px;
}
.search-empty-state p {
  font-size: 12.5px;
  color: var(--slate-500);
  margin: 0;
}
.header-user-status {
  display: flex;
  align-items: center;
  gap: 20px;
}
.xp-level-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--emerald-soft);
  border: 1px solid #A7F3D0;
  padding: 6px 14px;
  border-radius: var(--radius-full);
}
.xp-level-badge b { font-size: 13px; color: var(--primary); }
.xp-progress-mini {
  width: 80px;
  height: 6px;
  background: #D1FAE5;
  border-radius: var(--radius-full);
  overflow: hidden;
}
.xp-progress-mini i {
  display: block;
  height: 100%;
  background: var(--emerald);
  border-radius: var(--radius-full);
}
.streak-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #FFFBEB;
  border: 1px solid #FDE68A;
  color: #B45309;
  font-size: 13px;
  font-weight: 800;
  padding: 6px 12px;
  border-radius: var(--radius-full);
}

.workspace-content {
  padding: 32px;
  max-width: 1360px;
  width: 100%;
  margin: 0 auto;
}

/* Student Dashboard Hero Card */
.dashboard-hero-banner {
  background: linear-gradient(135deg, #ECFDF5 0%, #EFF6FF 100%);
  border: 1px solid #D1FAE5;
  border-radius: 28px;
  padding: 32px 40px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 30px;
  margin-bottom: 36px;
  position: relative;
  overflow: hidden;
}
.dashboard-hero-text h1 {
  font-size: 32px;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--slate-900);
  margin-bottom: 8px;
}
.dashboard-hero-text p {
  font-size: 16px;
  color: var(--slate-500);
  margin-bottom: 20px;
}
.mascot-hero-visual {
  width: 140px;
  height: 140px;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  animation: float 4s ease-in-out infinite;
}
.mascot-hero-visual img { width: 100%; height: 100%; object-fit: cover; }

/* Continue Learning Cards */
.dashboard-section-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}
.dashboard-section-title h2 { font-size: 20px; font-weight: 800; color: var(--slate-900); }
.dashboard-section-title a { font-size: 13px; font-weight: 700; color: var(--primary); }

.continue-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 36px;
}
.continue-card {
  background: #FFFFFF;
  border: 1px solid var(--surface-border);
  border-radius: 20px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: var(--shadow-sm);
  transition: all 0.25s ease;
}
.continue-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--emerald); }
.continue-card-top { display: flex; justify-content: space-between; align-items: center; }
.tag-badge {
  font-size: 11px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: var(--radius-full);
}
.tag-science { background: #ECFDF5; color: #065F46; }
.tag-ai { background: #EFF6FF; color: #1E40AF; }
.tag-engineering { background: #FEF3C7; color: #92400E; }
.continue-card h3 { font-size: 17px; font-weight: 800; }
.progress-bar-wrap { width: 100%; }
.progress-meta { display: flex; justify-content: space-between; font-size: 11px; font-weight: 700; color: var(--slate-500); margin-bottom: 6px; }
.progress-track {
  height: 8px;
  background: var(--slate-100);
  border-radius: var(--radius-full);
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--emerald));
  border-radius: var(--radius-full);
}

/* My Progress Stat Grid */
.progress-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 36px;
}
.stat-card {
  background: #FFFFFF;
  border: 1px solid var(--surface-border);
  border-radius: 20px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease;
}
.stat-card:hover { transform: translateY(-3px); }
.stat-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-size: 24px;
  margin-bottom: 12px;
}
.stat-green { background: #ECFDF5; color: #059669; }
.stat-blue { background: #EFF6FF; color: #2563EB; }
.stat-amber { background: #FFFBEB; color: #D97706; }
.stat-purple { background: #F5F3FF; color: #7C3AED; }
.stat-card b { font-size: 28px; font-weight: 900; color: var(--slate-900); }
.stat-card span { font-size: 12px; font-weight: 600; color: var(--slate-500); margin-top: 2px; }

/* Interactive Coding Lab */
.code-lab-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 24px;
  min-height: 560px;
}
.code-problem-panel {
  background: #FFFFFF;
  border: 1px solid var(--surface-border);
  border-radius: 20px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}
.code-editor-panel {
  background: #0F172A;
  border-radius: 20px;
  border: 1px solid #334155;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.editor-topbar {
  background: #1E293B;
  padding: 12px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #334155;
  color: #94A3B8;
  font-size: 13px;
  font-weight: 700;
}
.code-textarea {
  width: 100%;
  height: 320px;
  background: transparent;
  border: none;
  color: #F8FAFC;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 14px;
  line-height: 1.6;
  padding: 20px;
  outline: none;
  resize: none;
}
.editor-console {
  background: #020617;
  border-top: 1px solid #1E293B;
  padding: 16px 20px;
  min-height: 130px;
  font-family: monospace;
  font-size: 13px;
  color: #38BDF8;
  white-space: pre-wrap;
  overflow-y: auto;
}

/* Multiple Choice Quiz Styles */
.quiz-card {
  background: #FFFFFF;
  border: 1px solid var(--surface-border);
  border-radius: 24px;
  padding: 30px;
  margin-top: 24px;
  box-shadow: var(--shadow-sm);
}
.quiz-header { margin-bottom: 24px; }
.quiz-question-box {
  background: var(--slate-50);
  border: 1px solid var(--surface-border);
  border-radius: 18px;
  padding: 22px;
  margin-bottom: 20px;
}
.question-title { font-size: 16px; font-weight: 800; margin-bottom: 14px; color: var(--slate-900); }
.quiz-options-list { display: flex; flex-direction: column; gap: 10px; }
.quiz-option-label {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 12px;
  background: #FFFFFF;
  border: 1.5px solid var(--surface-border);
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 14px;
  font-weight: 600;
}
.quiz-option-label:hover { border-color: var(--emerald); background: var(--emerald-soft); }
.quiz-option-label input[type="radio"] { accent-color: var(--primary); width: 16px; height: 16px; }

/* XP Calculator Tool Styles */
.calc-container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  margin-top: 24px;
}
.calc-card {
  background: #FFFFFF;
  border: 1px solid var(--surface-border);
  border-radius: 24px;
  padding: 30px;
  box-shadow: var(--shadow-sm);
}
.calc-control { margin-bottom: 24px; }
.calc-control label { display: flex; justify-content: space-between; font-weight: 800; font-size: 14px; margin-bottom: 10px; }
.calc-slider {
  width: 100%;
  accent-color: var(--emerald);
  height: 8px;
  border-radius: 4px;
  cursor: pointer;
}
.calc-result-box {
  background: linear-gradient(135deg, #0A4D2E, #05331E);
  color: #FFFFFF;
  border-radius: 24px;
  padding: 34px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  text-align: center;
}
.calc-result-xp { font-size: 52px; font-weight: 900; color: #34D399; }
.calc-result-tier { font-size: 22px; font-weight: 800; color: #FCD34D; }

/* Admin Views & Tables */
.admin-table-wrap {
  background: #FFFFFF;
  border: 1px solid var(--surface-border);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.admin-table { width: 100%; border-collapse: collapse; text-align: left; font-size: 14px; }
.admin-table th { background: var(--slate-50); padding: 14px 18px; font-weight: 800; color: var(--slate-700); border-bottom: 1px solid var(--surface-border); }
.admin-table td { padding: 14px 18px; border-bottom: 1px solid var(--slate-100); color: var(--slate-800); vertical-align: middle; }
.admin-table tr:hover td { background: var(--slate-50); }

/* Animations */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
@keyframes floatSlow {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4); }
  50% { box-shadow: 0 0 0 12px rgba(16, 185, 129, 0); }
}

/* ============================================================
   HAMBURGER BUTTON (mobile sidebar toggle)
   ============================================================ */
.sidebar-hamburger {
  display: none;
  position: fixed;
  top: 16px;
  left: 16px;
  z-index: 200;
  background: var(--primary);
  border: none;
  border-radius: 12px;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  color: #FFFFFF;
  flex-direction: column;
  gap: 5px;
  padding: 10px;
  transition: background 0.2s;
}
.sidebar-hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  background: #FFFFFF;
  border-radius: 2px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.sidebar-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.sidebar-hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.sidebar-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Sidebar overlay backdrop */
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 149;
  backdrop-filter: blur(2px);
}
.sidebar-overlay.active { display: block; }

/* ============================================================
   RESPONSIVE BREAKPOINTS — TABLET (≤1080px)
   ============================================================ */
@media (max-width: 1080px) {
  /* Marketing pages */
  .hero { grid-template-columns: 1fr; }
  .journey-grid, .continue-grid, .progress-stat-grid { grid-template-columns: 1fr 1fr; }
  .impact-grid { grid-template-columns: 1fr 1fr; }

  /* App shell: slim sidebar */
  .app-shell { grid-template-columns: 80px 1fr; }
  .sidebar-title, .nav-section-title, .user-mini-card div { display: none; }
  .sidebar-nav a span:last-child { display: none; }
  .sidebar-nav a { justify-content: center; padding: 12px; }
  .sidebar-footer { padding: 12px 8px; }
  .user-mini-card { justify-content: center; }

  /* Layouts that collapse to single column */
  .code-lab-layout, .calc-container { grid-template-columns: 1fr; }

  /* Header search shrinks */
  .header-search { width: 200px; }

  /* XP badge simplified */
  .xp-level-badge div { display: none; }
  .xp-level-badge { gap: 6px; padding: 6px 10px; }
}

/* ============================================================
   RESPONSIVE BREAKPOINTS — MOBILE (≤768px)
   ============================================================ */
@media (max-width: 768px) {
  /* Show hamburger, hide static sidebar */
  .sidebar-hamburger { display: flex; }

  /* App shell: full width content */
  .app-shell { grid-template-columns: 1fr; }

  /* Sidebar becomes a fixed overlay drawer */
  .sidebar {
    position: fixed;
    left: -280px;
    top: 0;
    width: 260px;
    height: 100vh;
    z-index: 150;
    transition: left 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: none;
  }
  .sidebar.open {
    left: 0;
    box-shadow: 0 0 60px rgba(0,0,0,0.4);
  }

  /* Restore sidebar text labels on mobile drawer */
  .sidebar.open .sidebar-title,
  .sidebar.open .nav-section-title,
  .sidebar.open .user-mini-card div,
  .sidebar.open .sidebar-nav a span:last-child { display: flex; }
  .sidebar.open .sidebar-nav a span:last-child { display: inline; }
  .sidebar.open .sidebar-nav a { justify-content: flex-start; padding: 11px 14px; }
  .sidebar.open .sidebar-top { gap: 12px; }

  /* Header: add left padding so content clears hamburger */
  .app-header { padding: 0 16px 0 68px; }
  .header-search { width: 100%; max-width: 200px; }
  .header-user-status { gap: 10px; }

  /* Hide XP badge on very small screens */
  .xp-level-badge { display: none; }

  /* Workspace */
  .workspace-content { padding: 16px; }

  /* Marketing topbar: hamburger for nav */
  .topbar nav { display: none; }
  .topbar { padding: 0 16px; }
  .topbar nav.mobile-open { display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: rgba(255,255,255,0.98); backdrop-filter: blur(12px); border-bottom: 1px solid var(--surface-border); padding: 16px 5vw; gap: 16px; z-index: 99; }
  .topbar-mobile-btn { display: flex; align-items: center; justify-content: center; background: var(--slate-100); border: none; border-radius: 10px; width: 40px; height: 40px; cursor: pointer; font-size: 18px; }
  .brand { min-width: 0; gap: 8px; }
  .brand img { width: 44px; height: 44px; flex: 0 0 44px; }
  .brand-info b { font-size: 16px; white-space: nowrap; }
  .brand-info small { display: none; }
  .header-actions { gap: 8px; }
  .header-actions .btn-quest-start { display: none; }

  /* Grids collapse to single column */
  .journey-grid, .continue-grid, .progress-stat-grid, .impact-grid { grid-template-columns: 1fr; }

  /* Hero */
  .hero { padding: 50px 5vw 40px; }
  .hero h1 { font-size: 36px; }

  /* Admin tables: horizontal scroll */
  .admin-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .admin-table { min-width: 600px; }

  /* Cards */
  .quote-card { padding: 24px 20px; }
  .quote-card blockquote { font-size: 16px; }

  /* Code editor: min height */
  .editor-area { min-height: 220px; }

  /* Better touch targets */
  .btn { min-height: 44px; }
  .sidebar-nav a { min-height: 44px; }
  .quiz-option-label { min-height: 44px; }
}

/* ============================================================
   RESPONSIVE BREAKPOINTS — SMALL MOBILE (≤480px)
   ============================================================ */
@media (max-width: 480px) {
  .hero h1 { font-size: 30px; }
  .app-header { height: 64px; padding: 0 14px 0 66px; }
  .topbar { height: 70px; padding: 0 12px; }
  .brand-info b { font-size: 14px; }
  .header-actions .btn-ghost { min-height: 40px; padding: 8px 11px; font-size: 12px; }
  .streak-pill { font-size: 11px; padding: 5px 10px; }
  .header-search { max-width: 160px; }
  .header-search input::placeholder { font-size: 11px; }

  /* Impact band: 2 cols on very small screens */
  .impact-grid { grid-template-columns: 1fr 1fr; }

  /* Footer */
  .footer-main { grid-template-columns: 1fr 1fr; gap: 32px; padding: 40px 5vw 32px; }
  .footer-brand-col { grid-column: 1 / -1; }
  .footer-copy { flex-direction: column; gap: 8px; text-align: center; }
}

/* ============================================================
   LESSON 3-STEP JOURNEY RIBBON (Walkthrough > Activity > Evaluation)
   ============================================================ */
.lesson-step-ribbon {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 28px;
}
.step-tab-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  background: #FFFFFF;
  border: 2px solid var(--surface-border);
  border-radius: 18px;
  cursor: pointer;
  text-align: left;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: var(--shadow-sm);
}
.step-tab-btn:hover {
  border-color: #CBD5E1;
  transform: translateY(-2px);
}
.step-tab-btn.active {
  border-color: var(--primary);
  background: linear-gradient(135deg, #ECFDF5 0%, #FFFFFF 100%);
  box-shadow: 0 4px 18px rgba(5, 150, 105, 0.15);
}
.step-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--slate-100);
  color: var(--slate-600);
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 15px;
  flex-shrink: 0;
  transition: all 0.2s ease;
}
.step-tab-btn.active .step-num {
  background: var(--primary);
  color: #FFFFFF;
  box-shadow: 0 2px 8px rgba(5, 150, 105, 0.35);
}
.step-text b {
  display: block;
  font-size: 14px;
  color: var(--slate-800);
  line-height: 1.3;
}
.step-text small {
  display: block;
  font-size: 11px;
  color: var(--slate-500);
  margin-top: 2px;
}
.step-tab-btn.active .step-text b {
  color: var(--primary);
}

@media (max-width: 768px) {
  .lesson-step-ribbon {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .step-tab-btn {
    padding: 12px 16px;
  }
}

/* ============================================================
   INTERACTIVE FEEDBACK ANIMATIONS (Celebration & Eish Encouragement)
   ============================================================ */

/* Shake Haptic for incorrect answer */
@keyframes shakeHaptic {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-8px) rotate(-1deg); }
  40% { transform: translateX(8px) rotate(1deg); }
  60% { transform: translateX(-6px) rotate(-0.5deg); }
  80% { transform: translateX(6px) rotate(0.5deg); }
}

.shake-haptic {
  animation: shakeHaptic 0.45s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

/* Bounce in celebration */
@keyframes bounceInGlow {
  0% { transform: scale(0.7) translateY(30px); opacity: 0; }
  60% { transform: scale(1.05) translateY(-5px); opacity: 1; }
  80% { transform: scale(0.98) translateY(2px); }
  100% { transform: scale(1) translateY(0); opacity: 1; }
}

@keyframes eishWobble {
  0% { transform: scale(0.8) translateY(30px); opacity: 0; }
  40% { transform: scale(1.03) rotate(-2deg); opacity: 1; }
  70% { transform: scale(0.98) rotate(1.5deg); }
  100% { transform: scale(1) rotate(0deg); opacity: 1; }
}

/* Floating Interactive Toast */
.interaction-toast {
  position: fixed;
  bottom: 36px;
  right: 36px;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 24px;
  border-radius: 20px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(255, 255, 255, 0.2) inset;
  font-family: 'Inter', sans-serif;
  max-width: 440px;
  pointer-events: none;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.toast-success {
  background: linear-gradient(135deg, #065F46 0%, #047857 100%);
  color: #FFFFFF;
  border: 1.5px solid #34D399;
  animation: bounceInGlow 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) both;
}

.toast-eish {
  background: linear-gradient(135deg, #78350F 0%, #92400E 100%);
  color: #FEF3C7;
  border: 1.5px solid #FBBF24;
  animation: eishWobble 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) both;
}

.toast-icon {
  font-size: 32px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
}

.toast-title {
  font-size: 15px;
  font-weight: 900;
  line-height: 1.2;
}

.toast-subtitle {
  font-size: 13px;
  opacity: 0.9;
  margin-top: 2px;
  line-height: 1.35;
}

/* Option Click Pulse */
.opt-correct-pulse {
  animation: bounceInGlow 0.35s ease;
  border-color: #059669 !important;
  background: #ECFDF5 !important;
}

.opt-wrong-pulse {
  animation: shakeHaptic 0.4s ease;
  border-color: #DC2626 !important;
  background: #FEF2F2 !important;
}

.early-ai-walk-card {
  position: relative;
  min-height: 178px;
  text-align: left;
  border: 1.5px solid rgba(15, 23, 42, 0.12);
  background: #FFFFFF;
  border-radius: 18px;
  padding: 18px;
  cursor: pointer;
  overflow: hidden;
  transform: translateY(0);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.early-ai-walk-card:hover {
  border-color: #10B981 !important;
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.10);
  transform: translateY(-2px);
}

.early-ai-walk-card.is-revealed {
  background: #ECFDF5;
  border-color: #10B981 !important;
}

.early-ai-float-icon {
  display: inline-grid;
  width: 54px;
  height: 54px;
  place-items: center;
  background: #EFF6FF;
  border-radius: 16px;
  font-size: 32px;
  margin-bottom: 12px;
  animation: earlyAiFloat 2.8s ease-in-out infinite;
}

.early-ai-walk-card b {
  display: block;
  color: #0F172A;
  font-size: 16px;
  margin-bottom: 8px;
}

.early-ai-card-front,
.early-ai-card-back {
  display: block;
  color: #475569;
  font-size: 13px;
  line-height: 1.45;
}

.early-ai-card-back {
  display: none;
  color: #065F46;
  font-weight: 700;
}

.early-ai-walk-card.is-revealed .early-ai-card-front {
  display: none;
}

.early-ai-walk-card.is-revealed .early-ai-card-back {
  display: block;
}

@keyframes earlyAiFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-4px) rotate(2deg); }
}

.early-ai-play-scene {
  border: 1px solid rgba(15, 23, 42, 0.10);
  border-radius: 24px;
  padding: 24px;
  background:
    radial-gradient(circle at 14% 18%, rgba(16, 185, 129, 0.18), transparent 28%),
    radial-gradient(circle at 86% 18%, rgba(245, 158, 11, 0.18), transparent 24%),
    linear-gradient(135deg, #F8FAFC 0%, #FFFFFF 48%, #F0FDF4 100%);
}

.early-ai-scene-top {
  display: grid;
  grid-template-columns: minmax(120px, 180px) 1fr;
  gap: 22px;
  align-items: center;
  margin-bottom: 20px;
}

.early-ai-robot {
  position: relative;
  min-height: 160px;
  border-radius: 24px;
  display: grid;
  place-items: center;
  background: #0F172A;
  box-shadow: 0 20px 44px rgba(15, 23, 42, 0.18);
  cursor: pointer;
  overflow: hidden;
}

.early-ai-robot-face {
  font-size: 70px;
  animation: earlyAiRobotBob 2s ease-in-out infinite;
}

.early-ai-signal-dot {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: #34D399;
  animation: earlyAiSignal 1.4s ease-in-out infinite;
}

.early-ai-signal-dot.dot-one { top: 22px; left: 28px; }
.early-ai-signal-dot.dot-two { top: 34px; right: 34px; animation-delay: 0.2s; background: #FBBF24; }
.early-ai-signal-dot.dot-three { bottom: 28px; right: 52px; animation-delay: 0.4s; background: #60A5FA; }

.early-ai-story-copy h2 {
  font-size: 30px;
  line-height: 1.15;
  color: #0F172A;
  margin: 12px 0 10px;
}

.early-ai-story-copy p {
  font-size: 17px;
  line-height: 1.65;
  color: #334155;
  margin: 0;
  max-width: 760px;
}

.early-ai-path {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 14px;
}

.early-ai-mini-lab {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  border: 1px dashed rgba(16, 185, 129, 0.45);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.78);
  padding: 16px;
}

.early-ai-mini-lab p {
  color: #475569;
  margin: 4px 0 0;
  font-size: 13px;
  line-height: 1.45;
}

.early-ai-activity-hero {
  background:
    linear-gradient(135deg, rgba(239, 246, 255, 0.96), rgba(240, 253, 244, 0.96)) !important;
}

.early-ai-stepper {
  border-color: rgba(16, 185, 129, 0.35) !important;
  background: #FFFFFF !important;
}

.early-ai-task-card {
  min-height: 380px;
}

.early-ai-task-titlebar {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
  padding: 14px;
  border-radius: 18px;
  background: #F8FAFC;
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.early-ai-task-titlebar > span {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: #FEF3C7;
  font-size: 34px;
  flex-shrink: 0;
  animation: earlyAiFloat 2.4s ease-in-out infinite;
}

.early-choice-grid {
  margin-top: 10px;
}

.early-choice-tile {
  min-height: 152px;
  position: relative;
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.06);
}

.early-choice-tile:hover {
  transform: translateY(-2px) scale(1.01);
  border-color: #10B981 !important;
  background: #F0FDF4 !important;
}

.early-choice-tile .opt-indicator {
  position: absolute;
  top: 10px;
  right: 12px;
}

.early-sound-trace {
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: -4px 0 18px;
}

.early-sound-player {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: 0 0 14px;
  padding: 14px;
  border: 1px solid rgba(59, 130, 246, 0.22);
  border-radius: 16px;
  background: #EFF6FF;
}

.early-sound-player button {
  border: 0;
  border-radius: 14px;
  padding: 12px 16px;
  background: #2563EB;
  color: #FFFFFF;
  font-weight: 900;
  cursor: pointer;
}

.early-sound-player button:disabled {
  opacity: 0.65;
  cursor: wait;
}

.early-sound-player span {
  color: #1E3A8A;
  font-size: 13px;
  font-weight: 900;
}

.early-sound-trace span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #EFF6FF;
  color: #1D4ED8;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.early-ai-mini-icon {
  font-size: 28px;
  margin-right: 8px;
}

.early-ai-sound-buttons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.early-ai-sound-buttons button {
  border: 1px solid #CBD5E1;
  background: #FFFFFF;
  border-radius: 12px;
  padding: 10px 12px;
  font-weight: 800;
  cursor: pointer;
}

@keyframes earlyAiRobotBob {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-6px) scale(1.03); }
}

@keyframes earlyAiSignal {
  0%, 100% { transform: scale(1); opacity: 0.45; }
  50% { transform: scale(1.7); opacity: 1; }
}

.early-match-card,
.early-sequence-card {
  transform: scale(1);
}

.early-match-board {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 18px;
}

.early-match-side {
  border: 1px solid rgba(15, 23, 42, 0.10);
  border-radius: 18px;
  background: #F8FAFC;
  padding: 14px;
}

.early-match-side-title {
  display: block;
  font-size: 13px;
  color: #475569;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.early-match-column {
  display: grid;
  gap: 10px;
}

.early-match-card {
  min-height: 108px;
  text-align: center;
  background: #FFFFFF;
  border: 1.5px solid var(--slate-200);
  border-radius: 14px;
  padding: 14px;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s;
}

.early-match-card span {
  display: block;
  font-size: 36px;
  margin-bottom: 8px;
}

.early-match-card b {
  display: block;
  color: #0F172A;
}

.early-match-card:hover,
.early-sequence-card:hover {
  border-color: #3B82F6 !important;
  box-shadow: 0 10px 22px rgba(59, 130, 246, 0.14);
  transform: scale(1.015);
}

@media (max-width: 600px) {
  .early-ai-play-scene {
    padding: 16px;
  }
  .early-ai-scene-top {
    grid-template-columns: 1fr;
  }
  .early-ai-robot {
    min-height: 130px;
  }
  .early-ai-story-copy h2 {
    font-size: 24px;
  }
  .early-match-board {
    grid-template-columns: 1fr;
  }
  .interaction-toast {
    left: 16px;
    right: 16px;
    bottom: 20px;
    max-width: none;
    padding: 14px 18px;
  }
}

/* ==========================================================================
   FUTURISTIC GAMIFICATION & ANIMATED THEME EXTENSIONS
   STEM AI Academy — State-of-the-Art Interactive Experience
   ========================================================================== */

:root {
  --cyber-emerald: #10B981;
  --cyber-emerald-glow: rgba(16, 185, 129, 0.45);
  --cyber-cyan: #06B6D4;
  --cyber-cyan-glow: rgba(6, 182, 212, 0.45);
  --cyber-indigo: #6366F1;
  --cyber-indigo-glow: rgba(99, 102, 241, 0.45);
  --cyber-gold: #F59E0B;
  --cyber-gold-glow: rgba(245, 158, 11, 0.45);
  --cyber-dark-900: #06110D;
  --cyber-dark-800: #0D1C16;
  --cyber-dark-700: #142820;
  --cyber-card-bg: rgba(255, 255, 255, 0.92);
  --cyber-glass-border: rgba(16, 185, 129, 0.22);
}

/* --- Gamified Top Ticker Bar --- */
.gamified-ticker-bar {
  background: linear-gradient(90deg, #052617 0%, #0A4D2E 50%, #063A23 100%);
  color: #FFFFFF;
  padding: 8px 5vw;
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(16, 185, 129, 0.3);
  position: relative;
  z-index: 101;
  overflow: hidden;
}
.gamified-ticker-bar::before {
  content: '';
  position: absolute;
  top: 0; left: -100%; width: 50%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.12), transparent);
  animation: tickerShimmer 7s infinite linear;
}
@keyframes tickerShimmer {
  0% { left: -100%; }
  100% { left: 200%; }
}
.ticker-content {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.ticker-badge-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(16, 185, 129, 0.25);
  border: 1px solid rgba(16, 185, 129, 0.6);
  color: #34D399;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.pulse-beacon {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #34D399;
  box-shadow: 0 0 10px #34D399;
  animation: beaconPulse 1.8s infinite ease-in-out;
}
@keyframes beaconPulse {
  0%, 100% { transform: scale(1); opacity: 1; box-shadow: 0 0 6px #34D399; }
  50% { transform: scale(1.4); opacity: 0.7; box-shadow: 0 0 14px #34D399; }
}
.ticker-quest-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #FEF08A;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  transition: all 0.2s;
}
.ticker-quest-link:hover {
  color: #FFFFFF;
  text-shadow: 0 0 8px rgba(254, 240, 138, 0.8);
}
.ticker-controls {
  display: flex;
  align-items: center;
  gap: 14px;
}
.audio-fx-btn {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #FFFFFF;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.2s;
}
.audio-fx-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: #34D399;
}

/* --- Futuristic Topbar Modernization --- */
.topbar {
  background: rgba(255, 255, 255, 0.88) !important;
  backdrop-filter: blur(16px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(16px) saturate(180%) !important;
  border-bottom: 1px solid rgba(16, 185, 129, 0.16) !important;
  box-shadow: 0 10px 30px -10px rgba(10, 77, 46, 0.08) !important;
  transition: all 0.3s ease;
}
.topbar nav a {
  position: relative;
  padding: 8px 12px;
  border-radius: 8px;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.topbar nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 20px;
  height: 2px;
  background: var(--cyber-emerald);
  border-radius: 2px;
  box-shadow: 0 0 8px var(--cyber-emerald);
  transition: transform 0.25s ease;
}
.topbar nav a:hover::after,
.topbar nav a.active::after {
  transform: translateX(-50%) scaleX(1);
}
.topbar nav a.active {
  color: var(--primary) !important;
  font-weight: 800 !important;
}
.btn-quest-start {
  background: linear-gradient(135deg, #0A4D2E 0%, #10B981 100%) !important;
  color: #FFFFFF !important;
  font-weight: 800 !important;
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.35), 0 4px 12px rgba(10, 77, 46, 0.2) !important;
  border: 1px solid rgba(52, 211, 153, 0.4) !important;
}
.btn-quest-start::before {
  content: '';
  position: absolute;
  top: 0; left: -100%; width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.6s ease;
}
.btn-quest-start:hover::before {
  left: 100%;
}
.btn-quest-start:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 0 30px rgba(16, 185, 129, 0.55), 0 8px 20px rgba(10, 77, 46, 0.3) !important;
}

/* --- Futuristic Hero Section --- */
.hero-futuristic {
  position: relative;
  background-color: #FAFCFB;
  background-image: 
    radial-gradient(circle at 80% 10%, rgba(16, 185, 129, 0.14) 0%, transparent 45%),
    radial-gradient(circle at 10% 70%, rgba(6, 182, 212, 0.12) 0%, transparent 40%),
    linear-gradient(rgba(10, 77, 46, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(10, 77, 46, 0.035) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 42px 42px, 42px 42px;
  overflow: hidden;
  padding: 70px 5vw 80px;
}
.hero-futuristic::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 60px;
  background: linear-gradient(to bottom, transparent, #FFFFFF);
  pointer-events: none;
}
.kicker-cyber {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--primary);
  margin-bottom: 20px;
  box-shadow: 0 2px 10px rgba(16, 185, 129, 0.1);
}
.hero-title-futuristic {
  font-size: 64px;
  line-height: 1.04;
  font-weight: 900;
  letter-spacing: -0.04em;
  color: var(--slate-900);
  margin-bottom: 20px;
}
.text-gradient-cyber {
  background: linear-gradient(135deg, #0A4D2E 0%, #10B981 50%, #0284C7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  position: relative;
}
.hero-copy-futuristic {
  font-size: 18px;
  line-height: 1.65;
  color: var(--slate-700);
  max-width: 580px;
  margin-bottom: 30px;
}

/* Interactive Hero Mission Deck & Code Simulator */
.cyber-deck-wrapper {
  position: relative;
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
}
.cyber-deck {
  background: #0B1713;
  border-radius: 26px;
  border: 1px solid rgba(16, 185, 129, 0.35);
  box-shadow: 0 25px 50px -12px rgba(5, 51, 30, 0.35), 0 0 30px rgba(16, 185, 129, 0.15);
  overflow: hidden;
  position: relative;
  color: #E2E8F0;
  transition: all 0.3s ease;
}
.cyber-deck-corners {
  position: absolute;
  top: 8px; left: 8px; right: 8px; bottom: 8px;
  border: 1px solid rgba(16, 185, 129, 0.15);
  border-radius: 20px;
  pointer-events: none;
}
.cyber-deck-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: rgba(10, 77, 46, 0.25);
  border-bottom: 1px solid rgba(16, 185, 129, 0.2);
}
.cyber-window-dots {
  display: flex;
  gap: 6px;
}
.cyber-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.dot-red { background: #EF4444; }
.dot-yellow { background: #F59E0B; }
.dot-green { background: #10B981; }

.cyber-deck-tabs {
  display: flex;
  gap: 4px;
  background: rgba(0, 0, 0, 0.35);
  padding: 3px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.deck-tab-btn {
  background: transparent;
  border: none;
  color: #94A3B8;
  padding: 5px 12px;
  font-size: 11px;
  font-weight: 700;
  border-radius: 7px;
  cursor: pointer;
  transition: all 0.2s;
}
.deck-tab-btn.active {
  background: rgba(16, 185, 129, 0.25);
  color: #34D399;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.3);
}

/* Simulator Code Terminal */
.deck-view {
  display: none;
}
.deck-view.active {
  display: block;
}
.cyber-terminal {
  padding: 20px 22px;
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 13px;
  line-height: 1.65;
  position: relative;
  background: radial-gradient(circle at 90% 10%, rgba(16, 185, 129, 0.08) 0%, transparent 50%), #07130F;
  min-height: 290px;
}
.scanline-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.03), rgba(0, 255, 0, 0.01), rgba(0, 0, 255, 0.03));
  background-size: 100% 3px, 6px 100%;
  pointer-events: none;
  opacity: 0.6;
}
.code-line {
  display: flex;
  gap: 12px;
}
.code-num {
  color: #334155;
  user-select: none;
  font-size: 11px;
  width: 20px;
  text-align: right;
}
.code-txt { color: #E2E8F0; }
.code-kw { color: #F43F5E; font-weight: 700; }
.code-cls { color: #38BDF8; font-weight: 700; }
.code-fn { color: #A78BFA; }
.code-str { color: #34D399; }
.code-cm { color: #64748B; font-style: italic; }

.simulation-console {
  margin-top: 14px;
  padding: 12px 14px;
  background: rgba(0, 0, 0, 0.45);
  border-radius: 12px;
  border: 1px solid rgba(16, 185, 129, 0.2);
  font-size: 12px;
}
.console-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #64748B;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}
.console-log {
  color: #34D399;
  display: flex;
  align-items: center;
  gap: 8px;
}
.console-pulse {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #34D399;
  box-shadow: 0 0 8px #34D399;
}
.cyber-deck-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: rgba(6, 21, 16, 0.75);
  border-top: 1px solid rgba(16, 185, 129, 0.2);
  gap: 10px;
}
.btn-sim-run {
  background: linear-gradient(135deg, #10B981, #059669);
  color: #FFFFFF;
  border: none;
  padding: 9px 18px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.4);
  transition: all 0.2s;
}
.btn-sim-run:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 25px rgba(16, 185, 129, 0.6);
}
.sim-telemetry-badge {
  font-size: 11px;
  color: #94A3B8;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Visual Spotlight View */
.spotlight-view {
  position: relative;
  overflow: hidden;
  height: 380px;
}
.spotlight-view img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.spotlight-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(6, 17, 13, 0.95) 0%, rgba(6, 17, 13, 0.2) 60%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
}

/* Floating Gamified Badges */
.floating-cyber-badge {
  position: absolute;
  z-index: 10;
  background: rgba(11, 23, 19, 0.9);
  border: 1px solid rgba(16, 185, 129, 0.4);
  backdrop-filter: blur(12px);
  padding: 10px 16px;
  border-radius: 16px;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.3), 0 0 20px rgba(16, 185, 129, 0.2);
}
.fcb-top {
  top: -18px;
  right: -12px;
  animation: floatHud1 5s ease-in-out infinite;
}
.fcb-bottom {
  bottom: -18px;
  left: -12px;
  animation: floatHud2 6s ease-in-out infinite;
}
@keyframes floatHud1 {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-8px) rotate(1deg); }
}
@keyframes floatHud2 {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(8px) rotate(-1deg); }
}

/* --- Gamified Daily Quest Mini-Challenge Banner --- */
.quest-challenge-section {
  padding: 20px 5vw 60px;
  position: relative;
  z-index: 5;
}
.quest-hud-card {
  background: linear-gradient(135deg, #071A13 0%, #0E291F 60%, #0A1C17 100%);
  border: 1px solid rgba(16, 185, 129, 0.35);
  border-radius: 24px;
  padding: 28px 32px;
  color: #FFFFFF;
  box-shadow: 0 20px 45px -10px rgba(7, 26, 19, 0.35), 0 0 25px rgba(16, 185, 129, 0.12);
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 32px;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.quest-hud-card::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.15) 0%, transparent 70%);
  pointer-events: none;
}
.quest-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(245, 158, 11, 0.18);
  border: 1px solid rgba(245, 158, 11, 0.5);
  color: #FCD34D;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}
.quest-hud-title {
  font-size: 22px;
  font-weight: 900;
  margin-bottom: 8px;
  color: #FFFFFF;
  letter-spacing: -0.02em;
}
.quest-hud-desc {
  font-size: 14px;
  color: #94A3B8;
  line-height: 1.5;
  margin-bottom: 16px;
}
.quest-bounty-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(16, 185, 129, 0.18);
  border: 1px solid rgba(16, 185, 129, 0.4);
  padding: 6px 14px;
  border-radius: 12px;
  color: #34D399;
  font-size: 13px;
  font-weight: 800;
}
.quest-interactive-box {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  padding: 20px;
}
.quest-question-title {
  font-size: 14px;
  font-weight: 800;
  color: #E2E8F0;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.quest-options-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.quest-choice-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #CBD5E1;
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.quest-choice-btn:hover {
  background: rgba(16, 185, 129, 0.15);
  border-color: rgba(16, 185, 129, 0.5);
  color: #FFFFFF;
  transform: translateX(4px);
}
.quest-choice-btn.correct {
  background: rgba(16, 185, 129, 0.28) !important;
  border-color: #34D399 !important;
  color: #FFFFFF !important;
  box-shadow: 0 0 18px rgba(16, 185, 129, 0.4);
}
.quest-choice-btn.incorrect {
  background: rgba(239, 68, 68, 0.2) !important;
  border-color: #EF4444 !important;
  color: #FECACA !important;
}

/* --- Holographic Learning Pathways Cards --- */
.journey-grid-futuristic {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.journey-card-futuristic {
  background: #FFFFFF;
  border-radius: 26px;
  border: 1px solid var(--surface-border);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}
.journey-card-futuristic::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--card-accent, var(--cyber-emerald));
  transition: height 0.3s ease;
}
.journey-card-futuristic:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px -10px var(--card-glow, rgba(16, 185, 129, 0.25)), 0 0 1px 1px var(--card-accent, var(--cyber-emerald));
}
.journey-card-futuristic:hover::before {
  height: 6px;
}
.card-tier-cadet {
  --card-accent: #10B981;
  --card-glow: rgba(16, 185, 129, 0.25);
}
.card-tier-engineer {
  --card-accent: #06B6D4;
  --card-glow: rgba(6, 182, 212, 0.25);
}
.card-tier-visionary {
  --card-accent: #6366F1;
  --card-glow: rgba(99, 102, 241, 0.25);
}
.journey-badge-cyber {
  position: absolute;
  top: 16px;
  left: 16px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(8px);
  color: #FFFFFF;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  gap: 6px;
}
.journey-xp-tag {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(245, 158, 11, 0.9);
  color: #FFFFFF;
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 900;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

/* --- Gamified Skill Tree / Mastery Progression Ladder --- */
.progression-section {
  padding: 80px 5vw;
  background: radial-gradient(circle at 50% 50%, rgba(16, 185, 129, 0.06) 0%, transparent 70%), #F8FAFC;
  position: relative;
  overflow: hidden;
}
.skill-tree-container {
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
}
.skill-tree-line {
  position: absolute;
  top: 45px;
  left: 40px;
  right: 40px;
  height: 4px;
  background: linear-gradient(90deg, #10B981 0%, #06B6D4 50%, #6366F1 100%);
  border-radius: 4px;
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.4);
  z-index: 1;
}
.skill-tree-steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  position: relative;
  z-index: 2;
}
.skill-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.skill-node-orb {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 3px solid var(--node-color, #10B981);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08), 0 0 18px var(--node-glow, rgba(16, 185, 129, 0.3));
  margin-bottom: 14px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  cursor: pointer;
}
.skill-node-orb:hover {
  transform: translateY(-6px) scale(1.08);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.12), 0 0 25px var(--node-glow, rgba(16, 185, 129, 0.5));
}
.skill-level-pill {
  position: absolute;
  bottom: -8px;
  background: var(--node-color, #10B981);
  color: #FFFFFF;
  font-size: 9px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.skill-node-title {
  font-size: 14px;
  font-weight: 800;
  color: var(--slate-900);
  margin-bottom: 4px;
}
.skill-node-xp {
  font-size: 12px;
  font-weight: 700;
  color: var(--node-color, #10B981);
}

/* --- Live Gamified Hall of Fame (Leaderboard) --- */
.hall-of-fame-section {
  padding: 80px 5vw;
  background: #0A1713;
  color: #FFFFFF;
  position: relative;
  overflow: hidden;
}
.hall-of-fame-section::before {
  content: '';
  position: absolute;
  top: -100px; left: 50%; transform: translateX(-50%);
  width: 600px; height: 300px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.2) 0%, transparent 70%);
  pointer-events: none;
}
.leaderboard-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1050px;
  margin: 0 auto;
}
.leaderboard-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 22px;
  padding: 26px 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}
.leaderboard-card:hover {
  transform: translateY(-6px);
  border-color: rgba(16, 185, 129, 0.5);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4), 0 0 25px rgba(16, 185, 129, 0.25);
}
.leaderboard-card.rank-1 {
  border-color: rgba(245, 158, 11, 0.5);
  background: linear-gradient(180deg, rgba(245, 158, 11, 0.12) 0%, rgba(255, 255, 255, 0.04) 100%);
  box-shadow: 0 0 30px rgba(245, 158, 11, 0.2);
}
.rank-crown {
  font-size: 32px;
  margin-bottom: 8px;
  filter: drop-shadow(0 0 8px rgba(245, 158, 11, 0.6));
}
.leader-avatar-wrap {
  position: relative;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 3px solid #F59E0B;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  background: #0E241B;
  margin-bottom: 12px;
}
.leader-name {
  font-size: 17px;
  font-weight: 800;
  color: #FFFFFF;
  margin-bottom: 4px;
}
.leader-location {
  font-size: 12px;
  color: #94A3B8;
  margin-bottom: 10px;
}
.leader-xp-pill {
  background: rgba(16, 185, 129, 0.2);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #34D399;
  font-weight: 800;
  font-size: 13px;
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 10px;
}
.leader-project {
  font-size: 12px;
  color: #CBD5E1;
  background: rgba(0, 0, 0, 0.3);
  padding: 6px 12px;
  border-radius: 8px;
  width: 100%;
}

/* --- Futuristic Metrics HUD Grid --- */
.futuristic-metrics {
  background: linear-gradient(135deg, #052618 0%, #083321 100%);
  color: #FFFFFF;
  padding: 50px 5vw;
  border-top: 1px solid rgba(16, 185, 129, 0.2);
  border-bottom: 1px solid rgba(16, 185, 129, 0.2);
}
.metrics-hud-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.hud-metric-box {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: 18px;
  padding: 24px 20px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}
.hud-metric-box:hover {
  border-color: rgba(16, 185, 129, 0.6);
  background: rgba(255, 255, 255, 0.07);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2), 0 0 20px rgba(16, 185, 129, 0.2);
}
.hud-corner {
  position: absolute;
  top: 0; right: 0;
  width: 0; height: 0;
  border-style: solid;
  border-width: 0 24px 24px 0;
  border-color: transparent #10B981 transparent transparent;
}
.hud-value {
  font-size: 42px;
  font-weight: 900;
  color: #34D399;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 8px;
  font-feature-settings: "tnum";
}
.hud-label {
  font-size: 14px;
  font-weight: 800;
  color: #FFFFFF;
  margin-bottom: 4px;
}
.hud-sub {
  font-size: 12px;
  color: #94A3B8;
}

/* Floating Gamified XP Toast */
.xp-burst-toast {
  position: fixed;
  top: 90px;
  right: 24px;
  background: #0B1914;
  border: 1px solid #10B981;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4), 0 0 25px rgba(16, 185, 129, 0.4);
  border-radius: 16px;
  padding: 16px 22px;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  gap: 14px;
  z-index: 9999;
  animation: slideInRightGlow 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes slideInRightGlow {
  from { opacity: 0; transform: translateX(50px) scale(0.9); }
  to { opacity: 1; transform: translateX(0) scale(1); }
}

/* Responsive adjustments for futuristic theme */
@media (max-width: 1024px) {
  .hero-futuristic {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }
  .hero-copy-futuristic {
    margin: 0 auto 30px;
  }
  .hero-actions {
    justify-content: center;
  }
  .trust-row {
    justify-content: center;
  }
  .quest-hud-card {
    grid-template-columns: 1fr;
  }
  .journey-grid-futuristic,
  .leaderboard-grid,
  .metrics-hud-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .skill-tree-steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }
  .skill-tree-line {
    display: none;
  }
}

@media (max-width: 640px) {
  .hero-title-futuristic {
    font-size: 40px;
  }
  .journey-grid-futuristic,
  .leaderboard-grid,
  .metrics-hud-grid,
  .skill-tree-steps {
    grid-template-columns: 1fr;
  }
  .gamified-ticker-bar {
    font-size: 11px;
    padding: 6px 12px;
    justify-content: center;
  }
  .ticker-content { justify-content: center; }
  .ticker-content > span:not(.ticker-badge-live),
  .ticker-quest-link { display: none; }
  .ticker-controls {
    display: none;
  }
}

/* ==========================================================================
   COMMUNITY HUB & WHATSAPP-STYLE AGE-RESTRICTED CHAT SYSTEM
   ========================================================================== */

.community-wrapper {
  display: flex;
  flex-direction: column;
  gap: 14px;
  height: calc(100vh - 110px);
  min-height: 560px;
}

/* --- Top Strip --- */
.community-top-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #FFFFFF;
  border: 1px solid var(--surface-border);
  padding: 10px 20px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  flex-wrap: wrap;
  gap: 12px;
}
.community-age-tag {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  color: var(--slate-900);
}
.age-pill-indicator {
  color: var(--emerald);
  font-size: 12px;
  animation: beaconPulse 2s infinite ease-in-out;
}
.age-cohort-tag {
  background: var(--emerald-soft);
  color: var(--primary);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.community-top-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}
.moderator-age-switcher {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--slate-100);
  padding: 4px;
  border-radius: 12px;
}
.mod-switch-label {
  font-size: 11px;
  font-weight: 800;
  color: var(--slate-700);
  padding: 0 6px;
}
.mod-age-btn {
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 700;
  color: var(--slate-700);
  border-radius: 8px;
  transition: all 0.2s;
}
.mod-age-btn:hover {
  background: #FFFFFF;
  color: var(--primary);
}
.mod-age-btn.active {
  background: var(--primary);
  color: #FFFFFF;
  box-shadow: var(--shadow-sm);
}
.safety-badge {
  font-size: 12px;
  font-weight: 700;
  color: var(--slate-700);
  display: flex;
  align-items: center;
  gap: 6px;
}
.chat-tool-btn {
  background: var(--slate-100);
  border: 1px solid var(--surface-border);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.2s;
}
.chat-tool-btn:hover {
  background: #FFFFFF;
  border-color: var(--primary);
}

/* --- Chat Container --- */
.chat-container {
  display: flex;
  background: #FFFFFF;
  border: 1px solid var(--surface-border);
  border-radius: 20px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  flex: 1;
  position: relative;
}

/* --- Left Sidebar --- */
.chat-sidebar {
  width: 290px;
  background: #FAFCFB;
  border-right: 1px solid var(--surface-border);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  padding: 18px 14px;
  gap: 16px;
  flex-shrink: 0;
}
.sidebar-block-title {
  font-size: 11px;
  font-weight: 800;
  color: var(--slate-500);
  letter-spacing: 0.08em;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  padding: 0 6px;
}
.online-pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 8px var(--emerald);
}
.channel-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.channel-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  transition: all 0.2s;
  color: var(--slate-700);
  text-decoration: none;
  position: relative;
}
.channel-item:hover {
  background: rgba(16, 185, 129, 0.08);
  color: var(--primary);
}
.channel-item.active {
  background: var(--primary);
  color: #FFFFFF;
  box-shadow: 0 4px 14px rgba(10, 77, 46, 0.2);
}
.channel-item.active .channel-desc {
  color: rgba(255, 255, 255, 0.8);
}
.channel-item.active .channel-badge {
  background: #FFFFFF;
  color: var(--primary);
}
.channel-icon {
  font-size: 18px;
  flex-shrink: 0;
}
.channel-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}
.channel-name {
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.channel-desc {
  font-size: 11px;
  color: var(--slate-500);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.channel-badge {
  background: var(--slate-200);
  color: var(--slate-700);
  font-size: 11px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 999px;
  margin-left: auto;
}

/* Peers List */
.peers-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.peer-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s;
}
.peer-item:hover {
  background: rgba(0, 0, 0, 0.03);
}
.peer-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--emerald), var(--primary));
  color: #FFFFFF;
  font-size: 13px;
  font-weight: 800;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.staff-avatar {
  background: linear-gradient(135deg, #F59E0B, #D97706);
}
.peer-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}
.peer-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--slate-900);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.peer-sub {
  font-size: 11px;
  color: var(--slate-500);
}
.btn-quick-tag {
  background: transparent;
  border: 1px solid var(--slate-300);
  color: var(--slate-700);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  opacity: 0.6;
  transition: all 0.2s;
}
.btn-quick-tag:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #FFFFFF;
  opacity: 1;
}

/* --- Main Chat Column --- */
.chat-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: #F4F7F5;
  background-image: radial-gradient(rgba(10, 77, 46, 0.04) 1px, transparent 1px);
  background-size: 20px 20px;
  overflow: hidden;
  position: relative;
}

/* Chat Header */
.chat-header {
  height: 68px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--surface-border);
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 10;
  flex-shrink: 0;
}
.chat-header-info {
  display: flex;
  align-items: center;
  gap: 14px;
}
.chat-header-icon {
  font-size: 28px;
}
.chat-header-title {
  font-size: 17px;
  font-weight: 900;
  color: var(--slate-900);
  margin: 0;
}
.chat-header-desc {
  font-size: 12px;
  color: var(--slate-500);
  margin: 0;
}
.moderator-pill {
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: #B45309;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 999px;
  letter-spacing: 0.05em;
}
.btn-scroll-bottom {
  background: #FFFFFF;
  border: 1px solid var(--surface-border);
  color: var(--slate-700);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s;
}
.btn-scroll-bottom:hover {
  background: var(--slate-50);
  border-color: var(--primary);
  color: var(--primary);
}

/* Messages Stream */
.messages-stream {
  flex: 1;
  overflow-y: auto;
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.date-divider {
  text-align: center;
  margin: 10px 0 16px;
  position: relative;
}
.date-divider span {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--surface-border);
  padding: 4px 14px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  color: var(--slate-500);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

/* Message Rows */
.message-row {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  max-width: 80%;
  position: relative;
}
.msg-row-sent {
  align-self: flex-end;
  flex-direction: row-reverse;
}
.msg-row-received {
  align-self: flex-start;
}

.msg-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--slate-300);
  color: var(--slate-800);
  font-size: 13px;
  font-weight: 800;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}
.avatar-mod {
  background: linear-gradient(135deg, #F59E0B, #D97706);
  color: #FFFFFF;
}

/* Bubbles */
.msg-bubble {
  padding: 12px 16px;
  border-radius: 18px;
  position: relative;
  word-break: break-word;
  transition: all 0.2s ease;
  min-width: 140px;
}
.bubble-sent {
  background: linear-gradient(135deg, #0A4D2E 0%, #10B981 100%);
  color: #FFFFFF;
  border-bottom-right-radius: 4px;
  box-shadow: 0 4px 14px rgba(10, 77, 46, 0.2);
}
.bubble-sent .msg-meta {
  color: rgba(255, 255, 255, 0.85);
}
.bubble-sent .msg-ticks {
  color: #67E8F9;
  font-weight: 800;
  margin-left: 4px;
}

.bubble-received {
  background: #FFFFFF;
  color: var(--slate-900);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-bottom-left-radius: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}
.bubble-received .msg-meta {
  color: var(--slate-500);
}

.bubble-deleted {
  background: #F8FAFC !important;
  border: 1px dashed var(--slate-300) !important;
  color: var(--slate-500) !important;
}

/* Sender bar */
.msg-sender-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
}
.sender-name {
  font-size: 13px;
  font-weight: 800;
  color: var(--primary);
}
.sender-badge-mod {
  background: rgba(245, 158, 11, 0.18);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: #B45309;
  font-size: 9px;
  font-weight: 900;
  padding: 1px 6px;
  border-radius: 999px;
}
.sender-badge-lvl {
  background: var(--slate-100);
  color: var(--slate-700);
  font-size: 10px;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 999px;
}

/* Quoted Reply Box */
.msg-reply-quote {
  display: flex;
  gap: 8px;
  background: rgba(0, 0, 0, 0.05);
  padding: 6px 10px;
  border-radius: 8px;
  margin-bottom: 8px;
  cursor: pointer;
  border-left: 3px solid var(--emerald);
}
.bubble-sent .msg-reply-quote {
  background: rgba(255, 255, 255, 0.15);
  border-left-color: #67E8F9;
}
.quote-content {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.quote-author {
  font-size: 11px;
  font-weight: 800;
}
.quote-snippet {
  font-size: 11px;
  opacity: 0.85;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Message Text */
.msg-text {
  font-size: 14px;
  line-height: 1.5;
  word-wrap: break-word;
}
.bubble-sent .msg-text a {
  color: #67E8F9;
  text-decoration: underline;
}
.bubble-received .msg-text a {
  color: var(--primary);
  text-decoration: underline;
}

/* Tombstone */
.deleted-tombstone {
  display: flex;
  align-items: center;
  gap: 8px;
  font-style: italic;
  font-size: 12px;
}

/* Tagged Card in Chat */
.tagged-card {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #FFFFFF;
  border: 1px solid var(--surface-border);
  padding: 8px 12px;
  border-radius: 12px;
  margin-top: 8px;
  text-decoration: none;
  color: var(--slate-900);
  box-shadow: var(--shadow-sm);
  transition: all 0.2s;
}
.bubble-sent .tagged-card {
  background: rgba(255, 255, 255, 0.95);
  color: var(--slate-900);
}
.tagged-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
.tag-card-icon {
  font-size: 22px;
}
.tag-card-info {
  display: flex;
  flex-direction: column;
  flex: 1;
}
.tag-card-kicker {
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.08em;
  color: var(--primary);
}
.tag-card-title {
  font-size: 13px;
  font-weight: 800;
}
.tag-card-arrow {
  font-size: 14px;
  color: var(--primary);
  font-weight: 800;
}

/* Meta */
.msg-meta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  font-size: 10px;
  margin-top: 4px;
  gap: 2px;
}

/* Reactions Bar */
.msg-reactions-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 6px;
}
.reaction-pill {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--surface-border);
  border-radius: 999px;
  padding: 2px 7px;
  font-size: 11px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  transition: all 0.15s;
  color: var(--slate-800);
}
.bubble-sent .reaction-pill {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.3);
  color: #FFFFFF;
}
.reaction-pill:hover {
  transform: scale(1.1);
}
.reaction-pill.my-reaction {
  border-color: var(--emerald);
  background: var(--emerald-soft);
  color: var(--primary);
}

/* Hover Action Menu */
.msg-action-menu {
  position: absolute;
  top: -14px;
  right: 10px;
  display: none;
  background: #FFFFFF;
  border: 1px solid var(--surface-border);
  border-radius: 999px;
  padding: 2px 6px;
  box-shadow: var(--shadow-md);
  align-items: center;
  gap: 4px;
  z-index: 5;
}
.msg-row-sent .msg-action-menu {
  right: auto;
  left: 10px;
}
.message-row:hover .msg-action-menu {
  display: flex;
}
.msg-act-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 13px;
  padding: 4px;
  border-radius: 50%;
  transition: all 0.15s;
}
.msg-act-btn:hover {
  background: var(--slate-100);
  transform: scale(1.15);
}
.msg-act-delete:hover {
  background: #FEE2E2;
}

/* Highlight Pulse for target scrolled message */
.highlight-pulse {
  animation: highlightGlow 1.4s ease;
}
@keyframes highlightGlow {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.02); filter: drop-shadow(0 0 10px #10B981); }
}

/* Quick React Overlay */
.quick-react-overlay {
  position: fixed;
  z-index: 9999;
}
.quick-react-bar {
  background: #FFFFFF;
  border: 1px solid var(--surface-border);
  border-radius: 999px;
  padding: 6px 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  display: flex;
  gap: 8px;
  animation: popIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.quick-react-bar button {
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  transition: transform 0.15s;
}
.quick-react-bar button:hover {
  transform: scale(1.35);
}

/* Empty Placeholder */
.empty-chat-placeholder {
  margin: auto;
  text-align: center;
  color: var(--slate-500);
  padding: 40px 20px;
}

/* --- Composer --- */
.chat-composer {
  background: #FFFFFF;
  border-top: 1px solid var(--surface-border);
  padding: 12px 24px;
  position: relative;
  z-index: 10;
}
.composer-reply-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--emerald-soft);
  border-left: 3px solid var(--primary);
  padding: 6px 12px;
  border-radius: 8px;
  margin-bottom: 8px;
}
.btn-cancel-reply {
  background: none;
  border: none;
  color: var(--slate-500);
  font-size: 14px;
  cursor: pointer;
  padding: 2px 6px;
}
.btn-cancel-reply:hover {
  color: #DC2626;
}

.composer-attachments-bar {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
}
.tag-preview-pill {
  background: var(--slate-100);
  border: 1px solid var(--slate-300);
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 700;
  color: var(--slate-800);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.tag-preview-pill button {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--slate-500);
  font-weight: 800;
}

.composer-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.toolbar-actions {
  display: flex;
  gap: 8px;
}
.comp-tool-btn {
  background: var(--slate-100);
  border: 1px solid var(--surface-border);
  color: var(--slate-700);
  padding: 5px 11px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.2s;
}
.comp-tool-btn:hover {
  background: #FFFFFF;
  border-color: var(--primary);
  color: var(--primary);
}

/* Pickers Trays */
.emoji-picker-tray,
.item-picker-tray {
  position: absolute;
  bottom: 80px;
  left: 24px;
  background: #FFFFFF;
  border: 1px solid var(--surface-border);
  border-radius: 16px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
  padding: 14px;
  z-index: 100;
  width: 320px;
  max-height: 280px;
  overflow-y: auto;
  animation: popIn 0.2s ease;
}
.emoji-picker-header,
.picker-tray-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  font-weight: 800;
  color: var(--slate-500);
  margin-bottom: 10px;
}
.emoji-picker-header button,
.picker-tray-header button {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 13px;
  color: var(--slate-500);
}
.emoji-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 6px;
}
.em-btn {
  background: transparent;
  border: none;
  font-size: 20px;
  cursor: pointer;
  padding: 4px;
  border-radius: 6px;
  transition: transform 0.15s;
}
.em-btn:hover {
  transform: scale(1.3);
  background: var(--slate-100);
}
.picker-items-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.picker-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 12px;
  transition: all 0.15s;
}
.picker-item:hover {
  background: var(--slate-100);
  color: var(--primary);
}

/* Composer Form */
.composer-form {
  display: flex;
  align-items: flex-end;
  gap: 12px;
}
.textarea-wrapper {
  flex: 1;
  background: var(--slate-100);
  border: 1px solid var(--surface-border);
  border-radius: 14px;
  padding: 8px 14px;
  transition: all 0.2s;
}
.textarea-wrapper:focus-within {
  background: #FFFFFF;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}
.chat-input-textarea {
  width: 100%;
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: 14px;
  resize: none;
  outline: none;
  color: var(--slate-900);
  max-height: 140px;
}
.btn-chat-send {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--emerald));
  color: #FFFFFF;
  border: none;
  cursor: pointer;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.35);
  transition: all 0.2s;
}
.btn-chat-send:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 16px rgba(16, 185, 129, 0.5);
}
.btn-chat-send:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Mobile Responsiveness for Chat */
@media (max-width: 900px) {
  .chat-sidebar {
    width: 220px;
  }
}

.lesson-concept-illustration,
.activity-concept-illustration,
.quiz-concept-illustration,
.quiz-question-illustration {
  overflow: hidden;
  border: 1px solid var(--surface-border);
  border-radius: 18px;
  background: #f8fafc;
  margin: 0 0 24px;
}

.lesson-concept-illustration img,
.activity-concept-illustration img,
.quiz-concept-illustration img,
.quiz-question-illustration img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lesson-concept-illustration {
  aspect-ratio: 16 / 7;
}

.activity-concept-illustration {
  aspect-ratio: 16 / 6;
  margin-top: 18px;
  margin-bottom: 20px;
}

.quiz-concept-illustration {
  aspect-ratio: 16 / 6;
  margin-top: 18px;
  margin-bottom: 0;
}

.quiz-question-illustration {
  aspect-ratio: 16 / 7;
  margin-bottom: 18px;
}

.project-concept-illustration {
  overflow: hidden;
  border: 1px solid #1e293b;
  border-radius: 14px;
  background: #020617;
  aspect-ratio: 16 / 6;
  margin: 0 0 14px;
}

.project-concept-illustration img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lesson-concept-illustration figcaption {
  padding: 10px 14px;
  color: var(--slate-500);
  font-size: 12px;
  font-weight: 700;
  background: #fff;
}

@media (max-width: 768px) {
  .chat-sidebar {
    display: none;
  }
  .chat-header {
    padding: 0 16px;
  }
  .messages-stream {
    padding: 14px;
  }
  .message-row {
    max-width: 90%;
  }
  .chat-composer {
    padding: 10px 14px;
  }
}

/* ==========================================================================
   FUTURISTIC COURSES & PROJECTS DESIGN SYSTEM
   Modern cards with progress bars, status indicators & HUD analytics
   ========================================================================== */

.courses-page-container {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* --- Futuristic Header & HUD Strip --- */
.courses-header-hud {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  flex-wrap: wrap;
  padding: 24px 28px;
  background: radial-gradient(circle at 90% 10%, rgba(16, 185, 129, 0.08) 0%, transparent 60%), #FFFFFF;
  border: 1px solid var(--surface-border);
  border-radius: 24px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.04);
}
.courses-header-copy {
  max-width: 580px;
}
.courses-title {
  font-size: 32px;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: var(--slate-900);
  margin: 0 0 8px;
}
.courses-subtitle {
  font-size: 14px;
  color: var(--slate-500);
  line-height: 1.6;
  margin: 0;
}

/* HUD Stats Row */
.courses-hud-stats {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.hud-stat-pill {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--slate-50);
  border: 1px solid var(--surface-border);
  padding: 10px 16px;
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s;
}
.hud-stat-pill:hover {
  background: #FFFFFF;
  border-color: var(--primary);
  transform: translateY(-2px);
}
.hud-stat-icon {
  font-size: 22px;
}
.hud-stat-num {
  font-size: 18px;
  font-weight: 900;
  color: var(--slate-900);
  line-height: 1.1;
  display: block;
}
.hud-stat-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--slate-500);
}
.stat-active-track {
  border-color: rgba(2, 132, 199, 0.3);
  background: rgba(2, 132, 199, 0.04);
}
.stat-completed-track {
  border-color: rgba(16, 185, 129, 0.3);
  background: rgba(16, 185, 129, 0.04);
}

/* --- Filter & Search Toolbar --- */
.courses-filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.filter-chips-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.filter-chip {
  background: #FFFFFF;
  border: 1px solid var(--surface-border);
  color: var(--slate-700);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s;
}
.filter-chip:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-1px);
}
.filter-chip.active {
  background: var(--primary);
  color: #FFFFFF;
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(10, 77, 46, 0.25);
}

.course-search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #FFFFFF;
  border: 1px solid var(--surface-border);
  padding: 8px 16px;
  border-radius: 999px;
  width: 280px;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s;
}
.course-search-box:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
  width: 320px;
}
.course-search-box input {
  border: none;
  outline: none;
  background: transparent;
  font-size: 13px;
  width: 100%;
  color: var(--slate-900);
}

/* --- Futuristic Course Cards Grid --- */
.courses-futuristic-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.course-card-futuristic {
  background: #FFFFFF;
  border: 1px solid var(--surface-border);
  border-radius: 24px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.course-card-futuristic::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--card-border-color, #10B981);
  transition: height 0.2s ease;
}
.course-card-futuristic:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 36px -8px rgba(10, 77, 46, 0.12), 0 0 0 1px var(--card-border-color, #10B981);
}
.course-card-futuristic:hover::before {
  height: 6px;
}

/* Difficulty Colors */
.diff-builder { --card-border-color: #10B981; }
.diff-explorer { --card-border-color: #0284C7; }
.diff-innovator { --card-border-color: #6366F1; }

.course-card-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.course-difficulty-badge {
  font-size: 11px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.diff-badge-builder {
  background: rgba(16, 185, 129, 0.12);
  color: #065F46;
  border: 1px solid rgba(16, 185, 129, 0.3);
}
.diff-badge-explorer {
  background: rgba(2, 132, 199, 0.12);
  color: #075985;
  border: 1px solid rgba(2, 132, 199, 0.3);
}
.diff-badge-innovator {
  background: rgba(99, 102, 241, 0.12);
  color: #3730A3;
  border: 1px solid rgba(99, 102, 241, 0.3);
}

.course-status-pill {
  font-size: 10px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.status-pill-done {
  background: #ECFDF5;
  color: #059669;
  border: 1px solid #A7F3D0;
}
.status-pill-progress {
  background: #E0F2FE;
  color: #0369A1;
  border: 1px solid #BAE6FD;
}
.status-pill-new {
  background: var(--slate-100);
  color: var(--slate-500);
}

.course-icon-orb {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--slate-50);
  border: 1px solid var(--surface-border);
  display: grid;
  place-items: center;
  font-size: 24px;
  transition: transform 0.2s ease;
}
.course-card-futuristic:hover .course-icon-orb {
  transform: scale(1.15) rotate(4deg);
}

.course-card-body {
  flex: 1;
  margin-bottom: 16px;
}
.course-card-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--slate-900);
  line-height: 1.35;
  margin: 0 0 8px;
}
.course-card-title a {
  color: inherit;
  text-decoration: none;
}
.course-card-title a:hover {
  color: var(--primary);
}
.course-card-summary {
  font-size: 13px;
  color: var(--slate-500);
  line-height: 1.6;
  margin: 0;
}

/* --- Progress Bar Section --- */
.course-progress-section {
  background: #F8FAFC;
  border: 1px solid var(--surface-border);
  border-radius: 14px;
  padding: 10px 14px;
  margin-bottom: 16px;
}
.progress-info-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
  font-size: 11px;
}
.progress-label-text {
  color: var(--slate-600);
}
.progress-pct-num {
  font-size: 12px;
  font-weight: 800;
}
.text-done { color: #059669; }
.text-prog { color: #0284C7; }
.text-zero { color: var(--slate-400); }

.course-progress-track {
  width: 100%;
  height: 7px;
  background: var(--slate-200);
  border-radius: 999px;
  overflow: hidden;
  position: relative;
}
.course-progress-fill {
  height: 100%;
  border-radius: 999px;
  transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.fill-completed {
  background: linear-gradient(90deg, #10B981, #059669);
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.5);
}
.fill-in_progress {
  background: linear-gradient(90deg, #0284C7, #38BDF8);
  box-shadow: 0 0 8px rgba(2, 132, 199, 0.5);
}
.fill-not_started {
  background: transparent;
}

/* --- Footer Actions --- */
.course-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--surface-border);
  margin-top: auto;
}
.course-meta-tags {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 700;
  color: var(--slate-500);
}
.course-action-btn {
  font-size: 12px;
  font-weight: 800;
  padding: 8px 16px;
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.btn-action-completed {
  background: var(--emerald-soft);
  color: #065F46;
  border: 1px solid rgba(16, 185, 129, 0.3);
}
.btn-action-completed:hover {
  background: #10B981;
  color: #FFFFFF;
}
.btn-action-in_progress {
  background: linear-gradient(135deg, #0284C7, #0369A1);
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.3);
}
.btn-action-in_progress:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(2, 132, 199, 0.45);
}
.btn-action-not_started {
  background: var(--slate-100);
  color: var(--slate-700);
}
.btn-action-not_started:hover {
  background: var(--primary);
  color: #FFFFFF;
}

/* Empty State */
.empty-courses-state {
  text-align: center;
  padding: 60px 20px;
  background: #FFFFFF;
  border: 1px dashed var(--slate-300);
  border-radius: 24px;
  color: var(--slate-500);
}

/* --- Futuristic Projects Catalog Grid Styles --- */
.projects-catalog-section {
  margin-bottom: 36px;
}
.projects-catalog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.projects-catalog-title {
  font-size: 20px;
  font-weight: 900;
  color: var(--slate-900);
  display: flex;
  align-items: center;
  gap: 10px;
}
.projects-grid-futuristic {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.project-card-futuristic {
  background: #FFFFFF;
  border: 1.5px solid var(--surface-border);
  border-radius: 20px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}
.project-card-futuristic:hover {
  transform: translateY(-4px);
  border-color: #6366F1;
  box-shadow: 0 12px 28px rgba(99, 102, 241, 0.12);
}
.project-card-futuristic.active-workspace {
  border-color: #10B981;
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.03) 0%, #FFFFFF 100%);
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.25), 0 8px 24px rgba(16, 185, 129, 0.12);
}

.project-card-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.project-xp-bounty {
  background: rgba(245, 158, 11, 0.14);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: #B45309;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 999px;
}
.project-card-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--slate-900);
  margin-bottom: 6px;
  line-height: 1.3;
}
.project-card-summary {
  font-size: 12px;
  color: var(--slate-500);
  line-height: 1.5;
  margin-bottom: 16px;
  flex: 1;
}

/* Responsive Grid for Courses & Projects */
@media (max-width: 1024px) {
  .courses-futuristic-grid,
  .projects-grid-futuristic {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 680px) {
  .courses-futuristic-grid,
  .projects-grid-futuristic {
    grid-template-columns: 1fr;
  }
  .courses-header-hud {
    flex-direction: column;
  }
  .course-search-box {
    width: 100%;
  }
}

/* ================================================================
   MODERN MARKETING PAGES + SHARED NAVIGATION / FOOTER
   ================================================================ */
.marketing-modern {
  --mm-ink: #071813;
  --mm-green: #087a4c;
  --mm-mint: #dff8ed;
  --mm-muted: #52645e;
  --mm-line: rgba(7,24,19,.12);
  color: var(--mm-ink);
}
.marketing-modern .gamified-ticker-bar { min-height: 38px; padding: 7px max(24px, calc((100vw - 1180px) / 2)); background: var(--mm-ink); border: 0; color: #d9e7e1; }
.marketing-modern .gamified-ticker-bar::before { display: none; }
.marketing-modern .ticker-content { gap: 20px; font-size: 12px; letter-spacing: 0; }
.marketing-modern .ticker-badge-live { color: #89f0bd; font-size: 10px; letter-spacing: .12em; }
.marketing-modern .ticker-quest-link { color: #fff; border-bottom-color: rgba(255,255,255,.45); }
.marketing-modern .ticker-location { color: #99aaa4; font-size: 11px; }
.marketing-modern .topbar { height: 78px; padding: 0 max(24px, calc((100vw - 1180px) / 2)); background: rgba(255,255,255,.9); border-color: rgba(7,24,19,.09); backdrop-filter: blur(18px); }
.marketing-modern .brand img { height: 42px; }.marketing-modern .brand-info b { font-size: 17px; }.marketing-modern .brand-info small { font-size: 10px; }
.marketing-modern .topbar nav { gap: 24px; }.marketing-modern .topbar nav a { position: relative; color: #3e5049; }
.marketing-modern .topbar nav a.active::after { content: ''; position: absolute; left: 0; right: 0; bottom: -28px; height: 2px; background: #12b978; }
.marketing-modern .btn-quest-start { background: var(--mm-ink); box-shadow: none; border-radius: 12px; }.marketing-modern .btn-quest-start span { display: none; }

.mm-page-hero { position: relative; padding: 78px 0 !important; text-align: left !important; background: linear-gradient(rgba(7,24,19,.035) 1px,transparent 1px),linear-gradient(90deg,rgba(7,24,19,.035) 1px,transparent 1px),radial-gradient(circle at 80% 20%,rgba(18,185,120,.18),transparent 35%),#f8fcfa !important; background-size: 48px 48px,48px 48px,auto,auto !important; overflow: hidden; }
.mm-page-hero-inner { width: min(1180px,calc(100% - 48px)); margin: 0 auto; display: grid; grid-template-columns: .95fr 1.05fr; gap: 72px; align-items: center; }
.mm-page-hero-copy { min-width: 0; }.mm-page-hero-copy .kicker { display: inline-flex; margin: 0 0 18px !important; padding: 0 !important; border-radius: 0 !important; color: var(--mm-green) !important; background: transparent !important; font: 700 10px 'JetBrains Mono',monospace !important; letter-spacing: .13em !important; }
.mm-page-hero-copy h1 { margin: 0 0 22px !important; color: var(--mm-ink) !important; font-size: clamp(42px,4.8vw,64px) !important; line-height: 1.02 !important; letter-spacing: -.05em !important; }
.mm-page-hero-copy h1 span { color: var(--mm-green) !important; background: none !important; -webkit-text-fill-color: currentColor !important; }
.mm-page-hero-copy > p { max-width: 620px !important; margin: 0 0 30px !important; color: var(--mm-muted) !important; font-size: 16px !important; line-height: 1.7 !important; }
.mm-page-hero-copy > div { justify-content: flex-start !important; }
.mm-page-hero-copy .btn { min-height: 50px; padding: 0 22px !important; border-radius: 12px !important; box-shadow: none !important; }
.mm-page-hero-copy .btn-primary { color: #fff; background: var(--mm-ink) !important; border-color: var(--mm-ink) !important; }
.mm-page-hero-visual { position: relative; aspect-ratio: 1.22; overflow: hidden; border-radius: 26px; background: #dce9e3; box-shadow: 0 30px 70px rgba(7,24,19,.17); }
.mm-page-hero-visual::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg,transparent 50%,rgba(3,19,13,.75)); }
.mm-page-hero-visual img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mm-page-hero-visual > span { position: absolute; z-index: 2; left: 24px; right: 24px; bottom: 22px; display: flex; align-items: end; justify-content: space-between; gap: 15px; color: #fff; }
.mm-page-hero-visual b,.mm-page-hero-visual small { display: block; }.mm-page-hero-visual b { font-size: 17px; }.mm-page-hero-visual small { color: #bdd0c8; font-size: 10px; text-align: right; }

.marketing-modern main > .section { padding-block: 92px !important; }
.marketing-modern main .kicker { color: var(--mm-green); font-family: 'JetBrains Mono',monospace; font-size: 10px; letter-spacing: .12em; }
.marketing-modern main h2 { color: var(--mm-ink) !important; letter-spacing: -.035em !important; }
.marketing-modern main .mm-dark-cta h2 { color: #fff !important; }
.marketing-modern main .mm-dark-cta p { color: rgba(255,255,255,.82) !important; }
.marketing-modern main [style*="border-radius:20px"],.marketing-modern main [style*="border-radius:24px"] { border-color: var(--mm-line) !important; box-shadow: 0 15px 40px rgba(7,24,19,.07) !important; }
.marketing-modern main input,.marketing-modern main select,.marketing-modern main textarea { min-height: 48px; border-color: rgba(7,24,19,.18) !important; border-radius: 10px !important; }
.marketing-modern main input:focus,.marketing-modern main select:focus,.marketing-modern main textarea:focus { border-color: var(--mm-green) !important; box-shadow: 0 0 0 3px rgba(18,185,120,.14); }
.marketing-modern :is(a,button,input,select,textarea):focus-visible { outline: 3px solid #35cedc; outline-offset: 3px; }

/* The shared footer is deliberately quieter than the page content. */
.footer { background: #06120f; border-top: 0; }
.footer::before { height: 3px; background: linear-gradient(90deg,#0a7d4e,#12b978,#6de0ec); }
.footer::after { top: -300px; right: -150px; left: auto; transform: none; width: 600px; height: 600px; border: 1px solid rgba(109,224,236,.08); border-radius: 50%; background: transparent; }
.footer-main { width: min(1180px,calc(100% - 48px)); grid-template-columns: 1.6fr repeat(3,1fr); gap: clamp(36px,6vw,80px); padding: 72px 0 54px; }
.footer-brand-logo img { filter: none; width: 48px; height: 48px; }.footer-brand-name { font-size: 17px; }.footer-brand-tagline { color: #71ddb0; }
.footer-brand-desc { max-width: 330px; color: #84968f; font-size: 13px; }.footer-col-title { color: #91a39c; padding: 0; margin-bottom: 20px; }.footer-col-title::after { display: none; }
.footer-links { gap: 12px; }.footer-links a { min-height: 28px; color: #a7b7b1; font-size: 13px; }.footer-links a::before { display: none; }.footer-links a:hover { color: #82edb7; transform: none; }
.footer-social-btn { width: 42px; height: 42px; border-radius: 50%; background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.1); }
.footer-social-links { display: none; }
.footer-divider { border-color: rgba(255,255,255,.09); }.footer-copy { width: min(1180px,calc(100% - 48px)); padding: 20px 0 26px; color: #6f837b; }.footer-copy-right span { color: #82edb7; }

@media (max-width: 900px) {
  .marketing-modern .topbar nav { gap: 14px; }.marketing-modern .topbar nav a { font-size: 12px; }.marketing-modern .brand-info small { display: none; }
  .mm-page-hero-inner { grid-template-columns: 1fr; gap: 42px; }.mm-page-hero-copy { max-width: 700px; }.mm-page-hero-visual { width: min(100%,700px); aspect-ratio: 1.65; }
  .marketing-modern main [style*="grid-template-columns:1fr 1fr"],.marketing-modern main [style*="grid-template-columns:1.2fr 0.8fr"],.marketing-modern main [style*="grid-template-columns:0.9fr 1.1fr"] { grid-template-columns: 1fr !important; }
  .footer-main { grid-template-columns: 1.4fr 1fr 1fr; }.footer-brand-col { grid-column: 1 / -1; }
}
@media (max-width: 768px) {
  .marketing-modern .topbar nav { display: none; }
  .marketing-modern .topbar nav.mobile-open { display: flex; top: calc(100% + 1px); padding: 18px 20px 24px; gap: 3px; background: #fff; box-shadow: 0 20px 35px rgba(7,24,19,.13); }
  .marketing-modern .topbar nav.mobile-open a { width: 100%; min-height: 48px; display: flex; align-items: center; padding: 0 12px; border-radius: 9px; font-size: 14px; }
  .marketing-modern .topbar nav.mobile-open a.active { color: #087a4c; background: #eaf8f1; }.marketing-modern .topbar nav a.active::after { display: none; }
  .marketing-modern .topbar-mobile-btn { width: 44px; height: 44px; color: var(--mm-ink); background: #eef4f1; }
  .marketing-modern main [style*="grid-template-columns"] { grid-template-columns: 1fr !important; }
  .marketing-modern main [style*="min-width:"] { min-width: 0 !important; }
  .post-exam-lab-grid { grid-template-columns: 1fr !important; }
}
@media (max-width: 640px) {
  .marketing-modern .gamified-ticker-bar { min-height: 34px; padding: 6px 16px; }.marketing-modern .ticker-content > span:not(.ticker-badge-live),.marketing-modern .ticker-location { display: none; }.marketing-modern .ticker-quest-link { display: inline; margin-left: auto; }
  .marketing-modern .topbar { height: 68px; padding-inline: 16px; }.marketing-modern .brand { gap: 8px; }.marketing-modern .brand img { width: 38px; height: 38px; flex-basis: 38px; }.marketing-modern .brand-info b { font-size: 14px; }.marketing-modern .header-actions .btn-ghost { min-height: 40px; }
  .mm-page-hero { padding: 56px 0 62px !important; }.mm-page-hero-inner { width: calc(100% - 32px); gap: 36px; }.mm-page-hero-copy h1 { font-size: clamp(38px,11.5vw,50px) !important; }.mm-page-hero-copy > p { font-size: 15px !important; }
  .mm-page-hero-copy > div { flex-direction: column; align-items: stretch; }.mm-page-hero-copy .btn { width: 100%; }.mm-page-hero-visual { aspect-ratio: 1; border-radius: 20px; }
  .marketing-modern main > .section { padding: 68px 16px !important; }.marketing-modern main > section:not(.mm-page-hero) { overflow: hidden; }
  .marketing-modern main [style*="padding:36px"],.marketing-modern main [style*="padding:32px"],.marketing-modern main [style*="padding:30px"],.marketing-modern main [style*="padding:28px"] { padding: 22px !important; }
  .marketing-modern main [style*="minmax(320px"] { grid-template-columns: 1fr !important; }
  .footer-main { width: calc(100% - 32px); grid-template-columns: 1fr 1fr; gap: 38px 24px; padding: 58px 0 42px; }.footer-brand-col { grid-column: 1/-1; }.footer-main > div:last-child { grid-column: 1/-1; }.footer-copy { width: calc(100% - 32px); align-items: flex-start; text-align: left; }.footer-copy-left { align-items: flex-start; }.footer-copy-right { display: none; }
}

/* ==========================================================================
   GLOBAL MOBILE RESPONSIVENESS PATCH
   Keeps existing Blade pages usable on phones despite legacy inline styles.
   ========================================================================== */
html {
  overflow-x: hidden;
}

body,
.app-body,
.app-workspace,
.workspace-content {
  min-width: 0;
  overflow-x: hidden;
}

img,
video,
canvas,
svg {
  max-width: 100%;
}

pre,
code,
textarea,
input,
select {
  max-width: 100%;
}

.workspace-content > * {
  max-width: 100%;
}

@media (max-width: 900px) {
  .workspace-content {
    padding: 20px;
  }

  .app-header {
    gap: 12px;
  }

  .header-user-status {
    flex-shrink: 0;
  }

  .dashboard-hero-banner,
  .code-lab-layout,
  .calc-container,
  .chat-container,
  .continue-grid,
  .progress-stat-grid,
  .journey-grid,
  .impact-grid {
    grid-template-columns: 1fr !important;
  }

  [style*="grid-template-columns:1fr 1fr"],
  [style*="grid-template-columns: 1fr 1fr"],
  [style*="grid-template-columns:1fr 1.2fr"],
  [style*="grid-template-columns: 1fr 1.2fr"],
  [style*="grid-template-columns:1fr 280px"],
  [style*="grid-template-columns: 1fr 280px"],
  [style*="grid-template-columns:auto 1fr"],
  [style*="grid-template-columns: auto 1fr"],
  [style*="grid-template-columns:44px 1fr auto"],
  [style*="grid-template-columns: 44px 1fr auto"],
  [style*="grid-template-columns:1.2fr 0.8fr"],
  [style*="grid-template-columns: 1.2fr 0.8fr"],
  [style*="grid-template-columns:1.1fr 0.9fr"],
  [style*="grid-template-columns: 1.1fr 0.9fr"],
  [style*="grid-template-columns:repeat(2"],
  [style*="grid-template-columns: repeat(2"],
  [style*="grid-template-columns:repeat(3"],
  [style*="grid-template-columns: repeat(3"],
  [style*="grid-template-columns:repeat(4"],
  [style*="grid-template-columns: repeat(4"] {
    grid-template-columns: 1fr !important;
  }

  [style*="minmax(320px"],
  [style*="minmax(300px"],
  [style*="minmax(280px"],
  [style*="minmax(260px"] {
    grid-template-columns: 1fr !important;
  }

  [style*="max-width:1280px"],
  [style*="max-width: 1280px"],
  [style*="max-width:1150px"],
  [style*="max-width: 1150px"],
  [style*="max-width:1100px"],
  [style*="max-width: 1100px"],
  [style*="max-width:1050px"],
  [style*="max-width: 1050px"],
  [style*="max-width:850px"],
  [style*="max-width: 850px"],
  [style*="max-width:700px"],
  [style*="max-width: 700px"] {
    max-width: 100% !important;
  }

  .admin-table-wrap,
  [style*="overflow-x:auto"],
  [style*="overflow-x: auto"] {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
  }

  .admin-table,
  table {
    min-width: 640px;
  }

  .lesson-step-ribbon {
    grid-template-columns: 1fr !important;
  }

  .lesson-concept-illustration {
    aspect-ratio: 16 / 9;
  }

  .activity-concept-illustration,
  .quiz-concept-illustration,
  .quiz-question-illustration,
  .project-concept-illustration,
  .post-exam-lab-grid img {
    aspect-ratio: 16 / 9 !important;
  }

  .chat-container {
    display: flex;
    min-height: calc(100vh - 120px);
  }

  .message-row {
    max-width: 94%;
  }
}

@media (max-width: 768px) {
  .app-shell {
    display: block;
  }

  .app-header {
    min-height: 64px;
    height: auto;
    padding: 10px 14px 10px 66px;
    align-items: center;
  }

  .header-search-wrap {
    flex: 1;
    min-width: 0;
  }

  .header-search,
  .header-search:focus-within {
    width: 100%;
    max-width: none;
  }

  .header-search input {
    min-width: 0;
  }

  .header-user-status .user-avatar,
  .search-kbd {
    display: none !important;
  }

  .workspace-content {
    padding: 14px;
  }

  h1,
  [style*="font-size:64px"],
  [style*="font-size: 64px"] {
    font-size: 30px !important;
    line-height: 1.15 !important;
  }

  h2,
  [style*="font-size:38px"],
  [style*="font-size: 38px"],
  [style*="font-size:36px"],
  [style*="font-size: 36px"] {
    font-size: 24px !important;
    line-height: 1.2 !important;
  }

  [style*="padding:36px"],
  [style*="padding: 36px"],
  [style*="padding:32px"],
  [style*="padding: 32px"],
  [style*="padding:30px"],
  [style*="padding: 30px"],
  [style*="padding:28px"],
  [style*="padding: 28px"] {
    padding: 18px !important;
  }

  [style*="border-radius:28px"],
  [style*="border-radius: 28px"],
  [style*="border-radius:26px"],
  [style*="border-radius: 26px"],
  [style*="border-radius:24px"],
  [style*="border-radius: 24px"],
  [style*="border-radius:20px"],
  [style*="border-radius: 20px"] {
    border-radius: 16px !important;
  }

  [style*="display:flex"],
  [style*="display: flex"] {
    min-width: 0;
  }

  [style*="justify-content:space-between"],
  [style*="justify-content: space-between"] {
    gap: 10px;
  }

  .dashboard-section-title,
  .hero-actions,
  .search-dropdown-footer,
  .composer-toolbar,
  .composer-form,
  .footer-copy,
  [style*="align-items:center"][style*="justify-content:space-between"],
  [style*="align-items: center"][style*="justify-content: space-between"] {
    flex-wrap: wrap !important;
  }

  .btn,
  button,
  input,
  select,
  textarea {
    min-height: 44px;
  }

  .btn {
    white-space: normal;
    text-align: center;
  }

  .step-tab-btn {
    padding: 12px !important;
    gap: 10px;
  }

  .step-text small {
    display: none;
  }

  .activity-task-card,
  .quiz-card,
  .stat-card,
  .continue-card,
  .calc-card,
  .code-problem-panel {
    min-width: 0;
  }

  .quiz-option-label,
  .activity-option-btn {
    align-items: flex-start !important;
    white-space: normal;
    word-break: break-word;
  }

  .early-match-board {
    grid-template-columns: 1fr !important;
  }

  .post-exam-lab-grid {
    grid-template-columns: 1fr !important;
  }

  .projects-ide-wrapper {
    min-height: auto !important;
  }

  .missions-sidebar {
    max-height: none !important;
    width: 100% !important;
  }

  .missions-list {
    max-width: 100%;
  }

  .mission-item {
    min-width: 88px;
  }

  .workspace-header {
    align-items: flex-start !important;
  }

  .ws-title {
    white-space: normal !important;
  }

  .code-textarea,
  #postExamLabCode {
    min-height: 220px !important;
    font-size: 13px !important;
  }

  .chat-container {
    border-radius: 0 !important;
    min-height: calc(100vh - 92px);
  }

  .chat-header {
    height: auto;
    min-height: 60px;
    padding: 10px 12px;
  }

  .messages-stream {
    padding: 12px;
  }

  .emoji-picker-tray,
  .item-picker-tray {
    left: 10px;
    right: 10px;
    width: auto;
  }
}

@media (max-width: 480px) {
  .workspace-content {
    padding: 10px;
  }

  .sidebar-hamburger {
    top: 12px;
    left: 12px;
  }

  .app-header {
    padding-left: 62px;
  }

  .streak-pill {
    display: none;
  }

  .search-dropdown {
    position: fixed;
    top: 68px;
    left: 10px;
    right: 10px;
    width: auto;
    max-width: none;
  }

  .search-chips-grid,
  .early-choice-grid,
  .early-sound-pad {
    grid-template-columns: 1fr !important;
  }

  .lesson-concept-illustration,
  .activity-concept-illustration {
    margin-bottom: 16px;
  }

  .admin-table,
  table {
    min-width: 560px;
  }
}
