:root {
  --font-primary: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  
  /* Modern Teen English Studio Color System */
  --bg-main: #12172A;
  --bg-secondary: #171E35;
  --card-surface: #202941;
  --card-elevated: #27324E;
  --card-border: rgba(148, 163, 184, 0.18);
  
  --primary-accent: #7667F8;
  --primary-accent-hover: #6353ea;
  --secondary-accent: #38BDF8;
  --success-color: #34D399;
  --error-color: #FB7185;
  --warning-color: #FBBF24;
  
  --text-main: #F8FAFC;
  --text-secondary: #A9B4CC;
  --text-muted: #74809A;

  --accent-primary: var(--primary-accent);
  --accent-primary-hover: var(--primary-accent-hover);
  --accent-secondary: var(--secondary-accent);
  --accent-warning: var(--warning-color);
  --accent-success: var(--success-color);
  --card-bg: var(--card-surface);
  --text-primary: var(--text-main);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 6px 18px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.4);
  --shadow-purple: 0 4px 16px rgba(118, 103, 248, 0.25);
  
  --transition-fast: 0.18s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="light"] {
  --bg-main: #F1F5F9;
  --bg-secondary: #E2E8F0;
  --card-surface: #FFFFFF;
  --card-elevated: #F8FAFC;
  --card-border: rgba(148, 163, 184, 0.25);
  --text-main: #0F172A;
  --text-secondary: #475569;
  --text-muted: #64748B;
  --card-bg: #FFFFFF;
  --text-primary: #0F172A;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: var(--font-primary);
  -webkit-tap-highlight-color: transparent;
}

body {
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* Container - Wide Screen Horizontal Expansion */
.container {
  width: 100% !important;
  max-width: 1580px !important;
  margin: 0 auto;
  padding: 0 28px !important;
  box-sizing: border-box !important;
}

/* Flush 100% Alignment with Header Outer Icons */
.welcome-portal-page, .welcome-hero-card, .dashboard-page, .unit-study-layout, .dashboard-hero-card, .daily-mission-card {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

/* Header & Top Navigation Bar */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--card-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--card-border);
  padding: 12px 0;
  transition: all var(--transition-normal);
  width: 100%;
}

.header-content {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  gap: 16px !important;
  flex-wrap: nowrap !important;
  white-space: nowrap !important;
  width: 100% !important;
  max-width: 1580px !important;
}

.logo {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  cursor: pointer;
  text-decoration: none;
  flex-shrink: 0 !important;
  white-space: nowrap !important;
}

.logo-badge {
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  color: white;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  box-shadow: var(--shadow-glow);
  flex-shrink: 0 !important;
}

.logo-text {
  white-space: nowrap !important;
  flex-shrink: 0 !important;
}

.logo-text h1 {
  font-size: 20px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.2;
  white-space: nowrap !important;
}

.logo-text p {
  font-size: 12px;
  color: var(--text-secondary);
  font-weight: 600;
  white-space: nowrap !important;
}

/* Gamification Stats in Header - Strict 1-Line Row */
.user-stats {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  flex-shrink: 0 !important;
  flex-wrap: nowrap !important;
  white-space: nowrap !important;
}

.stat-chip, #auth-account-chip {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--card-border);
  padding: 6px 14px !important;
  border-radius: 20px;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  font-size: 13.5px !important;
  font-weight: 800 !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  white-space: nowrap !important;
  flex-shrink: 0 !important;
  word-break: keep-all !important;
  height: 38px !important;
  box-sizing: border-box !important;
}

.stat-chip span, .stat-chip strong, .rank-tag, #user-gmail-status, #user-streak, #user-xp, #user-level, #user-rank-title {
  white-space: nowrap !important;
  display: inline-block !important;
  word-break: keep-all !important;
  line-height: 1 !important;
}

.stat-chip.xp {
  color: var(--accent-warning);
  background: rgba(245, 158, 11, 0.1);
}

.stat-chip.streak {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.1);
}

.stat-chip.level {
  color: var(--accent-primary);
  background: rgba(99, 102, 241, 0.1);
}

.theme-toggle-btn {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  color: var(--text-primary);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: transform var(--transition-fast), background var(--transition-fast);
}

.theme-toggle-btn:hover {
  transform: scale(1.1);
}

/* Main Layout Area */
main {
  flex: 1;
  padding: 30px 0 60px;
}

/* Dashboard View */
.dashboard-hero {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin-bottom: 36px;
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
}

.dashboard-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.2) 0%, rgba(236, 72, 153, 0) 70%);
  pointer-events: none;
}

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

.hero-title h2 {
  font-size: 26px;
  font-weight: 800;
  margin-bottom: 6px;
}

.hero-title p {
  color: var(--text-secondary);
  font-size: 15px;
}

.progress-bar-container {
  width: 100%;
  background: rgba(148, 163, 184, 0.2);
  height: 14px;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
}

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

.hero-badges-strip {
  display: flex;
  gap: 12px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.badge-item {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid var(--card-border);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  opacity: 0.5;
  filter: grayscale(1);
  transition: all var(--transition-fast);
}

.badge-item.unlocked {
  opacity: 1;
  filter: grayscale(0);
  background: rgba(16, 185, 129, 0.15);
  border-color: rgba(16, 185, 129, 0.4);
}

/* Units Grid Section */
.section-title {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.units-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
}

.unit-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-card);
  cursor: pointer;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.unit-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-glow);
  border-color: var(--accent-primary);
}

.unit-card-header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 14px;
}

.unit-icon {
  font-size: 36px;
  background: rgba(99, 102, 241, 0.1);
  width: 60px;
  height: 60px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.unit-info h3 {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 4px;
}

.unit-info .topic-tag {
  font-size: 13px;
  color: var(--accent-primary);
  font-weight: 600;
}

.unit-description {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 20px;
}

.unit-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--card-border);
  padding-top: 14px;
}

.unit-vocab-count {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
}

.btn-start-unit {
  background: var(--accent-primary);
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  transition: background var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-start-unit:hover {
  background: var(--accent-primary-hover);
}

/* Detail View (Unit Study View) */
.unit-detail-view {
  display: none;
}

.unit-detail-view.active {
  display: block;
}

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

.btn-back {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  color: var(--text-primary);
  padding: 10px 20px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all var(--transition-fast);
}

.btn-back:hover {
  background: var(--accent-primary);
  color: white;
}

/* /* Stylesheet - Grade 7 English Master (Kết Nối Tri Thức) */

:root {
  --font-primary: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  
  /* Color Palette - Modern Vibrant & Glassmorphism */
  --bg-gradient-light: linear-gradient(135deg, #eef2ff 0%, #e0e7ff 50%, #f0f9ff 100%);
  --bg-gradient-dark: linear-gradient(135deg, #0f172a 0%, #1e1b4b 50%, #1e293b 100%);
  
  --card-bg-light: rgba(255, 255, 255, 0.85);
  --card-bg-dark: rgba(30, 41, 59, 0.85);
  
  /* Design Tokens - Modern English Learning Adventure World */
  --bg-main: #151A3A;
  --bg-secondary: #1E2750;
  --card-surface: #26315E;
  --card-border: rgba(108, 92, 255, 0.25);
  
  --primary-purple: #6C5CFF;
  --primary-purple-hover: #5b4be0;
  --cyan-info: #40C9FF;
  --pink-accent: #E65CFF;
  --success-green: #2DDB9D;
  --error-coral: #FF647C;
  --reward-yellow: #FFC857;
  
  --text-main: #FFFFFF;
  --text-secondary: #B9C5E4;
  --text-muted: #8E9BCA;

  --accent-primary: var(--primary-purple);
  --accent-primary-hover: var(--primary-purple-hover);
  --accent-secondary: var(--cyan-info);
  --accent-warning: var(--reward-yellow);
  --accent-success: var(--success-green);
  --card-bg: var(--card-surface);
  --text-primary: var(--text-main);

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 20px;
  --radius-xl: 24px;
  
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.45);
  --shadow-glow: 0 0 20px rgba(108, 92, 255, 0.4);
  --shadow-success-glow: 0 0 20px rgba(45, 219, 157, 0.4);
  --shadow-error-glow: 0 0 20px rgba(255, 100, 124, 0.4);
  
  --transition-fast: 0.18s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="light"] {
  --bg-main: #F1F5F9;
  --bg-secondary: #E2E8F0;
  --card-surface: #FFFFFF;
  --card-elevated: #F8FAFC;
  --card-border: rgba(148, 163, 184, 0.25);
  --text-main: #0F172A;
  --text-secondary: #475569;
  --text-muted: #64748B;
  --card-bg: #FFFFFF;
  --text-primary: #0F172A;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: var(--font-primary);
  -webkit-tap-highlight-color: transparent;
}

body {
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* 2-Column Vertical Navigation Layout */
.unit-study-layout {
  display: grid;
  grid-template-columns: 290px 1fr;
  gap: 24px;
  align-items: start;
  margin-top: 16px;
}

.study-sidebar {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 18px 14px;
  position: sticky;
  top: 80px;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
}

.study-sidebar.is-collapsed {
  display: none;
}

.sidebar-title {
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--cyan-info);
  padding: 4px 10px 14px 10px;
  border-bottom: 2px solid var(--card-border);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.vertical-tab-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
  border: none;
  padding: 0;
  margin: 0;
  overflow: visible;
}

.vertical-tab-nav .tab-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  background: var(--card-surface);
  border: 1px solid var(--card-border);
  color: var(--text-main);
  cursor: pointer;
  transition: all var(--transition-fast);
  width: 100%;
  text-align: left;
}

.vertical-tab-nav .tab-btn:hover {
  border-color: var(--cyan-info);
  transform: translateX(4px);
}

.vertical-tab-nav .tab-btn.active {
  background: linear-gradient(135deg, var(--primary-purple) 0%, #8b5cf6 100%);
  border-color: var(--cyan-info);
  box-shadow: var(--shadow-glow);
}

.station-node-status {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tab-icon {
  font-size: 20px;
}

.tab-label {
  display: flex;
  flex-direction: column;
}

.tab-label strong {
  font-size: 14px;
  line-height: 1.2;
}

.tab-label small {
  font-size: 11px;
  color: var(--text-secondary);
}

.vertical-tab-nav .tab-btn.active .tab-label small {
  color: rgba(255, 255, 255, 0.85);
}

/* Mascot Companion Card */
.mascot-companion-card {
  background: var(--bg-secondary);
  border: 2px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 14px 18px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: var(--shadow-md);
}

.mascot-avatar {
  width: 48px;
  height: 48px;
  font-size: 28px;
  background: rgba(108, 92, 255, 0.2);
  border: 2px solid var(--primary-purple);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-glow);
  flex-shrink: 0;
}

.mascot-bubble {
  background: var(--card-surface);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  flex: 1;
}

.mascot-name {
  font-size: 12px;
  font-weight: 800;
  color: var(--cyan-info);
  display: block;
  margin-bottom: 2px;
}

#mascot-speech-text {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.4;
}

/* Topbar Unit Progress Bar */
.topbar-unit-progress {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 220px;
  max-width: 280px;
}

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

.topbar-progress-track {
  height: 8px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 99px;
  overflow: hidden;
}

.topbar-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary-purple) 0%, var(--cyan-info) 100%);
  border-radius: 99px;
  transition: width 0.4s ease;
  box-shadow: 0 0 10px rgba(64, 201, 255, 0.5);
}

