/* ==========================================================================
   OmniLearn AI — Premium Glassmorphism Design System (Multilingual & Regional)
   ========================================================================== */

:root {
  /* Color Palette - Vibrant Dark Mode */
  --bg-primary: #0a0d14;
  --bg-secondary: #121824;
  --bg-card: rgba(22, 30, 46, 0.75);
  --bg-card-hover: rgba(30, 41, 64, 0.85);
  --bg-glass: rgba(255, 255, 255, 0.04);
  --border-glass: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(99, 102, 241, 0.4);

  /* Primary Gradients & Accents */
  --accent-purple: #8b5cf6;
  --accent-indigo: #6366f1;
  --accent-cyan: #06b6d4;
  --accent-emerald: #10b981;
  --accent-amber: #f59e0b;
  --accent-rose: #f43f5e;
  
  --gradient-hero: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #d946ef 100%);
  --gradient-glow: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(139, 92, 246, 0.2));
  --gradient-card: linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.01) 100%);

  /* Text Colors */
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  /* Typography & Shadows */
  --font-sans: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-code: 'JetBrains Mono', monospace;
  
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 10px 25px -5px rgba(0, 0, 0, 0.5), 0 0 30px rgba(99, 102, 241, 0.15);
  --shadow-glow: 0 0 20px rgba(139, 92, 246, 0.35);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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



/* Background Ambient Glow Effects */
.ambient-glow {
  position: fixed;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  filter: blur(140px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.25;
}

.glow-1 { top: -100px; left: -100px; background: var(--accent-indigo); }
.glow-2 { bottom: -150px; right: -150px; background: var(--accent-purple); }
.glow-3 { top: 40%; right: 20%; background: var(--accent-cyan); opacity: 0.15; }

/* Layout Wrapper — Universal Display-Fit System (Full Width, Fluid Responsive) */
.app-container {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  width: 100%;
  max-width: 1800px;
  margin: 0 auto;
  padding: 0 clamp(10px, 1.8vw, 28px);
  box-sizing: border-box;
}

/* Workspace View Panels */
.view-panel {
  display: none;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.view-panel.active {
  display: block;
}

/* Modal Overlay & Glass Modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(10, 13, 20, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
}

.modal-overlay.active,
.modal-overlay[style*="display: flex"] {
  display: flex !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

.glass-modal {
  background: rgba(22, 30, 46, 0.95);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 520px;
  padding: 32px;
  box-shadow: var(--shadow-lg);
  transform: translateY(20px);
  transition: var(--transition);
}

.modal-overlay.active .glass-modal {
  transform: translateY(0);
}

.modal-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border-glass);
  padding-bottom: 16px;
}

.modal-header h2 { font-size: 20px; font-weight: 700; }
.modal-header p { font-size: 13px; color: var(--text-muted); }

.modal-body {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 24px;
}

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

.form-group label {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-cyan);
}

/* Active Goal Pill in Header (Laser Focus) */
.active-goal-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid var(--accent-cyan);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 0 16px rgba(6, 182, 212, 0.15);
}

.active-goal-pill:hover {
  background: rgba(6, 182, 212, 0.15);
  transform: translateY(-1px);
  box-shadow: 0 0 20px rgba(6, 182, 212, 0.3);
}

/* Region Quick Badge in Header */
.region-badge-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid var(--border-glow);
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.region-badge-box:hover {
  background: rgba(99, 102, 241, 0.3);
  transform: scale(1.03);
}

/* Smart Companion Sister App Card */
.smart-companion-card {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.1), rgba(99, 102, 241, 0.15));
  border: 1px solid rgba(6, 182, 212, 0.3);
  border-radius: 12px;
  padding: 12px 14px;
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

/* Header & Top Bar */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  border-bottom: 1px solid var(--border-glass);
  flex-wrap: wrap;
  gap: 12px;
  position: relative;
  z-index: 10;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-main);
}

.logo-icon {
  width: 44px;
  height: 44px;
  background: var(--gradient-hero);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  box-shadow: var(--shadow-glow);
}

.brand-text h1 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.5px;
  background: var(--gradient-hero);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-text p {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Exam Switcher Section */
.exam-switcher-section {
  margin-top: 16px;
}

.section-title-sm {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.exam-switcher-container {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-card);
  padding: 8px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-glass);
  backdrop-filter: blur(12px);
  overflow-x: auto;
}

.exam-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  background: transparent;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition);
}

.exam-badge:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.05);
}

.exam-badge.active {
  color: #fff;
  background: var(--gradient-hero);
  box-shadow: var(--shadow-glow);
}

/* Spotlight Search Pill & OmniSearch Modal */
.search-spotlight-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass);
  padding: 6px 14px;
  border-radius: 20px;
  color: var(--text-muted);
  font-size: 12px;
  cursor: pointer;
  transition: var(--transition);
  user-select: none;
}

.search-spotlight-pill:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--accent-cyan);
  color: #ffffff;
}

.search-spotlight-pill kbd {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 4px;
  padding: 2px 6px;
  font-size: 10px;
  color: var(--accent-cyan);
  font-family: inherit;
}

.search-result-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-bottom: 4px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid transparent;
}

.search-result-item:hover, .search-result-item.selected {
  background: rgba(99, 102, 241, 0.15);
  border-color: rgba(99, 102, 241, 0.3);
  border-left: 3px solid var(--accent-cyan);
  transform: translateX(4px);
}

/* User Profile & Language Selector */
.user-status {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  position: relative;
  z-index: 20;
}

.user-status button,
.navbar button,
.btn-secondary {
  cursor: pointer !important;
  pointer-events: auto !important;
  position: relative !important;
  z-index: 25 !important;
}

.lang-selector-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  backdrop-filter: blur(12px);
}

.lang-dropdown {
  background: transparent;
  border: none;
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  outline: none;
  cursor: pointer;
}

.lang-dropdown option {
  background: var(--bg-secondary);
  color: var(--text-main);
}

.streak-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: var(--accent-amber);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 600;
}

/* Main Dashboard Layout — Strict Laptop Grid with minmax(0, 1fr) */
.main-content {
  display: grid;
  grid-template-columns: 245px minmax(0, 1fr);
  gap: clamp(12px, 1.4vw, 20px);
  margin-top: 18px;
  margin-bottom: 24px;
  flex: 1;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  transition: grid-template-columns 0.25s ease;
}

.main-content.sidebar-collapsed {
  grid-template-columns: 58px minmax(0, 1fr);
}

/* Sidebar & Stats */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 245px;
  min-width: 0;
  max-width: 245px;
  box-sizing: border-box;
  transition: all 0.25s ease;
}

.main-content.sidebar-collapsed .sidebar {
  width: 58px;
  max-width: 58px;
}

.main-content.sidebar-collapsed .sidebar .nav-group-header span,
.main-content.sidebar-collapsed .sidebar .nav-group-header .group-chevron,
.main-content.sidebar-collapsed .sidebar .nav-group-items,
.main-content.sidebar-collapsed .sidebar .stats-card,
.main-content.sidebar-collapsed .sidebar #sidebar-collapse-text,
.main-content.sidebar-collapsed .sidebar #sidebar-collapse-badge {
  display: none !important;
}

.main-content.sidebar-collapsed .sidebar #sidebar-collapse-btn {
  justify-content: center;
  padding: 8px 4px;
}

.main-content.sidebar-collapsed .sidebar .nav-group-header {
  justify-content: center;
  padding: 12px 6px;
}

.main-content.sidebar-collapsed .sidebar .nav-group-header i {
  font-size: 16px;
}

/* Right View Panel Area (Study Area) — Strict Screen Containment */
.content-area {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  overflow-x: clip;
}

