/* ==========================================
   ITSTHS CAREER NAVIGATOR - GLOBAL STYLES & CORE DESIGN TOKENS
   ========================================== */

/* RESET & BASE SETUP */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  /* System Typography */
  --font-display: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'Space Grotesk', sans-serif;

  /* Global Animations */
  --transition-smooth: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  --transition-bounce: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* THEME SPECIFICS: ADULT RPG (DEFAULT GOLD-DARK) */
.theme-adult-rpg {
  --bg-primary: #000000; /* Pure black */
  --bg-secondary: #1A1A1A; /* Charcoal black */
  --text-main: #FFFFFF; /* White */
  --text-muted: #A0A0A0; /* Light grey */
  --accent-primary: #D4AF37; /* Royal Gold */
  --accent-secondary: #F6C556; /* Soft Gold accent */
  --accent-glow: rgba(212, 175, 55, 0.15);
  --glass-bg: rgba(26, 26, 26, 0.75); /* Charcoal glass */
  --glass-border: rgba(212, 175, 55, 0.25); /* Gold glass border */
  --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.6);
  --text-gradient: linear-gradient(135deg, #FFD700 0%, #D4AF37 100%); /* Gold gradient */
  --card-gradient: linear-gradient(135deg, rgba(212, 175, 55, 0.08) 0%, rgba(246, 197, 86, 0.08) 100%);
  --node-bg: #111111;
  --node-border: #D4AF37;
  --node-text: #FFFFFF;
}

/* ADULT RPG LIGHT MODE OVERRIDES (Based on screenshot values) */
.theme-adult-rpg.theme-light {
  --bg-primary: #F0F4EF; /* Main background from screenshot */
  --bg-secondary: #F4F4F5; /* Variant Background 2 */
  --text-main: #000000; /* Pure black text */
  --text-muted: #626A74; /* Text color from screenshot */
  --accent-primary: #D4AF37; /* Royal Gold */
  --accent-secondary: #F6C556; /* Soft Gold */
  --accent-glow: rgba(212, 175, 55, 0.08);
  --glass-bg: rgba(255, 255, 255, 0.75);
  --glass-border: rgba(212, 175, 55, 0.25);
  --glass-shadow: 0 8px 32px 0 rgba(212, 175, 55, 0.06);
  --text-gradient: linear-gradient(135deg, #D4AF37 0%, #FFB347 100%);
  --card-gradient: linear-gradient(135deg, rgba(212, 175, 55, 0.04) 0%, rgba(246, 197, 86, 0.04) 100%);
  --node-bg: #FFFFFF;
  --node-border: #D4AF37;
  --node-text: #000000;
}

/* THEME SPECIFICS: KIDS STEM EXPLORER (VIBRANT & ROUNDED) */
.theme-kids {
  --bg-primary: #F0FDF4; /* Light mint/white */
  --bg-secondary: #DCFCE7;
  --text-main: #1E293B;
  --text-muted: #64748B;
  --accent-primary: #F97316; /* Bouncy Orange */
  --accent-secondary: #14B8A6; /* Bright Teal */
  --accent-glow: rgba(249, 115, 22, 0.15);
  --glass-bg: rgba(255, 255, 255, 0.85);
  --glass-border: rgba(20, 184, 166, 0.3);
  --glass-shadow: 0 10px 25px -5px rgba(20, 184, 166, 0.1), 0 8px 10px -6px rgba(20, 184, 166, 0.1);
  --text-gradient: linear-gradient(135deg, #F97316 0%, #F59E0B 100%);
  --card-gradient: linear-gradient(135deg, rgba(249, 115, 22, 0.08) 0%, rgba(20, 184, 166, 0.08) 100%);
  --node-bg: #FFFFFF;
  --node-border: #14B8A6;
  --node-text: #1E293B;
  border-radius: 24px;
}

/* KIDS STEM DARK MODE OVERRIDES */
.theme-kids.theme-dark {
  --bg-primary: #052E16; /* Deep forest green */
  --bg-secondary: #064E3B; /* Forest green */
  --text-main: #F0FDF4; /* Off-white green */
  --text-muted: #86EFAC; /* Bright light green */
  --accent-primary: #FB923C; /* Bright orange */
  --accent-secondary: #2DD4BF; /* Bright teal */
  --accent-glow: rgba(251, 146, 60, 0.15);
  --glass-bg: rgba(6, 78, 59, 0.7);
  --glass-border: rgba(45, 212, 191, 0.35);
  --glass-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  --text-gradient: linear-gradient(135deg, #FB923C 0%, #F59E0B 100%);
  --card-gradient: linear-gradient(135deg, rgba(251, 146, 60, 0.08) 0%, rgba(45, 212, 191, 0.08) 100%);
  --node-bg: #065F46;
  --node-border: #2DD4BF;
  --node-text: #F0FDF4;
}

/* THEME SPECIFICS: TECHNICAL/MANAGEMENT PROFESSIONAL (SLEEK GOLD-CHARCOAL) */
.theme-professional {
  --bg-primary: #1A1A1A; /* Charcoal black */
  --bg-secondary: #2A2A2A; /* Dark grey UI backgrounds */
  --text-main: #FFFFFF;
  --text-muted: #A0A0A0;
  --accent-primary: #D4AF37; /* Royal Gold */
  --accent-secondary: #FFD700; /* Metallic gold highlight */
  --accent-glow: rgba(212, 175, 55, 0.12);
  --glass-bg: rgba(42, 42, 42, 0.75);
  --glass-border: rgba(212, 175, 55, 0.25);
  --glass-shadow: 0 12px 40px rgba(0, 0, 0, 0.7);
  --text-gradient: linear-gradient(135deg, #FFD700 0%, #D4AF37 100%);
  --card-gradient: linear-gradient(135deg, rgba(212, 175, 55, 0.08) 0%, rgba(255, 215, 0, 0.08) 100%);
  --node-bg: #2A2A2A;
  --node-border: #D4AF37;
  --node-text: #FFFFFF;
}

/* PROFESSIONAL LIGHT MODE OVERRIDES */
.theme-professional.theme-light {
  --bg-primary: #F4F4F5;
  --bg-secondary: #FFFFFF;
  --text-main: #1A1A1A;
  --text-muted: #626A74;
  --accent-primary: #D4AF37;
  --accent-secondary: #FFB347;
  --accent-glow: rgba(212, 175, 55, 0.08);
  --glass-bg: rgba(255, 255, 255, 0.85);
  --glass-border: rgba(212, 175, 55, 0.2);
  --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.05);
  --text-gradient: linear-gradient(135deg, #D4AF37 0%, #FFB347 100%);
  --card-gradient: linear-gradient(135deg, rgba(212, 175, 55, 0.04) 0%, rgba(255, 179, 71, 0.04) 100%);
  --node-bg: #FFFFFF;
  --node-border: #D4AF37;
  --node-text: #1A1A1A;
}

/* Style option elements inside select to avoid white-on-white text readability issues */
.onboarding-form select option {
  background-color: #1A1A1A; /* Dark background default */
  color: #FFFFFF; /* Light text default */
}

/* Specific theme adjustments for select options */
.theme-light select option {
  background-color: #FFFFFF;
  color: #000000; /* Dark text */
}

.theme-professional select option {
  background-color: #2A2A2A;
  color: #FFFFFF;
}

.theme-professional.theme-light select option {
  background-color: #FFFFFF;
  color: #1A1A1A;
}

.theme-kids select option {
  background-color: #FFFFFF;
  color: #1E293B;
}

.theme-kids.theme-dark select option {
  background-color: #064E3B;
  color: #F0FDF4;
}

/* BASE HTML DESIGN */
html, body {
  width: 100%;
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--text-main);
  background-color: var(--bg-primary);
  overflow-x: hidden;
  transition: background-color 0.5s ease, color 0.3s ease;
}

/* BACKDROP AMBIENCE */
.space-background-effects {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  overflow: hidden;
  pointer-events: none;
}

.neon-glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(140px);
  opacity: 0.35;
  transition: var(--transition-smooth);
}

.theme-light .neon-glow-orb {
  opacity: 0.15;
}

.orb-1 {
  top: -10%;
  right: 15%;
  width: 500px;
  height: 500px;
  background-color: var(--accent-primary);
  animation: floatOrb1 15s infinite alternate ease-in-out;
}

.orb-2 {
  bottom: -10%;
  left: 10%;
  width: 450px;
  height: 450px;
  background-color: var(--accent-secondary);
  animation: floatOrb2 20s infinite alternate ease-in-out;
}

.grid-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 50px 50px;
  z-index: -1;
  opacity: 0.7;
}

.theme-light .grid-overlay {
  background-image: 
    linear-gradient(rgba(0, 0, 0, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.03) 1px, transparent 1px);
}

.theme-kids .grid-overlay {
  background-image: 
    linear-gradient(rgba(20, 184, 166, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20, 184, 166, 0.04) 1px, transparent 1px);
  background-size: 40px 40px;
}

.theme-kids.theme-dark .grid-overlay {
  background-image: 
    linear-gradient(rgba(45, 212, 191, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(45, 212, 191, 0.06) 1px, transparent 1px);
  background-size: 40px 40px;
}

/* ==========================================
   LAYOUT UTILITIES & STRUCTURE
   ========================================== */

.app-viewport {
  max-width: 1300px;
  margin: 0 auto;
  padding: 100px 20px 40px;
  min-height: calc(100vh - 80px);
  display: flex;
  flex-direction: column;
}

/* GLASS EFFECT CLASS */
.card-glass {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  box-shadow: var(--glass-shadow);
  padding: 30px;
  transition: var(--transition-smooth);
}

.theme-kids .card-glass {
  border-radius: 28px;
  border: 3px solid var(--glass-border);
}

/* NAVBAR STYLE */
.glass-navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 75px;
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--glass-border);
  z-index: 100;
  transition: var(--transition-smooth);
}