.student-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cyan-info), var(--pink-accent));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: 0 2px 8px rgba(64, 201, 255, 0.3);
  cursor: pointer;
}

/* Floating XP Popup Animation */
.floating-xp-popup {
  position: absolute;
  font-size: 20px;
  font-weight: 900;
  color: var(--reward-yellow);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8), 0 0 12px var(--reward-yellow);
  pointer-events: none;
  animation: floatUpFade 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
  z-index: 10001;
}

@keyframes floatUpFade {
  0% { opacity: 0; transform: translate(-50%, 0) scale(0.5); }
  20% { opacity: 1; transform: translate(-50%, -20px) scale(1.2); }
  100% { opacity: 0; transform: translate(-50%, -70px) scale(1); }
}

/* World Badge & Toggle Map Button */
.unit-title-wrapper {
  text-align: center;
}

.unit-world-badge {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--cyan-info);
  background: rgba(64, 201, 255, 0.12);
  padding: 4px 12px;
  border-radius: 99px;
  border: 1px solid rgba(64, 201, 255, 0.3);
  display: inline-block;
  margin-bottom: 4px;
}

.btn-toggle-map {
  background: var(--card-surface);
  border: 1px solid var(--card-border);
  color: var(--text-secondary);
  padding: 8px 16px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-toggle-map:hover {
  background: var(--primary-purple);
  color: #ffffff;
}

/* Station Nodes & Path Connections */
.station-node-status {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  transition: all var(--transition-fast);
}

.tab-btn.active .station-node-status {
  background: #ffffff;
  color: var(--primary-purple);
  border-color: #ffffff;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.6);
  animation: nodePulse 1.8s infinite;
}

@keyframes nodePulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.6); }
  70% { box-shadow: 0 0 0 8px rgba(255, 255, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}

.tab-btn.completed .station-node-status {
  background: var(--success-green);
  color: #151A3A;
  border-color: var(--success-green);
}

.tab-btn strong {
  display: block;
  font-size: 14.5px;
  font-weight: 800;
}

.tab-btn small {
  display: block;
  font-size: 12px;
  font-weight: 600;
  opacity: 0.8;
}

/* Mission Header Banner */
.mission-header {
  background: linear-gradient(135deg, rgba(38, 49, 94, 0.9) 0%, rgba(30, 39, 80, 0.9) 100%);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: var(--shadow-sm);
}

.mission-icon-badge {
  font-size: 32px;
  width: 54px;
  height: 54px;
  background: rgba(108, 92, 255, 0.15);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(108, 92, 255, 0.3);
}

.mission-info {
  flex: 1;
}

.mission-xp-badge {
  background: rgba(255, 200, 87, 0.15);
  border: 1px solid rgba(255, 200, 87, 0.4);
  color: var(--reward-yellow);
  padding: 8px 14px;
  border-radius: 99px;
  font-weight: 800;
  font-size: 13px;
}

/* Mascot Companion Card (Sparky AI Robo-Owl) */
.mascot-companion-card {
  background: linear-gradient(135deg, rgba(108, 92, 255, 0.12) 0%, rgba(64, 201, 255, 0.08) 100%);
  border: 1px solid rgba(108, 92, 255, 0.3);
  border-radius: var(--radius-lg);
  padding: 14px 18px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
}

.mascot-avatar {
  font-size: 34px;
  background: rgba(255, 255, 255, 0.1);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--cyan-info);
  box-shadow: 0 0 12px rgba(64, 201, 255, 0.3);
}

.mascot-bubble {
  flex: 1;
}

.mascot-name {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--cyan-info);
  display: block;
  margin-bottom: 2px;
}

.mascot-bubble p {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.4;
}

/* Dynamic Feedback Animations */
.pop-success {
  animation: popSuccess 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes popSuccess {
  0% { transform: scale(1); }
  50% { transform: scale(1.04); }
  100% { transform: scale(1); }
}

.shake-error {
  animation: shakeError 0.5s ease-in-out;
}

@keyframes shakeError {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-8px); }
  40%, 80% { transform: translateX(8px); }
}

.combo-flash-frame {
  box-shadow: 0 0 25px var(--reward-yellow) !important;
  border-color: var(--reward-yellow) !important;
}

/* Mobile Floating Adventure Map Drawer Button */
.mobile-map-drawer-btn {
  display: none;
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 999;
  background: linear-gradient(135deg, var(--primary-purple), var(--cyan-info));
  color: #ffffff;
  border: none;
  padding: 12px 22px;
  border-radius: 99px;
  font-weight: 800;
  font-size: 14px;
  box-shadow: 0 8px 24px rgba(108, 92, 255, 0.5);
  cursor: pointer;
}

@media (max-width: 900px) {
  .mobile-map-drawer-btn {
    display: flex;
    align-items: center;
    gap: 8px;
  }
}

/* Unit Completion Modal */
.unit-completion-card {
  max-width: 520px;
  width: 90%;
  text-align: center;
  background: var(--card-surface);
  border: 2px solid var(--reward-yellow);
  box-shadow: 0 0 40px rgba(255, 200, 87, 0.3);
  border-radius: var(--radius-xl);
  padding: 32px 24px;
}

.completion-stars {
  font-size: 36px;
  margin-bottom: 20px;
  display: flex;
  justify-content: center;
  gap: 10px;
  filter: drop-shadow(0 4px 10px rgba(255, 200, 87, 0.5));
}

.completion-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 20px;
}

.stat-box {
  background: rgba(15, 23, 42, 0.4);
  border: 1px solid var(--card-border);
  padding: 12px;
  border-radius: var(--radius-md);
  text-align: center;
}

.stat-box small {
  font-size: 12px;
  color: var(--text-secondary);
  display: block;
}

.stat-box strong {
  font-size: 18px;
  color: var(--cyan-info);
  font-weight: 900;
}

.completion-badge-unlocked {
  background: rgba(45, 219, 157, 0.12);
  border: 1px solid var(--success-green);
  color: var(--success-green);
  padding: 10px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 24px;
}

.completion-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.btn-action {
  width: 100%;
  padding: 14px;
  border-radius: var(--radius-md);
  font-weight: 800;
  font-size: 15px;
  cursor: pointer;
  border: none;
  transition: all var(--transition-fast);
}

.reward-btn {
  background: linear-gradient(135deg, var(--reward-yellow), #f59e0b);
  color: #151A3A;
}

.review-btn {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border: 1px solid var(--card-border);
}

.next-unit-btn {
  background: linear-gradient(135deg, var(--primary-purple), var(--cyan-info));
  color: #ffffff;
}

.tab-btn .tab-icon {
  font-size: 18px;
  min-width: 24px;
  text-align: center;
}

.tab-btn .tab-label {
  flex: 1;
  line-height: 1.3;
}

.tab-btn.active {
  background: linear-gradient(135deg, var(--accent-primary) 0%, #4f46e5 100%);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.35);
  font-weight: 800;
}

.tab-btn:hover:not(.active) {
  background: rgba(99, 102, 241, 0.12);
  color: var(--accent-primary);
  border-color: rgba(99, 102, 241, 0.25);
  transform: translateX(4px);
}

.study-content-panel {
  min-width: 0;
}

@media (max-width: 900px) {
  .unit-study-layout {
    grid-template-columns: 1fr;
  }

  .study-sidebar {
    position: static;
  }

  .vertical-tab-nav {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 8px;
  }

  .tab-btn:hover:not(.active) {
    transform: none;
  }
}

/* Tab Contents (Full Width Across All Stations) */
.tab-content {
  display: none;
  width: 100%;
  box-sizing: border-box;
}

.tab-content.active {
  display: block;
  width: 100%;
  box-sizing: border-box;
  animation: fadeIn 0.4s ease-out;
}

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

/* 1. Flashcards 3D Container */
.flashcards-wrapper {
  width: 100%;
  max-width: 100%;
  margin: 0;
  perspective: 1000px;
  box-sizing: border-box;
}

.flashcard-3d {
  width: 100%;
  height: 340px;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.flashcard-3d.flipped {
  transform: rotateY(180deg);
}

.flashcard-front, .flashcard-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: var(--radius-lg);
  border: 2px solid var(--card-border);
  background: var(--card-bg);
  box-shadow: var(--shadow-card);
  padding: 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-sizing: border-box;
}

.flashcard-back {
  transform: rotateY(180deg);
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.05), rgba(236, 72, 153, 0.05));
}

.flashcard-word {
  font-size: 36px;
  font-weight: 800;
  color: var(--accent-primary);
  margin-bottom: 8px;
}

.flashcard-ipa {
  font-size: 18px;
  color: var(--text-secondary);
  margin-bottom: 16px;
  font-family: monospace;
}

.flashcard-type {
  display: inline-block;
  background: rgba(99, 102, 241, 0.1);
  color: var(--accent-primary);
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 20px;
}

.audio-btn {
  background: var(--accent-primary);
  color: white;
  border: none;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  font-size: 22px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
  transition: all var(--transition-fast);
  margin-top: 10px;
}

.audio-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 16px rgba(99, 102, 241, 0.6);
}

.flashcard-meaning {
  font-size: 28px;
  font-weight: 800;
  color: var(--accent-success);
  margin-bottom: 16px;
}

.flashcard-example {
  font-size: 16px;
  font-style: italic;
  color: var(--text-secondary);
  line-height: 1.5;
  background: rgba(0, 0, 0, 0.04);
  padding: 12px 18px;
  border-radius: var(--radius-md);
}

.flashcard-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  margin: 24px auto 0;
}