.nav-menu {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 12px;
  backdrop-filter: blur(16px);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Sidebar Grouping & Collapsible Accordion Hierarchy */
.nav-group {
  background: rgba(15, 23, 42, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all 0.2s ease;
}

.nav-group:hover {
  border-color: rgba(99, 102, 241, 0.25);
}

.nav-group-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.025);
  cursor: pointer;
  user-select: none;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--accent-cyan);
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  transition: var(--transition);
}

.nav-group-header:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
}

.nav-group-header .group-title-box {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-group-header i.group-chevron {
  font-size: 10px;
  transition: transform 0.25s ease;
  color: var(--text-muted);
}

.nav-group.collapsed .nav-group-items {
  display: none;
}

.nav-group.collapsed .nav-group-header {
  border-bottom-color: transparent;
}

.nav-group.collapsed .nav-group-header i.group-chevron {
  transform: rotate(-90deg);
}

.nav-group-items {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 6px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid transparent;
}

.nav-item:hover { color: var(--text-main); background: rgba(255, 255, 255, 0.06); transform: translateX(3px); }
.nav-item.active { color: #fff; background: rgba(99, 102, 241, 0.2); border-color: var(--border-glow); font-weight: 700; }

.stats-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 20px;
  backdrop-filter: blur(16px);
}

.stats-card h3 { font-size: 14px; color: var(--text-muted); margin-bottom: 14px; text-transform: uppercase; }
.stat-row { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.04); }
.stat-row:last-child { border-bottom: none; }
.stat-value { font-weight: 700; color: var(--accent-cyan); }

/* Workspace Views Container */
.view-panel { display: none; animation: fadeIn 0.3s ease-in-out forwards; }
.view-panel.active { display: block; }

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

.glass-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 28px;
  backdrop-filter: blur(20px);
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}

.card-header h2 { font-size: 22px; font-weight: 700; display: flex; align-items: center; gap: 10px; }
.card-header p { color: var(--text-muted); font-size: 14px; margin-top: 4px; }

/* AI Study Planner Styles */
.planner-countdown-banner {
  display: flex;
  justify-content: space-around;
  align-items: center;
  background: linear-gradient(135deg, rgba(30, 41, 64, 0.8), rgba(18, 24, 36, 0.9));
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 24px;
  backdrop-filter: blur(16px);
}

.countdown-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.cnt-num {
  font-size: 32px;
  font-weight: 800;
  color: var(--accent-amber);
  font-family: var(--font-code);
}

.cnt-label {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.planner-goals-grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.goal-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(10, 13, 20, 0.6);
  border: 1px solid var(--border-glass);
  padding: 18px 24px;
  border-radius: var(--radius-md);
  transition: var(--transition);
}

.goal-card.done {
  border-color: rgba(16, 185, 129, 0.4);
  background: rgba(16, 185, 129, 0.05);
}

.goal-card.active {
  border-color: rgba(245, 158, 11, 0.5);
  background: rgba(245, 158, 11, 0.08);
  box-shadow: 0 0 15px rgba(245, 158, 11, 0.15);
}

.goal-icon {
  font-size: 24px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
}

.goal-card.done .goal-icon { color: var(--accent-emerald); }
.goal-card.active .goal-icon { color: var(--accent-amber); }

.goal-info { flex: 1; }
.goal-info h4 { font-size: 15px; font-weight: 600; margin-bottom: 2px; }
.goal-info p { font-size: 13px; color: var(--text-muted); }

.goal-status {
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: var(--radius-full);
}

.goal-card.done .goal-status { background: rgba(16, 185, 129, 0.2); color: var(--accent-emerald); }
.goal-card.active .goal-status { background: rgba(245, 158, 11, 0.2); color: var(--accent-amber); }
/* Live AI Voice Co-Study Partner Styles */
.voice-hub-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  background: rgba(10, 13, 20, 0.6);
  border: 1px solid var(--border-glass);
  padding: 32px;
  border-radius: var(--radius-lg);
  backdrop-filter: blur(16px);
}

.voice-pulse-ring {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: rgba(244, 63, 94, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid rgba(244, 63, 94, 0.4);
}

.voice-pulse-ring.listening {
  animation: pulseMic 1.5s infinite ease-in-out;
  border-color: var(--accent-rose);
  background: rgba(244, 63, 94, 0.3);
}

@keyframes pulseMic {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(244, 63, 94, 0.5); }
  70% { transform: scale(1.08); box-shadow: 0 0 0 25px rgba(244, 63, 94, 0); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(244, 63, 94, 0); }
}

.voice-mic-circle {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f43f5e 0%, #e11d48 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 28px;
  box-shadow: 0 0 25px rgba(244, 63, 94, 0.4);
}

.voice-status-text {
  text-align: center;
}

.voice-status-text h3 { font-size: 18px; font-weight: 700; color: var(--accent-rose); }
.voice-status-text p { font-size: 13px; color: var(--text-muted); margin-top: 4px; }

.voice-transcript-box {
  width: 100%;
  background: rgba(18, 24, 36, 0.8);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 18px;
  min-height: 140px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.chat-bubble {
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: 14px;
  line-height: 1.5;
}

.chat-bubble.ai {
  background: rgba(99, 102, 241, 0.15);
  border-left: 3px solid var(--accent-indigo);
  color: #fff;
}

/* Study Materials & Digital Library Styles */
.materials-grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 16px;
}

.material-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(10, 13, 20, 0.6);
  border: 1px solid var(--border-glass);
  padding: 18px 24px;
  border-radius: var(--radius-md);
  transition: var(--transition);
}

.material-card:hover {
  background: rgba(30, 41, 64, 0.6);
  border-color: var(--border-glow);
  transform: translateY(-2px);
}

.mat-icon {
  font-size: 28px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.04);
  border-radius: var(--radius-md);
}

/* Infinite Micro-MCQ Topic Drill Engine Styles */
.mcq-topic-mastery-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(10, 13, 20, 0.6);
  border: 1px solid var(--border-glass);
  padding: 16px 20px;
  border-radius: var(--radius-md);
  margin-bottom: 20px;
}

.mcq-stats-pills {
  display: flex;
  gap: 10px;
}

.mcq-pill {
  font-size: 12px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: var(--radius-full);
}

.mcq-question-card {
  background: rgba(18, 24, 36, 0.8);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 28px;
}

.mcq-num-badge {
  font-size: 11px;
  font-weight: 600;
  color: var(--accent-cyan);
  text-transform: uppercase;
  letter-spacing: 1px;
}

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

.mcq-opt-btn {
  background: rgba(10, 13, 20, 0.6);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: var(--transition);
}

.mcq-opt-btn:hover {
  background: rgba(99, 102, 241, 0.15);
  border-color: var(--accent-indigo);
}

.mcq-opt-btn.correct {
  background: rgba(16, 185, 129, 0.2) !important;
  border-color: var(--accent-emerald) !important;
  color: #fff !important;
}

.mcq-opt-btn.incorrect {
  background: rgba(244, 63, 94, 0.2) !important;
  border-color: var(--accent-rose) !important;
  color: #fff !important;
}

.voice-eval-card {
  width: 100%;
  background: rgba(18, 24, 36, 0.95);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-top: 16px;
  animation: fadeIn 0.4s ease-in-out forwards;
}

.voice-eval-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border-glass);
  padding-bottom: 12px;
}
.curriculum-explorer-box {
  background: rgba(10, 13, 20, 0.5);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin-bottom: 20px;
}

.explorer-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.explorer-dropdowns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.explorer-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.explorer-group label {
  font-size: 12px;
  color: var(--accent-cyan);
  font-weight: 500;
}

