/* ============================================================
   STUDYQUEST — CORE STYLES
   RPG Gaming Aesthetic | Dark Neon | Outfit + Space Grotesk
   ============================================================ */

/* ── CSS Variables ── */
:root {
  /* Core Palette */
  --bg-primary:    #0a0a0f;
  --bg-secondary:  #0f0f1a;
  --bg-card:       #13131f;
  --bg-card-hover: #1a1a2e;
  --bg-elevated:   #1e1e30;

  /* Neon Accents */
  --neon-blue:     #00d4ff;
  --neon-purple:   #7c3aed;
  --neon-pink:     #f72585;
  --neon-green:    #39ff14;
  --neon-gold:     #ffd700;
  --neon-orange:   #ff6b2b;

  /* Gradients */
  --grad-primary:  linear-gradient(135deg, #7c3aed, #00d4ff);
  --grad-gold:     linear-gradient(135deg, #ffd700, #ff6b2b);
  --grad-pink:     linear-gradient(135deg, #f72585, #7c3aed);
  --grad-green:    linear-gradient(135deg, #39ff14, #00d4ff);
  --grad-fire:     linear-gradient(135deg, #ff6b2b, #f72585);

  /* Text */
  --text-primary:  #f0f0ff;
  --text-secondary:#a0a0c0;
  --text-muted:    #606080;
  --text-accent:   #00d4ff;

  /* Borders */
  --border-subtle: rgba(255,255,255,0.06);
  --border-glow:   rgba(0,212,255,0.3);
  --border-purple: rgba(124,58,237,0.4);

  /* Shadows */
  --shadow-card:   0 4px 24px rgba(0,0,0,0.4);
  --shadow-glow:   0 0 20px rgba(0,212,255,0.2);
  --shadow-purple: 0 0 20px rgba(124,58,237,0.3);
  --shadow-gold:   0 0 20px rgba(255,215,0,0.3);

  /* Spacing */
  --space-xs:  4px;
  --space-sm:  8px;
  --space-md:  16px;
  --space-lg:  24px;
  --space-xl:  32px;
  --space-2xl: 48px;
  --space-3xl: 64px;

  /* Radius */
  --radius-sm:  8px;
  --radius-md:  12px;
  --radius-lg:  16px;
  --radius-xl:  24px;
  --radius-full: 9999px;

  /* Typography */
  --font-display: 'Outfit', sans-serif;
  --font-body:    'Space Grotesk', sans-serif;
  --font-mono:    'Space Mono', monospace;

  /* Sidebar */
  --sidebar-width: 260px;
  --header-height: 60px;

  /* Transitions */
  --transition-fast:   0.15s ease;
  --transition-normal: 0.25s ease;
  --transition-slow:   0.4s ease;
}

/* Light Theme Override */
[data-theme="light"] {
  --bg-primary:    #f0f2ff;
  --bg-secondary:  #e8eaf6;
  --bg-card:       #ffffff;
  --bg-card-hover: #f5f5ff;
  --bg-elevated:   #eeeeff;
  --text-primary:  #1a1a2e;
  --text-secondary:#4a4a6a;
  --text-muted:    #8888aa;
  --border-subtle: rgba(0,0,0,0.08);
  --shadow-card:   0 4px 24px rgba(0,0,0,0.1);
}

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
}

a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea, select { font-family: inherit; }
img { max-width: 100%; }
ul { list-style: none; }

/* ── Particle Canvas ── */
#particle-canvas {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.4;
}

/* ── App Shell ── */
#app {
  display: flex;
  min-height: 100vh;
  position: relative;
  z-index: 1;
}

/* ── Sidebar ── */
.sidebar {
  width: var(--sidebar-width);
  background: var(--bg-secondary);
  border-right: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0;
  height: 100vh;
  z-index: 100;
  overflow-y: auto;
  overflow-x: hidden;
  transition: transform var(--transition-normal);
  scrollbar-width: thin;
  scrollbar-color: var(--border-subtle) transparent;
}

.sidebar::-webkit-scrollbar { width: 4px; }
.sidebar::-webkit-scrollbar-track { background: transparent; }
.sidebar::-webkit-scrollbar-thumb { background: var(--border-subtle); border-radius: 2px; }

.sidebar-logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-lg) var(--space-md);
  border-bottom: 1px solid var(--border-subtle);
}