.btn-nav-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  color: var(--text-primary);
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-nav-card:hover {
  background: var(--accent-primary);
  color: white;
}

/* 2. Grammar Hub */
.grammar-card {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-card);
}

.grammar-rule-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--accent-primary);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.formula-box {
  background: rgba(99, 102, 241, 0.1);
  border-left: 4px solid var(--accent-primary);
  padding: 14px 20px;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-size: 16px;
  font-weight: 700;
  font-family: monospace;
  margin-bottom: 16px;
  color: var(--accent-primary);
}

.grammar-explanation {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 16px;
}

.grammar-examples-list {
  list-style: none;
}

.grammar-examples-list li {
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
  font-size: 14px;
}

/* 3. Quiz Area (Full Width Across All Stations) */
.quiz-container {
  width: 100%;
  max-width: 100%;
  margin: 0;
  box-sizing: border-box;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-card);
}

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

.quiz-question {
  font-size: 20px;
  font-weight: 800;
  line-height: 1.4;
  margin-bottom: 24px;
}

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

.quiz-option-btn {
  background: var(--card-bg);
  border: 2px solid var(--card-border);
  color: var(--text-primary);
  padding: 16px 20px;
  border-radius: var(--radius-md);
  font-size: 16px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.quiz-option-btn:hover {
  border-color: var(--accent-primary);
  background: rgba(99, 102, 241, 0.05);
}

.quiz-option-btn.correct {
  background: rgba(16, 185, 129, 0.15) !important;
  border-color: var(--accent-success) !important;
  color: var(--accent-success) !important;
}

.quiz-option-btn.wrong {
  background: rgba(239, 68, 68, 0.15) !important;
  border-color: #ef4444 !important;
  color: #ef4444 !important;
}

.quiz-explanation-box {
  display: none;
  background: rgba(99, 102, 241, 0.08);
  border: 1px solid var(--card-border);
  padding: 16px;
  border-radius: var(--radius-md);
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 20px;
}

.quiz-explanation-box.show {
  display: block;
}

/* 4. Speaking Practice Room */
.speaking-wrapper {
  width: 100%;
  max-width: 100%;
  margin: 0;
  box-sizing: border-box;
  text-align: center;
}

.speaking-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-card);
}

.speech-phrase {
  font-size: 26px;
  font-weight: 800;
  color: var(--accent-primary);
  margin-bottom: 8px;
}

.speech-ipa {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 24px;
  font-family: monospace;
}

.mic-btn-large {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  color: white;
  border: none;
  font-size: 32px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-glow);
  transition: transform var(--transition-fast), background var(--transition-fast);
  margin-bottom: 20px;
}

.mic-btn-large:hover {
  transform: scale(1.1);
}

.mic-btn-large.recording {
  animation: pulseMic 1.2s infinite;
  background: #ef4444;
}

@keyframes pulseMic {
  0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
  70% { box-shadow: 0 0 0 20px rgba(239, 68, 68, 0); }
  100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

.speech-result-box {
  margin-top: 20px;
  font-size: 16px;
  font-weight: 700;
  min-height: 40px;
}

/* Modal Popup */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 36px;
  max-width: 450px;
  width: 90%;
  text-align: center;
  box-shadow: var(--shadow-glow);
  transform: scale(0.8);
  transition: transform var(--transition-normal);
}

.modal-overlay.active .modal-card {
  transform: scale(1);
}

.modal-icon {
  font-size: 64px;
  margin-bottom: 16px;
}

.modal-title {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 8px;
}

.modal-desc {
  font-size: 15px;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.btn-close-modal {
  background: var(--accent-primary);
  color: white;
  border: none;
  padding: 12px 28px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
}

/* Academic Grade & Resume Banner Styles */
.academic-chip {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(99, 102, 241, 0.15));
  border: 1px solid var(--accent-success);
  color: var(--accent-success);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 700;
}

.resume-banner {
  background: rgba(99, 102, 241, 0.12);
  border: 1px dashed var(--accent-primary);
  border-radius: var(--radius-md);
  padding: 14px 20px;
  margin: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  animation: fadeIn 0.4s ease-out;
}

.resume-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.weak-points-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-card);
}

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

.weak-item-card {
  background: rgba(239, 68, 68, 0.06);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-left: 4px solid #ef4444;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.weak-item-info {
  font-size: 14px;
}

.weak-item-info strong {
  color: var(--accent-primary);
}

.btn-retry-weak {
  background: #ef4444;
  color: white;
  border: none;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--transition-fast);
}

.btn-retry-weak:hover {
  background: #dc2626;
}

.quiz-timer-chip {
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid var(--accent-warning);
  color: var(--accent-warning);
  padding: 4px 12px;
  border-radius: 20px;
  font-weight: 800;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.quiz-timer-chip.warning {
  background: rgba(239, 68, 68, 0.2);
  border-color: #ef4444;
  color: #ef4444;
  animation: pulseCombo 0.5s infinite alternate;
}

/* Fix dropdown options high-contrast text */
select option {
  background-color: #1e1b4b !important;
  color: #ffffff !important;
  padding: 10px !important;
  font-size: 14px !important;
  font-weight: 700 !important;
}

/* Interactive Word Bank Chip styling */
.pm-word-chip {
  background: var(--card-bg);
  padding: 8px 16px;
  border-radius: 20px;
  border: 2px solid var(--card-border);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-fast);
  user-select: none;
}

.pm-word-chip:hover {
  transform: translateY(-2px);
  border-color: var(--accent-primary);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.pm-word-chip.selected {
  background: var(--accent-primary) !important;
  color: #ffffff !important;
  border-color: var(--accent-secondary) !important;
  box-shadow: 0 0 16px rgba(99, 102, 241, 0.6);
  transform: scale(1.05);
}

.hp-hearts-bar {
  font-size: 18px;
  letter-spacing: 2px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.combo-badge {
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  color: white;
  font-weight: 900;
  font-size: 13px;
  padding: 4px 12px;
  border-radius: 20px;
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.6);
  animation: pulseCombo 0.8s infinite alternate;
}

@keyframes pulseCombo {
  0% { transform: scale(1); }
  100% { transform: scale(1.1); }
}

.shake-error {
  animation: shakeError 0.4s ease-in-out;
}

@keyframes shakeError {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-10px); }
  40%, 80% { transform: translateX(10px); }
}

.pop-success {
  animation: popSuccess 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes popSuccess {
  0% { transform: scale(0.9); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

.xp-floating-popup {
  position: fixed;
  font-size: 24px;
  font-weight: 900;
  color: #f59e0b;
  text-shadow: 0 2px 10px rgba(245, 158, 11, 0.8), 0 0 20px rgba(255, 255, 255, 0.9);
  pointer-events: none;
  z-index: 10000;
  animation: floatXP 1.2s ease-out forwards;
}

@keyframes floatXP {
  0% { opacity: 1; transform: translateY(0) scale(0.8); }
  50% { opacity: 1; transform: translateY(-40px) scale(1.3); }
  100% { opacity: 0; transform: translateY(-80px) scale(1); }
}

/* Responsive Rules */
@media (max-width: 768px) {
  .header-content {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
  }
  
  .user-stats {
    width: 100%;
    justify-content: space-between;
    flex-wrap: wrap;
  }
  
  .units-grid {
    grid-template-columns: 1fr;
  }
  
  .flashcard-3d {
    height: 300px;
  }
  
}

/* ==================================================
   DASHBOARD PAGE SCOPED STYLES (.dashboard-page)
   ================================================== */

.dashboard-page {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding-bottom: 40px;
}

/* 1. Hero Card 2-Column Section */
.dashboard-page .dashboard-hero-card {
  background: var(--card-surface);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-xl);
  padding: 28px 32px;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.dashboard-page .dashboard-hero-card::before {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(108, 92, 255, 0.18) 0%, rgba(64, 201, 255, 0.06) 50%, transparent 70%);
  pointer-events: none;
}

.dashboard-page .hero-content-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 32px;
  align-items: center;
}

.dashboard-page .hero-left-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.dashboard-page .hero-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(108, 92, 255, 0.12);
  border: 1px solid rgba(108, 92, 255, 0.25);
  color: var(--cyan-info);
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.8px;
  padding: 4px 12px;
  border-radius: 99px;
  width: fit-content;
}

.dashboard-page .hero-greeting-title {
  font-size: 26px;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.3;
}

.dashboard-page .hero-subtitle {
  font-size: 14.5px;
  color: var(--text-secondary);
  line-height: 1.5;
  max-width: 520px;
}

.dashboard-page .hero-action-group {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 8px;
}

.dashboard-page .btn-hero-primary {
  background: linear-gradient(135deg, var(--primary-purple) 0%, #8b5cf6 100%);
  color: #FFFFFF;
  border: none;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 14.5px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(108, 92, 255, 0.35);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.dashboard-page .btn-hero-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(108, 92, 255, 0.45);
}

.dashboard-page .btn-hero-secondary {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--card-border);
  color: var(--text-main);
  padding: 12px 20px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: background var(--transition-fast), border-color var(--transition-fast);
}

.dashboard-page .btn-hero-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--cyan-info);
}

/* Right Col: Hero Visual Image & Glass Ring Card */
.dashboard-page .hero-right-col {
  display: flex;
  justify-content: center;
}

.dashboard-page .hero-image-wrapper {
  position: relative;
  width: 100%;
  max-width: 420px;
  height: 240px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--card-border);
}

.dashboard-page .hero-visual-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.dashboard-page .floating-ring-glass-card {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(21, 26, 58, 0.85);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.dashboard-page .ring-container-sm {
  position: relative;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dashboard-page .ring-svg-sm {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.dashboard-page .ring-percent-sm {
  position: absolute;
  font-size: 11px;
  font-weight: 800;
  color: var(--text-main);
}

.dashboard-page .glass-card-info {
  display: flex;
  flex-direction: column;
}

.dashboard-page .glass-card-info strong {
  font-size: 13px;
  color: var(--text-main);
}

.dashboard-page .glass-card-info small {
  font-size: 11px;
  color: var(--cyan-info);
}

/* 2. Signature Feature: NHIỆM VỤ HÔM NAY (Daily Mission) */
.dashboard-page .daily-mission-card {
  background: var(--card-surface);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-xl);
  padding: 24px 28px;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.dashboard-page .mission-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.dashboard-page .mission-tag-pill {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--reward-yellow);
  background: rgba(255, 200, 87, 0.12);
  padding: 4px 12px;
  border-radius: 99px;
  border: 1px solid rgba(255, 200, 87, 0.25);
  display: inline-block;
  margin-bottom: 6px;
}

.dashboard-page .mission-main-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-main);
}