.explorer-select {
  padding: 10px 14px;
  font-size: 13px;
  background: rgba(22, 30, 46, 0.9);
}
.mode-tab {
  flex: 1; min-width: 130px; padding: 12px 14px;
  background: rgba(255, 255, 255, 0.03); border: 1px solid var(--border-glass);
  border-radius: var(--radius-md); color: var(--text-muted); cursor: pointer;
  display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 13px; font-weight: 500;
  transition: var(--transition);
}
.mode-tab.active { background: rgba(139, 92, 246, 0.15); border-color: var(--accent-purple); color: #fff; box-shadow: 0 0 15px rgba(139, 92, 246, 0.2); }

.search-box { display: flex; gap: 12px; margin-bottom: 24px; }
.input-field {
  flex: 1; background: rgba(10, 13, 20, 0.6); border: 1px solid var(--border-glass);
  border-radius: var(--radius-md); padding: 14px 20px; color: #fff; font-size: 15px;
  font-family: var(--font-sans); outline: none; transition: var(--transition);
}
.input-field:focus { border-color: var(--accent-indigo); box-shadow: 0 0 15px rgba(99, 102, 241, 0.25); }

.btn-primary {
  background: var(--gradient-hero); color: #fff; border: none; border-radius: var(--radius-md);
  padding: 14px 28px; font-weight: 600; font-size: 15px; cursor: pointer;
  display: flex; align-items: center; gap: 8px; transition: var(--transition); box-shadow: var(--shadow-glow);
}
.btn-primary:hover { transform: translateY(-2px); filter: brightness(1.1); }

.output-content {
  background: rgba(10, 13, 20, 0.7); border: 1px solid var(--border-glass);
  border-radius: var(--radius-md); padding: 24px; min-height: 250px; font-size: 15px; line-height: 1.7;
}

.highlight-box {
  background: rgba(16, 185, 129, 0.1); border-left: 4px solid var(--accent-emerald);
  padding: 14px 18px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; margin: 16px 0;
}

.canvas-wrapper {
  width: 100%; height: 200px; background: rgba(0, 0, 0, 0.3);
  border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center;
  border: 1px dashed var(--border-glass); margin-top: 16px;
}

.flashcard-container { perspective: 1000px; height: 260px; margin-bottom: 24px; cursor: pointer; }
.flashcard {
  width: 100%; height: 100%; position: relative; transform-style: preserve-3d;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  background: linear-gradient(135deg, rgba(30, 41, 64, 0.9), rgba(18, 24, 36, 0.9));
  border: 1px solid var(--border-glow); border-radius: var(--radius-lg);
  display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 32px; text-align: center;
}
.flashcard.flipped { transform: rotateY(180deg); }
.flashcard-front, .flashcard-back {
  position: absolute; width: 100%; height: 100%; backface-visibility: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px;
}
.flashcard-back { transform: rotateY(180deg); background: linear-gradient(135deg, rgba(139, 92, 246, 0.15), rgba(15, 23, 42, 0.95)); }

.flashcard-actions { display: flex; justify-content: center; gap: 12px; }
.btn-score { padding: 10px 20px; border-radius: var(--radius-full); border: none; font-weight: 600; cursor: pointer; }
.btn-hard { background: rgba(244, 63, 94, 0.2); color: var(--accent-rose); border: 1px solid var(--accent-rose); }
.btn-good { background: rgba(245, 158, 11, 0.2); color: var(--accent-amber); border: 1px solid var(--accent-amber); }
.btn-easy { background: rgba(16, 185, 129, 0.2); color: var(--accent-emerald); border: 1px solid var(--accent-emerald); }

.audio-player-card {
  display: flex; align-items: center; gap: 20px; background: rgba(15, 23, 42, 0.8);
  border: 1px solid var(--border-glass); padding: 16px 24px; border-radius: var(--radius-md); margin-top: 16px;
}
.play-btn {
  width: 50px; height: 50px; border-radius: 50%; background: var(--gradient-hero);
  border: none; color: #fff; font-size: 20px; cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.waveform { flex: 1; height: 30px; display: flex; align-items: center; gap: 4px; }
.wave-bar { flex: 1; height: 20%; background: var(--accent-indigo); border-radius: 4px; animation: pulseWave 1.2s infinite ease-in-out alternate; }

@keyframes pulseWave { 0% { height: 15%; opacity: 0.4; } 100% { height: 100%; opacity: 1; } }

/* ==========================================================================
   UNIVERSAL DISPLAY-FIT & MULTI-DEVICE RESPONSIVE ENGINE
   (4K Ultra-Wide, 1080p Desktop, Laptops, iPad/Tablets, Mobile Phones)
   ========================================================================== */

/* Universal content overflow protections */
img, svg, video, canvas, iframe {
  max-width: 100%;
  height: auto;
}

pre, code, table, .table-container, .grid-container {
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* Fluid Flex & Grid Defaults */
.glass-card, .mode-tabs, .search-box, .explorer-dropdowns, .admin-sub-panel {
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

/* Large Displays & Desktops (> 1280px) */
@media (min-width: 1280px) {
  .main-content {
    grid-template-columns: 290px 1fr;
    gap: 24px;
  }
}

/* Laptops & Compact Desktops (1024px - 1279px) */
@media (max-width: 1279px) and (min-width: 992px) {
  .app-container {
    padding: 0 16px;
  }
  .main-content {
    grid-template-columns: 250px 1fr;
    gap: 18px;
  }
  .user-status {
    gap: 6px;
  }
  .user-status button, .user-status .streak-pill {
    padding: 5px 10px;
    font-size: 11px;
  }
}

/* Tablets & Small Laptops (768px - 991px) */
@media (max-width: 991px) {
  .main-content {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .navbar {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 12px 0;
  }
  .navbar > div:first-child {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
  }
  .search-spotlight-pill {
    width: 100%;
    justify-content: space-between;
  }
  .user-status {
    width: 100%;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 6px;
    -webkit-overflow-scrolling: touch;
  }
  .user-status button, .user-status .streak-pill {
    white-space: nowrap;
    flex-shrink: 0;
  }
  .sidebar {
    width: 100%;
  }
  .nav-group {
    margin-bottom: 8px;
  }
}

/* Mobile Phones (under 768px) */
@media (max-width: 767px) {
  body {
    font-size: 14px;
  }
  .app-container {
    padding: 0 10px;
  }
  .brand-text h1 {
    font-size: 18px;
  }
  .brand-text p {
    font-size: 9px;
  }
  .logo-icon {
    width: 36px;
    height: 36px;
    font-size: 18px;
  }
  .glass-card {
    padding: 16px 14px;
    border-radius: 14px;
  }
  .card-header h2 {
    font-size: 16px;
  }
  .mode-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 6px;
    -webkit-overflow-scrolling: touch;
  }
  .mode-tab {
    white-space: nowrap;
    flex-shrink: 0;
    padding: 8px 14px;
    font-size: 12px;
  }
  .exam-switcher-container {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .exam-badge {
    white-space: nowrap;
    flex-shrink: 0;
  }
  .explorer-dropdowns {
    flex-direction: column;
    gap: 10px;
  }
  .search-box {
    flex-direction: column;
    gap: 8px;
  }
  .search-box input, .search-box button {
    width: 100%;
  }
  .glass-modal {
    width: 95vw;
    max-width: 95vw;
    padding: 20px 16px;
    max-height: 94vh;
    border-radius: 16px;
  }
  .modal-header h2 {
    font-size: 17px;
  }
  /* Target Syllabus Hub Mobile Fit */
  #target-syllabus-hub {
    padding: 14px !important;
  }
  #syl-subject-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  #syl-chapter-grid {
    grid-template-columns: 1fr !important;
  }
}

/* Extra Small Phones (under 420px) */
@media (max-width: 420px) {
  .user-status button span, .btn-secondary span {
    display: inline;
  }
  .glass-card {
    padding: 12px 10px;
  }
}




/* Universal Modal Overlay System */

.glass-modal {
  background: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  width: 90%;
  max-width: 580px;
  padding: 32px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.9);
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
  z-index: 100000;
}

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

.form-group label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
}

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

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #94a3b8;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.2s ease;
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

/* Context-Aware Exam Switcher Header Bar */
.exam-switcher-section {
  margin: 16px 0 20px 0;
  padding: 14px 20px;
  background: rgba(18, 25, 41, 0.75);
  border: 1px solid var(--border-glass);
  border-radius: 16px;
  backdrop-filter: blur(12px);
}

.section-title-sm {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--accent-cyan);
  margin-bottom: 10px;
}