.nav-container {
  max-width: 1300px;
  height: 100%;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand-logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  cursor: pointer;
}

.brand-accent {
  color: var(--accent-primary);
  text-shadow: 0 0 10px rgba(139, 92, 246, 0.3);
}

.theme-kids .brand-accent {
  color: var(--accent-primary);
  text-shadow: none;
}

.navbar-actions {
  display: flex;
  align-items: center;
  gap: 15px;
}

/* ==========================================
   BUTTONS & CONTROLS
   ========================================== */

.action-btn-primary {
  background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
  color: #FFFFFF;
  border: none;
  font-family: var(--font-display);
  font-weight: 600;
  padding: 12px 24px;
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition-bounce);
  box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
}

.action-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(139, 92, 246, 0.5);
}

.action-btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-main);
  border: 1px solid rgba(255, 255, 255, 0.15);
  font-family: var(--font-display);
  font-weight: 600;
  padding: 12px 24px;
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition-smooth);
  text-decoration: none;
}

.action-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
}

.icon-btn {
  background: transparent;
  color: var(--text-main);
  border: 1px solid var(--glass-border);
  padding: 10px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}

.icon-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: scale(1.05);
}

.theme-kids .action-btn-primary {
  border-radius: 20px;
  background: var(--accent-primary);
  border: 3px solid #000000;
  color: #000000;
  box-shadow: 4px 4px 0px #000000;
  font-weight: 800;
  transform: translate(-2px, -2px);
}

.theme-kids .action-btn-primary:hover {
  transform: translate(0px, 0px);
  box-shadow: 1px 1px 0px #000000;
}

.theme-kids .action-btn-secondary {
  border-radius: 20px;
  background: var(--accent-secondary);
  border: 3px solid #000000;
  color: #000000;
  box-shadow: 4px 4px 0px #000000;
  font-weight: 800;
}

/* ==========================================
   SCREENS ENGINE
   ========================================== */

.screen {
  display: none;
  width: 100%;
  animation: screenReveal 0.4s ease-out forwards;
}

.screen.active {
  display: flex;
  flex-direction: column;
  flex: 1;
}

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

/* ==========================================
   SCREEN 1: ONBOARDING VIEW
   ========================================== */

.hero-container {
  max-width: 720px;
  margin: 40px auto;
  text-align: center;
}

.badge-title {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--accent-secondary);
  background: rgba(6, 182, 212, 0.1);
  padding: 6px 14px;
  border-radius: 20px;
  margin-bottom: 20px;
}

