/* ========================================
   LIFE SCIENCES NAVIGATOR - ENHANCED STYLES
   3D Perspective Timeline + Synced Mini Timeline
   ======================================== */

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

:root {
  --color-bg: #07070a;
  --color-surface: #0f0f14;
  --color-surface-elevated: #16161d;
  --color-border: rgba(255, 255, 255, 0.06);
  --color-border-hover: rgba(255, 255, 255, 0.12);
  --color-text: #f8fafc;
  --color-text-muted: #94a3b8;
  --color-text-dim: #64748b;
  
  --color-ideation: #ef4444;
  --color-discovery: #f59e0b;
  --color-definition: #10b981;
  --color-development: #3b82f6;
  --color-validation: #8b5cf6;
  --color-commercialization: #ec4899;
  
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-2xl: 32px;
  
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.5);
  
  /* 3D Timeline */
  --timeline-perspective: 1200px;
  --timeline-rotation: 8deg;
  --card-depth: 80px;
  --glass-blur: 18px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Background */
.bg-gradient {
  position: fixed;
  inset: 0;
  background: 
    radial-gradient(ellipse at 10% 0%, rgba(99, 102, 241, 0.12) 0%, transparent 50%),
    radial-gradient(ellipse at 90% 100%, rgba(236, 72, 153, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 50%, rgba(16, 185, 129, 0.04) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(7, 7, 10, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--color-border);
}

.header-content {
  max-width: 1600px;
  margin: 0 auto;
  padding: 14px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--color-text);
  transition: all 0.3s;
}

.logo:hover { transform: scale(1.02); }

.logo-icon {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.logo-icon svg { width: 18px; height: 18px; color: white; }

.header-nav { display: flex; gap: 12px; }

.nav-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  color: var(--color-text-muted);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.nav-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--color-text);
}

.nav-btn.quiz-trigger {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(139, 92, 246, 0.1));
  border-color: rgba(99, 102, 241, 0.25);
  color: #a78bfa;
}

.nav-btn.quiz-trigger:hover {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.25), rgba(139, 92, 246, 0.2));
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.2);
}

/* Main Content */
.main-content {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  padding-top: 72px;
}

/* Views */
.view {
  display: none;
  padding: 40px 32px;
  max-width: 1600px;
  margin: 0 auto;
}

.view.active {
  display: block;
  animation: viewFadeIn 0.5s ease;
}

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

/* Landing Hero */
.landing-hero {
  text-align: center;
  padding: 40px 0 20px;
}

.landing-hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 700;
  margin-bottom: 16px;
  background: linear-gradient(135deg, #f8fafc 0%, #a78bfa 40%, #ec4899 80%, #f59e0b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.02em;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--color-text-muted);
  margin-bottom: 24px;
  max-width: 550px;
  margin-left: auto;
  margin-right: auto;
}

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: var(--radius-lg);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  color: white;
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.35);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(99, 102, 241, 0.5);
}

/* ========================================
   TIMELINE SECTION
   ======================================== */

.timeline-section {
  padding: 30px 0 50px;
  position: relative;
}

.timeline-section-header {
  text-align: center;
  margin-bottom: 24px;
}

.timeline-section-header h2 {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 6px;
}

.timeline-section-header p {
  font-size: 0.9rem;
  color: var(--color-text-dim);
}

/* ========================================
   MINI TIMELINE - SYNCED WITH MAIN TIMELINE
   ======================================== */

.mini-timeline {
  position: relative;
  width: 100%;
  max-width: 800px;
  margin: 0 auto 24px;
  padding: 0 20px;
}

.mini-timeline-track {
  position: relative;
  height: 72px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 12px 20px;
  display: flex;
  align-items: center;
  overflow: visible;
}

/* Progress fill behind stages */
.mini-timeline-progress {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  background: linear-gradient(90deg,
    color-mix(in srgb, var(--color-ideation) 12%, transparent),
    color-mix(in srgb, var(--color-discovery) 12%, transparent),
    color-mix(in srgb, var(--color-definition) 12%, transparent),
    color-mix(in srgb, var(--color-development) 12%, transparent),
    color-mix(in srgb, var(--color-validation) 12%, transparent),
    color-mix(in srgb, var(--color-commercialization) 12%, transparent)
  );
  width: var(--progress, 0%);
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: var(--radius-xl) 0 0 var(--radius-xl);
}

.mini-timeline-stages {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  z-index: 1;
}

/* Connector line */
.mini-timeline-line {
  position: absolute;
  top: 50%;
  left: 28px;
  right: 28px;
  height: 2px;
  background: var(--color-border);
  transform: translateY(-50%);
  z-index: 0;
}

.mini-timeline-line-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: linear-gradient(90deg,
    var(--color-ideation),
    var(--color-discovery),
    var(--color-definition),
    var(--color-development),
    var(--color-validation),
    var(--color-commercialization)
  );
  width: var(--progress, 0%);
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 1px;
}

/* Mini stage node */
.mini-stage {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  z-index: 2;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  background: none;
  border: none;
  padding: 0;
}

.mini-stage-node {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-surface-elevated);
  border: 2px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-dim);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.mini-stage-node svg {
  width: 18px;
  height: 18px;
  transition: all 0.3s;
}

/* Pulse ring for active */
.mini-stage-node::before {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid transparent;
  transition: all 0.4s;
}

/* Stage label - always visible, positioned below */
.mini-stage-label {
  position: absolute;
  bottom: -22px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--color-text-dim);
  white-space: nowrap;
  transition: all 0.3s;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

/* Hover state */
.mini-stage:hover .mini-stage-node {
  border-color: var(--stage-color);
  background: color-mix(in srgb, var(--stage-color) 15%, var(--color-surface-elevated));
  transform: scale(1.1);
  color: var(--stage-color);
}

.mini-stage:hover .mini-stage-label {
  color: var(--stage-color);
}

/* Completed state */
.mini-stage.completed .mini-stage-node {
  background: var(--stage-color);
  border-color: var(--stage-color);
  color: white;
  box-shadow: 0 2px 8px color-mix(in srgb, var(--stage-color) 40%, transparent);
}

.mini-stage.completed .mini-stage-label {
  color: var(--stage-color);
}

/* Has progress state */
.mini-stage.has-progress .mini-stage-node {
  border-color: var(--stage-color);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--stage-color) 20%, transparent);
}

/* Active/Current state */
.mini-stage.active .mini-stage-node {
  background: var(--stage-color);
  border-color: var(--stage-color);
  color: white;
  transform: scale(1.2);
  box-shadow: 
    0 0 0 4px color-mix(in srgb, var(--stage-color) 20%, transparent),
    0 4px 16px color-mix(in srgb, var(--stage-color) 50%, transparent);
}

.mini-stage.active .mini-stage-node::before {
  border-color: color-mix(in srgb, var(--stage-color) 30%, transparent);
  animation: miniPulse 2s ease-in-out infinite;
}

.mini-stage.active .mini-stage-label {
  color: var(--stage-color);
  font-weight: 700;
}

@keyframes miniPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0; }
}

/* Current stage indicator arrow */
.mini-timeline-arrow {
  position: absolute;
  bottom: -18px;
  transform: translateX(-50%);
  transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 3;
  pointer-events: none;
}

.mini-timeline-arrow svg {
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.4));
  display: block;
}

/* ========================================
   3D PERSPECTIVE TIMELINE - MAIN CARDS
   ======================================== */

.timeline-3d-container {
  position: relative;
  width: 100%;
  padding: 60px 0 40px;
  perspective: var(--timeline-perspective);
  overflow: visible;
}

.timeline-track {
  position: absolute;
  top: 50%;
  left: 8%;
  right: 8%;
  height: 4px;
  background: linear-gradient(90deg, 
    rgba(239, 68, 68, 0.2),
    rgba(245, 158, 11, 0.2),
    rgba(16, 185, 129, 0.2),
    rgba(59, 130, 246, 0.2),
    rgba(139, 92, 246, 0.2),
    rgba(236, 72, 153, 0.2)
  );
  border-radius: 2px;
  transform: translateY(-50%) rotateX(var(--timeline-rotation));
  transform-style: preserve-3d;
  z-index: 0;
}

.timeline-track::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, 
    var(--color-ideation),
    var(--color-discovery),
    var(--color-definition),
    var(--color-development),
    var(--color-validation),
    var(--color-commercialization)
  );
  border-radius: 2px;
  width: var(--progress, 0%);
  transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.5);
}

.timeline-stages-wrapper {
  position: relative;
  width: 100%;
  overflow-x: auto;
  overflow-y: visible;
  padding: 40px 0 60px;
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
}

.timeline-stages-wrapper::-webkit-scrollbar { display: none; }

.timeline-stages {
  display: flex;
  gap: 28px;
  padding: 40px 12%;
  min-width: max-content;
  transform-style: preserve-3d;
  transform: rotateX(var(--timeline-rotation));
}

/* 3D Stage Card */
.timeline-stage-card {
  flex: 0 0 260px;
  height: 340px;
  background: linear-gradient(145deg, var(--color-surface) 0%, var(--color-surface-elevated) 100%);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  position: relative;
  cursor: pointer;
  transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
  transform-style: preserve-3d;
  transform: translateZ(0) rotateX(calc(var(--timeline-rotation) * -1));
  scroll-snap-align: center;
  overflow: hidden;
}

/* Reflection effect */
.timeline-stage-card::before {
  content: '';
  position: absolute;
  inset: -2px;
  background: linear-gradient(135deg, var(--stage-color) 0%, transparent 40%);
  border-radius: inherit;
  opacity: 0;
  z-index: -1;
  transition: opacity 0.4s;
}