.exam-switcher-container {
  display: flex;
  align-items: center;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: thin;
  scrollbar-color: rgba(99, 102, 241, 0.4) transparent;
}

.exam-badge {
  flex-shrink: 0;
  cursor: pointer;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  color: var(--text-secondary);
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 6px;
  user-select: none;
}

.exam-badge:hover {
  background: rgba(99, 102, 241, 0.15);
  border-color: rgba(99, 102, 241, 0.4);
  color: #ffffff;
  transform: translateY(-1px);
}

.exam-badge.active {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.3) 0%, rgba(139, 92, 246, 0.3) 100%);
  border-color: var(--accent-indigo);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.25);
}

/* Language Selector Header Box & Dropdown */
.lang-selector-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-glass);
  padding: 4px 12px;
  border-radius: 20px;
  transition: var(--transition);
}

.lang-selector-box:hover {
  border-color: var(--accent-cyan);
  background: rgba(255, 255, 255, 0.09);
}

.lang-dropdown {
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  outline: none;
  font-family: inherit;
  padding-right: 4px;
}

.lang-dropdown option {
  background: #0f172a !important;
  color: #ffffff !important;
  padding: 8px;
}

/* Core Input Field & Select Dropdown Styles */
.input-field {
  width: 100%;
  padding: 10px 14px;
  background: #0f172a !important;
  border: 1px solid var(--border-glass);
  border-radius: 10px;
  color: #ffffff !important;
  font-size: 14px;
  font-weight: 500;
  outline: none;
  font-family: inherit;
  transition: var(--transition);
  box-sizing: border-box;
}

.input-field:focus {
  border-color: var(--accent-indigo);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.25);
  background: #1e293b !important;
}

select.input-field {
  cursor: pointer;
  appearance: auto;
  -webkit-appearance: menulist;
  background-color: #0f172a !important;
  color: #ffffff !important;
}

select.input-field option {
  background-color: #0f172a !important;
  color: #ffffff !important;
  padding: 10px;
  font-size: 14px;
}

/* Curriculum Hierarchy Navigator Styling */
.curriculum-explorer-box {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid var(--border-glass);
  border-radius: 14px;
  padding: 16px 20px;
  margin: 16px 0 20px 0;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.explorer-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent-cyan);
  margin-bottom: 12px;
}

.explorer-dropdowns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
}

.explorer-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.explorer-group label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
}

.explorer-select {
  background: #1e293b !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
}

.explorer-select option {
  background: #0f172a !important;
  color: #ffffff !important;
}

/* 3D Active Recall Flashcards Deck */
.flashcard-3d-wrapper {
  perspective: 1000px;
  width: 100%;
  max-width: 580px;
  margin: 20px auto;
  cursor: pointer;
}

.flashcard-card {
  width: 100%;
  min-height: 280px;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 20px;
}

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

.flashcard-front, .flashcard-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: 20px;
  padding: 32px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: rgba(22, 30, 46, 0.95);
  border: 1px solid var(--border-glow);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.flashcard-back {
  transform: rotateY(180deg);
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.98) 0%, rgba(15, 23, 42, 0.98) 100%);
  border-color: var(--accent-indigo);
}

.spaced-rep-btn {
  padding: 10px 16px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.spaced-rep-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.2);
}

/* Audio Waveform Equalizer Bar */
.audio-equalizer-box {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 36px;
  padding: 0 12px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 12px;
}

.audio-wave-bar {
  width: 4px;
  background: var(--accent-cyan);
  border-radius: 2px;
  animation: wavePulse 1.2s infinite ease-in-out alternate;
}

.audio-wave-bar:nth-child(1) { height: 35%; animation-delay: 0.1s; }
.audio-wave-bar:nth-child(2) { height: 75%; animation-delay: 0.3s; }
.audio-wave-bar:nth-child(3) { height: 100%; animation-delay: 0.2s; }
.audio-wave-bar:nth-child(4) { height: 50%; animation-delay: 0.4s; }
.audio-wave-bar:nth-child(5) { height: 85%; animation-delay: 0.15s; }

.audio-equalizer-box.paused .audio-wave-bar {
  animation-play-state: paused;
  height: 20% !important;
}

@keyframes wavePulse {
  0% { height: 25%; }
  100% { height: 100%; }
}

/* PYQ CBT Question Palette */
.pyq-palette-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin-top: 12px;
}

.pyq-palette-num {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 12px;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  color: var(--text-muted);
  transition: var(--transition);
}

.pyq-palette-num.answered {
  background: rgba(16, 185, 129, 0.2);
  border-color: var(--accent-emerald);
  color: var(--accent-emerald);
}

.pyq-palette-num.review {
  background: rgba(168, 85, 247, 0.2);
  border-color: var(--accent-purple);
  color: var(--accent-purple);
}

.pyq-palette-num.current {
  border-color: #ffffff;
  box-shadow: 0 0 0 2px #ffffff;
}

/* Universal AI Curiosity Playground Styles */
.preset-chip-box {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 8px;
  margin-bottom: 16px;
}

.preset-chip {
  flex-shrink: 0;
  padding: 8px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  color: var(--text-primary);
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 6px;
  user-select: none;
}

.preset-chip:hover {
  background: rgba(6, 182, 212, 0.2);
  border-color: var(--accent-cyan);
  transform: translateY(-2px);
}

.playground-level-card {
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid var(--border-glass);
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 16px;
  transition: var(--transition);
}

.playground-level-card.level-1 {
  border-left: 4px solid var(--accent-cyan);
}

.playground-level-card.level-2 {
  border-left: 4px solid var(--accent-amber);
}

.playground-level-card.level-3 {
  border-left: 4px solid var(--accent-emerald);
}