.theme-kids .badge-title {
  color: #FFFFFF;
  background: var(--accent-secondary);
  border: 2px solid #000000;
  box-shadow: 2px 2px 0 #000000;
}

h1 {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 15px;
}

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

.subtitle-text {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 35px;
}

/* ONBOARDING FORM */
.onboarding-form {
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

@media (max-width: 600px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-main);
}

.onboarding-form input[type="text"],
.onboarding-form select {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  padding: 12px 16px;
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 1rem;
  outline: none;
  transition: var(--transition-smooth);
}

.onboarding-form input[type="text"]:focus,
.onboarding-form select:focus {
  border-color: var(--accent-secondary);
  box-shadow: 0 0 10px rgba(6, 182, 212, 0.15);
}

.theme-kids input[type="text"],
.theme-kids select {
  border-radius: 16px;
  border: 3px solid #000000;
  background: #FFFFFF;
  color: #000000;
}

/* INTERESTS CHECKBOX PILLS */
.interests-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
  margin-top: 5px;
}

.interest-pill-checkbox {
  position: relative;
  cursor: pointer;
  display: flex;
}

.interest-pill-checkbox input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.interest-pill-checkbox .pill-label {
  display: block;
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 0.9rem;
  text-align: center;
  transition: var(--transition-smooth);
  user-select: none;
}

.interest-pill-checkbox input:checked + .pill-label {
  background: var(--card-gradient);
  border-color: var(--accent-secondary);
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(6, 182, 212, 0.15);
  transform: translateY(-1px);
}

.theme-kids .interest-pill-checkbox .pill-label {
  border: 3px solid #000000;
  background: #FFFFFF;
  color: #000000;
  font-weight: 700;
  border-radius: 20px;
}

.theme-kids .interest-pill-checkbox input:checked + .pill-label {
  background: var(--accent-secondary);
  box-shadow: 3px 3px 0px #000000;
  transform: translateY(-2px);
}

/* CTA BUTTON PULSE */
.cta-button {
  width: 100%;
  background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
  color: #FFFFFF;
  border: none;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  padding: 16px 32px;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 6px 20px rgba(139, 92, 246, 0.4);
  transition: var(--transition-bounce);
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(139, 92, 246, 0.6);
}

.btn-arrow {
  transition: transform 0.3s ease;
}

.cta-button:hover .btn-arrow {
  transform: translateX(4px);
}

.theme-kids .cta-button {
  background: var(--accent-primary);
  border: 3px solid #000000;
  border-radius: 24px;
  color: #000000;
  box-shadow: 5px 5px 0 #000000;
}

.theme-kids .cta-button:hover {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 #000000;
}

/* ==========================================
   SCREEN 2: GAMEPLAY RPG VIEW
   ========================================== */

.game-container {
  max-width: 850px;
  margin: 20px auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
  flex: 1;
}

/* HUD BAR */
.game-hud {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 25px;
  border-radius: 12px;
  gap: 15px;
}

@media (max-width: 600px) {
  .game-hud {
    flex-direction: column;
    align-items: flex-start;
  }
}

.hud-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hud-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  text-transform: uppercase;
}

.hud-value {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
}

.progress-tracker {
  flex: 1;
  max-width: 350px;
}

.progress-bar-container {
  flex: 1;
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.theme-kids .progress-bar-container {
  border: 2px solid #000000;
  background: #FFFFFF;
}

.theme-kids .progress-bar-fill {
  background: var(--accent-secondary);
}

/* RPG BOARD CARD */
.rpg-card {
  display: flex;
  flex-direction: column;
  gap: 30px;
  padding: 40px;
  position: relative;
  overflow: hidden;
}

/* FLOATING STATS ALERT */
.floating-points-alert {
  position: absolute;
  top: 30px;
  right: 40px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
  z-index: 50;
}

.floating-stat-indicator {
  background: var(--accent-secondary);
  color: #000000;
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 0.85rem;
  padding: 8px 14px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(6, 182, 212, 0.35);
  border: 2px solid #000000;
  animation: floatPointsGained 1.8s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

.theme-kids .floating-stat-indicator {
  background: var(--accent-primary);
  color: #000000;
}

@keyframes floatPointsGained {
  0% {
    opacity: 0;
    transform: translateY(20px) scale(0.8);
  }
  15% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  85% {
    opacity: 1;
    transform: translateY(-20px) scale(1);
  }
  100% {
    opacity: 0;
    transform: translateY(-45px) scale(0.9);
  }
}

/* SPEECH PANEL */
.character-narrator-panel {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 20px;
  border-radius: 12px;
}

.avatar-container {
  width: 65px;
  height: 65px;
  border-radius: 50%;
  background: var(--card-gradient);
  border: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  flex-shrink: 0;
  box-shadow: 0 0 15px var(--accent-glow);
}

.theme-kids .avatar-container {
  width: 80px;
  height: 80px;
  font-size: 3rem;
  border: 3px solid #000000;
  background: var(--accent-secondary);
}

.narrative-bubble {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.narrative-bubble h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--accent-secondary);
  font-weight: 700;
}

.narrative-bubble p {
  line-height: 1.5;
  color: var(--text-main);
  transition: var(--transition-smooth);
}

/* QUESTION AREA & PANES */
.question-pane, .feedback-pane {
  animation: fadeIn 0.4s ease-out forwards;
}

.question-pane h2 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 25px;
}

.options-container {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.rpg-option-btn {
  width: 100%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  padding: 18px 24px;
  text-align: left;
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 1.05rem;
  cursor: pointer;
  transition: var(--transition-bounce);
  position: relative;
  overflow: hidden;
}

.rpg-option-btn:hover {
  background: var(--card-gradient);
  border-color: var(--accent-secondary);
  transform: translateX(5px);
  box-shadow: 0 5px 15px var(--accent-glow);
}

.theme-kids .rpg-option-btn {
  border: 3px solid #000000;
  background: #FFFFFF;
  color: #000000;
  font-weight: 700;
  border-radius: 20px;
  box-shadow: 4px 4px 0 #000000;
}

.theme-kids .rpg-option-btn:hover {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 #000000;
  background: var(--accent-secondary);
}

/* FEEDBACK STORY / WALKTHROUGH STYLE VIEW */
.feedback-bubble {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 20px;
}

.feedback-title-badge {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--accent-secondary);
  letter-spacing: 2px;
  margin-bottom: 8px;
}