.dashboard-page .mission-reward-badge {
  background: rgba(255, 200, 87, 0.12);
  border: 1px solid rgba(255, 200, 87, 0.3);
  padding: 8px 16px;
  border-radius: var(--radius-md);
  font-size: 13px;
}

.dashboard-page .mission-checklist-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.dashboard-page .mission-task-item {
  background: var(--bg-secondary);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  transition: transform var(--transition-fast);
}

.dashboard-page .mission-task-item:hover {
  transform: translateY(-2px);
  border-color: var(--cyan-info);
}

.dashboard-page .task-check-icon {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(108, 92, 255, 0.2);
  color: var(--cyan-info);
  font-weight: 800;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.dashboard-page .task-info strong {
  font-size: 13.5px;
  color: var(--text-main);
  display: block;
  margin-bottom: 2px;
}

.dashboard-page .task-info small {
  font-size: 11.5px;
  color: var(--text-secondary);
  line-height: 1.3;
  display: block;
}

.dashboard-page .mission-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.dashboard-page .mission-progress-bar-track {
  flex: 1;
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 99px;
  overflow: hidden;
}

.dashboard-page .mission-progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary-purple), var(--cyan-info));
  border-radius: 99px;
}

.dashboard-page .btn-start-mission {
  background: linear-gradient(135deg, var(--primary-purple) 0%, #8b5cf6 100%);
  color: #FFFFFF;
  border: none;
  padding: 10px 22px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(108, 92, 255, 0.35);
  transition: transform var(--transition-fast);
}

.dashboard-page .btn-start-mission:hover {
  transform: translateY(-2px);
}

/* 3. Cinematic Learning Spotlight Card & Refined Weak Points Row */
.dashboard-page .dashboard-middle-row {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: 24px;
  align-items: stretch;
}

/* Spotlight Container */
.dashboard-page .resume-spotlight-card {
  background: var(--card-surface);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-xl);
  height: 320px;
  position: relative;
  overflow: hidden;
  display: flex;
  padding: 0 !important;
  box-shadow: var(--shadow-md);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.dashboard-page .resume-spotlight-card:hover {
  border-color: rgba(108, 92, 255, 0.4);
  box-shadow: var(--shadow-lg), 0 0 24px rgba(108, 92, 255, 0.2);
}

/* Left Text Column (~54%) */
.dashboard-page .spotlight-text-col {
  width: 54%;
  padding: 24px 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  z-index: 2;
}

.dashboard-page .spotlight-unit-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.2;
}

.dashboard-page .spotlight-module-sub {
  font-size: 13.5px;
  color: var(--cyan-info);
  font-weight: 600;
}

.dashboard-page .spotlight-motivational-text {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.45;
  margin-top: 2px;
}

.dashboard-page .spotlight-progress-block {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 4px 0 8px 0;
}

.dashboard-page .spotlight-progress-track {
  height: 7px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 99px;
  overflow: hidden;
}

.dashboard-page .spotlight-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary-purple), var(--cyan-info));
  border-radius: 99px;
}

.dashboard-page .spotlight-progress-info {
  display: flex;
  justify-content: space-between;
  font-size: 11.5px;
  color: var(--text-secondary);
  font-weight: 600;
}

.dashboard-page .btn-spotlight-primary {
  background: linear-gradient(135deg, var(--primary-purple) 0%, #8b5cf6 100%);
  color: #FFFFFF;
  border: none;
  padding: 10px 22px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(108, 92, 255, 0.35);
  transition: transform var(--transition-fast);
  width: fit-content;
}

.dashboard-page .btn-spotlight-primary:hover {
  transform: translateY(-2px);
}

/* Right Image Canvas Column (~46%) */
.dashboard-page .spotlight-image-col {
  width: 46%;
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  height: 100%;
  z-index: 1;
  overflow: hidden;
}

.dashboard-page .spotlight-cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.dashboard-page .resume-spotlight-card:hover .spotlight-cover-img {
  transform: scale(1.035);
}

.dashboard-page .spotlight-dark-gradient-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #171E35 0%, #171E35 25%, rgba(23, 30, 53, 0.85) 55%, rgba(23, 30, 53, 0.1) 100%);
  pointer-events: none;
}

/* Floating Glass Status Pill */
.dashboard-page .floating-status-pill {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(21, 26, 58, 0.85);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(64, 201, 255, 0.4);
  padding: 5px 12px;
  border-radius: 99px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 800;
  color: #FFFFFF;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  z-index: 3;
}

.dashboard-page .pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan-info);
  box-shadow: 0 0 8px var(--cyan-info);
  animation: pulseCyan 1.8s infinite ease-in-out;
}

@keyframes pulseCyan {
  0%, 100% { opacity: 0.4; transform: scale(0.9); }
  50% { opacity: 1; transform: scale(1.2); }
}

/* Signature Feature: Floating Quick Challenge 60s Card */
.dashboard-page .floating-quick-challenge-card {
  position: absolute;
  bottom: 14px;
  right: 14px;
  background: rgba(21, 26, 58, 0.88);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(108, 92, 255, 0.4);
  padding: 8px 14px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(0,0,0,0.35);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  z-index: 3;
}

.dashboard-page .floating-quick-challenge-card:hover {
  transform: translateY(-3px) scale(1.02);
  border-color: var(--cyan-info);
  box-shadow: 0 8px 25px rgba(64, 201, 255, 0.3);
}

.dashboard-page .challenge-icon-box {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-purple) 0%, var(--cyan-info) 100%);
  color: #FFFFFF;
  font-weight: 900;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(108, 92, 255, 0.5);
}

.dashboard-page .challenge-text-box {
  display: flex;
  flex-direction: column;
}

.dashboard-page .challenge-text-box strong {
  font-size: 12px;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: 0.5px;
}

.dashboard-page .challenge-text-box small {
  font-size: 10.5px;
  color: var(--text-secondary);
}

/* 4. Refined Weak Points Card (Coral Accents & Balanced Height) */
.dashboard-page .quick-review-card {
  background: var(--card-surface);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-xl);
  padding: 24px;
  height: 320px;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  box-shadow: var(--shadow-sm);
}

.dashboard-page .weak-item-card.coral-accent {
  background: rgba(255, 107, 107, 0.05);
  border: 1px solid rgba(255, 107, 107, 0.2);
  border-left: 3px solid #ff6b6b;
  border-radius: var(--radius-md);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.dashboard-page .weak-topic-title {
  font-size: 12.5px;
  color: var(--text-main);
  font-weight: 700;
  display: block;
}

.dashboard-page .weak-q-text {
  font-size: 12px;
  color: var(--text-main);
  margin-top: 2px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.dashboard-page .weak-exp-text {
  font-size: 11.5px;
  color: var(--text-secondary);
  margin-top: 2px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.dashboard-page .coral-btn {
  background: rgba(255, 107, 107, 0.15);
  color: #ff6b6b;
  border: 1px solid rgba(255, 107, 107, 0.3);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 12px;
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--transition-fast);
}

.dashboard-page .coral-btn:hover {
  background: rgba(255, 107, 107, 0.25);
}

.dashboard-page .weak-toggle-bar {
  font-size: 12px;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 8px 4px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}

.dashboard-page .weak-toggle-bar:hover {
  color: var(--cyan-info);
}

.dashboard-page .weak-extra-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 6px;
}

/* 4. Section Line Titles */
.dashboard-page .section-header-line {
  margin-bottom: 16px;
}

.dashboard-page .section-title-md {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-main);
}

/* 5. 12-Unit Roadmap Visual Course Cards */
.units-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.unit-card {
  background: var(--card-surface);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
  cursor: pointer;
}

.unit-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary-purple);
  box-shadow: var(--shadow-md), 0 0 16px rgba(108, 92, 255, 0.25);
}

.unit-card.is-active-unit {
  border-color: var(--cyan-info);
  box-shadow: 0 0 20px rgba(64, 201, 255, 0.2);
}

.unit-card-media {
  position: relative;
  width: 100%;
  height: 140px;
  overflow: hidden;
  background: var(--bg-secondary);
}

.unit-card-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.unit-card:hover .unit-card-thumb {
  transform: scale(1.05);
}

.unit-number-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(21, 26, 58, 0.85);
  backdrop-filter: blur(8px);
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 99px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.unit-status-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(21, 26, 58, 0.85);
  backdrop-filter: blur(8px);
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 99px;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.unit-status-badge.current {
  color: var(--cyan-info);
  border-color: rgba(64, 201, 255, 0.4);
}

.unit-status-badge.completed {
  color: var(--success-green);
  border-color: rgba(45, 219, 157, 0.4);
}

.unit-card-body {
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 8px;
}

.unit-card-title {
  font-size: 16.5px;
  font-weight: 700;
  color: var(--text-main);
}

.topic-tag {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--cyan-info);
  background: rgba(64, 201, 255, 0.1);
  padding: 2px 8px;
  border-radius: 4px;
  width: fit-content;
}

.unit-description {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.unit-card-progress-track {
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 99px;
  overflow: hidden;
  margin-top: 4px;
}

.unit-card-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary-purple), var(--cyan-info));
  border-radius: 99px;
}

.unit-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  border-top: 1px solid var(--card-border);
}

.unit-vocab-count {
  font-size: 11.5px;
  color: var(--text-muted);
}

.btn-start-unit {
  background: var(--primary-purple);
  color: #ffffff;
  border: none;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 12.5px;
  cursor: pointer;
  transition: background var(--transition-fast);
}

.btn-start-unit:hover {
  background: var(--primary-purple-hover);
}

/* Responsive Breakpoints for Dashboard */
@media (max-width: 1024px) {
  .units-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  .dashboard-page .hero-content-grid {
    grid-template-columns: 1fr;
  }
  .dashboard-page .dashboard-middle-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .units-grid {
    grid-template-columns: 1fr;
  }
  .dashboard-page .mission-checklist-grid {
    grid-template-columns: 1fr;
  }
  .dashboard-page .resume-learning-card {
    flex-direction: column;
  }
  .dashboard-page .spotlight-visual {
    width: 100%;
    height: 120px;
  }
}

/* ==================================================
   ENGLISH ARCADE & MUSIC STUDIO STYLES
   ================================================== */