/* Master Knowledge Synthesis & Direct Download Library Styles */
.master-bible-card {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid var(--border-glass);
  border-radius: 16px;
  padding: 20px;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.master-bible-card:hover {
  border-color: var(--accent-indigo);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(99, 102, 241, 0.2);
}

.compression-badge {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: var(--accent-emerald);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 12px;
}

.device-storage-meter {
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid var(--border-glass);
  border-radius: 14px;
  padding: 14px 20px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.direct-link-card {
  background: rgba(22, 30, 46, 0.8);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: var(--transition);
}

.direct-link-card:hover {
  border-color: var(--accent-cyan);
  background: rgba(22, 30, 46, 0.95);
}

/* OmniKids Ecosystem Styles */
.omnikids-mode-bar {
  display: flex;
  gap: 10px;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid var(--border-glass);
  border-radius: 30px;
  padding: 6px;
  margin-bottom: 20px;
}

.omnikids-mode-btn {
  flex: 1;
  padding: 10px 16px;
  border-radius: 24px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  text-align: center;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.omnikids-mode-btn.active {
  background: linear-gradient(135deg, #06b6d4, #3b82f6);
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(6, 182, 212, 0.3);
}

.grammar-squad-chip {
  padding: 10px 16px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.grammar-squad-chip.noun { background: rgba(59, 130, 246, 0.2); border: 1px solid #3b82f6; color: #60a5fa; }
.grammar-squad-chip.verb { background: rgba(239, 68, 68, 0.2); border: 1px solid #ef4444; color: #f87171; }
.grammar-squad-chip.adj { background: rgba(245, 158, 11, 0.2); border: 1px solid #f59e0b; color: #fbbf24; }
.grammar-squad-chip.prep { background: rgba(16, 185, 129, 0.2); border: 1px solid #10b981; color: #34d399; }

.color-palette-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid #ffffff;
  transition: var(--transition);
}

.color-palette-btn:hover {
  transform: scale(1.2);
}

.drawing-canvas-box {
  background: #ffffff;
  border-radius: 16px;
  padding: 20px;
  text-align: center;
  border: 3px solid var(--accent-cyan);
}

/* Universal High-Contrast Dropdown & Option Theme */
select,
.input-field select,
.mode-selector-select,
.lang-dropdown,
select.input-field {
  background-color: #0f172a !important;
  color: #ffffff !important;
  border: 1px solid rgba(56, 189, 248, 0.4);
}

select option,
.mode-selector-select option,
.lang-dropdown option,
select.input-field option,
.input-field option {
  background-color: #0f172a !important;
  color: #f8fafc !important;
  padding: 10px 14px;
  font-weight: 600;
  font-size: 13px;
}

select option:hover,
select option:focus,
select option:checked,
.mode-selector-select option:checked,
.lang-dropdown option:checked {
  background: #1e293b !important;
  color: #38bdf8 !important;
  font-weight: 700;
}

.mode-selector-select {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(30, 41, 59, 0.95)) !important;
  border: 1.5px solid var(--accent-cyan) !important;
  color: #ffffff !important;
  font-weight: 700;
  font-size: 12px;
  padding: 7px 16px;
  border-radius: 24px;
  cursor: pointer;
  outline: none;
  box-shadow: 0 0 15px rgba(6, 182, 212, 0.2);
  transition: var(--transition);
}

.mode-selector-select:hover,
.mode-selector-select:focus {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.25), rgba(15, 23, 42, 0.95)) !important;
  border-color: #38bdf8 !important;
  box-shadow: 0 0 20px rgba(6, 182, 212, 0.4);
}

/* Daily Friendly Student Hub Styles */
.daily-hub-card {
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid var(--border-glass);
  border-radius: 18px;
  padding: 20px;
  margin-bottom: 24px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.quote-glow-box {
  background: rgba(99, 102, 241, 0.1);
  border-left: 4px solid var(--accent-indigo);
  padding: 14px 18px;
  border-radius: 10px;
  margin: 12px 0;
}

.history-milestone-tag {
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: var(--accent-amber);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 12px;
  display: inline-block;
  margin-right: 8px;
}

/* UPSC Mains Answer Booklet Ruled Paper Styling */
.ruled-paper {
  background: repeating-linear-gradient(
    to bottom,
    rgba(15, 23, 42, 0.95),
    rgba(15, 23, 42, 0.95) 27px,
    rgba(99, 102, 241, 0.25) 28px
  ) !important;
  line-height: 28px !important;
  padding-left: 36px !important;
  border-left: 3px solid rgba(239, 68, 68, 0.6) !important;
  border-right: 3px solid rgba(239, 68, 68, 0.6) !important;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif !important;
  font-size: 14px !important;
  color: #f1f5f9 !important;
}

/* Map & Science Diagrams Studio Styles */
.state-chip-btn {
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid var(--border-glass);
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 20px;
  cursor: pointer;
  transition: var(--transition);
}

.state-chip-btn:hover, .state-chip-btn.active {
  background: rgba(6, 182, 212, 0.2);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
}

.state-info-card {
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid var(--accent-cyan);
  border-radius: 16px;
  padding: 20px;
}

.india-svg-path {
  fill: rgba(30, 41, 59, 0.9);
  stroke: var(--accent-cyan);
  stroke-width: 2;
  cursor: pointer;
  transition: all 0.3s ease;
}

.india-svg-path:hover, .india-svg-path.active {
  fill: rgba(6, 182, 212, 0.4);
  stroke: #ffffff;
  stroke-width: 3;
  filter: drop-shadow(0 0 8px rgba(6, 182, 212, 0.8));
}

/* Concept Tricks & Shortcuts Studio Styles */
.trick-card-glow {
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid var(--border-glass);
  border-radius: 16px;
  padding: 20px;
  transition: var(--transition);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.trick-card-glow:hover {
  border-color: var(--accent-amber);
  transform: translateY(-4px);
}

.mnemonic-badge {
  background: rgba(245, 158, 11, 0.2);
  color: var(--accent-amber);
  border: 1px solid rgba(245, 158, 11, 0.4);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 1px;
  padding: 4px 12px;
  border-radius: 12px;
  display: inline-block;
}

/* Battle Arena & Heatmap Styles */
.battle-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  border: 3px solid var(--accent-rose);
  box-shadow: 0 0 16px rgba(244, 63, 94, 0.4);
}

.duel-score-pill {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid var(--border-glass);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 18px;
  font-weight: 800;
  color: #ffffff;
}

/* Championship Test & AIR Leaderboard Styles */
.championship-card-glow {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(30, 41, 59, 0.9));
  border: 2px solid var(--accent-amber);
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 12px 36px rgba(245, 158, 11, 0.2);
}

.air-rank-badge {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #ffffff;
  font-size: 20px;
  font-weight: 900;
  padding: 8px 20px;
  border-radius: 24px;
  display: inline-block;
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4);
}

.rsvp-pill {
  background: rgba(16, 185, 129, 0.2);
  border: 1px solid var(--accent-emerald);
  color: var(--accent-emerald);
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
}

/* Exam Hall Lounge & Hard Cap Styles */
.exam-hall-card {
  background: radial-gradient(circle at top left, rgba(30, 41, 59, 0.95), rgba(15, 23, 42, 0.98));
  border: 2px solid var(--accent-cyan);
  border-radius: 24px;
  padding: 28px;
  box-shadow: 0 16px 48px rgba(6, 182, 212, 0.25);
}

.hard-cap-badge {
  background: rgba(239, 68, 68, 0.2);
  border: 1px solid #f87171;
  color: #f87171;
  font-weight: 800;
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 12px;
  letter-spacing: 0.5px;
}

/* View Panel Display Control */
.view-panel {
  display: none;
}

.view-panel.active {
  display: block;
}

/* 🔒 DRM Vault, Ad Rewards, Multiplier & Anti-AdBlock Styles */
.drm-vault-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.drm-card {
  background: radial-gradient(circle at top left, rgba(30, 41, 59, 0.95), rgba(15, 23, 42, 0.98));
  border: 1px solid var(--border-glass);
  border-radius: 18px;
  padding: 20px;
  box-shadow: var(--shadow-card);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.drm-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-cyan);
  box-shadow: 0 12px 32px rgba(6, 182, 212, 0.25);
}

.rental-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
}

.rental-active {
  background: rgba(16, 185, 129, 0.2);
  border: 1px solid var(--accent-emerald);
  color: var(--accent-emerald);
}

.rental-expired {
  background: rgba(239, 68, 68, 0.2);
  border: 1px solid #f87171;
  color: #f87171;
}

.cooldown-timer-box {
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid var(--accent-amber);
  color: var(--accent-amber);
  padding: 12px 20px;
  border-radius: 14px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.multiplier-card {
  background: radial-gradient(circle at center, rgba(139, 92, 246, 0.25), rgba(15, 23, 42, 0.95));
  border: 2px solid var(--accent-purple);
  box-shadow: 0 0 36px rgba(139, 92, 246, 0.35);
  border-radius: 24px;
  padding: 28px;
  text-align: center;
}

.adblock-shield-card {
  background: radial-gradient(circle at center, rgba(239, 68, 68, 0.2), rgba(11, 15, 25, 0.98));
  border: 2px solid #ef4444;
  box-shadow: 0 0 48px rgba(239, 68, 68, 0.4);
  border-radius: 24px;
  padding: 32px;
  text-align: center;
  max-width: 480px;
  width: 90%;
}

/* ==========================================================================
   FEATURE 21: AI HANDWRITTEN MATH OCR & STEP-BY-STEP VERIFICATION STYLES
   ========================================================================== */
.ocr-step-card {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  transition: var(--transition);
}

.ocr-step-card:hover {
  border-color: var(--accent-cyan);
  background: rgba(15, 23, 42, 0.9);
  transform: translateX(4px);
}

.ocr-step-correct {
  border-left: 4px solid var(--accent-emerald) !important;
}

.ocr-step-warning {
  border-left: 4px solid var(--accent-amber) !important;
  background: rgba(245, 158, 11, 0.08) !important;
}

.ocr-step-error {
  border-left: 4px solid var(--accent-rose) !important;
  background: rgba(244, 63, 94, 0.08) !important;
}

.ocr-latex-display {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  color: #ffffff;
  overflow-x: auto;
}

/* ==========================================================================
   FEATURE 22: GAMIFIED EXAM QUEST & RPG SKILL TREE STYLES
   ========================================================================== */
.rpg-tree-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
}

.rpg-tree-level-row {
  display: flex;
  justify-content: space-around;
  align-items: center;
  position: relative;
}

.rpg-node {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.9);
  border: 2px solid var(--border-glass);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
  position: relative;
  z-index: 2;
}

.rpg-node:hover {
  transform: scale(1.15);
}

.rpg-node.completed {
  border-color: var(--accent-amber);
  background: radial-gradient(circle, rgba(245, 158, 11, 0.3), rgba(15, 23, 42, 0.95));
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.4);
  color: #ffffff;
}