.points-reward-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.reward-badge {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  background: rgba(16, 185, 129, 0.12);
  color: #10B981;
  padding: 6px 12px;
  border-radius: 6px;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

/* ==========================================
   SCREEN 3: ANALYTICS & ROADMAP VIEWPORT
   ========================================== */

.dashboard-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 30px;
  align-items: start;
}

@media (max-width: 950px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
}

/* SIDEBAR STYLES */
.dashboard-sidebar {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.sidebar-card {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.text-center {
  text-align: center;
  align-items: center;
}

.user-avatar-badge {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--card-gradient);
  border: 2px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.8rem;
  margin-bottom: 5px;
}

.theme-kids .user-avatar-badge {
  border: 3px solid #000000;
  background: var(--accent-secondary);
}

.user-class-label {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  text-transform: uppercase;
  color: var(--accent-secondary);
  background: rgba(6, 182, 212, 0.1);
  padding: 4px 12px;
  border-radius: 12px;
  letter-spacing: 1.5px;
}

.divider {
  width: 100%;
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.quick-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 100%;
  gap: 10px;
}

.metric-box {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 12px 5px;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.metric-num {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--accent-secondary);
}

.metric-label {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* SKILL LEVEL BARS */
.skill-bars-container {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.skill-bar-wrapper {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.skill-bar-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
}

.skill-bar-label {
  font-weight: 600;
  font-family: var(--font-display);
}

.skill-bar-pct {
  font-family: var(--font-mono);
  color: var(--accent-secondary);
}

.skill-bar-track {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  overflow: hidden;
}

.skill-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
  transition: width 0.8s ease-out;
}

.flex-row-controls {
  flex-direction: column;
  gap: 12px;
}

.full-width {
  width: 100%;
}

/* MAIN DASHBOARD CONTENT */
.dashboard-main {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

/* TABS ROW */
.dashboard-tabs {
  display: flex;
  gap: 10px;
  padding: 8px;
  border-radius: 12px;
}

.tab-link {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-display);
  font-weight: 600;
  padding: 14px 10px;
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition-smooth);
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.tab-link:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.03);
}

.tab-link.active {
  color: #FFFFFF;
  background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.25);
}

.theme-kids .tab-link.active {
  background: var(--accent-secondary);
  color: #000000;
  border: 3px solid #000000;
  box-shadow: 3px 3px 0 #000000;
  font-weight: 800;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

/* ROADMAP TREE STRUCTURE */
.roadmap-canvas-wrapper {
  position: relative;
  overflow: hidden;
  padding: 40px;
  min-height: 550px;
}

.roadmap-header {
  margin-bottom: 35px;
}

.roadmap-header h2 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 5px;
}

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

/* GITHUB REPO MD IMPORTER DESIGNS */
.importer-wrapper {
  padding: 20px 25px;
}

.file-uploader-box {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 15px;
}

.hidden-input {
  display: none;
}

.roadmap-nodes-container {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 60px;
  z-index: 1;
}

/* CONNECTORS CANVAS */
.roadmap-svg-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}

.svg-connection-line {
  stroke: var(--accent-secondary);
  stroke-width: 3;
  stroke-dasharray: 6, 6;
  fill: none;
  opacity: 0.55;
  animation: strokeFlow 30s linear infinite;
}

@keyframes strokeFlow {
  to {
    stroke-dashoffset: -100;
  }
}

.roadmap-branches-wrapper {
  display: flex;
  flex-direction: column;
  gap: 80px;
  width: 100%;
}

/* ROADMAP STAGE BANDS */
.roadmap-stage-band {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.stage-title-tag {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent-primary);
  align-self: flex-start;
  background: rgba(139, 92, 246, 0.08);
  padding: 4px 12px;
  border-radius: 6px;
}

.nodes-row {
  display: flex;
  flex-wrap: wrap;
  gap: 25px;
  width: 100%;
}

/* THE NODE CARD BLOCK */
.roadmap-node-card {
  flex: 1;
  min-width: 240px;
  max-width: 360px;
  background: var(--node-bg);
  border: 1px solid var(--node-border);
  border-radius: 12px;
  padding: 20px 24px;
  cursor: pointer;
  transition: var(--transition-bounce);
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.roadmap-node-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent-secondary);
  box-shadow: 0 8px 25px var(--accent-glow);
}

.roadmap-node-card.active-node {
  border-color: var(--accent-secondary);
  box-shadow: 0 0 15px var(--accent-secondary);
}

.node-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--node-text);
}

.node-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.node-meta-pills {
  display: flex;
  gap: 8px;
  margin-top: 5px;
}

.meta-pill {
  font-size: 0.72rem;
  font-family: var(--font-mono);
  background: rgba(255, 255, 255, 0.06);
  padding: 3px 8px;
  border-radius: 6px;
  color: var(--text-muted);
}

.theme-kids .roadmap-node-card {
  border: 3px solid #000000;
  border-radius: 20px;
  box-shadow: 4px 4px 0px #000000;
}

.theme-kids .roadmap-node-card:hover {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0px #000000;
}

/* ==========================================
   RESOURCES OVERLAY SLIDE DRAWER
   ========================================== */

.node-detail-drawer {
  position: fixed;
  top: 0;
  right: -450px;
  width: 420px;
  height: 100%;
  background: var(--bg-secondary);
  border-left: 1px solid var(--glass-border);
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
  z-index: 999;
  padding: 40px 30px;
  overflow-y: auto;
  transition: right 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.node-detail-drawer.open {
  right: 0;
}

.drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.drawer-header h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
}

.close-drawer-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 2rem;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.close-drawer-btn:hover {
  color: var(--text-main);
  transform: rotate(90deg);
}

.drawer-body {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.bullet-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.bullet-list li {
  position: relative;
  padding-left: 20px;
  font-size: 0.9rem;
  line-height: 1.4;
}

.bullet-list li::before {
  content: "✔";
  position: absolute;
  left: 0;
  color: var(--accent-secondary);
}

.resource-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.resource-link-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 12px 16px;
  border-radius: 8px;
  text-decoration: none;
  color: var(--text-main);
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: var(--transition-smooth);
}