.logo-icon {
  font-size: 28px;
  filter: drop-shadow(0 0 8px rgba(0,212,255,0.6));
}

.logo-main {
  display: block;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.5px;
}

.logo-sub {
  display: block;
  font-size: 10px;
  color: var(--text-muted);
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* Sidebar Player Card */
.sidebar-player {
  padding: var(--space-md);
  border-bottom: 1px solid var(--border-subtle);
}

.player-avatar {
  font-size: 36px;
  text-align: center;
  margin-bottom: var(--space-sm);
  filter: drop-shadow(0 0 10px rgba(124,58,237,0.5));
}

.player-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-sm);
}

.player-name {
  font-weight: 700;
  font-size: 14px;
  color: var(--text-primary);
}

.player-level-badge {
  display: flex;
  align-items: center;
  gap: 2px;
  background: var(--grad-primary);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 700;
}

.level-label { color: rgba(255,255,255,0.7); }
.level-num { color: white; }

.player-xp-mini { display: flex; flex-direction: column; gap: 4px; }

.xp-bar-mini {
  height: 4px;
  background: var(--border-subtle);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.xp-fill-mini {
  height: 100%;
  background: var(--grad-primary);
  border-radius: var(--radius-full);
  transition: width 0.6s ease;
}

.xp-text-mini {
  font-size: 10px;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

/* Nav Links */
.nav-links {
  padding: var(--space-md) 0;
  flex: 1;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 10px var(--space-md);
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  border-radius: 0;
  transition: all var(--transition-fast);
  position: relative;
  border-left: 3px solid transparent;
}

.nav-link:hover {
  color: var(--text-primary);
  background: var(--border-subtle);
}

.nav-link.active {
  color: var(--neon-blue);
  background: rgba(0,212,255,0.08);
  border-left-color: var(--neon-blue);
}

.nav-link i {
  width: 18px;
  text-align: center;
  font-size: 15px;
}

/* Sidebar Tools */
.sidebar-tools {
  padding: var(--space-md);
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.tool-btn {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 8px var(--space-sm);
  color: var(--text-muted);
  font-size: 13px;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  width: 100%;
}

.tool-btn:hover {
  color: var(--text-primary);
  background: var(--border-subtle);
}

.tool-btn i { width: 16px; text-align: center; }

/* ── Mobile Header ── */
.mobile-header {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-height);
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-subtle);
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--space-md);
  z-index: 99;
}

.hamburger {
  color: var(--text-primary);
  font-size: 20px;
  padding: var(--space-sm);
}

.mobile-logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 16px;
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.mobile-xp {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 13px;
  font-weight: 600;
}

.mobile-level {
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.mobile-streak { color: var(--neon-orange); }

/* ── Main Content ── */
.main-content {
  margin-left: var(--sidebar-width);
  flex: 1;
  min-height: 100vh;
  padding: var(--space-xl);
  max-width: calc(100vw - var(--sidebar-width));
}

/* ── Screens ── */
.screen { display: none; animation: screenFadeIn 0.3s ease; }
.screen.active { display: block; }

@keyframes screenFadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Screen Headers ── */
.screen-header {
  margin-bottom: var(--space-xl);
}

.screen-title {
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: var(--space-xs);
}

.screen-subtitle {
  color: var(--text-secondary);
  font-size: 15px;
}

.back-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  color: var(--text-secondary);
  font-size: 14px;
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  margin-bottom: var(--space-md);
  transition: all var(--transition-fast);
}

.back-btn:hover {
  color: var(--neon-blue);
  border-color: var(--neon-blue);
}

/* ── Dashboard Hero ── */
.dashboard-hero {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--space-xl);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  margin-bottom: var(--space-xl);
  position: relative;
  overflow: hidden;
}

.dashboard-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(124,58,237,0.15) 0%, transparent 70%);
  pointer-events: none;
}

.greeting-tag {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  background: rgba(0,212,255,0.1);
  border: 1px solid rgba(0,212,255,0.2);
  color: var(--neon-blue);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  margin-bottom: var(--space-md);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 40px);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: var(--space-sm);
}

.gradient-text {
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  color: var(--text-secondary);
  font-size: 15px;
  margin-bottom: var(--space-lg);
  font-style: italic;
}

.hero-stats-row {
  display: flex;
  gap: var(--space-lg);
  flex-wrap: wrap;
}