.rpg-node.active {
  border-color: var(--accent-cyan);
  background: radial-gradient(circle, rgba(6, 182, 212, 0.3), rgba(15, 23, 42, 0.95));
  box-shadow: 0 0 25px rgba(6, 182, 212, 0.6);
  animation: pulse 2s infinite;
  color: #ffffff;
}

.rpg-node.locked {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(11, 15, 25, 0.8);
  color: rgba(255, 255, 255, 0.3);
  cursor: not-allowed;
}

.rpg-node-label {
  position: absolute;
  bottom: -22px;
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
  color: #cbd5e1;
  text-shadow: 0 2px 4px rgba(0,0,0,0.8);
}

/* ==========================================================================
   FEATURE 23: DIAGNOSTIC WEAK-SPOT AUTOPSY & HEATMAP STYLES
   ========================================================================== */
.heatmap-cell {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid var(--border-glass);
  border-radius: 14px;
  padding: 16px;
  cursor: pointer;
  transition: var(--transition);
}

.heatmap-cell:hover {
  border-color: var(--accent-cyan);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.heatmap-cell.leak-critical {
  border-left: 4px solid var(--accent-rose);
  background: linear-gradient(135deg, rgba(244, 63, 94, 0.08), rgba(15, 23, 42, 0.9));
}

.heatmap-cell.leak-moderate {
  border-left: 4px solid var(--accent-amber);
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.08), rgba(15, 23, 42, 0.9));
}

.heatmap-cell.leak-strong {
  border-left: 4px solid var(--accent-emerald);
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.08), rgba(15, 23, 42, 0.9));
}

/* ==========================================================================
   FEATURE 24: MULTIPLAYER STUDY SQUADS & PEER DUEL ROOM STYLES
   ========================================================================== */
.squad-race-row {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(15, 23, 42, 0.6);
  padding: 10px 16px;
  border-radius: 12px;
  border: 1px solid var(--border-glass);
}

.squad-race-bar-bg {
  flex: 1;
  height: 10px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  overflow: hidden;
  position: relative;
}

.squad-race-bar-fill {
  height: 100%;
  border-radius: 10px;
  transition: width 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ==========================================================================
   FEATURE 25: AI MAINS ESSAY & LONG ANSWER EVALUATOR STYLES
   ========================================================================== */
.rubric-item-card {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.rubric-score-bar-bg {
  width: 90px;
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  overflow: hidden;
}

.rubric-score-bar-fill {
  height: 100%;
  border-radius: 10px;
}

.keyword-tag-pill {
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(6, 182, 212, 0.15);
  border: 1px solid var(--accent-cyan);
  color: var(--accent-cyan);
  font-weight: 600;
}

/* ==========================================================================
   FEATURE 26: AI BACKLOG RESCUE & SPACED REVISION SCHEDULER STYLES
   ========================================================================== */
.backlog-day-card {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid var(--border-glass);
  border-radius: 14px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition);
}

.backlog-day-card:hover {
  border-color: var(--accent-purple);
  transform: translateY(-2px);
}

.backlog-day-card.completed {
  border-color: var(--accent-emerald);
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(15, 23, 42, 0.95));
}

/* ==========================================================================
   FEATURE 27: 1-CLICK PRINTABLE HIGH-DENSITY REVISION SHEET STYLES
   ========================================================================== */
@media print {
  body {
    background: #ffffff !important;
    color: #000000 !important;
  }
  .navbar, .sidebar, .modal-overlay, #app-open-ad-modal, #sticky-bottom-banner, #daily-curiosity-spark-card, #daily-inspiration-hub {
    display: none !important;
  }
  .app-container, .main-content, .view-panel.active, #printable-paper-sheet {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #ffffff !important;
    color: #000000 !important;
    box-shadow: none !important;
    border: none !important;
  }
}

/* ==========================================================================
   OMNIBRIDGE (CLASSES 6 - 8) INTERACTIVE VISUAL STYLES
   ========================================================================== */
.foundation-tab-btn {
  padding: 8px 16px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: 0.2s ease;
  white-space: nowrap;
}

.foundation-tab-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.foundation-tab-btn.active {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.2), rgba(59, 130, 246, 0.2));
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  font-weight: 700;
  box-shadow: 0 0 16px rgba(6, 182, 212, 0.25);
}

.organelle-btn {
  padding: 8px 12px;
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid var(--border-glass);
  color: #e2e8f0;
  font-size: 12px;
  cursor: pointer;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: 0.2s ease;
}

.organelle-btn:hover, .organelle-btn.active {
  border-color: var(--accent-emerald);
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-emerald);
}

.circuit-bulb-glow {
  filter: drop-shadow(0 0 25px rgba(250, 204, 21, 0.9));
  animation: pulse 1.5s infinite alternate;
}

/* OmniKids Junior Custom Styles */
.kids-matra-pill {
  padding: 8px 14px;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.kids-matra-pill:hover, .kids-matra-pill.active {
  border-color: var(--accent-amber);
  background: rgba(245, 158, 11, 0.2);
  color: var(--accent-amber);
  transform: translateY(-2px);
}

.kids-rhyme-card {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid var(--border-glass);
  border-radius: 14px;
  padding: 14px;
  cursor: pointer;
  transition: 0.2s ease;
}
.kids-rhyme-card:hover, .kids-rhyme-card.active {
  border-color: var(--accent-rose);
  background: rgba(244, 63, 94, 0.12);
  transform: translateY(-2px);
}

.spell-tile {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, #1e293b, #0f172a);
  border: 2px solid var(--accent-cyan);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 800;
  color: #38bdf8;
  box-shadow: 0 4px 12px rgba(6, 182, 212, 0.2);
  cursor: pointer;
  user-select: none;
  transition: 0.15s ease;
}
.spell-tile:hover {
  transform: scale(1.1);
  border-color: #38bdf8;
}

.croc-mouth-btn {
  font-size: 24px;
  padding: 10px 20px;
  border-radius: 12px;
  border: 1px solid var(--border-glass);
  background: rgba(15, 23, 42, 0.9);
  color: #ffffff;
  cursor: pointer;
  transition: 0.2s ease;
}
.croc-mouth-btn:hover {
  border-color: var(--accent-emerald);
  background: rgba(16, 185, 129, 0.2);
}

/* ==========================================================================
   OMNIKIDS FLAGSHIP POLISH: MASCOT, SPELLING DETECTIVE, FRACTIONS, NEON SLATE
   ========================================================================== */

/* 🐝 Bumble the Bee Mascot Banner */
.kids-mascot-banner {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.15), rgba(99, 102, 241, 0.15));
  border: 2px solid rgba(245, 158, 11, 0.4);
  border-radius: 20px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
}