/* Top accent bar */
.timeline-stage-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--stage-color), color-mix(in srgb, var(--stage-color) 60%, white));
  opacity: 0.7;
  transition: all 0.4s;
}

/* Floor shadow */
.card-shadow {
  position: absolute;
  bottom: -40px;
  left: 10%;
  right: 10%;
  height: 40px;
  background: radial-gradient(ellipse, rgba(0,0,0,0.4) 0%, transparent 70%);
  transform: rotateX(90deg);
  transform-origin: top center;
  opacity: 0.5;
  transition: all 0.5s;
  pointer-events: none;
}

.timeline-stage-card:hover {
  transform: translateZ(var(--card-depth)) rotateX(calc(var(--timeline-rotation) * -1)) scale(1.08);
  border-color: color-mix(in srgb, var(--stage-color) 60%, transparent);
  box-shadow: 
    0 30px 60px -15px rgba(0, 0, 0, 0.6),
    0 0 40px -10px var(--stage-color),
    inset 0 1px 0 rgba(255,255,255,0.1);
  z-index: 10;
}

.timeline-stage-card:hover::before { opacity: 0.15; }
.timeline-stage-card:hover::after { height: 6px; opacity: 1; }
.timeline-stage-card:hover .card-shadow { opacity: 0.8; }

/* Active/Selected State */
.timeline-stage-card.active {
  transform: translateZ(calc(var(--card-depth) * 1.3)) rotateX(calc(var(--timeline-rotation) * -1)) scale(1.12);
  border-color: var(--stage-color);
  box-shadow: 
    0 40px 80px -20px rgba(0, 0, 0, 0.7),
    0 0 60px -10px var(--stage-color),
    inset 0 1px 0 rgba(255,255,255,0.15);
  z-index: 20;
}

.timeline-stage-card.active::before { opacity: 0.2; }
.timeline-stage-card.active .card-shadow { opacity: 1; }

/* Dim non-hovered/non-active cards when one is hovered */
.timeline-stages:hover .timeline-stage-card:not(:hover):not(.active) {
  opacity: 0.6;
  transform: translateZ(-20px) rotateX(calc(var(--timeline-rotation) * -1)) scale(0.95);
}

/* ========================================
   3D DEPTH CARD EFFECT - VERTICAL RECESSION
   Cards move UP and BACK as they get further from pointer
   Add this AFTER line 635 in styles.css
   ======================================== */

/* Tighter card spacing for layered effect */
.timeline-stages {
  gap: 8px !important;  /* Very tight for overlap/layering */
  padding: 60px 6% 40px !important;  /* More top padding for upward movement */
}

/* Base card - ensure smooth transitions */
.timeline-stage-card {
  transition: 
    transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
    opacity 0.25s ease-out,
    box-shadow 0.35s ease-out,
    filter 0.25s ease-out;
  will-change: transform, opacity;
  transform-origin: center bottom; /* Cards recede from bottom anchor */
}

/* ========================================
   DEPTH LEVELS - VERTICAL + Z RECESSION
   ======================================== */

/* Depth 0 - FOCUSED (closest, lowest, brightest) */
.timeline-stage-card.depth-0 {
  transform: 
    translateZ(90px) 
    translateY(0px)
    rotateX(calc(var(--timeline-rotation) * -1)) 
    scale(1.1);
  opacity: 1;
  z-index: 30;
  border-color: var(--stage-color);
  
  box-shadow: 
    0 -6px 25px -8px rgba(255, 255, 255, 0.12),
    0 45px 80px -20px rgba(0, 0, 0, 0.7),
    0 0 70px -15px var(--stage-color),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  
  filter: brightness(1.12) saturate(1.1);
}

.timeline-stage-card.depth-0::after {
  height: 5px !important;
  opacity: 1 !important;
}

.timeline-stage-card.depth-0 .card-shadow {
  opacity: 1;
  transform: rotateX(90deg) scaleX(1.3) scaleY(1.4);
}

/* Depth 1 - Slightly back and UP */
.timeline-stage-card.depth-1 {
  transform: 
    translateZ(40px) 
    translateY(-8px)
    rotateX(calc(var(--timeline-rotation) * -1)) 
    scale(1.02);
  opacity: 0.82;
  z-index: 20;
  
  box-shadow: 
    0 -3px 15px -6px rgba(255, 255, 255, 0.06),
    0 30px 55px -18px rgba(0, 0, 0, 0.5),
    0 0 35px -12px var(--stage-color),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  
  filter: brightness(1.0);
}

.timeline-stage-card.depth-1 .card-shadow {
  opacity: 0.6;
}

/* Depth 2 - Further back and UP */
.timeline-stage-card.depth-2 {
  transform: 
    translateZ(-5px) 
    translateY(-20px)
    rotateX(calc(var(--timeline-rotation) * -1)) 
    scale(0.92);
  opacity: 0.58;
  z-index: 14;
  
  box-shadow: 
    0 20px 40px -15px rgba(0, 0, 0, 0.4),
    inset 0 -3px 12px rgba(0, 0, 0, 0.25);
  
  filter: brightness(0.82) saturate(0.9);
}

.timeline-stage-card.depth-2::after {
  opacity: 0.35 !important;
}

.timeline-stage-card.depth-2 .card-shadow {
  opacity: 0.3;
}

/* Depth 3 - Receding into distance */
.timeline-stage-card.depth-3 {
  transform: 
    translateZ(-50px) 
    translateY(-35px)
    rotateX(calc(var(--timeline-rotation) * -1)) 
    scale(0.82);
  opacity: 0.38;
  z-index: 10;
  
  box-shadow: 
    0 12px 28px -12px rgba(0, 0, 0, 0.3),
    inset 0 -5px 18px rgba(0, 0, 0, 0.35);
  
  filter: brightness(0.65) saturate(0.75);
}

.timeline-stage-card.depth-3::after {
  opacity: 0.2 !important;
}

.timeline-stage-card.depth-3 .card-shadow {
  opacity: 0.15;
}

/* Depth 4 - Far in background */
.timeline-stage-card.depth-4 {
  transform: 
    translateZ(-100px) 
    translateY(-55px)
    rotateX(calc(var(--timeline-rotation) * -1)) 
    scale(0.7);
  opacity: 0.22;
  z-index: 6;
  
  box-shadow: 
    0 8px 20px -10px rgba(0, 0, 0, 0.2),
    inset 0 -6px 22px rgba(0, 0, 0, 0.45);
  
  filter: brightness(0.5) saturate(0.6);
}

.timeline-stage-card.depth-4::after {
  opacity: 0.1 !important;
}

.timeline-stage-card.depth-4 .card-shadow {
  opacity: 0.05;
}

/* Depth 5 - Nearly faded into horizon */
.timeline-stage-card.depth-5 {
  transform: 
    translateZ(-150px) 
    translateY(-80px)
    rotateX(calc(var(--timeline-rotation) * -1)) 
    scale(0.58);
  opacity: 0.12;
  z-index: 3;
  
  box-shadow: inset 0 -8px 28px rgba(0, 0, 0, 0.55);
  filter: brightness(0.38) saturate(0.45);
}

.timeline-stage-card.depth-5 .card-shadow {
  opacity: 0;
}

/* Depth 6 - Almost invisible, far horizon */
.timeline-stage-card.depth-6 {
  transform: 
    translateZ(-200px) 
    translateY(-110px)
    rotateX(calc(var(--timeline-rotation) * -1)) 
    scale(0.45);
  opacity: 0.06;
  z-index: 1;
  
  box-shadow: none;
  filter: brightness(0.25) saturate(0.3);
}

.timeline-stage-card.depth-6 .card-shadow {
  opacity: 0;
}

/* ========================================
   DEPTH SYSTEM ACTIVE STATE
   ======================================== */

.timeline-stages.depth-active .timeline-stage-card {
  transition: 
    transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1),
    opacity 0.18s ease-out,
    box-shadow 0.22s ease-out,
    filter 0.18s ease-out;
}

/* Disable old hover dimming when depth active */
.timeline-stages.depth-active:hover .timeline-stage-card:not(:hover):not(.active) {
  opacity: unset;
  transform: unset;
}

/* Active/selected card override */
.timeline-stages.depth-active .timeline-stage-card.active {
  transform: 
    translateZ(110px) 
    translateY(5px)
    rotateX(calc(var(--timeline-rotation) * -1)) 
    scale(1.15) !important;
  opacity: 1 !important;
  z-index: 50 !important;
  filter: brightness(1.15) saturate(1.15) !important;
}

/* ========================================
   LIGHTING OVERLAY
   ======================================== */

.timeline-stage-card .stage-card-inner {
  position: relative;
}

.timeline-stage-card .stage-card-inner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 45%;
  background: linear-gradient(180deg, rgba(255,255,255,0.08) 0%, transparent 100%);
  pointer-events: none;
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  z-index: 1;
  transition: opacity 0.3s;
}

.timeline-stage-card.depth-0 .stage-card-inner::before {
  background: linear-gradient(180deg, rgba(255,255,255,0.15) 0%, transparent 100%);
}

.timeline-stage-card.depth-3 .stage-card-inner::before,
.timeline-stage-card.depth-4 .stage-card-inner::before,
.timeline-stage-card.depth-5 .stage-card-inner::before,
.timeline-stage-card.depth-6 .stage-card-inner::before {
  opacity: 0.2;
}

/* ========================================
   ENHANCED SHADOWS
   ======================================== */