.resource-link-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--accent-primary);
  transform: translateY(-2px);
}

.res-name {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--accent-secondary);
}

.res-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.45;
}

/* ==========================================
   ANALYTICS TAB CONTENT
   ========================================== */

.content-padding {
  padding: 40px;
}

.text-block h2 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 20px;
}

.analytics-badge-row {
  display: flex;
  gap: 10px;
  margin-bottom: 25px;
}

.report-badge {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 4px;
}

.report-badge.success {
  background: rgba(16, 185, 129, 0.15);
  color: #10B981;
}

.report-badge.primary {
  background: rgba(139, 92, 246, 0.15);
  color: #A78BFA;
}

.report-narrative {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text-main);
  margin-bottom: 30px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.card-gradient {
  background: var(--card-gradient);
  border: 1px solid var(--glass-border);
  padding: 24px;
  border-radius: 12px;
  margin-top: 15px;
}

/* ==========================================
   CAREER BOARD CONTENT
   ========================================== */

.career-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 15px;
}

.career-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 24px;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: var(--transition-smooth);
}

.career-card:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--accent-secondary);
  transform: translateY(-3px);
}

.career-card h4 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
}

.career-card p {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.career-skills-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 5px;
}

.career-skill-tag {
  font-size: 0.7rem;
  font-family: var(--font-mono);
  background: rgba(6, 182, 212, 0.08);
  color: var(--accent-secondary);
  padding: 3px 8px;
  border-radius: 4px;
  white-space: nowrap;
}

/* FAQ ACCORDION */
.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 15px;
}

.faq-item {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  background: transparent;
  border: none;
  padding: 18px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-main);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  text-align: left;
}

.faq-question:hover {
  background: rgba(255, 255, 255, 0.02);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
  padding: 0 24px;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--text-muted);
}

.faq-item.active-faq .faq-answer {
  max-height: 500px;
  padding-bottom: 18px;
}

.faq-icon {
  font-size: 1.2rem;
  transition: transform 0.3s ease;
}

.faq-item.active-faq .faq-icon {
  transform: rotate(45deg);
}

/* ==========================================
   KEYFRAME ANIMATIONS
   ========================================== */

@keyframes floatOrb1 {
  0% {
    transform: translate(0, 0) scale(1);
  }
  100% {
    transform: translate(-50px, 60px) scale(1.1);
  }
}

@keyframes floatOrb2 {
  0% {
    transform: translate(0, 0) scale(1);
  }
  100% {
    transform: translate(60px, -40px) scale(1.15);
  }
}

.animate-fade-in {
  opacity: 0;
  transform: translateY(10px);
  animation: fadeInUp 0.4s ease-out forwards;
}

.delay-1 {
  animation-delay: 0.15s;
}

.delay-2 {
  animation-delay: 0.3s;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* PRINT MEDIA PRESETS */
@media print {
  body {
    background: #FFFFFF;
    color: #000000;
  }
  .glass-navbar, 
  .dashboard-tabs, 
  .flex-row-controls,
  .space-background-effects,
  .importer-wrapper,
  .action-btn-secondary {
    display: none !important;
  }
  .app-viewport {
    padding-top: 20px;
  }
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
  .card-glass {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
  }
  .tab-content {
    display: block !important;
  }
  .node-detail-drawer {
    position: relative;
    right: 0 !important;
    width: 100%;
    border: 1px solid #CCCCCC;
    box-shadow: none;
    margin-top: 20px;
  }
}

/* ==========================================
   NAVIGATION LINKS & BACKDROP ADDITIONS
   ========================================== */
.nav-links {
  display: flex;
  gap: 25px;
  align-items: center;
}

.nav-link-item {
  color: var(--text-muted);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition-smooth);
  position: relative;
}

.nav-link-item::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: var(--accent-secondary);
  transition: var(--transition-smooth);
}

.nav-link-item:hover {
  color: var(--text-main);
}

.nav-link-item:hover::after {
  width: 100%;
}

.drawer-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 998; /* Below detail drawer which is 999 */
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.drawer-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

/* NEWSLETTER CARD STYLING */
#newsletterCard {
  margin-top: 20px;
  text-align: left;
}

#newsletterEmail {
  width: 100%;
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 0.9rem;
  outline: none;
  transition: var(--transition-smooth);
}

#newsletterEmail:focus {
  border-color: var(--accent-secondary);
  box-shadow: 0 0 10px rgba(6, 182, 212, 0.15);
}

.theme-kids #newsletterEmail {
  border: 3px solid #000000;
  border-radius: 16px;
  background: #FFFFFF;
  color: #000000;
}

/* ==========================================
   NAVIGATION LINKS & BACKDROP ADDITIONS
   ========================================== */
.nav-link-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition-smooth);
  position: relative;
  padding: 0;
}

.nav-link-btn::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: var(--accent-secondary);
  transition: var(--transition-smooth);
}

.nav-link-btn:hover {
  color: var(--text-main);
}

.nav-link-btn:hover::after {
  width: 100%;
}

/* ==========================================
   CREDITS & OPEN SOURCE MODAL
   ========================================== */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  width: 90%;
  max-width: 650px;
  max-height: 85vh;
  background: var(--bg-secondary);
  border: 1px solid var(--glass-border);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
  border-radius: 16px;
  padding: 30px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transform: scale(0.9);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal-backdrop.open .modal-card {
  transform: scale(1);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px dashed var(--glass-border);
  padding-bottom: 15px;
}

.modal-header h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-main);
}

.close-modal-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
  transition: var(--transition-smooth);
}

.close-modal-btn:hover {
  color: var(--text-main);
  transform: rotate(90deg);
}

.modal-intro {
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--text-main);
}

.credits-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin-top: 10px;
}

@media (max-width: 600px) {
  .credits-grid {
    grid-template-columns: 1fr;
  }
}

.credit-item {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  gap: 15px;
  align-items: flex-start;
  transition: var(--transition-smooth);
}

.credit-item:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--accent-secondary);
  transform: translateY(-2px);
}