.bumble-mascot-avatar {
  font-size: 46px;
  display: inline-block;
  animation: bumbleFloat 2.5s ease-in-out infinite alternate;
  filter: drop-shadow(0 0 12px rgba(245, 158, 11, 0.6));
  cursor: pointer;
  user-select: none;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.bumble-mascot-avatar:hover {
  transform: scale(1.25) rotate(-10deg);
}

@keyframes bumbleFloat {
  0% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-8px) rotate(4deg); }
  100% { transform: translateY(0px) rotate(-4deg); }
}

.bumble-speech-bubble {
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid var(--accent-amber);
  border-radius: 14px;
  padding: 10px 16px;
  color: #ffffff;
  font-size: 13px;
  line-height: 1.4;
  position: relative;
  flex: 1;
}

.bumble-speech-bubble::before {
  content: '';
  position: absolute;
  left: -8px;
  top: 50%;
  transform: translateY(-50%);
  border-width: 8px 8px 8px 0;
  border-style: solid;
  border-color: transparent var(--accent-amber) transparent transparent;
}

/* 🔤 Phonics CVC Sound Blocks */
.cvc-block-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin: 16px 0;
}

.cvc-sound-tile {
  width: 56px;
  height: 64px;
  background: linear-gradient(135deg, #1e1b4b, #0f172a);
  border: 2px solid var(--accent-cyan);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  font-weight: 900;
  color: #38bdf8;
  box-shadow: 0 0 16px rgba(6, 182, 212, 0.25);
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.cvc-sound-tile:hover, .cvc-sound-tile.active {
  transform: scale(1.1) translateY(-4px);
  border-color: #ffffff;
  box-shadow: 0 0 24px rgba(56, 189, 248, 0.6);
}

.cvc-sound-label {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-muted);
}

/* 🕵️‍♂️ Spelling Detective Rubber-Band & Syllable Clapper */
.sound-box-track {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 16px 0;
}

.sound-box-slot {
  width: 50px;
  height: 58px;
  border: 2px dashed var(--accent-indigo);
  border-radius: 12px;
  background: rgba(99, 102, 241, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 800;
  color: #ffffff;
  transition: 0.2s ease;
}

.sound-box-slot.filled {
  border-style: solid;
  border-color: var(--accent-emerald);
  background: rgba(16, 185, 129, 0.2);
  color: var(--accent-emerald);
  box-shadow: 0 0 14px rgba(16, 185, 129, 0.3);
}

.cheat-code-card {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid var(--border-glass);
  border-radius: 14px;
  padding: 14px;
  cursor: pointer;
  transition: 0.2s ease;
  text-align: left;
}

.cheat-code-card:hover, .cheat-code-card.active {
  border-color: var(--accent-purple);
  background: rgba(168, 85, 247, 0.15);
  transform: translateY(-2px);
}

/* 🍕 Interactive Visual Fraction Pizza & Honeycomb Slicer */
.fraction-interactive-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--accent-emerald);
  border-radius: 18px;
  margin-bottom: 16px;
}

.pizza-slice-svg {
  cursor: pointer;
  transition: transform 0.15s ease, filter 0.15s ease;
}

.pizza-slice-svg:hover {
  filter: brightness(1.2) drop-shadow(0 0 8px rgba(245, 158, 11, 0.8));
  transform: scale(1.05);
}

.pizza-slice-svg.eaten {
  opacity: 0.15;
  filter: grayscale(1);
}

/* 🎨 Neon Magic Drawing Slate */
.neon-slate-wrapper {
  position: relative;
  background: #030712;
  border: 2px solid var(--accent-purple);
  border-radius: 16px;
  box-shadow: 0 0 25px rgba(168, 85, 247, 0.25);
  display: flex;
  justify-content: center;
  padding: 10px;
  overflow: hidden;
  touch-action: none;
}

#kids-magic-slate-canvas {
  background: #090d16;
  border-radius: 12px;
  cursor: crosshair;
  touch-action: none;
}

.stamper-chip {
  padding: 6px 12px;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid var(--border-glass);
  border-radius: 10px;
  cursor: pointer;
  font-size: 16px;
  transition: 0.15s ease;
}

.stamper-chip:hover, .stamper-chip.active {
  border-color: var(--accent-purple);
  background: rgba(168, 85, 247, 0.25);
  transform: scale(1.15);
}

/* ==========================================================================
   SUITE 2: OMNIBRIDGE (CLASSES 6-8 STEM & OLYMPIAD) VISUAL LAB STYLES
   ========================================================================== */
.fnd-visual-lab-box {
  background: #090d16;
  border: 1px solid var(--border-glass);
  border-radius: 14px;
  padding: 16px;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.6);
}

.prism-svg-glass {
  fill: rgba(56, 189, 248, 0.12);
  stroke: rgba(56, 189, 248, 0.8);
  stroke-width: 2;
  transition: all 0.3s ease;
}

.spectrum-path {
  stroke-dasharray: 400;
  stroke-dashoffset: 400;
  animation: laserShoot 0.8s forwards ease-out;
}

@keyframes laserShoot {
  to {
    stroke-dashoffset: 0;
  }
}

.molecule-beaker {
  background: radial-gradient(circle at 50% 120%, rgba(244, 63, 94, 0.15), rgba(15, 23, 42, 0.95));
  border: 2px solid rgba(244, 63, 94, 0.4);
  border-radius: 16px;
  padding: 18px;
  text-align: center;
  transition: all 0.3s ease;
}

.molecule-beaker.reacting {
  animation: beakerFlash 0.6s ease-in-out;
  box-shadow: 0 0 35px rgba(244, 63, 94, 0.6);
}

@keyframes beakerFlash {
  0% { transform: scale(1); filter: brightness(1); }
  50% { transform: scale(1.03); filter: brightness(1.6); }
  100% { transform: scale(1); filter: brightness(1); }
}

.pythagoras-tile {
  width: 20px;
  height: 20px;
  border-radius: 3px;
  display: inline-block;
  margin: 1px;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.pythagoras-tile.side-a {
  background: var(--accent-cyan);
  box-shadow: 0 0 8px rgba(6, 182, 212, 0.4);
}

.pythagoras-tile.side-b {
  background: var(--accent-amber);
  box-shadow: 0 0 8px rgba(245, 158, 11, 0.4);
}

.pythagoras-tile.hypo-c {
  background: var(--accent-emerald);
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.4);
}

.venn-svg-circle {
  fill-opacity: 0.25;
  stroke-width: 2;
  cursor: pointer;
  transition: all 0.2s ease;
}

.venn-svg-circle:hover {
  fill-opacity: 0.55;
  stroke-width: 3;
}

/* ==========================================================================
   MULTI-FORMAT EXERCISE STUDIO & SUITE 3 SIMULATORS
   ========================================================================== */