.card-shadow {
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.timeline-stage-card.depth-0 .card-shadow {
  bottom: -55px;
  height: 55px;
  background: radial-gradient(ellipse, rgba(0,0,0,0.55) 0%, transparent 60%);
}

.timeline-stage-card.depth-5 .card-shadow,
.timeline-stage-card.depth-6 .card-shadow {
  display: none;
}
/* ========================================
   3D DEPTH CARD EFFECT - LIGHTING & SHADING
   Add this AFTER line 635 in styles.css
   ======================================== */

/* Tighter card spacing for layered effect */
.timeline-stages {
  gap: 12px !important;  /* Reduced from 28px for overlap feel */
  padding: 40px 8% !important;
}

/* Base card enhancements for depth system */
.timeline-stage-card {
  transition: 
    transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1),
    opacity 0.3s ease-out,
    box-shadow 0.4s ease-out,
    border-color 0.3s ease-out,
    filter 0.3s ease-out;
  will-change: transform, opacity, box-shadow;
}

/* Depth Level 0 - FOCUSED (closest to viewer) */
.timeline-stage-card.depth-0 {
  transform: translateZ(80px) rotateX(calc(var(--timeline-rotation) * -1)) scale(1.12);
  opacity: 1;
  z-index: 20;
  border-color: var(--stage-color);
  
  /* Strong lighting from above */
  box-shadow: 
    0 -8px 30px -10px rgba(255, 255, 255, 0.15),
    0 40px 80px -20px rgba(0, 0, 0, 0.7),
    0 0 60px -10px var(--stage-color),
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    inset 0 -1px 0 rgba(0, 0, 0, 0.3);
  
  /* Bright highlight gradient */
  filter: brightness(1.1) contrast(1.05);
}

.timeline-stage-card.depth-0::before {
  opacity: 0.25 !important;
}

.timeline-stage-card.depth-0::after {
  height: 5px !important;
  opacity: 1 !important;
}

.timeline-stage-card.depth-0 .card-shadow {
  opacity: 1;
  transform: rotateX(90deg) scaleX(1.2) scaleY(1.3);
  background: radial-gradient(ellipse, rgba(0,0,0,0.6) 0%, transparent 70%);
}

/* Depth Level 1 - Slightly back */
.timeline-stage-card.depth-1 {
  transform: translateZ(30px) rotateX(calc(var(--timeline-rotation) * -1)) scale(1.04);
  opacity: 0.88;
  z-index: 12;
  
  box-shadow: 
    0 -4px 20px -8px rgba(255, 255, 255, 0.08),
    0 25px 50px -15px rgba(0, 0, 0, 0.5),
    0 0 30px -15px var(--stage-color),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  
  filter: brightness(1.02);
}

.timeline-stage-card.depth-1 .card-shadow {
  opacity: 0.6;
}

/* Depth Level 2 - Middle distance */
.timeline-stage-card.depth-2 {
  transform: translateZ(-10px) rotateX(calc(var(--timeline-rotation) * -1)) scale(0.96);
  opacity: 0.65;
  z-index: 8;
  
  box-shadow: 
    0 15px 35px -12px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    inset 0 -2px 8px rgba(0, 0, 0, 0.2);
  
  /* Darken for depth */
  filter: brightness(0.85);
}

.timeline-stage-card.depth-2::after {
  opacity: 0.4 !important;
}

.timeline-stage-card.depth-2 .card-shadow {
  opacity: 0.3;
}

/* Depth Level 3 - Further back */
.timeline-stage-card.depth-3 {
  transform: translateZ(-50px) rotateX(calc(var(--timeline-rotation) * -1)) scale(0.88);
  opacity: 0.4;
  z-index: 4;
  
  box-shadow: 
    0 10px 25px -10px rgba(0, 0, 0, 0.3),
    inset 0 -4px 15px rgba(0, 0, 0, 0.3);
  
  /* Darker, desaturated for distance */
  filter: brightness(0.7) saturate(0.8);
}

.timeline-stage-card.depth-3::after {
  opacity: 0.2 !important;
}

.timeline-stage-card.depth-3 .card-shadow {
  opacity: 0.15;
}

/* Depth Level 4 - Furthest (receding into background) */
.timeline-stage-card.depth-4 {
  transform: translateZ(-90px) rotateX(calc(var(--timeline-rotation) * -1)) scale(0.8);
  opacity: 0.22;
  z-index: 2;
  
  box-shadow: 
    0 5px 15px -8px rgba(0, 0, 0, 0.2),
    inset 0 -6px 20px rgba(0, 0, 0, 0.4);
  
  /* Very dark, desaturated - fading into distance */
  filter: brightness(0.55) saturate(0.6);
}

.timeline-stage-card.depth-4::after {
  opacity: 0.1 !important;
}

.timeline-stage-card.depth-4 .card-shadow {
  opacity: 0.05;
}

/* Depth Level 5 - Almost gone */
.timeline-stage-card.depth-5 {
  transform: translateZ(-120px) rotateX(calc(var(--timeline-rotation) * -1)) scale(0.72);
  opacity: 0.12;
  z-index: 1;
  
  box-shadow: inset 0 -8px 25px rgba(0, 0, 0, 0.5);
  filter: brightness(0.4) saturate(0.4);
}

.timeline-stage-card.depth-5 .card-shadow {
  opacity: 0;
}

/* ========================================
   DEPTH SYSTEM ACTIVE STATE
   ======================================== */

.timeline-stages.depth-active .timeline-stage-card {
  /* Faster transitions when actively moving */
  transition: 
    transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1),
    opacity 0.2s ease-out,
    box-shadow 0.25s ease-out,
    filter 0.2s ease-out;
}

/* Disable old hover effects when depth system active */
.timeline-stages.depth-active:hover .timeline-stage-card:not(:hover):not(.active) {
  opacity: unset;
  transform: unset;
}

/* Click through to stage still works */
.timeline-stages.depth-active .timeline-stage-card.active {
  transform: translateZ(100px) rotateX(calc(var(--timeline-rotation) * -1)) scale(1.15) !important;
  opacity: 1 !important;
  z-index: 30 !important;
  filter: brightness(1.15) contrast(1.08) !important;
}

/* ========================================
   AMBIENT LIGHTING EFFECT ON CARDS
   ======================================== */

/* Add subtle top-light gradient overlay */
.timeline-stage-card .stage-card-inner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(
    180deg, 
    rgba(255, 255, 255, 0.06) 0%, 
    transparent 100%
  );
  pointer-events: none;
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  transition: opacity 0.3s;
}

.timeline-stage-card.depth-0 .stage-card-inner::before {
  background: linear-gradient(
    180deg, 
    rgba(255, 255, 255, 0.12) 0%, 
    transparent 100%
  );
}

.timeline-stage-card.depth-3 .stage-card-inner::before,
.timeline-stage-card.depth-4 .stage-card-inner::before,
.timeline-stage-card.depth-5 .stage-card-inner::before {
  opacity: 0.3;
}

/* ========================================
   ENHANCED FLOOR SHADOW FOR DEPTH
   ======================================== */

.card-shadow {
  transition: 
    opacity 0.4s ease-out,
    transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Shadow grows/shrinks with card depth */
.timeline-stage-card.depth-0 .card-shadow {
  bottom: -50px;
  height: 50px;
  background: radial-gradient(ellipse, rgba(0,0,0,0.5) 0%, transparent 65%);
}

.timeline-stage-card.depth-4 .card-shadow,
.timeline-stage-card.depth-5 .card-shadow {
  bottom: -20px;
  height: 20px;
}

/* ========================================
   CURVED PERSPECTIVE DEPTH EFFECT
   Add this AFTER line 635 in styles.css
   (after the ".timeline-stages:hover .timeline-stage-card:not(:hover):not(.active)" rule)
   ======================================== */

/* Distance-based depth classes - NO rotation, pure Z-depth + blur + opacity */
.timeline-stage-card.depth-0 {
  transform: translateZ(60px) rotateX(calc(var(--timeline-rotation) * -1)) scale(1.08);
  filter: blur(0px);
  opacity: 1;
  z-index: 10;
}

.timeline-stage-card.depth-1 {
  transform: translateZ(20px) rotateX(calc(var(--timeline-rotation) * -1)) scale(1.02);
  filter: blur(0.5px);
  opacity: 0.85;
  z-index: 5;
}

.timeline-stage-card.depth-2 {
  transform: translateZ(-20px) rotateX(calc(var(--timeline-rotation) * -1)) scale(0.96);
  filter: blur(1.5px);
  opacity: 0.6;
  z-index: 3;
}

.timeline-stage-card.depth-3 {
  transform: translateZ(-50px) rotateX(calc(var(--timeline-rotation) * -1)) scale(0.9);
  filter: blur(2.5px);
  opacity: 0.4;
  z-index: 2;
}

.timeline-stage-card.depth-4 {
  transform: translateZ(-80px) rotateX(calc(var(--timeline-rotation) * -1)) scale(0.84);
  filter: blur(3.5px);
  opacity: 0.25;
  z-index: 1;
}

/* Override the default hover when depth system is active */
.timeline-stages.depth-active .timeline-stage-card {
  transition: 
    transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
    filter 0.3s ease-out,
    opacity 0.3s ease-out,
    box-shadow 0.4s ease-out,
    border-color 0.3s ease-out;
}

/* When depth is active, the focused card (depth-0) gets enhanced styling */
.timeline-stages.depth-active .timeline-stage-card.depth-0 {
  border-color: color-mix(in srgb, var(--stage-color) 70%, transparent);
  box-shadow: 
    0 30px 60px -15px rgba(0, 0, 0, 0.6),
    0 0 50px -10px var(--stage-color),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.timeline-stages.depth-active .timeline-stage-card.depth-0::after {
  height: 5px;
  opacity: 1;
}

.timeline-stages.depth-active .timeline-stage-card.depth-0 .card-shadow {
  opacity: 0.9;
}

/* Disable the old hover dim effect when depth system is active */
.timeline-stages.depth-active.timeline-stages:hover .timeline-stage-card:not(:hover):not(.active) {
  opacity: unset;
  transform: unset;
}

/* Click/active state should override depth */
.timeline-stages.depth-active .timeline-stage-card.active {
  transform: translateZ(80px) rotateX(calc(var(--timeline-rotation) * -1)) scale(1.12) !important;
  filter: blur(0px) !important;
  opacity: 1 !important;
  z-index: 30 !important;
}

/* Smooth spring-like easing for all cards */
.timeline-stage-card {
  transition: 
    transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1),
    filter 0.35s ease-out,
    opacity 0.35s ease-out,
    box-shadow 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
    border-color 0.3s ease-out,
    z-index 0s;
  will-change: transform, filter, opacity;
}

/* Enhance the shadow for depth-0 card */
.timeline-stage-card.depth-0 .card-shadow {
  opacity: 0.85;
  transform: rotateX(90deg) scaleX(1.1);
}

.timeline-stage-card.depth-1 .card-shadow {
  opacity: 0.5;
}

.timeline-stage-card.depth-2 .card-shadow,
.timeline-stage-card.depth-3 .card-shadow,
.timeline-stage-card.depth-4 .card-shadow {
  opacity: 0.2;
}

.stage-card-inner {
  height: 100%;
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 1;
}

/* Stage Number with Animated Ring */
.stage-number-ring {
  position: relative;
  width: 52px;
  height: 52px;
  margin-bottom: 16px;
}

.stage-number-ring svg {
  position: absolute;
  inset: 0;
  transform: rotate(-90deg);
}

.ring-bg {
  fill: none;
  stroke: rgba(255, 255, 255, 0.08);
  stroke-width: 3;
}

.ring-progress {
  fill: none;
  stroke: var(--stage-color);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 145;
  stroke-dashoffset: calc(145 - (145 * var(--completion, 0) / 100));
  transition: stroke-dashoffset 1s cubic-bezier(0.4, 0, 0.2, 1);
  filter: drop-shadow(0 0 6px var(--stage-color));
}

.stage-number-inner {
  position: absolute;
  inset: 4px;
  background: linear-gradient(145deg, var(--stage-color), color-mix(in srgb, var(--stage-color) 70%, black));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  font-weight: 700;
  color: white;
  box-shadow: 
    0 4px 12px color-mix(in srgb, var(--stage-color) 40%, transparent),
    inset 0 1px 0 rgba(255,255,255,0.2);
}

.stage-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 6px;
  line-height: 1.2;
}