.credit-icon {
  font-size: 1.8rem;
  line-height: 1;
}

.credit-details h4 {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 4px;
}

.credit-details p {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin-bottom: 8px;
}

.credit-link {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent-secondary);
  text-decoration: none;
  font-weight: 600;
}

.credit-link:hover {
  text-decoration: underline;
}

.oss-banner {
  margin-top: 15px;
  padding: 20px;
  border-radius: 12px;
}

.oss-banner h4 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--accent-secondary);
}

.oss-banner p {
  font-size: 0.85rem;
  line-height: 1.45;
  color: var(--text-main);
}

/* ==========================================
   KIDS MODE OVERRIDES FOR MODAL
   ========================================== */
.theme-kids .modal-card {
  border: 3px solid #000000;
  border-radius: 24px;
  box-shadow: 8px 8px 0px #000000;
  background: var(--bg-primary);
}

.theme-kids .modal-header h2 {
  color: #000000;
  font-family: var(--font-mono);
}

.theme-kids .close-modal-btn {
  color: #000000;
}

.theme-kids .credit-item {
  border: 3px solid #000000;
  border-radius: 16px;
  box-shadow: 4px 4px 0px #000000;
  background: #FFFFFF;
}

.theme-kids .credit-details h4 {
  color: #000000;
}

.theme-kids .credit-link {
  color: var(--accent-primary);
  font-weight: 700;
}

.theme-kids .oss-banner {
  border: 3px solid #000000;
  border-radius: 16px;
  background: var(--bg-secondary);
}

.theme-kids .oss-banner h4 {
  color: #000000;
}

.theme-kids .oss-banner p {
  color: #000000;
}

/* ==========================================
   HOMEPAGE STYLES & INTERACTIVE ANIMATIONS
   ========================================== */
.home-hero-container {
  max-width: 900px;
  margin: 30px auto;
  text-align: center;
}

.home-tagline {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 20px;
  color: var(--text-main);
}

.home-cta-box {
  margin: 40px auto;
  max-width: 400px;
}

.home-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  margin-top: 50px;
}

.home-feature-card {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 30px 24px;
  text-align: left;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), border-color 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: var(--glass-shadow);
}

.theme-kids .home-feature-card {
  border: 3px solid #000000;
  border-radius: 24px;
  box-shadow: 5px 5px 0px #000000;
  background: #FFFFFF;
}

.home-feature-card:hover {
  transform: translateY(-8px) scale(1.02) rotate(0.5deg);
  border-color: var(--accent-secondary);
  box-shadow: 0 12px 30px rgba(6, 182, 212, 0.2);
}

.theme-kids .home-feature-card:hover {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0px #000000;
}

.feature-icon {
  font-size: 2.5rem;
  line-height: 1;
}

.home-feature-card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
}

.theme-kids .home-feature-card h3 {
  color: #000000;
}

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

.theme-kids .home-feature-card p {
  color: #1E293B;
}

.seo-content-block {
  text-align: left;
  max-width: 850px;
  margin: 40px auto 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.seo-content-block h2 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-main);
}

.theme-kids .seo-content-block h2 {
  color: #000000;
  font-family: var(--font-mono);
}

.seo-paragraphs {
  display: flex;
  flex-direction: column;
  gap: 15px;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.theme-kids .seo-paragraphs {
  color: #1E293B;
}

/* Pulse animation on landing CTA button */
.pulse-effect {
  position: relative;
}

.pulse-effect::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  box-shadow: 0 0 0 0 rgba(139, 92, 246, 0.6);
  animation: buttonPulse 2s infinite;
  pointer-events: none;
}

.theme-kids .pulse-effect::before {
  box-shadow: 0 0 0 0 rgba(249, 115, 22, 0.6);
}

@keyframes buttonPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(139, 92, 246, 0.7);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(139, 92, 246, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(139, 92, 246, 0);
  }
}

/* Staggered Title Animations */
@keyframes heroFadeIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-hero-fade {
  animation: heroFadeIn 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* ==========================================
   MOBILE RESPONSIVENESS OVERRIDES
   ========================================== */
@media (max-width: 992px) {
  h1 {
    font-size: 2.6rem;
  }
  .home-tagline {
    font-size: 1.8rem;
  }
}

@media (max-width: 768px) {
  /* Viewport and padding */
  .app-viewport {
    padding: 95px 15px 30px;
    min-height: calc(100vh - 75px);
  }

  /* Navbar Adjustments */
  .glass-navbar {
    height: auto;
    padding: 10px 0;
    position: relative; /* Release fixed on narrow mobile viewport to prevent overlapping */
  }
  .nav-container {
    flex-direction: column;
    gap: 12px;
    align-items: center;
    padding: 0 15px;
  }
  .nav-links {
    gap: 14px;
    width: 100%;
    justify-content: center;
    margin-top: 4px;
  }
  .nav-link-item, .nav-link-btn {
    font-size: 0.85rem;
  }
  .navbar-actions {
    gap: 10px;
    width: 100%;
    justify-content: center;
    margin-top: 4px;
  }
  .brand-logo {
    font-size: 1.25rem;
  }
  
  /* Hero spacing */
  .home-hero-container {
    margin: 15px auto;
  }
  h1 {
    font-size: 2.2rem;
  }
  .home-tagline {
    font-size: 1.5rem;
  }
  .subtitle-text {
    font-size: 0.95rem;
    margin-bottom: 25px;
  }
  .home-features-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 35px;
  }
  .home-feature-card {
    padding: 24px 20px;
  }
}

@media (max-width: 600px) {
  /* Onboarding */
  .hero-container {
    margin: 10px auto;
  }
  .onboarding-form {
    gap: 18px;
  }
  .interests-grid {
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 8px;
  }
  .interest-pill-checkbox .pill-label {
    padding: 10px 8px;
    font-size: 0.8rem;
  }
  
  /* Details drawer to Fullscreen */
  .node-detail-drawer {
    width: 100%;
    right: -100%;
    padding: 30px 20px;
  }
  .node-detail-drawer.open {
    right: 0;
  }
  
  /* Roadmap SVG canvas scrollable helper */
  .roadmap-canvas-wrapper {
    overflow: hidden;
    width: 100%;
  }
  .roadmap-nodes-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 15px;
  }
  .roadmap-branches-wrapper {
    min-width: 600px; /* Force minimum horizontal width so paths connect in a scrollable view instead of wrapping messy */
  }
}