.dashboard-arcade-entry-section {
  background: var(--card-surface);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-xl);
  padding: 24px 28px;
  box-shadow: var(--shadow-md);
  margin-top: 12px;
}

.arcade-entry-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 12px;
}

.arcade-tag-pill {
  font-size: 11px;
  font-weight: 800;
  color: var(--cyan-info);
  background: rgba(64, 201, 255, 0.12);
  padding: 3px 10px;
  border-radius: 99px;
  border: 1px solid rgba(64, 201, 255, 0.25);
  display: inline-block;
  margin-bottom: 4px;
}

.arcade-entry-sub {
  font-size: 13.5px;
  color: var(--text-secondary);
  margin-top: 2px;
}

.arcade-features-mini-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.arcade-feature-card {
  background: var(--bg-secondary);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 12px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 4px;
  transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.arcade-feature-card:hover {
  transform: translateY(-2px);
  border-color: var(--cyan-info);
}

.arcade-feature-card .feat-icon {
  font-size: 22px;
}

.arcade-feature-card strong {
  font-size: 12.5px;
  color: var(--text-main);
}

.arcade-feature-card small {
  font-size: 10.5px;
  color: var(--text-secondary);
}

.arcade-quick-strip {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-top: 8px;
  border-top: 1px solid var(--card-border);
}

.strip-pill {
  font-size: 11.5px;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--card-border);
  padding: 4px 12px;
  border-radius: 99px;
  white-space: nowrap;
}

/* Hub Topbar & Layout */
.arcade-hub-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--card-surface);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-xl);
  padding: 18px 24px;
  flex-wrap: wrap;
  gap: 14px;
}

.arcade-select-dropdown {
  background: var(--bg-secondary);
  border: 1px solid var(--card-border);
  color: var(--text-main);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  font-weight: 700;
  outline: none;
}

.arcade-spotlight-banner {
  background: linear-gradient(135deg, rgba(108, 92, 255, 0.15) 0%, rgba(64, 201, 255, 0.08) 100%);
  border: 1px solid rgba(108, 92, 255, 0.3);
  border-radius: var(--radius-xl);
  padding: 22px 28px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.spotlight-badge {
  font-size: 11px;
  font-weight: 800;
  color: var(--cyan-info);
  letter-spacing: 0.8px;
}

.spotlight-stats-pills {
  display: flex;
  gap: 12px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.spotlight-stats-pills span {
  font-size: 12px;
  color: var(--text-secondary);
  background: rgba(21, 26, 58, 0.6);
  padding: 4px 12px;
  border-radius: 99px;
  border: 1px solid var(--card-border);
}

@keyframes cyberScanBeam {
  0% { top: 0%; opacity: 0.3; }
  50% { top: 95%; opacity: 0.9; }
  100% { top: 0%; opacity: 0.3; }
}

.btn-detective-3d-opt:hover {
  transform: translateY(-3px) scale(1.01);
  border-color: #35E7FF !important;
  box-shadow: 0 6px 20px rgba(53, 231, 255, 0.3) !important;
}

.arcade-main-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr 1fr;
  gap: 22px;
}

.arcade-col-section {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.col-section-header h3 {
  font-size: 14px;
  font-weight: 800;
  color: var(--cyan-info);
  letter-spacing: 0.5px;
}

.arcade-game-card {
  background: var(--card-surface);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.arcade-game-card:hover {
  transform: translateY(-2px);
  border-color: var(--primary-purple);
}

.card-icon-box {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.card-icon-box.cyan { background: rgba(64, 201, 255, 0.15); color: var(--cyan-info); }
.card-icon-box.purple { background: rgba(108, 92, 255, 0.15); color: var(--primary-purple); }
.card-icon-box.yellow { background: rgba(255, 200, 87, 0.15); color: var(--reward-yellow); }
.card-icon-box.green { background: rgba(45, 219, 157, 0.15); color: var(--success-green); }
.card-icon-box.pink { background: rgba(230, 92, 255, 0.15); color: #e65cff; }
.card-icon-box.gold { background: linear-gradient(135deg, #f59e0b, #d97706); color: #ffffff; }

.arcade-game-card.boss-card {
  border-color: rgba(245, 158, 11, 0.4);
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.08) 0%, rgba(21, 26, 58, 0.9) 100%);
}

.card-info {
  flex: 1;
}

.card-info h4 {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--text-main);
}

.card-info p {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 2px;
}

/* Music Player Card */
.music-player-card {
  background: var(--card-surface);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.music-track-header {
  display: flex;
  gap: 14px;
  align-items: center;
}

.music-cover-art {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-md);
  object-fit: cover;
  border: 1px solid var(--card-border);
}

.track-tag {
  font-size: 10px;
  font-weight: 800;
  color: var(--reward-yellow);
  letter-spacing: 0.5px;
}

.lyrics-scroll-box {
  background: var(--bg-secondary);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 16px;
  height: 140px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.lyric-line {
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.4;
  padding: 4px 8px;
  border-radius: 4px;
  transition: background var(--transition-fast), color var(--transition-fast);
}

.lyric-line.active {
  background: rgba(108, 92, 255, 0.2);
  color: var(--cyan-info);
  font-weight: 700;
}

.music-mode-tabs {
  display: flex;
  gap: 8px;
}

.music-mode-btn {
  flex: 1;
  background: var(--bg-secondary);
  border: 1px solid var(--card-border);
  color: var(--text-secondary);
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;

}

.music-mode-btn.active {
  background: var(--primary-purple);
  color: #ffffff;
  border-color: var(--cyan-info);
}

.arcade-modal-card {
  max-width: 600px;
  width: 90%;
  padding: 24px;
}

.sprint-word-card {
  background: var(--bg-secondary);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  text-align: center;
  margin: 16px 0;
}

.sprint-options-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
}

.btn-sprint-opt {
  background: var(--card-surface);
  border: 1px solid var(--card-border);
  color: var(--text-main);
  padding: 12px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: background var(--transition-fast), border-color var(--transition-fast);
}

.btn-sprint-opt:hover {
  border-color: var(--cyan-info);
  background: rgba(64, 201, 255, 0.1);
}

.forge-workspace {
  background: var(--bg-secondary);
  padding: 20px;
  border-radius: var(--radius-lg);
}

.forge-target-dropzone {
  min-height: 50px;
  border: 2px dashed var(--primary-purple);
  border-radius: var(--radius-md);
  padding: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
}

.forge-source-blocks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.forge-block {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 13.5px;
  cursor: pointer;
  background: var(--card-surface);
  border: 1px solid var(--card-border);
  color: var(--text-main);
}

.forge-block.cyan { background: rgba(64, 201, 255, 0.2); color: var(--cyan-info); border-color: var(--cyan-info); }
.forge-block.used { opacity: 0.3; pointer-events: none; }

@media (max-width: 1024px) {
  .arcade-main-grid {
    grid-template-columns: 1fr;
  }
}

/* ==================================================
   PREMIUM LEARNING EXPEDITION (UNIT DETAIL PAGE STYLES)
   ================================================== */

.unit-detail-view {
  display: none;
  flex-direction: column;
  gap: 20px;
}

.unit-detail-view.active {
  display: flex;
}

/* 1. Cinematic Unit Hero Banner */
.expedition-hero-banner {
  background: linear-gradient(135deg, #171E35 0%, #11162A 100%);
  border: 1px solid rgba(108, 92, 255, 0.3);
  border-radius: 22px;
  padding: 20px 24px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
  position: relative;
  overflow: hidden;
}

.hero-top-nav-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.expedition-hero-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 24px;
  align-items: center;
}

.hero-info-col {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.expedition-tag-pill {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: var(--cyan-info);
  background: rgba(64, 201, 255, 0.12);
  border: 1px solid rgba(64, 201, 255, 0.3);
  padding: 4px 12px;
  border-radius: 20px;
  align-self: flex-start;
}

.expedition-unit-title {
  font-size: 28px;
  font-weight: 900;
  color: #ffffff;
  margin: 2px 0 0 0;
  letter-spacing: -0.5px;
}

.expedition-unit-topic {
  font-size: 15px;
  font-weight: 700;
  color: var(--reward-yellow);
  margin: 0;
}

.expedition-unit-desc {
  font-size: 13.5px;
  color: var(--text-secondary);
  margin: 4px 0 10px 0;
  line-height: 1.5;
}

.expedition-progress-bar-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 4px;
  flex-wrap: wrap;
}

.expedition-progress-track {
  flex: 1;
  min-width: 140px;
  max-width: 240px;
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  overflow: hidden;
}

.expedition-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #6C5CFF 0%, #40C9FF 100%);
  border-radius: 4px;
  transition: width 0.4s ease;
}

.expedition-status-text {
  font-size: 12.5px;
  font-weight: 700;
  color: #ffffff;
}

.expedition-xp-pill {
  font-size: 12px;
  font-weight: 800;
  color: var(--reward-yellow);
  background: rgba(255, 200, 87, 0.15);
  border: 1px solid rgba(255, 200, 87, 0.3);
  padding: 3px 10px;
  border-radius: 12px;
}

/* Right Image Canvas */
.hero-image-col {
  width: 100%;
  height: 140px;
  position: relative;
}

.hero-image-canvas {
  width: 100%;
  height: 100%;
  border-radius: 18px;
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-cover-art {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-image-gradient-overlay {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(90deg, #171E35 0%, rgba(23, 30, 53, 0.1) 100%);
}

.mission-sub-tag {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--cyan-info);
  margin-bottom: 4px;
  display: block;
}

@media (max-width: 900px) {
  .expedition-hero-grid {
    grid-template-columns: 1fr;
  }
  .hero-image-col {
    display: none;
  }
}

/* ==================================================
   3D SPACE MISSION CONSOLE (SIDEBAR STYLES)
   ================================================== */

:root {
  --neon-cyan: #35E7FF;
  --neon-blue: #3B82FF;
  --neon-violet: #845CFF;
  --neon-mint: #28F2B3;
  --neon-amber: #FFB547;
  --neon-red: #FF5267;
  --panel-dark: #121A36;
  --panel-raised: #192345;
}

/* Layer 1 & 2: Multi-Layer Outer Frame & 3D Perspective Scene */
.study-sidebar.sci-fi-navigator {
  background: rgba(18, 26, 54, 0.92);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(53, 231, 255, 0.35);
  border-radius: 20px;
  padding: 18px;
  position: sticky;
  top: 16px;
  box-shadow: 
    0 24px 60px rgba(0, 0, 0, 0.7),
    0 0 30px rgba(53, 231, 255, 0.1),
    inset 0 1px 1px rgba(255, 255, 255, 0.2),
    inset 0 0 40px rgba(132, 92, 255, 0.12);
  overflow: hidden;
  perspective: 1000px;
  transform-style: preserve-3d;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Layer 3: Technical Circuit Grid Surface & Perspective Mesh */
.study-sidebar.sci-fi-navigator::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: 
    linear-gradient(rgba(53, 231, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(53, 231, 255, 0.05) 1px, transparent 1px);
  background-size: 14px 14px;
  transform: translateZ(-40px);
  pointer-events: none;
  z-index: 0;
}

/* Corner Technical Bracket Highlights */
.study-sidebar.sci-fi-navigator::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, transparent 0%, var(--neon-cyan) 30%, var(--neon-violet) 70%, transparent 100%);
  opacity: 0.9;
  pointer-events: none;
}

/* HUD Header Bar & SFX Toggle */
.nav-hud-header {
  position: relative;
  z-index: 1;
  background: rgba(25, 35, 69, 0.75);
  border: 1px solid rgba(53, 231, 255, 0.25);
  border-radius: 14px;
  padding: 12px;
  margin-bottom: 18px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15);
  transform: translateZ(5px);
}

.hud-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 1.5px;
  color: var(--neon-cyan);
  text-shadow: 0 0 8px rgba(53, 231, 255, 0.4);
}

.hud-sfx-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(53, 231, 255, 0.3);
  color: var(--neon-cyan);
  font-size: 10px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 6px;
  cursor: pointer;
  margin-left: 6px;
  transition: all 0.2s ease;
}

.hud-sfx-btn:hover {
  background: rgba(53, 231, 255, 0.2);
  box-shadow: 0 0 8px var(--neon-cyan);
}

.hud-radar-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--neon-mint);
  box-shadow: 0 0 10px var(--neon-mint), 0 0 16px var(--neon-mint);
  animation: radarPulse 2.5s infinite linear;
}