.hero-stat {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.hero-stat .stat-icon { font-size: 24px; }

.hero-stat .stat-val {
  display: block;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1;
}

.hero-stat .stat-lbl {
  display: block;
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Hero Right */
.hero-right {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
  min-width: 160px;
}

.hero-avatar-container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.avatar-ring {
  position: absolute;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  border: 2px solid transparent;
  background: var(--grad-primary) border-box;
  -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: destination-out;
  mask-composite: exclude;
  animation: spinRing 8s linear infinite;
}

.hero-avatar {
  font-size: 52px;
  filter: drop-shadow(0 0 16px rgba(124,58,237,0.6));
  position: relative;
  z-index: 1;
}

.avatar-level-badge {
  position: absolute;
  bottom: -4px;
  right: -4px;
  background: var(--grad-gold);
  color: #000;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: var(--radius-full);
  z-index: 2;
}

.xp-progress-container { width: 100%; }

.xp-label-row {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.xp-bar-large {
  height: 8px;
  background: var(--border-subtle);
  border-radius: var(--radius-full);
  overflow: hidden;
  position: relative;
}

.xp-fill-large {
  height: 100%;
  background: var(--grad-primary);
  border-radius: var(--radius-full);
  transition: width 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: hidden;
}

.xp-shimmer {
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  animation: shimmer 2s infinite;
}

/* ── Exam Countdown ── */
.exam-countdown-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(135deg, rgba(247,37,133,0.1), rgba(124,58,237,0.1));
  border: 1px solid rgba(247,37,133,0.2);
  border-radius: var(--radius-lg);
  padding: var(--space-md) var(--space-xl);
  margin-bottom: var(--space-xl);
  flex-wrap: wrap;
  gap: var(--space-md);
}

.countdown-left {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.countdown-icon { font-size: 28px; }

.countdown-label {
  display: block;
  font-weight: 700;
  font-size: 15px;
  color: var(--text-primary);
}

.countdown-sub {
  display: block;
  font-size: 12px;
  color: var(--text-secondary);
}

.countdown-right {
  display: flex;
  gap: var(--space-md);
}

.countdown-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: var(--space-sm) var(--space-md);
  min-width: 60px;
}

.cd-num {
  font-family: var(--font-mono);
  font-size: 24px;
  font-weight: 700;
  color: var(--neon-pink);
  line-height: 1;
}

.cd-lbl {
  font-size: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ── Section Headers ── */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-md);
}

.section-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
}

/* ── Subjects Grid ── */
.subjects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
}

/* ── Tasks & Progress Row ── */
.tasks-progress-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
}

.daily-tasks-card,
.weekly-tasks-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-md);
}

.card-header h3 {
  font-size: 15px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  color: var(--text-primary);
}

.card-header h3 i { color: var(--neon-blue); }

.tasks-reset {
  font-size: 11px;
  color: var(--text-muted);
  background: var(--border-subtle);
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

.tasks-list { display: flex; flex-direction: column; gap: var(--space-sm); }

.weekly-progress-mini {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 12px;
  color: var(--text-muted);
}

.weekly-bar {
  width: 80px;
  height: 4px;
  background: var(--border-subtle);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.weekly-fill {
  height: 100%;
  background: var(--grad-gold);
  border-radius: var(--radius-full);
  transition: width 0.6s ease;
}

/* ── Heatmap ── */
.heatmap-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  margin-bottom: var(--space-xl);
}

.heatmap-legend {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: var(--text-muted);
}

.heatmap-legend span[class^="heat-"] {
  width: 12px;
  height: 12px;
  border-radius: 2px;
  display: inline-block;
}

.heat-0 { background: var(--border-subtle); }
.heat-1 { background: rgba(0,212,255,0.2); }
.heat-2 { background: rgba(0,212,255,0.4); }
.heat-3 { background: rgba(0,212,255,0.7); }
.heat-4 { background: var(--neon-blue); }
.heat-label { margin-left: 4px; }

.heatmap-grid {
  display: grid;
  grid-template-columns: repeat(52, 1fr);
  gap: 3px;
  margin-top: var(--space-md);
  overflow-x: auto;
}

.heatmap-cell {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 2px;
  cursor: pointer;
  transition: transform var(--transition-fast);
  min-width: 10px;
}

.heatmap-cell:hover { transform: scale(1.4); }
.heatmap-cell[data-level="0"] { background: var(--border-subtle); }
.heatmap-cell[data-level="1"] { background: rgba(0,212,255,0.2); }
.heatmap-cell[data-level="2"] { background: rgba(0,212,255,0.4); }
.heatmap-cell[data-level="3"] { background: rgba(0,212,255,0.7); }
.heatmap-cell[data-level="4"] { background: var(--neon-blue); box-shadow: 0 0 4px var(--neon-blue); }

/* ── Recent Badges Row ── */
.recent-badges-row {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
  margin-bottom: var(--space-xl);
}

/* ── Chapter Map ── */
.chapter-map {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  position: relative;
}

.chapter-map::before {
  content: '';
  position: absolute;
  left: 28px;
  top: 40px;
  bottom: 40px;
  width: 2px;
  background: linear-gradient(to bottom, var(--neon-blue), var(--neon-purple));
  opacity: 0.3;
}

/* ── Learning Flow ── */
.learning-container {
  max-width: 800px;
  margin: 0 auto;
}

.step-indicator {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-xl);
  overflow-x: auto;
  padding-bottom: var(--space-sm);
}