/* Radar Chart & Share button general styling */
#skillRadarCanvas {
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.2);
}

.theme-kids #skillRadarCanvas {
  background: #FFFFFF;
  border: 3px solid #000000;
  box-shadow: 3px 3px 0px #000000;
}

#shareProfileBtn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.3s ease;
}

#shareProfileBtn.copied {
  background: #10B981 !important; /* Green for success */
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4) !important;
}

/* BRAND LOGO IMAGE STYLING */
.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand-img {
  height: 42px;
  width: auto;
  object-fit: contain;
}

/* SCROLLED STICKY HEADER STYLING */
.glass-navbar {
  transition: background-color 0.3s ease, border-color 0.3s ease;
}
.theme-adult-rpg .glass-navbar,
.theme-professional .glass-navbar {
  background: rgba(0, 0, 0, 0.8);
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}
.theme-adult-rpg .glass-navbar.scrolled,
.theme-professional .glass-navbar.scrolled {
  background: #1A1A1A !important;
  border-bottom-color: rgba(212, 175, 55, 0.4);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}
.theme-light .glass-navbar.scrolled {
  background: #FFFFFF !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

/* GOLD BUTTONS & CTA STYLE FOR DARK THEMES */
.theme-adult-rpg .action-btn-primary,
.theme-professional .action-btn-primary,
.theme-adult-rpg .cta-button,
.theme-professional .cta-button {
  background: #D4AF37 !important;
  color: #000000 !important;
  border: 1px solid #D4AF37 !important;
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.2);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.theme-adult-rpg .action-btn-primary:hover,
.theme-professional .action-btn-primary:hover,
.theme-adult-rpg .cta-button:hover,
.theme-professional .cta-button:hover {
  background: #000000 !important;
  color: #D4AF37 !important;
  border-color: #D4AF37 !important;
  box-shadow: 0 8px 25px rgba(212, 175, 55, 0.4) !important;
  transform: translateY(-2px);
}

/* SYSTEM FLOW PATHWAY */
.flow-pathway {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  flex-wrap: nowrap;
  margin-top: 1.5rem;
}
.flow-step {
  flex: 1;
  background: #000000;
  border: 1px solid var(--accent-primary);
  border-radius: 12px;
  padding: 20px;
  min-height: 220px;
  text-align: center;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}
.flow-step:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(212, 175, 55, 0.2);
}
.step-badge {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--accent-primary);
  color: #000000;
  font-weight: 800;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #000000;
}
.step-icon {
  font-size: 2rem;
  margin-bottom: 10px;
  margin-top: 5px;
}
.flow-step h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin-bottom: 8px;
  color: var(--accent-secondary);
}
.flow-step p {
  font-size: 0.85rem;
  color: var(--text-main);
  opacity: 0.85;
  line-height: 1.4;
}
.flow-arrow {
  color: var(--accent-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: pulseArrow 1.5s infinite alternate ease-in-out;
}
@keyframes pulseArrow {
  from { transform: translateX(0); }
  to { transform: translateX(5px); }
}

/* Light mode specific step details */
.theme-light .flow-step {
  background: #FFFFFF;
  border-color: rgba(212, 175, 55, 0.4);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
}
.theme-light .flow-step p {
  color: #626A74;
}

/* APP GLOBAL FOOTER */
.app-footer {
  margin-top: 4rem;
  padding: 40px 20px;
  background: #000000;
  border-top: 1px solid rgba(212, 175, 55, 0.2);
  color: #FFFFFF;
  text-align: center;
}
.footer-container {
  max-width: 1300px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 1px;
}
.footer-logo {
  height: 30px;
  width: auto;
}
.app-footer p {
  font-size: 0.9rem;
  opacity: 0.8;
}
.app-footer a {
  color: var(--accent-primary);
  text-decoration: none;
  font-weight: 500;
  transition: opacity 0.2s ease;
}
.app-footer a:hover {
  text-decoration: underline;
  opacity: 0.9;
}
.support-link {
  font-family: var(--font-mono);
  font-weight: 600;
  border-bottom: 1px dashed var(--accent-primary);
  padding-bottom: 2px;
}

/* RESPONSIVE LAYOUTS FOR SYSTEM FLOW PATHWAY */
@media (max-width: 992px) {
  .flow-pathway {
    flex-direction: column;
    gap: 30px;
    margin-top: 2rem;
  }
  .flow-step {
    width: 100%;
    max-width: 450px;
    min-height: auto;
  }
  .flow-arrow {
    transform: rotate(90deg);
    animation: pulseArrowVertical 1.5s infinite alternate ease-in-out;
  }
}
@keyframes pulseArrowVertical {
  from { transform: rotate(90deg) translateY(0); }
  to { transform: rotate(90deg) translateY(5px); }
}

/* ==========================================
   AUTHENTICATION & CONSULTANT CHAT STYLING
   ========================================== */

/* Auth Modal Specifics */
#authModalBackdrop {
  z-index: 1000;
}

/* Tab Link Consultant Indicator */
.dashboard-tabs button[data-tab="tab-consultant"] {
  position: relative;
}
.theme-adult-rpg .dashboard-tabs button[data-tab="tab-consultant"]::after,
.theme-professional .dashboard-tabs button[data-tab="tab-consultant"]::after {
  content: 'PREMIUM';
  position: absolute;
  top: -8px;
  right: -5px;
  font-size: 0.65rem;
  background: var(--accent-primary);
  color: #000;
  padding: 2px 6px;
  border-radius: 10px;
  font-weight: 800;
  font-family: var(--font-mono);
  box-shadow: 0 2px 6px rgba(212, 175, 55, 0.4);
}

/* Chat bubble types */
.chat-bubble {
  max-width: 80%;
  padding: 12px 18px;
  border-radius: 12px;
  line-height: 1.5;
  font-size: 0.95rem;
  word-wrap: break-word;
  animation: bubbleReveal 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.15) forwards;
}

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