.stage-tagline {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: 16px;
  line-height: 1.5;
  flex-grow: 1;
}

.stage-quick-stats {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
}

.quick-stat {
  flex: 1;
  padding: 10px 8px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-md);
  text-align: center;
  border: 1px solid rgba(255,255,255,0.04);
}

.quick-stat-value {
  display: block;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--stage-color);
}

.quick-stat-label {
  font-size: 0.65rem;
  color: var(--color-text-dim);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stage-cta-btn {
  width: 100%;
  padding: 11px 14px;
  background: linear-gradient(135deg, var(--stage-color), color-mix(in srgb, var(--stage-color) 65%, black));
  border: none;
  border-radius: var(--radius-md);
  color: white;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.3s;
  opacity: 0;
  transform: translateY(10px);
  box-shadow: 0 4px 12px color-mix(in srgb, var(--stage-color) 30%, transparent);
}

.timeline-stage-card:hover .stage-cta-btn,
.timeline-stage-card.active .stage-cta-btn {
  opacity: 1;
  transform: translateY(0);
}

.stage-cta-btn:hover {
  filter: brightness(1.15);
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 20px color-mix(in srgb, var(--stage-color) 40%, transparent);
}

/* Navigation Arrows */
.timeline-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 30;
}

.timeline-nav-btn {
  width: 44px;
  height: 44px;
  background: var(--color-surface-elevated);
  border: 1px solid var(--color-border);
  border-radius: 50%;
  color: var(--color-text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.timeline-nav-btn:hover {
  background: var(--color-surface);
  color: var(--color-text);
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.timeline-nav-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  transform: none;
}

.timeline-nav.prev { left: 12px; }
.timeline-nav.next { right: 12px; }

/* Stage Indicator Dots */
.timeline-indicators {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 16px;
}

.indicator-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--color-border);
  cursor: pointer;
  transition: all 0.3s;
  position: relative;
}

.indicator-dot::before {
  content: '';
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 2px solid transparent;
  transition: border-color 0.3s;
}

.indicator-dot:hover { background: var(--color-text-muted); transform: scale(1.2); }

.indicator-dot.active {
  background: var(--dot-color);
  box-shadow: 0 0 16px var(--dot-color);
  transform: scale(1.3);
}

.indicator-dot.active::before {
  border-color: color-mix(in srgb, var(--dot-color) 40%, transparent);
}

/* ========================================
   STAGE DETAIL VIEW
   ======================================== */

.stage-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  color: var(--color-text-muted);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  margin-bottom: 24px;
}

.stage-back-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--color-text);
  transform: translateX(-4px);
}

.stage-header {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 32px;
  padding: 32px;
  background: linear-gradient(135deg, 
    color-mix(in srgb, var(--stage-color) 10%, transparent),
    transparent 70%
  );
  border-radius: var(--radius-xl);
  border: 1px solid color-mix(in srgb, var(--stage-color) 20%, transparent);
  position: relative;
  overflow: hidden;
}

.stage-header::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, var(--stage-color) 0%, transparent 70%);
  opacity: 0.1;
  transform: translate(30%, -30%);
}

.stage-header-icon {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 700;
  color: white;
  flex-shrink: 0;
}

.stage-header-text h1 {
  font-size: 2.25rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.stage-header-text > p {
  font-size: 1.1rem;
  color: var(--color-text-muted);
}

/* Module Tabs */
.module-tabs {
  display: flex;
  gap: 4px;
  padding: 6px;
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  margin-bottom: 32px;
}

.module-tab {
  flex: 1;
  padding: 12px 20px;
  background: transparent;
  border: none;
  border-radius: var(--radius-md);
  color: var(--color-text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s;
}

.module-tab:hover { background: rgba(255, 255, 255, 0.05); color: var(--color-text); }

.module-tab.active {
  background: var(--stage-color);
  color: white;
  box-shadow: 0 2px 8px color-mix(in srgb, var(--stage-color) 40%, transparent);
}

.module-content { display: none; animation: moduleIn 0.4s ease; }
.module-content.active { display: block; }

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

/* Decision Cards */
.decision-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}

.decision-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  cursor: pointer;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

.decision-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--stage-color);
  opacity: 0;
  transition: opacity 0.3s;
}

.decision-card:hover {
  transform: translateY(-4px);
  border-color: var(--stage-color);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.decision-card:hover::before { opacity: 1; }

.decision-card h4 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.decision-card p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin-bottom: 16px;
}

.start-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: var(--stage-color);
  border: none;
  border-radius: var(--radius-md);
  color: white;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.start-btn:hover { filter: brightness(1.1); transform: translateX(4px); }

/* Proof Points Checklist */
.checklist-container {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 28px;
}

.checklist-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.progress-ring {
  width: 64px;
  height: 64px;
  position: relative;
}

.progress-ring svg { transform: rotate(-90deg); }

.progress-ring-bg {
  fill: none;
  stroke: rgba(255, 255, 255, 0.1);
  stroke-width: 6;
}

.progress-ring-fill {
  fill: none;
  stroke: var(--stage-color);
  stroke-width: 6;
  stroke-linecap: round;
  stroke-dasharray: 175.9;
  stroke-dashoffset: calc(175.9 - (175.9 * var(--progress, 0) / 100));
  transition: stroke-dashoffset 0.8s ease;
  filter: drop-shadow(0 0 6px var(--stage-color));
}

.progress-text {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 700;
}

.checklist-items { display: flex; flex-direction: column; gap: 12px; }

.checklist-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.3s;
}

.checklist-item:hover { background: rgba(255, 255, 255, 0.04); }

.checklist-item.completed {
  background: color-mix(in srgb, var(--stage-color) 8%, transparent);
  border-color: color-mix(in srgb, var(--stage-color) 30%, transparent);
}

.check-box {
  width: 24px;
  height: 24px;
  border: 2px solid var(--color-border);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  flex-shrink: 0;
}

.checklist-item.completed .check-box {
  background: var(--stage-color);
  border-color: var(--stage-color);
}

.check-box svg {
  width: 14px;
  height: 14px;
  color: white;
  opacity: 0;
  transform: scale(0.5);
  transition: all 0.3s;
}

.checklist-item.completed .check-box svg {
  opacity: 1;
  transform: scale(1);
}

.checklist-text .label {
  font-size: 0.95rem;
  font-weight: 500;
  margin-bottom: 4px;
}

.checklist-text .evidence {
  font-size: 0.8rem;
  color: var(--color-text-dim);
}

/* Modality Banner */
.modality-banner {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 20px;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(236, 72, 153, 0.05));
  border: 1px solid rgba(139, 92, 246, 0.2);
  border-radius: var(--radius-lg);
  margin-top: 24px;
}