@keyframes radarPulse {
  0% { transform: scale(0.9); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.6; box-shadow: 0 0 14px var(--neon-mint); }
  100% { transform: scale(0.9); opacity: 1; }
}

.hud-system-status {
  margin-left: auto;
  font-size: 9px;
  font-weight: 900;
  color: var(--neon-mint);
  background: rgba(40, 242, 179, 0.15);
  border: 1px solid rgba(40, 242, 179, 0.3);
  padding: 2px 8px;
  border-radius: 4px;
}

.hud-sector-line {
  font-size: 11px;
  font-weight: 800;
  color: #ffffff;
  margin-top: 6px;
  letter-spacing: 0.5px;
}

.hud-mini-progress {
  margin-top: 10px;
}

.hud-progress-info {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: var(--text-secondary);
  font-weight: 800;
  margin-bottom: 4px;
}

.hud-progress-info strong {
  color: var(--neon-amber);
  text-shadow: 0 0 6px rgba(255, 181, 71, 0.3);
}

.hud-energy-track {
  height: 5px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 3px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.hud-energy-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--neon-violet), var(--neon-cyan));
  box-shadow: 0 0 10px var(--neon-cyan);
  border-radius: 3px;
  transition: width 0.4s ease;
}

/* Sci-Fi Node Container & 3D Energy Conduit */
.sci-fi-node-list {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transform-style: preserve-3d;
}

.energy-connecting-path {
  position: absolute;
  top: 14px;
  left: 30px;
  width: 3px;
  bottom: 14px;
  background: linear-gradient(180deg, var(--neon-cyan) 0%, var(--neon-violet) 50%, rgba(132, 92, 255, 0.2) 100%);
  box-shadow: 0 0 10px rgba(53, 231, 255, 0.5);
  transform: translateZ(-15px);
  z-index: 0;
  pointer-events: none;
  border-radius: 2px;
}

@property --mission-border-angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

/* 3D Physical Extruded Sci-Fi Mission Node Module */
.vertical-tab-nav .tab-btn.sci-fi-node {
  position: relative;
  isolation: isolate;
  overflow: visible !important;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(25, 35, 69, 0.95) 0%, rgba(18, 26, 54, 0.9) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  color: #ffffff;
  cursor: pointer;
  transform: translateZ(0);
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.25s ease, border-color 0.25s ease, background 0.25s ease;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
}

.vertical-tab-nav .tab-btn.sci-fi-node > *:not(.mission-energy-border) {
  position: relative;
  z-index: 2;
}

/* Perimeter Photon Energy Border Loop */
.vertical-tab-nav .tab-btn.sci-fi-node .mission-energy-border {
  position: absolute;
  inset: -2px;
  padding: 2px;
  opacity: 0;
  pointer-events: none;
  border-radius: 12px;
  z-index: 1;

  background: conic-gradient(
    from var(--mission-border-angle),
    transparent 0deg,
    transparent 245deg,
    rgba(53, 231, 255, 0.2) 260deg,
    #35e7ff 285deg,
    #ffffff 300deg,
    #845cff 318deg,
    transparent 340deg,
    transparent 360deg
  );

  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;

  filter: drop-shadow(0 0 6px rgba(53, 231, 255, 0.9)) drop-shadow(0 0 12px rgba(132, 92, 255, 0.65));
  transition: opacity 0.3s ease;
}

[data-mission-node][data-state="active"] .mission-energy-border,
.vertical-tab-nav .tab-btn.sci-fi-node.active .mission-energy-border {
  opacity: 1;
  animation: missionEnergyLoop 3s linear infinite;
}

@keyframes missionEnergyLoop {
  from {
    --mission-border-angle: 0deg;
  }
  to {
    --mission-border-angle: 360deg;
  }
}

.vertical-tab-nav .tab-btn.sci-fi-node::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 1px;
  background: rgba(255, 255, 255, 0.2);
  pointer-events: none;
  z-index: 2;
}

.vertical-tab-nav .tab-btn.sci-fi-node:hover {
  border-color: var(--neon-cyan);
  transform: translateZ(12px) translateY(-3px) translateX(3px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.6), 0 0 16px rgba(53, 231, 255, 0.4);
  background: linear-gradient(135deg, rgba(35, 48, 90, 0.95) 0%, rgba(25, 35, 69, 0.9) 100%);
}

.vertical-tab-nav .tab-btn.sci-fi-node:active {
  transform: translateZ(2px) scale(0.985);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
}

/* ACTIVE 3D Holographic Centerpiece Module */
.vertical-tab-nav .tab-btn.sci-fi-node.active,
[data-mission-node][data-state="active"] {
  background: linear-gradient(135deg, rgba(132, 92, 255, 0.45) 0%, rgba(53, 231, 255, 0.3) 100%);
  border: 1px solid var(--neon-cyan);
  box-shadow: 0 0 0 1px rgba(53, 231, 255, 0.6), 0 0 18px rgba(53, 231, 255, 0.35), 0 0 32px rgba(132, 92, 255, 0.2);
  transform: translateZ(24px) translateY(-2px) rotateY(-1deg);
}

.vertical-tab-nav .tab-btn.sci-fi-node.active::before {
  background: var(--neon-cyan);
  box-shadow: 0 0 8px var(--neon-cyan);
}

.node-tag {
  font-size: 9.5px;
  font-weight: 900;
  color: var(--neon-cyan);
  background: rgba(53, 231, 255, 0.15);
  border: 1px solid rgba(53, 231, 255, 0.3);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: monospace;
}

.node-icon-box {
  font-size: 15px;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.4);
  transform: translateZ(4px);
}

.vertical-tab-nav .tab-btn.sci-fi-node.active .node-icon-box {
  background: rgba(53, 231, 255, 0.25);
  border-color: var(--neon-cyan);
  box-shadow: 0 0 12px rgba(53, 231, 255, 0.5);
}

.node-badge-status {
  margin-left: auto;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.5px;
  color: #a0aec0;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 2px 8px;
  border-radius: 6px;
  transform: translateZ(4px);
}

.node-badge-status.active {
  color: #ffffff;
  background: var(--neon-cyan);
  border-color: var(--neon-cyan);
  box-shadow: 0 0 10px var(--neon-cyan);
}

.node-badge-status.cleared {
  color: var(--neon-mint);
  background: rgba(40, 242, 179, 0.15);
  border-color: rgba(40, 242, 179, 0.3);
  box-shadow: 0 0 6px rgba(40, 242, 179, 0.2);
}

/* CLEARED 3D Node Accent */
.vertical-tab-nav .tab-btn.sci-fi-node:has(.node-badge-status.cleared) {
  border-left: 3px solid var(--neon-mint);
  transform: translateZ(6px);
}

/* 3D Final Boss Gate Node */
.vertical-tab-nav .tab-btn.sci-fi-node.boss-node {
  border-color: rgba(255, 181, 71, 0.4);
  background: linear-gradient(135deg, rgba(255, 181, 71, 0.1) 0%, rgba(18, 26, 54, 0.92) 100%);
  transform: translateZ(18px);
}

.vertical-tab-nav .tab-btn.sci-fi-node.boss-node:hover {
  border-color: var(--neon-amber);
  background: rgba(255, 181, 71, 0.2);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.6), 0 0 18px rgba(255, 181, 71, 0.5);
}

.boss-tag {
  color: var(--neon-amber);
  background: rgba(255, 181, 71, 0.2);
  border-color: rgba(255, 181, 71, 0.4);
}

.boss-status {
  color: var(--neon-amber);
  background: rgba(255, 181, 71, 0.15);
  border: 1px solid rgba(255, 181, 71, 0.4);
}

.boss-status.active {
  background: var(--neon-amber);
  color: #121A36;
  box-shadow: 0 0 14px var(--neon-amber);
}

/* Reduced Motion Accessibility Support */
@media (prefers-reduced-motion: reduce) {
  .hud-radar-pulse,
  .vertical-tab-nav .tab-btn.sci-fi-node.active {
    animation: none;
  }
  .vertical-tab-nav .tab-btn.sci-fi-node {
    transition: none;
    transform: none !important;
  }
}

/* ==================================================
/* ==================================================
   LAYOUT ALIGNMENT & 3D LEXICON TRAINING CHAMBER (WORD CAMP)
   ================================================== */

.unit-study-layout {
  display: grid !important;
  grid-template-columns: 290px minmax(0, 1fr) !important;
  column-gap: 24px !important;
  align-items: start !important;
  margin-top: 0 !important;
  padding-top: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  margin-inline: 0 !important;
}