.chat-bubble.user {
  background: var(--accent-primary);
  color: #000000;
  align-self: flex-end;
  border-bottom-right-radius: 2px;
  font-weight: 500;
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.2);
}

.chat-bubble.assistant {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--glass-border);
  color: var(--text-main);
  align-self: flex-start;
  border-bottom-left-radius: 2px;
}

.theme-light .chat-bubble.assistant {
  background: rgba(0, 0, 0, 0.02);
  border-color: rgba(0, 0, 0, 0.08);
  color: #1E293B;
}

/* Scrollbar customization for chat container */
#chatMessages::-webkit-scrollbar {
  width: 6px;
}
#chatMessages::-webkit-scrollbar-track {
  background: transparent;
}
#chatMessages::-webkit-scrollbar-thumb {
  background: rgba(212, 175, 55, 0.2);
  border-radius: 4px;
}
#chatMessages::-webkit-scrollbar-thumb:hover {
  background: var(--accent-primary);
}

/* Locked Chat Pricing details pulse keyframes */
#chatLockedView h2 {
  background: var(--text-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ==========================================
   CURATED PATHWAY SHORTCUT CARDS STYLING
   ========================================== */
.curated-pathways-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
  margin-top: 15px;
}

@media (max-width: 768px) {
  .curated-pathways-grid {
    grid-template-columns: 1fr;
  }
}

.curated-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(212, 175, 55, 0.15);
  border-radius: 12px;
  padding: 18px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  transition: var(--transition-smooth);
}

.curated-card:hover {
  background: rgba(212, 175, 55, 0.05);
  border-color: var(--accent-secondary);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.12);
}

.theme-light .curated-card {
  background: rgba(0, 0, 0, 0.01);
  border-color: rgba(212, 175, 55, 0.25);
}
.theme-light .curated-card:hover {
  background: rgba(212, 175, 55, 0.04);
}

.curated-card-icon {
  font-size: 1.8rem;
  line-height: 1;
}

.curated-card-info {
  flex: 1;
  min-width: 0;
}

.curated-card-info h4 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 0 0 4px 0;
}

.curated-card-info p {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.35;
  white-space: normal;
}

.curated-card-action {
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid rgba(212, 175, 55, 0.3);
  color: var(--accent-secondary);
  padding: 8px 14px;
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.curated-card-action:hover {
  background: var(--accent-secondary);
  color: #000000;
  border-color: var(--accent-secondary);
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
}

.theme-light .curated-card-action {
  color: #D4AF37;
  border-color: rgba(212, 175, 55, 0.5);
}
.theme-light .curated-card-action:hover {
  background: #D4AF37;
  color: #FFFFFF;
}

/* ==========================================
   SECONDARY HERO CTA BUTTON STYLING
   ========================================== */
.cta-button.secondary-cta {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(212, 175, 55, 0.25);
  color: var(--text-main);
  box-shadow: none;
}

.cta-button.secondary-cta:hover {
  background: rgba(212, 175, 55, 0.06);
  border-color: var(--accent-secondary);
  color: var(--accent-secondary);
  transform: translateY(-2px);
}

.theme-light .cta-button.secondary-cta {
  background: rgba(0, 0, 0, 0.01);
  color: #1E293B;
  border-color: rgba(212, 175, 55, 0.4);
}
}.theme-light .cta-button.secondary-cta:hover {
  background: rgba(212, 175, 55, 0.04);
  color: #D4AF37;
}

/* ==========================================
   NAV NAVIGATION DROPDOWN MENU
   ========================================== */
.nav-dropdown {
  position: relative;
  display: inline-block;
}

.nav-dropdown-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 8px 12px;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.nav-dropdown-btn:hover {
  color: var(--accent-secondary);
}

.nav-dropdown-content {
  display: none;
  position: absolute;
  top: calc(100% + 5px);
  left: 50%;
  transform: translateX(-50%);
  width: 300px;
  background: rgba(18, 18, 24, 0.98);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 10px;
  z-index: 9999;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  box-sizing: border-box;
}

.theme-light .nav-dropdown-content {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.nav-dropdown:hover .nav-dropdown-content {
  display: block;
}

/* Submenu items */
.nav-dropdown-item {
  position: relative;
  display: block;
  box-sizing: border-box;
}

.menu-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-main);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.theme-light .menu-label {
  color: #1E293B;
}

.nav-dropdown-item:hover .menu-label {
  background: rgba(212, 175, 55, 0.08);
  color: var(--accent-secondary);
}

.theme-light .nav-dropdown-item:hover .menu-label {
  background: rgba(212, 175, 55, 0.06);
  color: #D4AF37;
}

.menu-arrow {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  opacity: 0.7;
}

/* Secondary submenu panel */
.nav-submenu {
  display: none;
  position: absolute;
  left: calc(100% + 5px);
  top: 0;
  width: 250px;
  max-height: 380px;
  overflow-y: auto;
  background: rgba(18, 18, 24, 0.98);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 8px;
  z-index: 10000;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  box-sizing: border-box;
}

.theme-light .nav-submenu {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.nav-dropdown-item.has-submenu:hover .nav-submenu {
  display: block;
}

.dropdown-item-btn {
  display: block;
  width: 100%;
  box-sizing: border-box;
  background: transparent;
  border: none;
  color: var(--text-main);
  text-align: left;
  padding: 8px 12px;
  font-size: 0.86rem;
  font-family: var(--font-display);
  font-weight: 500;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.dropdown-item-btn:hover {
  background: rgba(212, 175, 55, 0.08);
  color: var(--accent-secondary);
  padding-left: 16px;
}

.theme-light .dropdown-item-btn {
  color: #1E293B;
}
.theme-light .dropdown-item-btn:hover {
  background: rgba(212, 175, 55, 0.06);
  color: #D4AF37;
}

.catalog-view-all {
  font-weight: 700;
  color: var(--accent-secondary);
  border: 1px dashed rgba(212, 175, 55, 0.3);
  margin-top: 4px;
}

.catalog-view-all:hover {
  border-color: var(--accent-secondary);
  background: rgba(212, 175, 55, 0.06);
}

.dropdown-divider {
  display: block;
  height: 1px;
  background: var(--glass-border);
  margin: 6px 0;
}