.modality-banner svg { color: #8b5cf6; flex-shrink: 0; margin-top: 2px; }
.modality-banner p { font-size: 0.9rem; color: var(--color-text-muted); line-height: 1.6; }

/* Disclaimer */
.disclaimer-banner {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 24px;
  margin-top: 40px;
}

.disclaimer-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.disclaimer-header svg { color: #f59e0b; }
.disclaimer-header strong { font-size: 1rem; }

.disclaimer-content {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.7;
}

.disclaimer-content p { margin-bottom: 12px; }
.disclaimer-content p:last-child { margin-bottom: 0; }

/* ========================================
   MODALS
   ======================================== */

.modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal.open { display: flex; }

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  z-index: 199;
  display: none;
}

.modal-overlay.open { display: block; }

.modal-content {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  max-width: 600px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  position: relative;
  animation: modalIn 0.4s ease;
}

@keyframes modalIn {
  from { opacity: 0; transform: scale(0.95) translateY(20px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.05);
  border: none;
  border-radius: 50%;
  color: var(--color-text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  z-index: 10;
}

.modal-close:hover { background: rgba(255, 255, 255, 0.1); color: var(--color-text); }

.quiz-modal-content { padding: 40px; }

.decision-modal-content { padding: 32px; }

/* Quiz Styles */
.quiz-progress { display: flex; gap: 6px; margin-bottom: 32px; }

.quiz-progress-step {
  flex: 1;
  height: 4px;
  background: var(--color-border);
  border-radius: 2px;
  transition: all 0.3s;
}

.quiz-progress-step.completed { background: linear-gradient(90deg, #6366f1, #8b5cf6); }
.quiz-progress-step.current { background: linear-gradient(90deg, #6366f1, #a78bfa); box-shadow: 0 0 8px rgba(99, 102, 241, 0.5); }

.quiz-question h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.quiz-question p {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  margin-bottom: 24px;
}

.quiz-options { display: flex; flex-direction: column; gap: 12px; }

.quiz-option {
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  color: var(--color-text);
  font-size: 0.95rem;
  text-align: left;
  cursor: pointer;
  transition: all 0.3s;
}

.quiz-option:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: #6366f1;
  transform: translateX(4px);
}

.quiz-result { text-align: center; }

.quiz-result-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 24px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 700;
  color: white;
}

.quiz-result h3 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.quiz-result p {
  font-size: 1rem;
  color: var(--color-text-muted);
  margin-bottom: 20px;
}

.quiz-confidence {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 24px;
}

.quiz-confidence.high { background: rgba(16, 185, 129, 0.15); color: #10b981; }
.quiz-confidence.medium { background: rgba(245, 158, 11, 0.15); color: #f59e0b; }

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 768px) {
  .header-content { padding: 12px 16px; }
  .view { padding: 24px 16px; }
  .landing-hero h1 { font-size: 1.8rem; }
  
  .timeline-stage-card { flex: 0 0 240px; height: 320px; }
  .timeline-stages { padding: 40px 8%; }
  
  .stage-header { flex-direction: column; text-align: center; }
  .stage-header-icon { margin: 0 auto; }
  .decision-grid { grid-template-columns: 1fr; }
  .quiz-modal-content { padding: 24px; }
  
  /* Mini timeline responsive */
  .mini-timeline { padding: 0 12px; margin-bottom: 32px; }
  .mini-timeline-track { height: 64px; padding: 10px 14px; }
  .mini-stage-node { width: 34px; height: 34px; }
  .mini-stage-node svg { width: 16px; height: 16px; }
  .mini-stage-label { font-size: 0.6rem; bottom: -20px; }
  .mini-stage.active .mini-stage-node { transform: scale(1.15); }
  .mini-timeline-arrow { bottom: -10px; }
}

@media (max-width: 480px) {
  .mini-timeline-track { padding: 8px 10px; height: 56px; }
  .mini-stage-node { width: 28px; height: 28px; }
  .mini-stage-node svg { width: 14px; height: 14px; }
  .mini-stage-label { font-size: 0.5rem; bottom: -16px; letter-spacing: 0; }
  .mini-stage.active .mini-stage-node { transform: scale(1.1); }
}

/* ========================================
   SIDEBAR MODULE NAVIGATION
   ======================================== */

.stage-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 0;
  min-height: calc(100vh - 80px);
  margin: -32px -32px 0;
}

.module-sidebar {
  background: var(--color-surface);
  border-right: 1px solid var(--color-border);
  padding: 24px;
  position: sticky;
  top: 72px;
  height: calc(100vh - 72px);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.sidebar-back-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: none;
  color: var(--color-text-muted);
  font-size: 0.875rem;
  cursor: pointer;
  padding: 8px 0;
  margin-bottom: 20px;
  transition: color 0.2s;
}

.sidebar-back-btn:hover { color: var(--color-text); }

.sidebar-header {
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--color-border);
}

.sidebar-stage-badge {
  display: inline-flex;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  border: 1px solid;
  margin-bottom: 12px;
}

.sidebar-header h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.sidebar-header p {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

.module-nav {
  flex: 1;
}

.module-nav-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-dim);
  margin-bottom: 12px;
  padding-left: 4px;
}

.module-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 14px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  color: var(--color-text-muted);
  font-size: 0.875rem;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s;
  margin-bottom: 4px;
}

.module-nav-item:hover {
  background: var(--color-surface-elevated);
  color: var(--color-text);
}

.module-nav-item.active {
  background: color-mix(in srgb, var(--module-color) 15%, transparent);
  border-color: color-mix(in srgb, var(--module-color) 30%, transparent);
  color: var(--color-text);
}

.module-nav-icon {
  font-size: 1.1rem;
  flex-shrink: 0;
}

.module-nav-text {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.module-nav-status {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-text-dim);
  opacity: 0.3;
}

.module-nav-status.in_progress { background: #f59e0b; opacity: 1; }
.module-nav-status.completed { background: #10b981; opacity: 1; }

.sidebar-disclaimer {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px;
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.15);
  border-radius: var(--radius-md);
  margin-top: 20px;
  font-size: 0.75rem;
  color: var(--color-text-dim);
  line-height: 1.5;
}

.sidebar-disclaimer svg {
  flex-shrink: 0;
  color: #f59e0b;
  margin-top: 1px;
}

/* ========================================
   MODULE MAIN CONTENT
   ======================================== */

.module-main {
  padding: 40px 48px;
  max-width: 900px;
  overflow-y: auto;
}

.module-article {
  animation: fadeIn 0.3s ease;
}

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

.module-header {
  margin-bottom: 32px;
}

.module-category {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--module-color);
  margin-bottom: 8px;
}

.module-title {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 12px;
  line-height: 1.2;
}

.module-decision {
  font-size: 1.15rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* Why This Matters */
.module-why-matters {
  display: flex;
  gap: 16px;
  padding: 20px 24px;
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.2);
  border-radius: var(--radius-lg);
  margin-bottom: 40px;
}

.why-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(245, 158, 11, 0.15);
  border-radius: var(--radius-md);
  color: #f59e0b;
}

.module-why-matters h3 {
  font-size: 0.9rem;
  font-weight: 700;
  color: #f59e0b;
  margin-bottom: 6px;
}

.module-why-matters p {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* Section Titles */
.section-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--color-border);
}

.section-title svg { color: var(--module-color); }
.section-title.warning svg { color: #f59e0b; }
.section-title.success svg { color: #10b981; }

.section-intro {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  margin-bottom: 20px;
}

/* Guide Section - Progressive Disclosure */
.guide-section {
  margin-bottom: 48px;
}

.guide-level {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  margin-bottom: 12px;
  overflow: hidden;
  transition: all 0.3s;
}

.guide-level:hover {
  border-color: var(--color-border-hover);
}

.guide-level-header {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  padding: 18px 20px;
  background: transparent;
  border: none;
  color: var(--color-text);
  cursor: pointer;
  text-align: left;
}

.level-badge {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--module-color);
  color: white;
  font-weight: 700;
  font-size: 0.875rem;
  border-radius: 50%;
  flex-shrink: 0;
}

.level-info {
  flex: 1;
}

.level-label {
  display: block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-dim);
  margin-bottom: 2px;
}

.level-title {
  font-weight: 600;
  font-size: 1rem;
}

.level-chevron {
  color: var(--color-text-dim);
  transition: transform 0.3s;
}

.guide-level.expanded .level-chevron {
  transform: rotate(180deg);
}

.guide-level-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
}

.guide-level.expanded .guide-level-content {
  max-height: 2000px;
  padding: 0 20px 20px;
}

.guide-level-content p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--color-text-muted);
}

/* Level 3 Content Blocks */
.level3-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.level3-block {
  background: var(--color-surface-elevated);
  border-radius: var(--radius-md);
  padding: 20px;
}

.level3-block.warning {
  background: rgba(245, 158, 11, 0.06);
  border: 1px solid rgba(245, 158, 11, 0.15);
}

.level3-block.info {
  background: rgba(59, 130, 246, 0.06);
  border: 1px solid rgba(59, 130, 246, 0.15);
}

.level3-block h4 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 14px;
  color: var(--color-text);
}

.level3-block h4 svg { color: var(--module-color); }
.level3-block.warning h4 svg { color: #f59e0b; }
.level3-block.info h4 svg { color: #3b82f6; }

.action-steps {
  list-style: decimal;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.action-steps li {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--color-text-muted);
}

.proof-points, .falsification-checks {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.proof-points li, .falsification-checks li {
  position: relative;
  padding-left: 20px;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--color-text-muted);
}

.proof-points li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #10b981;
  font-weight: bold;
}

.falsification-checks li::before {
  content: '⚠';
  position: absolute;
  left: 0;
  color: #f59e0b;
}

.level3-block.info p {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--color-text-muted);
}

/* Pathways Section */
.pathways-section {
  margin-bottom: 48px;
}