.step-dot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.step-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-muted);
  transition: all var(--transition-normal);
}

.step-dot.active .step-circle {
  border-color: var(--neon-blue);
  background: rgba(0,212,255,0.1);
  color: var(--neon-blue);
  box-shadow: 0 0 12px rgba(0,212,255,0.3);
}

.step-dot.completed .step-circle {
  border-color: var(--neon-green);
  background: rgba(57,255,20,0.1);
  color: var(--neon-green);
}

.step-label {
  font-size: 10px;
  color: var(--text-muted);
  text-align: center;
  white-space: nowrap;
}

.step-connector {
  flex: 1;
  height: 2px;
  background: var(--border-subtle);
  min-width: 20px;
  margin-bottom: 16px;
}

.step-connector.done { background: var(--neon-green); }

/* ── Quiz Arena ── */
.quiz-container {
  max-width: 700px;
  margin: 0 auto;
}

.quiz-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-xl);
}

.quiz-progress-bar {
  flex: 1;
  height: 6px;
  background: var(--border-subtle);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin: 0 var(--space-md);
}

.quiz-progress-fill {
  height: 100%;
  background: var(--grad-primary);
  border-radius: var(--radius-full);
  transition: width 0.4s ease;
}

.quiz-lives {
  display: flex;
  gap: 4px;
  font-size: 18px;
}

/* ── Boss Battle ── */
.boss-arena {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.boss-header {
  margin-bottom: var(--space-xl);
}

.boss-name {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 900;
  background: var(--grad-fire);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: var(--space-sm);
}

.boss-hp-bar {
  height: 16px;
  background: var(--border-subtle);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-bottom: var(--space-sm);
  border: 1px solid rgba(247,37,133,0.3);
}

.boss-hp-fill {
  height: 100%;
  background: linear-gradient(90deg, #ff6b2b, #f72585);
  border-radius: var(--radius-full);
  transition: width 0.6s ease;
}

.player-hp-bar {
  height: 12px;
  background: var(--border-subtle);
  border-radius: var(--radius-full);
  overflow: hidden;
  border: 1px solid rgba(57,255,20,0.3);
}

.player-hp-fill {
  height: 100%;
  background: linear-gradient(90deg, #39ff14, #00d4ff);
  border-radius: var(--radius-full);
  transition: width 0.6s ease;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .tasks-progress-row { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .sidebar {
    transform: translateX(-100%);
  }

  .sidebar.open {
    transform: translateX(0);
    box-shadow: 4px 0 24px rgba(0,0,0,0.5);
  }

  .mobile-header { display: flex; }

  .main-content {
    margin-left: 0;
    padding: var(--space-md);
    padding-top: calc(var(--header-height) + var(--space-md));
    max-width: 100vw;
  }

  .dashboard-hero {
    grid-template-columns: 1fr;
  }

  .hero-right { flex-direction: row; align-items: center; }

  .subjects-grid { grid-template-columns: 1fr; }

  .heatmap-grid { grid-template-columns: repeat(26, 1fr); }

  .countdown-right { gap: var(--space-sm); }
  .countdown-unit { min-width: 48px; padding: var(--space-xs) var(--space-sm); }
  .cd-num { font-size: 18px; }
}

@media (max-width: 480px) {
  .hero-stats-row { gap: var(--space-md); }
  .hero-stat .stat-val { font-size: 16px; }
}