.exercise-studio-card {
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid var(--accent-indigo);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.jumble-tile-rack {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin: 16px 0;
}

.jumble-tile {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(168, 85, 247, 0.2));
  border: 2px solid var(--accent-indigo);
  border-radius: 10px;
  padding: 10px 18px;
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  cursor: pointer;
  user-select: none;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.jumble-tile:hover {
  transform: translateY(-3px) scale(1.05);
  border-color: var(--accent-cyan);
  box-shadow: 0 0 14px rgba(6, 182, 212, 0.4);
}

.jumble-tile.placed {
  opacity: 0.35;
  pointer-events: none;
}

.match-column-box {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 16px 0;
}

.match-item {
  background: rgba(30, 41, 59, 0.7);
  border: 2px solid var(--border-glass);
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 13px;
  color: #cbd5e1;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.match-item:hover {
  border-color: var(--accent-cyan);
  background: rgba(6, 182, 212, 0.1);
}

.match-item.selected {
  border-color: var(--accent-amber);
  background: rgba(245, 158, 11, 0.2);
  color: #ffffff;
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.3);
}

.match-item.matched {
  border-color: var(--accent-emerald);
  background: rgba(16, 185, 129, 0.2);
  color: #a7f3d0;
  pointer-events: none;
}

.tongue-twister-card {
  background: linear-gradient(135deg, rgba(244, 63, 94, 0.15), rgba(168, 85, 247, 0.15));
  border: 1px solid var(--accent-rose);
  border-radius: 14px;
  padding: 20px;
  text-align: center;
}

.projectile-sim-canvas {
  width: 100%;
  height: 220px;
  background: #050811;
  border-radius: 12px;
  border: 1px solid var(--border-glass);
}

.ecg-screen-box {
  background: #020617;
  border: 2px solid #10b981;
  border-radius: 12px;
  padding: 16px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.2) inset;
}

.constitution-chip {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.constitution-chip:hover, .constitution-chip.active {
  border-color: var(--accent-amber);
  background: rgba(245, 158, 11, 0.15);
  color: #fef08a;
}

/* ==========================================================================
   SUITE 4: OMNILEARN GLOBAL (SAT, ACT, AP, IB, IGCSE, GRE, IELTS)
   ========================================================================== */
.global-suite-card {
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.sat-notes-box {
  background: rgba(0, 0, 0, 0.4);
  border-left: 4px solid var(--accent-cyan);
  border-radius: 8px;
  padding: 14px 18px;
  font-size: 13px;
  line-height: 1.6;
  color: #e2e8f0;
  margin-bottom: 14px;
}

.desmos-code-box {
  background: #020617;
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 10px;
  padding: 12px 16px;
  font-family: 'JetBrains Mono', monospace, Consolas, sans-serif;
  font-size: 12px;
  color: #34d399;
}

.taylor-canvas-box {
  width: 100%;
  height: 200px;
  background: #050811;
  border-radius: 12px;
  border: 1px solid var(--border-glass);
}

.igcse-cmd-badge {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.igcse-cmd-badge:hover, .igcse-cmd-badge.active {
  border-color: var(--accent-purple);
  background: rgba(168, 85, 247, 0.18);
  color: #e9d5ff;
}

.gre-lexicon-card {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(6, 182, 212, 0.1));
  border: 1px solid var(--accent-indigo);
  border-radius: 14px;
  padding: 20px;
}

.ielts-band-meter {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(0, 0, 0, 0.35);
  border-radius: 10px;
  padding: 10px 16px;
  margin-top: 12px;
  font-size: 12px;
}

.pacing-countdown-bar {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  overflow: hidden;
  margin: 10px 0;
}

.pacing-progress-fill {
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, #10b981, #f59e0b, #ef4444);
  transition: width 1s linear;
}

.essay-architect-box {
  background: #090d16;
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 12px;
  padding: 16px;
  font-size: 13px;
  line-height: 1.6;
}

.transition-tag {
  background: rgba(6, 182, 212, 0.2);
  color: var(--accent-cyan);
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 700;
}

.linearizer-canvas {
  width: 100%;
  height: 180px;
  background: #020617;
  border-radius: 10px;
  border: 1px solid var(--border-glass);
}

.uni-compass-card {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  padding: 16px;
  transition: all 0.2s ease;
}

.uni-compass-card:hover {
  border-color: var(--accent-amber);
  transform: translateY(-2px);
}

/* ==========================================================================
   SUITE 5: OMNIADMIN, SCHOLARSHIP TOKEN VAULT & REWARDED AD ENGINES
   ========================================================================== */
.token-vault-card {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.12), rgba(99, 102, 241, 0.08));
  border: 1px solid rgba(245, 158, 11, 0.4);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  position: relative;
  overflow: hidden;
}

.rbac-staff-card {
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.winner-live-ticker {
  background: rgba(6, 182, 212, 0.15);
  border: 1px solid var(--accent-cyan);
  border-radius: 30px;
  padding: 6px 18px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: #e0f2fe;
  animation: pulseTicker 3s infinite ease-in-out;
}

@keyframes pulseTicker {
  0%, 100% { box-shadow: 0 0 10px rgba(6, 182, 212, 0.2); }
  50% { box-shadow: 0 0 20px rgba(6, 182, 212, 0.5); }
}

.shadow-ban-tag {
  background: rgba(239, 68, 68, 0.2);
  color: var(--accent-rose);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
}

.staged-launch-badge {
  background: linear-gradient(135deg, #10b981, #06b6d4);
  color: #000;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 800;
}

/* ==========================================================================
   SUITE 13: 3D SM-2 SPACED-REPETITION FLASHCARD ENGINE STYLES
   ========================================================================== */

.flashcard-3d-scene {
  perspective: 1000px;
  width: 100%;
  min-height: 340px;
  cursor: pointer;
  user-select: none;
}

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

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

.flashcard-face {
  position: absolute;
  width: 100%;
  height: 100%;
  min-height: 340px;
  backface-visibility: hidden;
  border-radius: 16px;
  padding: 24px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.flashcard-front {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(30, 41, 59, 0.9));
  border: 2px solid rgba(6, 182, 212, 0.4);
  box-shadow: 0 10px 30px rgba(6, 182, 212, 0.15);
}

.flashcard-back {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.98), rgba(24, 24, 27, 0.95));
  border: 2px solid rgba(16, 185, 129, 0.5);
  box-shadow: 0 10px 35px rgba(16, 185, 129, 0.2);
  transform: rotateY(180deg);
  overflow-y: auto;
}

.sm2-rating-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 10px 8px;
  border-radius: 10px;
  border: 1px solid var(--border-glass);
  background: rgba(255, 255, 255, 0.04);
  color: #ffffff;
  cursor: pointer;
  transition: all 0.2s ease;
  flex: 1;
}

.sm2-rating-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.sm2-rating-btn.btn-again:hover {
  background: rgba(244, 63, 94, 0.25);
  border-color: var(--accent-rose);
}

.sm2-rating-btn.btn-hard:hover {
  background: rgba(245, 158, 11, 0.25);
  border-color: var(--accent-amber);
}

.sm2-rating-btn.btn-good:hover {
  background: rgba(16, 185, 129, 0.25);
  border-color: var(--accent-emerald);
}

.sm2-rating-btn.btn-easy:hover {
  background: rgba(139, 92, 246, 0.25);
  border-color: var(--accent-purple);
}

/* ==========================================================================
   STRICT LAPTOP SCREEN CONTAINMENT & OVERFLOW SHIELD
   ========================================================================== */

html, body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  box-sizing: border-box;
}

*, *::before, *::after {
  box-sizing: border-box;
}

/* Force all inline grid styles to obey screen bounds and wrap cleanly */
[style*="display: grid"],
[style*="display:grid"] {
  max-width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
}

.content-area, .view-panel, .glass-card {
  min-width: 0 !important;
  max-width: 100% !important;
}

/* Ensure no wide flex child forces horizontal expansion */
.card-header, .search-box, .explorer-dropdowns, .mode-tabs {
  min-width: 0 !important;
  max-width: 100% !important;
}