.pathways-container {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* Inline pathway options row */
.pathways-options-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.pathway-option-btn {
  flex: 1;
  min-width: 200px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: var(--color-surface);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all 0.25s ease;
  text-align: left;
}

.pathway-option-btn:hover {
  border-color: var(--color-border-hover);
  background: var(--color-surface-elevated);
}

.pathway-option-btn.active {
  border-color: var(--module-color);
  background: color-mix(in srgb, var(--module-color) 8%, var(--color-surface));
  box-shadow: 0 0 20px color-mix(in srgb, var(--module-color) 15%, transparent);
}

.pathway-option-btn.active .pathway-option-chevron {
  transform: rotate(180deg);
  color: var(--module-color);
}

.pathway-option-content {
  flex: 1;
  min-width: 0;
}

.pathway-option-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 4px;
  white-space: wrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pathway-option-btn.active .pathway-option-title {
  color: var(--module-color);
}

.pathway-option-desc {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.pathway-option-chevron {
  flex-shrink: 0;
  color: var(--color-text-dim);
  transition: transform 0.3s ease, color 0.3s ease;
}

/* Expanded details container */
.pathway-details-container {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, margin-top 0.4s ease, opacity 0.3s ease;
  opacity: 0;
}

.pathway-details-container.expanded {
  max-height: 2000px;
  margin-top: 16px;
  opacity: 1;
}

/* Pathway details panel */
.pathway-details {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--module-color);
  border-radius: var(--radius-lg);
  padding: 28px;
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.pathway-details-header {
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--color-border);
}

.pathway-details-header h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--module-color);
  margin-bottom: 8px;
}

.pathway-details-header p {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

.pathway-meta-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 24px;
  padding: 16px 20px;
  background: var(--color-surface-elevated);
  border-radius: var(--radius-md);
}

.pathway-meta-grid .meta-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.pathway-meta-grid .meta-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-dim);
}

.pathway-meta-grid .meta-value {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-text);
}

/* Keep backward compatibility for old pathway cards if needed */
.pathways-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.pathway-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: all 0.3s;
}

.pathway-card:hover {
  border-color: var(--module-color);
  box-shadow: 0 0 30px color-mix(in srgb, var(--module-color) 10%, transparent);
}

.pathway-header {
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--color-border);
}

.pathway-header h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.pathway-header p {
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

.pathway-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 20px;
  padding: 14px;
  background: var(--color-surface-elevated);
  border-radius: var(--radius-md);
}

.meta-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.meta-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-dim);
}

.meta-value {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-text);
}

.pathway-pros-cons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.pros h4, .cons h4 {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.pros h4 { color: #10b981; }
.cons h4 { color: #ef4444; }

.pros ul, .cons ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.pros li, .cons li {
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--color-text-muted);
  padding-left: 16px;
  position: relative;
}

.pros li::before {
  content: '+';
  position: absolute;
  left: 0;
  color: #10b981;
  font-weight: bold;
}

.cons li::before {
  content: '−';
  position: absolute;
  left: 2px;
  color: #ef4444;
  font-weight: bold;
}

.pathway-best-for {
  margin-bottom: 16px;
}

.pathway-best-for h4 {
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--color-text-dim);
}

.pathway-best-for ul {
  list-style: disc;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.pathway-best-for li {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.pathway-example {
  background: color-mix(in srgb, var(--module-color) 8%, transparent);
  border: 1px solid color-mix(in srgb, var(--module-color) 20%, transparent);
  border-radius: var(--radius-md);
  padding: 14px;
}

.pathway-example h4 {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--module-color);
  margin-bottom: 6px;
}

.pathway-example p {
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--color-text-muted);
}

/* Comparison Table */
.comparison-section {
  margin-bottom: 48px;
}

.comparison-table-wrapper {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.comparison-table th,
.comparison-table td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
}

.comparison-table th {
  background: var(--color-surface);
  font-weight: 600;
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.comparison-table tr:last-child td {
  border-bottom: none;
}

.comparison-table .dim-name {
  font-weight: 600;
  color: var(--color-text);
  background: var(--color-surface);
}

.compare-value {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
}

.compare-value.green { background: rgba(16, 185, 129, 0.15); color: #34d399; }
.compare-value.yellow { background: rgba(245, 158, 11, 0.15); color: #fbbf24; }
.compare-value.red { background: rgba(239, 68, 68, 0.15); color: #f87171; }
.compare-value.neutral { background: var(--color-surface-elevated); color: var(--color-text-muted); }

/* Questions Section */
.questions-section {
  margin-bottom: 48px;
}

.questions-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.question-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}

.question-item svg {
  flex-shrink: 0;
  color: var(--module-color);
  margin-top: 2px;
}

.question-item span {
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--color-text-muted);
}

/* Blind Spots Section */
.blindspots-section {
  margin-bottom: 48px;
}

.blindspots-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.blindspot-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  background: rgba(239, 68, 68, 0.05);
  border: 1px solid rgba(239, 68, 68, 0.15);
  border-radius: var(--radius-md);
}

.blindspot-item svg {
  flex-shrink: 0;
  color: #ef4444;
  margin-top: 2px;
}

.blindspot-item span {
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--color-text-muted);
}

/* Success Section */
.success-section {
  margin-bottom: 48px;
}

.success-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.success-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  background: rgba(16, 185, 129, 0.05);
  border: 1px solid rgba(16, 185, 129, 0.15);
  border-radius: var(--radius-md);
}

.success-item svg {
  flex-shrink: 0;
  color: #10b981;
  margin-top: 2px;
}

.success-item span {
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--color-text-muted);
}

/* Next Step CTA */
.next-step-section {
  margin-bottom: 48px;
}

.next-step-card {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 24px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--module-color) 12%, transparent), color-mix(in srgb, var(--module-color) 6%, transparent));
  border: 1px solid color-mix(in srgb, var(--module-color) 25%, transparent);
  border-radius: var(--radius-lg);
}

.next-step-icon {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--module-color);
  border-radius: var(--radius-md);
  color: white;
}

.next-step-content h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--color-text);
}

.next-step-content p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--color-text-muted);
}

/* Sources Section */
.sources-section {
  margin-bottom: 48px;
}

.sources-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

.source-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: all 0.2s;
}

.source-link:hover {
  border-color: var(--module-color);
  background: var(--color-surface-elevated);
}

.source-type {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 3px 8px;
  background: color-mix(in srgb, var(--module-color) 15%, transparent);
  color: var(--module-color);
  border-radius: 4px;
}

.source-title {
  flex: 1;
  font-size: 0.85rem;
  color: var(--color-text);
}

.source-link svg {
  flex-shrink: 0;
  color: var(--color-text-dim);
}

.expert-validation {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 18px;
}

.expert-validation h4 {
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--color-text);
}

.expert-validation p {
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--color-text-muted);
}

/* Module Disclaimer */
.module-disclaimer {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 20px;
  background: rgba(148, 163, 184, 0.05);
  border: 1px solid rgba(148, 163, 184, 0.15);
  border-radius: var(--radius-lg);
  margin-top: 40px;
}

.module-disclaimer svg {
  flex-shrink: 0;
  color: var(--color-text-dim);
  margin-top: 2px;
}

.module-disclaimer p {
  font-size: 0.8rem;
  line-height: 1.6;
  color: var(--color-text-dim);
}

/* Coming Soon Stage */
.coming-soon-stage {
  padding: 32px;
}

.coming-soon-content {
  max-width: 500px;
  margin: 80px auto;
  text-align: center;
}

.coming-soon-icon {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  border-radius: 50%;
  border: 2px solid;
}

.coming-soon-icon svg {
  width: 36px;
  height: 36px;
  color: var(--stage-color);
}

.coming-soon-content h1 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.coming-soon-tagline {
  font-size: 1.05rem;
  color: var(--color-text-muted);
  margin-bottom: 20px;
}

.coming-soon-badge {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 20px;
  margin-bottom: 20px;
}

.coming-soon-desc {
  font-size: 0.95rem;
  color: var(--color-text-dim);
  line-height: 1.6;
  margin-bottom: 32px;
}

/* Responsive - Sidebar */
@media (max-width: 1024px) {
  .stage-layout {
    grid-template-columns: 260px 1fr;
  }
  
  .module-main {
    padding: 32px;
  }
}

@media (max-width: 768px) {
  .stage-layout {
    grid-template-columns: 1fr;
  }
  
  .module-sidebar {
    position: relative;
    top: 0;
    height: auto;
    border-right: none;
    border-bottom: 1px solid var(--color-border);
    padding: 20px;
  }
  
  .module-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }
  
  .module-nav-label {
    width: 100%;
  }
  
  .module-nav-item {
    flex: 0 0 auto;
    padding: 8px 14px;
    font-size: 0.8rem;
  }
  
  .module-nav-text {
    display: none;
  }
  
  .module-nav-icon {
    font-size: 1rem;
  }
  
  .sidebar-disclaimer {
    display: none;
  }
  
  .module-main {
    padding: 24px 20px;
  }
  
  .module-title {
    font-size: 1.5rem;
  }
  
  .pathway-pros-cons {
    grid-template-columns: 1fr;
  }
  
  .pathways-options-row {
    flex-direction: column;
  }
  
  .pathway-option-btn {
    min-width: 100%;
  }
  
  .pathway-meta-grid {
    flex-direction: column;
    gap: 16px;
  }
}
/* ========================================
   TASK & COMPLETION TRACKING STYLES
   ======================================== */

/* Tasks Section */
.tasks-section {
  margin-bottom: 48px;
}

.tasks-progress {
  margin-left: auto;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text-muted);
  background: var(--color-surface);
  padding: 4px 12px;
  border-radius: var(--radius-full);
}