.study-sidebar.sci-fi-navigator {
  grid-column: 1 !important;
  grid-row: 1 !important;
  align-self: start !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  position: sticky !important;
  top: 16px !important;
}

.study-content-panel {
  grid-column: 2 !important;
  grid-row: 1 !important;
  align-self: start !important;
  margin-top: 0 !important;
  padding-top: 0 !important;
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

.mission-header {
  margin-top: 0 !important;
  height: 92px;
  max-height: 105px;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 20px;
  background: linear-gradient(135deg, rgba(23, 30, 53, 0.95) 0%, rgba(18, 26, 54, 0.9) 100%);
  border: 1px solid rgba(53, 231, 255, 0.25);
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
  width: 100% !important;
  box-sizing: border-box !important;
}

.mission-header::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--neon-cyan), var(--neon-violet), transparent);
}

/* AI Companion Panel Compact Styling */
.mascot-companion-card {
  height: 76px;
  padding: 10px 16px;
  margin-bottom: 0;
  background: rgba(18, 26, 54, 0.7);
  border: 1px solid rgba(53, 231, 255, 0.2);
  border-radius: 14px;
  width: 100% !important;
  box-sizing: border-box !important;
}

.mascot-avatar {
  width: 44px;
  height: 44px;
  font-size: 24px;
}

/* 3D Lexicon Chamber Container */
.lexicon-chamber-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100% !important;
  box-sizing: border-box !important;
}

.lexicon-chamber-stage {
  display: grid;
  grid-template-columns: 42% 58%;
  gap: 20px;
  min-height: 420px;
  background: linear-gradient(135deg, rgba(25, 35, 69, 0.9) 0%, rgba(18, 26, 54, 0.95) 100%);
  border: 1px solid rgba(53, 231, 255, 0.3);
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), inset 0 0 30px rgba(132, 92, 255, 0.1);
  position: relative;
  overflow: hidden;
  width: 100% !important;
  box-sizing: border-box !important;
}

/* Left 42%: Visual Hologram Display */
.visual-hologram-display {
  position: relative;
  border-radius: 16px;
  border: 1px solid rgba(53, 231, 255, 0.3);
  background: rgba(12, 18, 38, 0.8);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.8);
}

.hologram-corner-bracket {
  position: absolute;
  width: 12px;
  height: 12px;
  border-color: var(--neon-cyan);
  border-style: solid;
  z-index: 3;
  pointer-events: none;
}
.hologram-corner-bracket.top-left { top: 6px; left: 6px; border-width: 2px 0 0 2px; }
.hologram-corner-bracket.top-right { top: 6px; right: 6px; border-width: 2px 2px 0 0; }
.hologram-corner-bracket.bottom-left { bottom: 6px; left: 6px; border-width: 0 0 2px 2px; }
.hologram-corner-bracket.bottom-right { bottom: 6px; right: 6px; border-width: 0 2px 2px 0; }

.hologram-badge-header {
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 3;
}

.hologram-chip-tag {
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 1px;
  color: var(--neon-cyan);
  background: rgba(53, 231, 255, 0.2);
  border: 1px solid rgba(53, 231, 255, 0.4);
  padding: 2px 8px;
  border-radius: 4px;
  font-family: monospace;
}

.hologram-core-id {
  font-size: 10px;
  font-weight: 800;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.6);
  padding: 2px 8px;
  border-radius: 4px;
}

.hologram-image-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 280px;
  overflow: hidden;
}

.hologram-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.9) contrast(1.1);
  transition: transform 0.4s ease;
}

.visual-hologram-display:hover .hologram-img {
  transform: scale(1.05);
}

.hologram-scanline-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(rgba(53, 231, 255, 0.05) 50%, rgba(0, 0, 0, 0.25) 50%);
  background-size: 100% 4px;
  pointer-events: none;
}

.hologram-ambient-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, transparent 40%, rgba(18, 26, 54, 0.8) 100%);
  pointer-events: none;
}

.hologram-footer-tag {
  position: absolute;
  bottom: 10px;
  left: 10px;
  z-index: 3;
}

.hologram-status-pulse {
  font-size: 9px;
  font-weight: 800;
  color: var(--neon-mint);
  background: rgba(40, 242, 179, 0.15);
  border: 1px solid rgba(40, 242, 179, 0.3);
  padding: 2px 8px;
  border-radius: 4px;
}

/* Right 58%: Word Data Console (3D Flip Data Core) */
.word-data-console-wrapper {
  perspective: 1000px;
  height: 100%;
}

.data-core-3d {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.data-core-3d.flipped {
  transform: rotateY(180deg);
}

.data-core-face {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(25, 35, 69, 0.95) 0%, rgba(18, 26, 54, 0.95) 100%);
  border: 1px solid rgba(53, 231, 255, 0.25);
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.data-core-back {
  transform: rotateY(180deg);
  background: linear-gradient(135deg, rgba(35, 25, 69, 0.95) 0%, rgba(26, 18, 54, 0.95) 100%);
  border-color: rgba(132, 92, 255, 0.35);
}

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

.core-pos-badge {
  font-size: 11px;
  font-weight: 900;
  color: var(--neon-cyan);
  background: rgba(53, 231, 255, 0.15);
  border: 1px solid rgba(53, 231, 255, 0.3);
  padding: 3px 10px;
  border-radius: 6px;
  font-family: monospace;
}

.core-pos-badge.back-badge {
  color: var(--neon-mint);
  background: rgba(40, 242, 179, 0.15);
  border-color: rgba(40, 242, 179, 0.3);
}

.core-security-badge {
  font-size: 9.5px;
  font-weight: 800;
  color: var(--text-secondary);
  letter-spacing: 1px;
}

.core-word-section {
  text-align: center;
  margin: 14px 0;
}

.core-word-text {
  font-size: 34px;
  font-weight: 900;
  background: linear-gradient(135deg, #ffffff 0%, var(--neon-cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin: 0;
  line-height: 1.2;
}

.core-ipa-text {
  font-size: 16px;
  font-weight: 700;
  color: #a0aec0;
  font-family: monospace;
  margin-top: 6px;
}

/* Pronunciation Scanner Box & Waveform */
.pronunciation-scanner-box {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(12, 18, 38, 0.6);
  border: 1px solid rgba(53, 231, 255, 0.2);
  padding: 10px 14px;
  border-radius: 12px;
  margin: 10px 0;
}

.scanner-play-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--neon-cyan) 0%, var(--neon-blue) 100%);
  border: none;
  color: #121A36;
  font-weight: 900;
  font-size: 11px;
  padding: 8px 14px;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 0 12px rgba(53, 231, 255, 0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.scanner-play-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 0 18px rgba(53, 231, 255, 0.6);
}

.scanner-waveform-bars {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 20px;
  flex: 1;
}

.scanner-waveform-bars .bar {
  width: 4px;
  height: 6px;
  background: var(--neon-cyan);
  border-radius: 2px;
  opacity: 0.5;
  transition: height 0.2s ease;
}

.pronunciation-scanner-box.is-scanning .scanner-waveform-bars .bar {
  opacity: 1;
  animation: waveformPulse 0.6s infinite ease-in-out alternate;
}

.scanner-waveform-bars .bar:nth-child(2n) { animation-delay: 0.1s; }
.scanner-waveform-bars .bar:nth-child(3n) { animation-delay: 0.2s; }
.scanner-waveform-bars .bar:nth-child(4n) { animation-delay: 0.3s; }

@keyframes waveformPulse {
  0% { height: 4px; }
  100% { height: 18px; }
}

.core-meaning-section {
  text-align: center;
  margin: 14px 0;
}

.core-meaning-text {
  font-size: 28px;
  font-weight: 900;
  color: var(--neon-mint);
  margin: 0 0 12px 0;
}

.core-example-box {
  background: rgba(12, 18, 38, 0.6);
  border: 1px solid rgba(132, 92, 255, 0.25);
  padding: 12px 14px;
  border-radius: 10px;
  text-align: left;
}

.example-label {
  font-size: 9.5px;
  font-weight: 900;
  color: var(--neon-violet);
  letter-spacing: 1px;
}

.core-example-text {
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
  margin-top: 4px;
  line-height: 1.4;
}

.core-flip-hint {
  text-align: center;
  font-size: 11px;
  color: var(--text-secondary);
}

.kbd-hint {
  display: block;
  font-size: 9.5px;
  color: rgba(255, 255, 255, 0.4);
  margin-top: 2px;
}

/* Bottom Integrated Control Deck & Progress Rail */
.lexicon-control-deck {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: rgba(18, 26, 54, 0.85);
  border: 1px solid rgba(53, 231, 255, 0.25);
  border-radius: 14px;
  padding: 10px 16px;
}

.deck-nav-btn {
  background: linear-gradient(135deg, rgba(25, 35, 69, 0.9) 0%, rgba(18, 26, 54, 0.9) 100%);
  border: 1px solid rgba(53, 231, 255, 0.3);
  color: #ffffff;
  font-size: 11px;
  font-weight: 900;
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.deck-nav-btn:hover {
  border-color: var(--neon-cyan);
  box-shadow: 0 0 12px rgba(53, 231, 255, 0.3);
  transform: translateY(-1px);
}

.deck-progress-rail {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1;
  justify-content: center;
}

.rail-node {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.rail-node.cleared {
  background: var(--neon-mint);
  box-shadow: 0 0 6px var(--neon-mint);
}

.rail-node.active {
  width: 12px;
  height: 12px;
  background: var(--neon-cyan);
  box-shadow: 0 0 10px var(--neon-cyan);
}

.deck-card-counter {
  font-size: 11px;
  font-weight: 900;
  color: var(--neon-cyan);
  font-family: monospace;
  letter-spacing: 0.5px;
}

@media (max-width: 900px) {
  .unit-study-layout {
    grid-template-columns: 1fr !important;
  }
  .lexicon-chamber-stage {
    grid-template-columns: 1fr;
  }
}

/* ==================================================
   VISUAL DETECTIVE – AI PICTURE CHALLENGE (STATION 2 STYLES)
   ================================================== */

.picture-forest-game {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
  box-sizing: border-box;
  background: linear-gradient(135deg, rgba(25, 35, 69, 0.95) 0%, rgba(18, 26, 54, 0.95) 100%);
  border: 1px solid rgba(53, 231, 255, 0.3);
  border-radius: 20px;
  padding: 22px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), inset 0 0 30px rgba(132, 92, 255, 0.1);
  position: relative;
  overflow: hidden;
}

.game-status-header {
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(12, 18, 38, 0.7);
  border: 1px solid rgba(53, 231, 255, 0.2);
  padding: 10px 16px;
  border-radius: 14px;
}

.status-badge-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.status-chip-tag {
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 1.5px;
  color: var(--neon-cyan);
  background: rgba(53, 231, 255, 0.15);
  border: 1px solid rgba(53, 231, 255, 0.3);
  padding: 3px 10px;
  border-radius: 6px;
  font-family: monospace;
}

.status-question-count {
  font-size: 11px;
  font-weight: 900;
  color: #ffffff;
  font-family: monospace;
}

.status-energy-rail {
  flex: 1;
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 3px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.energy-fill-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--neon-violet), var(--neon-cyan));
  box-shadow: 0 0 10px var(--neon-cyan);
  border-radius: 3px;
  transition: width 0.4s ease;
}