.tasks-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.task-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: all 0.2s ease;
}

.task-item:hover {
  border-color: var(--color-border-hover);
  background: var(--color-surface-elevated);
}

.task-item.complete {
  background: rgba(16, 185, 129, 0.05);
  border-color: rgba(16, 185, 129, 0.2);
}

.task-checkbox {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--color-text-dim);
  transition: all 0.2s ease;
  padding: 0;
}

.task-checkbox:hover {
  color: var(--module-color, #6366f1);
}

.task-item.complete .task-checkbox {
  color: #10b981;
}

.task-text {
  flex: 1;
  font-size: 0.9rem;
  color: var(--color-text);
  line-height: 1.5;
}

.task-item.complete .task-text {
  color: var(--color-text-muted);
  text-decoration: line-through;
}

/* Module Completion Section */
.module-completion-section {
  margin-bottom: 48px;
}

.module-completion-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 24px;
  background: var(--color-surface);
  border: 2px dashed var(--color-border);
  border-radius: var(--radius-lg);
  transition: all 0.3s ease;
}

.module-completion-section.complete .module-completion-card {
  background: rgba(16, 185, 129, 0.05);
  border: 2px solid rgba(16, 185, 129, 0.3);
}

.module-completion-content {
  flex: 1;
}

.module-completion-content h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 4px;
}

.module-completion-section.complete .module-completion-content h3 {
  color: #10b981;
}