.status-xp-pill {
  font-size: 11px;
  font-weight: 900;
  color: var(--neon-amber);
  background: rgba(255, 181, 71, 0.15);
  border: 1px solid rgba(255, 181, 71, 0.3);
  padding: 3px 10px;
  border-radius: 8px;
}

/* Visual Scanner Frame (Full Width Image Core) */
.visual-scanner-frame {
  position: relative;
  width: 100%;
  height: 320px;
  box-sizing: border-box;
  border-radius: 16px;
  border: 1px solid rgba(53, 231, 255, 0.35);
  background: rgba(12, 18, 38, 0.9);
  overflow: hidden;
  box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.9), 0 12px 30px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.scanner-corner-bracket {
  position: absolute;
  width: 14px;
  height: 14px;
  border-color: var(--neon-cyan);
  border-style: solid;
  z-index: 3;
  pointer-events: none;
}
.scanner-corner-bracket.top-left { top: 8px; left: 8px; border-width: 2px 0 0 2px; }
.scanner-corner-bracket.top-right { top: 8px; right: 8px; border-width: 2px 2px 0 0; }
.scanner-corner-bracket.bottom-left { bottom: 8px; left: 8px; border-width: 0 0 2px 2px; }
.scanner-corner-bracket.bottom-right { bottom: 8px; right: 8px; border-width: 0 2px 2px 0; }

.scanner-header-tag {
  position: absolute;
  top: 12px; left: 14px; right: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 3;
}

.scanner-feed-label {
  font-size: 9.5px;
  font-weight: 900;
  letter-spacing: 1.5px;
  color: var(--neon-cyan);
  background: rgba(18, 26, 54, 0.85);
  border: 1px solid rgba(53, 231, 255, 0.3);
  padding: 3px 10px;
  border-radius: 4px;
  font-family: monospace;
}

.scanner-resolution-tag {
  font-size: 9px;
  font-weight: 800;
  color: var(--neon-mint);
  background: rgba(40, 242, 179, 0.15);
  border: 1px solid rgba(40, 242, 179, 0.3);
  padding: 2px 8px;
  border-radius: 4px;
}

.scanner-img-container {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.scanner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.95) contrast(1.05);
  transition: transform 0.4s ease;
}

.scanner-beam-line {
  position: absolute;
  top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, transparent, var(--neon-cyan), transparent);
  box-shadow: 0 0 15px var(--neon-cyan);
  opacity: 0.7;
  animation: scanBeam 3.5s infinite linear;
  pointer-events: none;
  z-index: 2;
}

@keyframes scanBeam {
  0% { top: 0%; opacity: 0.8; }
  100% { top: 100%; opacity: 0.2; }
}

.scanner-glass-grid {
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(53, 231, 255, 0.04) 50%, rgba(0, 0, 0, 0.2) 50%);
  background-size: 100% 4px;
  pointer-events: none;
  z-index: 2;
}

.scanner-prompt-bar {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(12, 18, 38, 0.9) 100%);
  padding: 10px 16px;
  font-size: 11.5px;
  color: var(--text-secondary);
  font-weight: 700;
  z-index: 3;
}

/* Question Panel & 2x2 Answer Grid */
.question-panel {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.question-title {
  font-size: 18px;
  font-weight: 900;
  color: #ffffff;
  margin: 0;
}

.question-subtitle {
  font-size: 13px;
  color: var(--neon-cyan);
  margin: -4px 0 6px 0;
  font-weight: 700;
}

.answer-grid-2x2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.vf-answer-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(25, 35, 69, 0.9) 0%, rgba(18, 26, 54, 0.9) 100%);
  border: 1px solid rgba(53, 231, 255, 0.2);
  color: #ffffff;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transition: transform 0.22s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
  text-align: left;
}

.vf-answer-btn:hover:not(:disabled) {
  border-color: var(--neon-cyan);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5), 0 0 14px rgba(53, 231, 255, 0.3);
  background: linear-gradient(135deg, rgba(35, 48, 90, 0.95) 0%, rgba(25, 35, 69, 0.9) 100%);
}

.vf-btn-letter {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(53, 231, 255, 0.15);
  border: 1px solid rgba(53, 231, 255, 0.3);
  color: var(--neon-cyan);
  border-radius: 8px;
  font-weight: 900;
  font-family: monospace;
  flex-shrink: 0;
}

.vf-btn-text {
  flex: 1;
  line-height: 1.3;
}

.vf-answer-btn.is-correct {
  border-color: var(--neon-mint) !important;
  background: linear-gradient(135deg, rgba(40, 242, 179, 0.25) 0%, rgba(18, 26, 54, 0.95) 100%) !important;
  box-shadow: 0 0 20px rgba(40, 242, 179, 0.4) !important;
}

.vf-answer-btn.is-correct .vf-btn-letter {
  background: var(--neon-mint) !important;
  color: #121A36 !important;
  border-color: var(--neon-mint) !important;
}

.vf-answer-btn.is-wrong {
  border-color: var(--neon-red) !important;
  background: linear-gradient(135deg, rgba(255, 82, 103, 0.2) 0%, rgba(18, 26, 54, 0.95) 100%) !important;
  box-shadow: 0 0 16px rgba(255, 82, 103, 0.3) !important;
}

.vf-answer-btn.is-wrong .vf-btn-letter {
  background: var(--neon-red) !important;
  color: #ffffff !important;
  border-color: var(--neon-red) !important;
}

.kbd-shortcuts-bar {
  font-size: 10.5px;
  color: var(--text-secondary);
  text-align: center;
  margin-top: 4px;
}

/* Feedback Bar & Navigation */
.game-feedback-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: rgba(12, 18, 38, 0.85);
  border: 1px solid rgba(53, 231, 255, 0.25);
  padding: 12px 18px;
  border-radius: 14px;
}

.feedback-message {
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
  flex: 1;
}

.feedback-message.is-correct {
  color: var(--neon-mint);
}

.feedback-message.is-wrong {
  color: var(--neon-amber);
}

.btn-next-question {
  background: linear-gradient(135deg, var(--neon-cyan) 0%, var(--neon-blue) 100%);
  border: none;
  color: #121A36;
  font-weight: 900;
  font-size: 12px;
  padding: 10px 20px;
  border-radius: 10px;
  cursor: pointer;
  box-shadow: 0 0 14px rgba(53, 231, 255, 0.4);
  transition: all 0.2s ease;
}

.btn-next-question:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 20px rgba(53, 231, 255, 0.6);
}

@media (max-width: 768px) {
  .answer-grid-2x2 {
    grid-template-columns: 1fr;
  }
}

/* Rounded Extra-Thick 3D Neon Moving Title Animation for Welcome Portal */
.welcome-3d-neon-title {
  font-family: 'Fredoka', 'Outfit', var(--font-primary), sans-serif;
  font-size: clamp(34px, 5.6vw, 62px);
  font-weight: 900;
  line-height: 1.18;
  margin: 0 0 26px 0;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  background: linear-gradient(
    90deg,
    #ffffff 0%,
    #35E7FF 25%,
    #FFC857 50%,
    #6C5CFF 75%,
    #ffffff 100%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;

  /* Rounded Stroke Edge */
  -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.7);
  paint-order: stroke fill;
  stroke-linejoin: round;
  stroke-linecap: round;
  
  /* Extra-Thick Layered 3D Extrusion Drop Shadows */
  filter: drop-shadow(0 2px 0 #35E7FF)
          drop-shadow(0 4px 0 #00b4d8)
          drop-shadow(0 6px 0 #0077b6)
          drop-shadow(0 8px 0 #03045e)
          drop-shadow(0 10px 0 #010226)
          drop-shadow(0 12px 0 #000000)
          drop-shadow(0 16px 30px rgba(0, 0, 0, 0.9))
          drop-shadow(0 0 35px rgba(53, 231, 255, 0.8))
          drop-shadow(0 0 65px rgba(108, 92, 255, 0.6));
          
  /* Animations: Left-to-right slide-in + Continuous Neon Gradient Wave + 3D Float */
  animation: 
    titleSlideFromLeft 1.1s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards,
    neonShimmerWave 3.5s linear infinite,
    neonFloat3D 4s ease-in-out infinite 1.1s;
}

@keyframes titleSlideFromLeft {
  0% {
    opacity: 0;
    transform: translateX(-160px) scale(0.85) skewX(-8deg);
    filter: blur(12px) drop-shadow(0 0 0 transparent);
  }
  65% {
    opacity: 1;
    transform: translateX(18px) scale(1.03) skewX(2deg);
  }
  100% {
    opacity: 1;
    transform: translateX(0) scale(1) skewX(0deg);
  }
}

@keyframes neonShimmerWave {
  0% {
    background-position: 0% center;
  }
  100% {
    background-position: 200% center;
  }
}

@keyframes neonFloat3D {
  0%, 100% {
    transform: translateY(0) rotateX(0deg);
  }
  50% {
    transform: translateY(-8px) rotateX(3deg);
  }
}

/* Firebase Google Auth & 24h Trial Sci-Fi Overlays */
@keyframes authSpin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes authSpinReverse {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(-360deg); }
}

.btn-firebase-google:hover {
  transform: translateY(-3px) scale(1.01);
  box-shadow: 0 14px 35px rgba(255, 255, 255, 0.35), 0 0 25px rgba(53, 231, 255, 0.5) !important;
  background: #ffffff !important;
}

#auth-account-chip {
  transition: all 0.25s ease;
}

#auth-account-chip:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(53, 231, 255, 0.3);
}

.trial-countdown-tag {
  transition: all 0.3s ease;
}