.module-completion-content p {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.module-completion-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: var(--color-surface-elevated);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  color: var(--color-text-muted);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.module-completion-btn:hover {
  border-color: var(--module-color, #6366f1);
  color: var(--module-color, #6366f1);
  background: color-mix(in srgb, var(--module-color, #6366f1) 5%, var(--color-surface));
}

.module-completion-btn.completed {
  background: #10b981;
  border-color: #10b981;
  color: white;
}

.module-completion-btn.completed:hover {
  background: #059669;
  border-color: #059669;
}

/* Sidebar Progress */
.sidebar-progress {
  margin-top: 16px;
}

.sidebar-progress-bar {
  height: 6px;
  background: var(--color-surface-elevated);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 8px;
}

.sidebar-progress-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.5s ease;
}

.sidebar-progress-text {
  font-size: 0.75rem;
  color: var(--color-text-dim);
}

/* Module Nav Status Icons */
.module-nav-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.module-nav-tasks {
  font-size: 0.7rem;
  color: var(--color-text-dim);
}

.module-nav-status {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-dim);
}

.module-nav-status.complete {
  color: #10b981;
}

.module-nav-status.in_progress {
  color: var(--module-color, #6366f1);
}

.module-nav-item.complete {
  background: rgba(16, 185, 129, 0.05);
  border-color: rgba(16, 185, 129, 0.2);
}

.module-nav-item.in_progress {
  border-left: 3px solid var(--module-color, #6366f1);
}

/* ========================================
   ENHANCED QUIZ STYLES
   ======================================== */

.quiz-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.quiz-step-counter {
  font-size: 0.85rem;
  color: var(--color-text-dim);
}

.quiz-category-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
/* ========================================
   QUIZ COMPLETION NOTE STYLES
   ======================================== */

.quiz-completion-note {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 20px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  margin: 20px 0;
}

.quiz-completion-note.success {
  background: rgba(16, 185, 129, 0.08);
  border-color: rgba(16, 185, 129, 0.25);
}

.quiz-completion-note.success svg {
  color: #10b981;
  flex-shrink: 0;
  margin-top: 2px;
}

.quiz-completion-details {
  flex: 1;
}

.quiz-completion-details strong {
  display: block;
  font-size: 0.95rem;
  color: #10b981;
  margin-bottom: 4px;
}

.quiz-completion-details p {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  line-height: 1.5;
  margin: 0;
}

/* Enhanced module nav item states */
.sidebar-module-item.complete .module-nav-text {
  color: #10b981;
}

.sidebar-module-item.in_progress .module-nav-text {
  color: var(--module-color, #6366f1);
}

/* Task auto-completed indicator */
.task-item.auto-completed::after {
  content: 'Auto';
  font-size: 0.65rem;
  color: var(--color-text-dim);
  background: var(--color-surface-elevated);
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: auto;
}

/* ========================================
   SIDEBAR TABS STYLES
   ======================================== */

.sidebar-tabs {
  display: flex;
  gap: 4px;
  padding: 4px;
  background: var(--color-surface);
  border-radius: var(--radius-md);
  margin-bottom: 16px;
}

.sidebar-tab {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 12px;
  background: transparent;
  border: none;
  border-radius: var(--radius-sm);
  color: var(--color-text-muted);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.sidebar-tab:hover {
  background: var(--color-surface-elevated);
  color: var(--color-text);
}

.sidebar-tab.active {
  background: var(--tab-color, #6366f1);
  color: white;
}

.sidebar-tab svg {
  flex-shrink: 0;
}

.sidebar-tab-count {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 6px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 10px;
}

.sidebar-tab:not(.active) .sidebar-tab-count {
  background: var(--color-surface-elevated);
}

/* Sidebar Content Container */
.sidebar-content {
  flex: 1;
  overflow-y: auto;
  margin: 0 -20px;
  padding: 0 20px;
}

/* ========================================
   SIDEBAR TASKS VIEW STYLES
   ======================================== */

.sidebar-tasks-view {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sidebar-tasks-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.sidebar-tasks-filter {
  flex: 1;
  padding: 6px 10px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  color: var(--color-text);
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.sidebar-tasks-filter:hover {
  border-color: var(--module-color, var(--color-border-hover));
}

.sidebar-tasks-filter:focus {
  outline: none;
  border-color: var(--module-color, #6366f1);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.sidebar-tasks-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.sidebar-tasks-empty {
  padding: 20px;
  text-align: center;
  color: var(--color-text-dim);
  font-size: 0.85rem;
}

/* Task Group (grouped by module) */
.sidebar-task-group {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all 0.3s ease;
}

.sidebar-task-group.complete {
  background: rgba(16, 185, 129, 0.05);
  border-color: rgba(16, 185, 129, 0.2);
}

.sidebar-task-group-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  background: var(--color-surface-elevated);
  border-bottom: 1px solid var(--color-border);
  cursor: pointer;
  transition: all 0.2s ease;
}

.sidebar-task-group-header:hover {
  background: color-mix(in srgb, var(--color-surface-elevated) 80%, var(--module-color, #6366f1));
}

.sidebar-task-group.complete .sidebar-task-group-header {
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.2);
}

.sidebar-task-group-icon {
  font-size: 0.9rem;
}

.sidebar-task-group-name {
  flex: 1;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-task-group.complete .sidebar-task-group-name {
  color: #10b981;
  text-decoration: line-through;
}

/* Task Items */
.sidebar-task-items {
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sidebar-task-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 8px 10px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
  width: 100%;
}

.sidebar-task-item:hover {
  background: var(--color-surface-elevated);
  border-color: var(--color-border);
}

.sidebar-task-item.complete {
  background: rgba(16, 185, 129, 0.05);
}

.sidebar-task-checkbox {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-dim);
  transition: all 0.2s ease;
  margin-top: 1px;
}

.sidebar-task-item:hover .sidebar-task-checkbox {
  color: var(--module-color, #6366f1);
}

.sidebar-task-item.complete .sidebar-task-checkbox {
  color: #10b981;
}

.sidebar-task-text {
  flex: 1;
  font-size: 0.8rem;
  color: var(--color-text);
  line-height: 1.4;
}

.sidebar-task-item.complete .sidebar-task-text {
  color: var(--color-text-muted);
  text-decoration: line-through;
}

/* Module Complete Button in Sidebar */
.sidebar-module-complete-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  padding: 10px;
  background: var(--color-surface-elevated);
  border: none;
  border-top: 1px solid var(--color-border);
  color: var(--color-text-muted);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.sidebar-module-complete-btn:hover {
  background: color-mix(in srgb, var(--color-surface-elevated) 70%, var(--module-color, #6366f1));
  color: var(--module-color, #6366f1);
}

.sidebar-module-complete-btn.complete {
  background: #10b981;
  color: white;
  border-top-color: #10b981;
}

.sidebar-module-complete-btn.complete:hover {
  background: #059669;
}

/* ========================================
   ENHANCED TASK COMPLETION STYLES (Main Content)
   ======================================== */

/* Task items with better completion states */
.task-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: all 0.3s ease;
}

.task-item:hover {
  border-color: var(--color-border-hover);
  background: var(--color-surface-elevated);
  transform: translateX(4px);
}

.task-item.complete {
  background: rgba(16, 185, 129, 0.08);
  border-color: rgba(16, 185, 129, 0.25);
}

.task-item.complete:hover {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.35);
}

.task-checkbox {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-surface-elevated);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  color: var(--color-text-dim);
  transition: all 0.2s ease;
  padding: 0;
}

.task-checkbox:hover {
  border-color: var(--module-color, #6366f1);
  color: var(--module-color, #6366f1);
  background: color-mix(in srgb, var(--module-color, #6366f1) 10%, var(--color-surface));
}

.task-item.complete .task-checkbox {
  background: #10b981;
  border-color: #10b981;
  color: white;
}

.task-item.complete .task-checkbox:hover {
  background: #059669;
  border-color: #059669;
}

.task-text {
  flex: 1;
  font-size: 0.95rem;
  color: var(--color-text);
  line-height: 1.5;
  padding-top: 3px;
}

.task-item.complete .task-text {
  color: #10b981;
  text-decoration: line-through;
  text-decoration-color: rgba(16, 185, 129, 0.5);
}

/* Tasks Progress Counter */
.tasks-progress {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--module-color, #6366f1);
  background: color-mix(in srgb, var(--module-color, #6366f1) 10%, transparent);
  padding: 4px 10px;
  border-radius: 20px;
  margin-left: auto;
}

/* ========================================
   ENHANCED MODULE COMPLETION STYLES
   ======================================== */

.module-completion-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 24px;
  background: var(--color-surface);
  border: 2px dashed var(--color-border);
  border-radius: var(--radius-lg);
  transition: all 0.3s ease;
}

.module-completion-section.complete .module-completion-card {
  background: rgba(16, 185, 129, 0.08);
  border: 2px solid rgba(16, 185, 129, 0.35);
}

.module-completion-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  background: var(--color-surface-elevated);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-md);
  color: var(--color-text-muted);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.module-completion-btn:hover {
  border-color: var(--module-color, #6366f1);
  color: var(--module-color, #6366f1);
  background: color-mix(in srgb, var(--module-color, #6366f1) 8%, var(--color-surface));
  transform: scale(1.02);
}

.module-completion-btn.completed {
  background: #10b981;
  border-color: #10b981;
  color: white;
}

.module-completion-btn.completed:hover {
  background: #059669;
  border-color: #059669;
  transform: scale(1.02);
}

/* Module nav items with completion states */
.module-nav-item.complete .module-nav-text {
  color: #10b981;
}

.module-nav-item.complete .module-nav-tasks {
  color: #10b981;
}

.module-nav-item.in_progress .module-nav-text {
  color: var(--module-color, #6366f1);
}

/* ========================================
   ADAPTIVE QUIZ REDESIGN
   ======================================== */

/* Quiz Adaptive Container */
.quiz-adaptive {
  min-height: 500px;
  display: flex;
  flex-direction: column;
}

/* New Progress Header */
.quiz-header-new {
  margin-bottom: 32px;
}

.quiz-progress-bar {
  height: 6px;
  background: var(--color-surface-elevated);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 16px;
}

.quiz-progress-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.4s ease;
}

.quiz-progress-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.quiz-section-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
}

.quiz-counter {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

/* Question Card */
.quiz-question-card {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.quiz-question-text {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 16px;
  line-height: 1.3;
}

/* Hint Box */
.quiz-hint {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 18px;
  background: rgba(99, 102, 241, 0.08);
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: var(--radius-md);
  margin-bottom: 24px;
}

.quiz-hint svg {
  flex-shrink: 0;
  color: #6366f1;
  margin-top: 2px;
}

.quiz-hint span {
  font-size: 0.9rem;
  color: var(--color-text);
  line-height: 1.5;
}

/* Options Grid */
.quiz-options-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}

.quiz-options-grid.compact {
  grid-template-columns: 1fr;
}

/* Option Card */
.quiz-option-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  background: var(--color-surface);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-lg);
  cursor: pointer;
  text-align: left;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}

.quiz-option-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(99, 102, 241, 0) 50%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.quiz-option-card:hover {
  border-color: rgba(99, 102, 241, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.quiz-option-card:hover::before {
  opacity: 1;
}

.quiz-option-card.selected {
  border-color: #6366f1;
  background: rgba(99, 102, 241, 0.1);
}

.quiz-option-card.selected .quiz-option-check {
  opacity: 1;
  transform: scale(1);
  background: #6366f1;
  color: white;
}

.quiz-option-icon {
  font-size: 2rem;
  flex-shrink: 0;
  z-index: 1;
}

.quiz-option-content {
  flex: 1;
  z-index: 1;
}

.quiz-option-label {
  display: block;
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 4px;
}

.quiz-option-sublabel {
  display: block;
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.quiz-option-check {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--color-border);
  border-radius: 50%;
  opacity: 0.5;
  transform: scale(0.9);
  transition: all 0.25s ease;
  z-index: 1;
}

.quiz-option-check svg {
  width: 16px;
  height: 16px;
}

/* Quiz Navigation */
.quiz-nav-new {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: 24px;
  border-top: 1px solid var(--color-border);
}

.quiz-nav-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: transparent;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  color: var(--color-text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.quiz-nav-btn:hover {
  border-color: var(--color-text-muted);
  color: var(--color-text);
}

.quiz-nav-btn.skip {
  border-color: transparent;
}

.quiz-nav-btn.skip:hover {
  background: var(--color-surface);
  border-color: var(--color-border);
}

/* ========================================
   QUIZ RESULTS - NEW DESIGN
   ======================================== */

.quiz-result-new {
  max-width: 700px;
  margin: 0 auto;
}

/* Result Header */
.quiz-result-header {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--color-border);
}

.quiz-result-stage-icon {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 20px;
  color: white;
}

.quiz-result-stage-icon svg {
  width: 40px;
  height: 40px;
}

.quiz-result-stage-info {
  flex: 1;
}

.quiz-result-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-text-dim);
  margin-bottom: 4px;
}

.quiz-result-stage-info h2 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 6px;
}

.quiz-result-stage-info p {
  font-size: 1rem;
  color: var(--color-text-muted);
}

/* Confidence Badge */
.quiz-confidence-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  border-radius: var(--radius-md);
  margin-bottom: 32px;
}

.quiz-confidence-badge svg {
  flex-shrink: 0;
}

.quiz-confidence-badge span:first-of-type {
  font-weight: 700;
}

.quiz-confidence-reason {
  flex: 1;
  text-align: right;
  font-size: 0.85rem;
  opacity: 0.8;
}

.quiz-confidence-badge.high {
  background: rgba(16, 185, 129, 0.12);
  color: #10b981;
}

.quiz-confidence-badge.medium {
  background: rgba(245, 158, 11, 0.12);
  color: #f59e0b;
}

.quiz-confidence-badge.low {
  background: rgba(239, 68, 68, 0.12);
  color: #ef4444;
}

/* Category Breakdown */
.quiz-category-breakdown {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 24px;
}

.quiz-category-breakdown h4 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.quiz-category-bars {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.quiz-category-bar-item {
  display: flex;
  align-items: center;
  gap: 16px;
}

.quiz-category-bar-label {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 160px;
  flex-shrink: 0;
  font-size: 0.85rem;
  color: var(--color-text);
}

.quiz-cat-icon {
  font-size: 1.1rem;
}

.quiz-category-bar-track {
  flex: 1;
  height: 10px;
  background: var(--color-surface-elevated);
  border-radius: 5px;
  overflow: hidden;
}

.quiz-category-bar-fill {
  height: 100%;
  border-radius: 5px;
  transition: width 0.5s ease;
}

.quiz-category-bar-stage {
  width: 100px;
  flex-shrink: 0;
  font-size: 0.8rem;
  font-weight: 600;
  text-align: right;
}

/* Strengths */
.quiz-strengths {
  margin-bottom: 24px;
}

.quiz-strengths h4 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  font-weight: 700;
  color: #10b981;
  margin-bottom: 12px;
}

.quiz-strengths-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.quiz-strength-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
  color: #10b981;
}

/* Gaps Section */
.quiz-gaps-new {
  margin-bottom: 24px;
}

.quiz-gaps-new h4 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  font-weight: 700;
  color: #f59e0b;
  margin-bottom: 12px;
}

.quiz-gaps-list-new {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.quiz-gap-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.2);
  border-radius: var(--radius-md);
}

.quiz-gap-icon {
  font-size: 1.5rem;
}

.quiz-gap-info {
  flex: 1;
}

.quiz-gap-category {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--color-text);
}

.quiz-gap-status {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.quiz-gap-status strong {
  color: #f59e0b;
}

/* Sector Note */
.quiz-sector-note {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  margin-bottom: 24px;
}

.quiz-sector-badge {
  padding: 8px 14px;
  background: var(--color-surface-elevated);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
}

.quiz-sector-note p {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

/* Completion Banner */
.quiz-completion-banner {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 20px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: var(--radius-md);
  margin-bottom: 32px;
}

.quiz-completion-banner svg {
  flex-shrink: 0;
  color: #10b981;
}

.quiz-completion-banner strong {
  display: block;
  color: #10b981;
  margin-bottom: 4px;
}

.quiz-completion-banner p {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

/* Result Actions */
.quiz-result-actions-new {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.quiz-action-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 28px;
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  border: none;
  border-radius: var(--radius-md);
  color: white;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
}

.quiz-action-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
}

.quiz-action-secondary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 24px;
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: var(--radius-md);
  color: #f59e0b;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.quiz-action-secondary:hover {
  background: rgba(245, 158, 11, 0.15);
  border-color: rgba(245, 158, 11, 0.5);
}

.quiz-action-tertiary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  background: transparent;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  color: var(--color-text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.quiz-action-tertiary:hover {
  border-color: var(--color-text-muted);
  color: var(--color-text);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .quiz-question-text {
    font-size: 1.3rem;
  }
  
  .quiz-options-grid {
    grid-template-columns: 1fr;
  }
  
  .quiz-result-header {
    flex-direction: column;
    text-align: center;
  }
  
  .quiz-result-stage-info h2 {
    font-size: 1.6rem;
  }
  
  .quiz-confidence-badge {
    flex-direction: column;
    text-align: center;
    gap: 6px;
  }
  
  .quiz-confidence-reason {
    text-align: center;
  }
  
  .quiz-category-bar-item {
    flex-wrap: wrap;
  }
  
  .quiz-category-bar-label {
    width: 100%;
    margin-bottom: 8px;
  }
  
  .quiz-category-bar-stage {
    width: auto;
    margin-left: auto;
  }
  
  .quiz-sector-note {
    flex-direction: column;
    text-align: center;
  }
}
}