/* ═════════════════════════════════════════════════════════════
   MODERN NEO-EDTECH DESIGN SYSTEM (GDPT 2018 NTMK SIGNATURE)
   THPT NGUYỄN THỊ MINH KHAI - THÀNH PHỐ DĨ AN, TỈNH BÌNH DƯƠNG
   Minimalist, Ultra-Clean & Cognitive-Ergonomic EdTech Interface
   Palette: Electric Indigo (#4f46e5), Cyan (#06b6d4), Slate (#0f172a / #f8fafc)
   ═════════════════════════════════════════════════════════════ */

/* ─── 1. Brand Tokens & Typography ─── */
:root {
  --athenaeum-violet-dark: #1e3a8a;
  --athenaeum-violet: #2563eb;
  --athenaeum-violet-hover: #1d4ed8;
  --athenaeum-violet-glow: rgba(37, 99, 235, 0.2);
  --athenaeum-violet-soft: rgba(37, 99, 235, 0.08);

  --athenaeum-gold: #2563eb;
  --athenaeum-gold-bright: #3b82f6;
  --athenaeum-gold-glow: rgba(37, 99, 235, 0.15);
  --athenaeum-gold-soft: rgba(37, 99, 235, 0.06);
  --athenaeum-gold-border: rgba(226, 232, 240, 0.9);

  --athenaeum-parchment: #f8fafc;
  --athenaeum-parchment-border: #e2e8f0;
  --athenaeum-paper-card: #ffffff;

  --font-serif-scholastic: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

[data-theme="dark"] {
  --athenaeum-gold-border: rgba(255, 255, 255, 0.08);
  --athenaeum-parchment: #0f172a;
  --athenaeum-parchment-border: rgba(255, 255, 255, 0.1);
  --athenaeum-paper-card: #1e293b;
}

/* ─── 2. App Shell Header (Modern Glassmorphism & Flawless Alignment) ─── */
.app-shell-header {
  background: rgba(255, 255, 255, 0.88) !important;
  backdrop-filter: blur(20px) saturate(1.8) !important;
  -webkit-backdrop-filter: blur(20px) saturate(1.8) !important;
  border-bottom: 1px solid rgba(226, 232, 240, 0.8) !important;
  box-shadow: 0 1px 3px 0 rgba(15, 23, 42, 0.04) !important;
  height: 64px !important;
  position: sticky !important;
  top: 0 !important;
  z-index: 1000 !important;
}

[data-theme="dark"] .app-shell-header {
  background: rgba(15, 23, 42, 0.92) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.5) !important;
}

.header-container {
  max-width: 1560px !important;
  margin: 0 auto !important;
  padding: 0 20px !important;
  height: 100% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
}

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

.brand-logo-img {
  width: 36px !important;
  height: 36px !important;
  border-radius: 10px !important;
  box-shadow: 0 2px 8px rgba(79, 70, 229, 0.15) !important;
  border: 1px solid rgba(79, 70, 229, 0.2) !important;
  flex-shrink: 0 !important;
}

.brand-title {
  font-family: 'Inter', system-ui, -apple-system, sans-serif !important;
  font-style: normal !important;
  font-weight: 800 !important;
  font-size: 1.35rem !important;
  letter-spacing: -0.02em !important;
  background: none !important;
  -webkit-background-clip: unset !important;
  -webkit-text-fill-color: initial !important;
  color: #1d4ed8 !important;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
}

[data-theme="dark"] .brand-title {
  color: #60a5fa !important;
}

.brand-badge {
  font-family: 'Inter', sans-serif !important;
  font-size: 0.75rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.02em !important;
  background: #eff6ff !important;
  color: #1d4ed8 !important;
  border: 1px solid #bfdbfe !important;
  padding: 3px 10px !important;
  border-radius: var(--radius-pill) !important;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
  display: inline-block !important;
  line-height: 1.35 !important;
}

[data-theme="dark"] .brand-badge {
  background: rgba(255, 255, 255, 0.06) !important;
  color: #94a3b8 !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
}

.brand-saas-plan {
  display: none !important;
}

@media (max-width: 820px) {
  .brand-saas-plan {
    display: none !important;
  }
}

@media (max-width: 680px) {
  .brand-badge {
    display: none !important;
  }
}

/* ─── 3. Navigation Items (Tactile Pill States & Zero Wrap) ─── */
.header-nav-desktop {
  display: none !important;
  align-items: center !important;
  min-width: 0 !important;
  flex-shrink: 1 !important;
}

@media (min-width: 990px) {
  .header-nav-desktop {
    display: flex !important;
  }
}

.header-nav-list {
  display: flex !important;
  align-items: center !important;
  gap: 4px !important;
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  flex-wrap: nowrap !important;
}

.header-nav-list > li {
  display: flex !important;
  align-items: center !important;
  margin: 0 !important;
  padding: 0 !important;
  flex-shrink: 0 !important;
}

.nav-item-btn,
.nav-dropdown-btn {
  display: inline-flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 6px !important;
  white-space: nowrap !important;
  font-size: 0.88rem !important;
  font-weight: 600 !important;
  border-radius: var(--radius-pill) !important;
  padding: 6px 12px !important;
  height: 38px !important;
  box-sizing: border-box !important;
  border: 1px solid transparent !important;
  background: transparent !important;
  color: var(--text-sub) !important;
  cursor: pointer !important;
  transition: all var(--trans-fast) !important;
}

.nav-item-btn:hover,
.nav-dropdown-btn:hover {
  background: var(--bg-surface-secondary) !important;
  color: var(--text-main) !important;
}

.nav-item-btn.active {
  background: var(--athenaeum-violet-soft) !important;
  color: var(--athenaeum-violet) !important;
  border: 1px solid rgba(124, 58, 237, 0.25) !important;
}

[data-theme="dark"] .nav-item-btn.active {
  background: rgba(124, 58, 237, 0.18) !important;
  color: #c084fc !important;
  border-color: rgba(192, 132, 252, 0.3) !important;
}

/* ─── Header Actions Group (Consistent 38px Height & Pill Shapes) ─── */
.header-actions-group {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  flex-shrink: 0 !important;
}

.header-search-pill-btn {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  white-space: nowrap !important;
  height: 38px !important;
  padding: 0 12px !important;
  border-radius: var(--radius-pill) !important;
  font-size: 0.84rem !important;
  border: 1px solid var(--border-subtle) !important;
  background: var(--bg-surface-secondary) !important;
  color: var(--text-sub) !important;
  cursor: pointer !important;
  box-sizing: border-box !important;
}

@media (max-width: 1240px) {
  .header-search-pill-btn span {
    display: none !important;
  }
}

.header-auth-btn {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  white-space: nowrap !important;
  height: 38px !important;
  padding: 0 14px !important;
  border-radius: var(--radius-pill) !important;
  font-size: 0.85rem !important;
  font-weight: 600 !important;
  box-sizing: border-box !important;
}

.profile-pill-btn,
#header-student-badge {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  white-space: nowrap !important;
  height: 38px !important;
  padding: 0 12px !important;
  border-radius: var(--radius-pill) !important;
  font-size: 0.84rem !important;
  font-weight: 600 !important;
  box-sizing: border-box !important;
}

.sound-btn,
.theme-toggle-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 38px !important;
  height: 38px !important;
  border-radius: var(--radius-pill) !important;
  padding: 0 !important;
  box-sizing: border-box !important;
}

/* ─── 4. Grand Dashboard Hero (The Athenaeum Codex) ─── */
.dashboard-hero-card {
  background: radial-gradient(ellipse at top left, rgba(124, 58, 237, 0.12), transparent 70%),
              radial-gradient(ellipse at bottom right, rgba(245, 158, 11, 0.1), transparent 70%),
              var(--bg-surface) !important;
  border: 1.5px solid var(--athenaeum-gold-border) !important;
  box-shadow: 0 10px 30px -5px rgba(124, 58, 237, 0.07), 0 0 0 1px rgba(245, 158, 11, 0.08) !important;
  border-radius: 20px !important;
  position: relative;
  overflow: hidden;
}

.dashboard-hero-card::before {
  content: 'NTMK - BD';
  position: absolute;
  right: 20px;
  bottom: -20px;
  font-family: var(--font-serif-scholastic);
  font-size: 8rem;
  font-weight: 900;
  font-style: italic;
  color: rgba(245, 158, 11, 0.035);
  pointer-events: none;
  line-height: 1;
  user-select: none;
}

.hero-tag {
  background: var(--athenaeum-violet-soft) !important;
  color: var(--athenaeum-violet) !important;
  border: 1px solid rgba(124, 58, 237, 0.25) !important;
  font-weight: 700 !important;
  letter-spacing: 0.04em !important;
  text-transform: uppercase !important;
  font-size: 0.75rem !important;
}

[data-theme="dark"] .hero-tag {
  color: #c084fc !important;
}

.hero-title {
  font-family: var(--font-serif-scholastic) !important;
  font-size: 1.9rem !important;
  font-weight: 700 !important;
  letter-spacing: -0.02em !important;
  color: var(--text-main) !important;
}

/* ─── 5. Bento Grid Metrics Cards ─── */
.metric-card {
  background: var(--bg-surface) !important;
  border: 1px solid var(--border-subtle) !important;
  border-radius: 16px !important;
  padding: 18px 20px !important;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03) !important;
}

.metric-card:hover {
  transform: translateY(-3px) !important;
  border-color: var(--athenaeum-gold-bright) !important;
  box-shadow: 0 12px 24px -6px var(--athenaeum-gold-soft), 0 0 0 1px var(--athenaeum-gold-bright) !important;
}

.metric-card .metric-icon {
  background: var(--athenaeum-gold-soft) !important;
  color: var(--athenaeum-gold-bright) !important;
  border-radius: 12px !important;
  width: 48px !important;
  height: 48px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.metric-card .metric-value {
  font-family: 'Space Grotesk', 'Inter', monospace !important;
  font-size: 1.85rem !important;
  font-weight: 800 !important;
  color: var(--text-main) !important;
}

/* ─── 6. Exam Sanctuary 2.0 (Phòng thi Tĩnh Lặng) ─── */
.quiz-header {
  border-bottom: 1px solid var(--athenaeum-gold-border) !important;
  backdrop-filter: blur(20px) !important;
}

.timer {
  background: var(--athenaeum-gold-soft) !important;
  border: 1px solid var(--athenaeum-gold-border) !important;
  border-radius: var(--radius-pill) !important;
  padding: 6px 14px !important;
  color: var(--athenaeum-gold-bright) !important;
  font-family: 'Space Grotesk', 'Inter', monospace !important;
  font-weight: 800 !important;
  box-shadow: 0 0 15px var(--athenaeum-gold-soft) !important;
}

/* Split-Pane Passage (Parchment Paper Feel) */
.tf-split-passage-pane {
  background: var(--athenaeum-parchment) !important;
  border: 1px solid var(--athenaeum-parchment-border) !important;
  border-left: 4px solid var(--athenaeum-gold-bright) !important;
  border-radius: 14px !important;
  padding: 22px 24px !important;
  box-shadow: 0 6px 18px rgba(217, 119, 6, 0.05) !important;
}

[data-theme="dark"] .tf-split-passage-pane {
  background: rgba(17, 23, 38, 0.85) !important;
  border: 1px solid var(--athenaeum-gold-border) !important;
  border-left: 4px solid var(--athenaeum-gold-bright) !important;
}

.tf-passage-badge {
  font-family: var(--font-serif-scholastic) !important;
  font-style: italic !important;
  font-weight: 700 !important;
  font-size: 0.88rem !important;
  color: var(--athenaeum-gold-bright) !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  margin-bottom: 12px !important;
}

/* Question Dots (Horology Matrix) */
.q-dot {
  border-radius: 10px !important;
  font-weight: 700 !important;
  font-family: 'Space Grotesk', 'Inter', monospace !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.q-dot.current {
  border: 2px solid var(--athenaeum-gold-bright) !important;
  box-shadow: 0 0 12px var(--athenaeum-gold-glow) !important;
  transform: scale(1.08) !important;
}

.q-dot.answered {
  background: var(--athenaeum-violet) !important;
  color: #ffffff !important;
}

.q-dot.flagged::after {
  background: #ef4444 !important;
  box-shadow: 0 0 6px rgba(239, 68, 68, 0.8) !important;
}

/* Tactile Flag Button */
.btn-flag-toggle {
  background: var(--bg-surface-secondary) !important;
  border: 1px solid var(--border-subtle) !important;
  border-radius: var(--radius-pill) !important;
  padding: 6px 14px !important;
  font-weight: 600 !important;
  font-size: 0.88rem !important;
  color: var(--text-sub) !important;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.btn-flag-toggle:hover {
  border-color: #ef4444 !important;
  color: #ef4444 !important;
}

.btn-flag-toggle.active {
  background: rgba(239, 68, 68, 0.12) !important;
  border-color: #ef4444 !important;
  color: #ef4444 !important;
  box-shadow: 0 0 14px rgba(239, 68, 68, 0.2) !important;
}

/* ─── 7. Result View (Imperial Honors) ─── */
.result-score-gauge svg circle.gauge-bar {
  stroke: var(--athenaeum-gold-bright) !important;
  filter: drop-shadow(0 0 8px var(--athenaeum-gold-glow));
}

.btn-share-card {
  background: linear-gradient(135deg, var(--athenaeum-gold) 0%, var(--athenaeum-gold-bright) 100%) !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  box-shadow: 0 6px 20px -2px var(--athenaeum-gold-glow) !important;
  border: none !important;
}

.btn-share-card:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 10px 25px -2px var(--athenaeum-gold-glow) !important;
}


/* ─── 8. Micro-Interactions & Tap Highlights ─── */
#quiz-progress {
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

#quiz-progress:hover {
  transform: scale(1.05);
  box-shadow: 0 2px 8px rgba(30, 64, 175, 0.25);
}

#quiz-progress:active {
  transform: scale(0.96);
}

@keyframes pulseGlowHighlight {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.5);
    border-color: var(--athenaeum-blue-bright);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(37, 99, 235, 0.15);
    border-color: var(--athenaeum-gold);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 99, 235, 0);
  }
}

.highlight-pulse {
  animation: pulseGlowHighlight 1.1s cubic-bezier(0.16, 1, 0.3, 1);
}


/* ─── 9. WCAG AAA & WAVE Accessibility Overrides ─── */
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.mode-desc {
  color: var(--text-secondary, #334155) !important;
  font-weight: 500 !important;
  font-size: 0.82rem !important;
}

[data-theme="dark"] .mode-desc {
  color: #cbd5e1 !important;
}

.topics-subtitle {
  color: var(--text-secondary, #334155) !important;
  font-size: 0.9rem !important;
  font-weight: 500 !important;
}

[data-theme="dark"] .topics-subtitle {
  color: #cbd5e1 !important;
}

.config-item label {
  color: #1e293b !important;
  font-weight: 600 !important;
}

[data-theme="dark"] .config-item label {
  color: #f1f5f9 !important;
}

.summary-divider {
  color: #475569 !important;
}

[data-theme="dark"] .summary-divider {
  color: #94a3b8 !important;
}

button.mode-card {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  width: 100%;
  text-align: center;
}

button.drawer-app-item {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  width: 100%;
  text-align: center;
}

/* ─── Distraction-Free Onboarding Isolation Mode (Finding U2) ─── */
body.is-onboarding .header-nav-desktop,
body.is-onboarding .mobile-bottom-nav,
body.is-onboarding .header-actions-group .header-search-pill-btn,
body.is-onboarding .header-actions-group .sound-btn,
body.is-onboarding .header-actions-group .header-auth-btn,
body.is-onboarding .header-actions-group #header-student-badge {
  display: none !important;
}

/* ─── High Contrast Step Badges & Wizard Spacing (Findings A3 & B1) ─── */
.badge-subtle {
  background: rgba(30, 64, 175, 0.08) !important;
  color: #1e40af !important;
  border: 1px solid rgba(30, 64, 175, 0.22) !important;
  font-weight: 600 !important;
  font-size: 0.82rem !important;
}

[data-theme="dark"] .badge-subtle {
  background: rgba(147, 197, 253, 0.12) !important;
  color: #93c5fd !important;
  border-color: rgba(147, 197, 253, 0.25) !important;
}

/* ─── Smart Tools Grid Section (Dedicated Neo-EdTech Card Layout) ─── */
.smart-tools-grid {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 16px !important;
  margin-bottom: 28px !important;
}

@media (max-width: 1024px) {
  .smart-tools-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (max-width: 600px) {
  .smart-tools-grid {
    grid-template-columns: 1fr !important;
  }
}

.smart-tool-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 22px 20px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: 0 2px 8px -2px rgba(0, 0, 0, 0.04);
}

.smart-tool-card:hover {
  transform: translateY(-3px);
  border-color: var(--brand-primary);
  box-shadow: 0 10px 24px -4px rgba(37, 99, 235, 0.12);
}

[data-theme="dark"] .smart-tool-card:hover {
  box-shadow: 0 10px 24px -4px rgba(124, 58, 237, 0.25);
  border-color: var(--athenaeum-violet);
}

.tool-icon-wrapper {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  flex-shrink: 0;
}

.tool-icon-wrapper.tool-primary {
  background: rgba(37, 99, 235, 0.1);
  color: #2563eb;
}

.tool-icon-wrapper.tool-emerald {
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
}

.tool-icon-wrapper.tool-amber {
  background: rgba(245, 158, 11, 0.1);
  color: #f59e0b;
}

.tool-icon-wrapper.tool-violet {
  background: rgba(139, 92, 246, 0.1);
  color: #8b5cf6;
}

.tool-content {
  flex: 1;
}

.tool-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 6px 0;
  color: var(--text-main);
}

.tool-desc {
  font-size: 0.85rem;
  color: var(--text-sub);
  margin: 0 0 14px 0;
  line-height: 1.45;
}

.tool-action-arrow {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--brand-primary);
  align-self: flex-start;
  transition: transform 0.2s ease;
}

.smart-tool-card:hover .tool-action-arrow {
  transform: translateX(4px);
}

.tool-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}

.hero-tag-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.hero-status-pill {
  font-size: 0.78rem;
  font-weight: 700;
  color: #059669;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.25);
  padding: 3px 10px;
  border-radius: var(--radius-pill);
}

.wizard-skip-link {
  display: inline-block;
  margin-top: 14px;
  font-size: 0.85rem;
  color: var(--text-muted);
  text-decoration: underline;
  cursor: pointer;
}

.wizard-skip-link:hover {
  color: var(--brand-primary);
}

#remaining:empty,
#status:empty {
  display: none !important;
}


/* ─── Responsive Header Precision & Collision Avoidance ─── */
.header-nav-desktop {
  display: none !important;
  align-items: center !important;
  flex-shrink: 0 !important;
}

@media (min-width: 990px) {
  .header-nav-desktop {
    display: flex !important;
  }
}

.header-nav-list {
  display: flex !important;
  align-items: center !important;
  gap: 2px !important;
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  flex-wrap: nowrap !important;
}

.nav-item-btn,
.nav-dropdown-btn {
  display: inline-flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 5px !important;
  white-space: nowrap !important;
  font-size: 0.82rem !important;
  font-weight: 600 !important;
  border-radius: var(--radius-pill) !important;
  padding: 6px 10px !important;
  height: 38px !important;
  box-sizing: border-box !important;
}

@media (max-width: 1360px) {
  .header-search-pill-btn .search-text,
  .header-search-pill-btn .header-search-kbd {
    display: none !important;
  }
  .header-search-pill-btn {
    padding: 0 10px !important;
    width: 38px !important;
    justify-content: center !important;
  }
}

@media (max-width: 1320px) {
  .header-container {
    padding: 0 14px !important;
    gap: 8px !important;
  }
  .header-auth-btn .auth-text {
    display: none !important;
  }
  .header-auth-btn {
    padding: 0 10px !important;
    width: 38px !important;
    justify-content: center !important;
  }
}

@media (max-width: 640px) {
  .header-actions-group {
    gap: 4px !important;
  }
  .sound-btn {
    display: none !important;
  }
  .header-auth-btn .auth-text {
    display: none !important;
  }
  .header-auth-btn {
    padding: 0 !important;
    width: 36px !important;
    height: 36px !important;
    justify-content: center !important;
  }
  .profile-pill-btn,
  #header-student-badge {
    padding: 0 8px !important;
    font-size: 0.78rem !important;
    height: 36px !important;
  }
  .theme-toggle-btn,
  .header-search-pill-btn {
    width: 36px !important;
    height: 36px !important;
  }
}


/* ═══════════════════════════════════════════════════════════════
   ROCK-SOLID MASTER ALIGNMENT & RESPONSIVE COLLISION GUARD
   ═══════════════════════════════════════════════════════════════ */
html, body {
  overflow-x: hidden !important;
  max-width: 100vw !important;
}

.app-shell-header {
  width: 100% !important;
  max-width: 100vw !important;
  overflow-x: clip !important;
  height: 64px !important;
}

.header-container {
  max-width: 1560px !important;
  width: 100% !important;
  margin: 0 auto !important;
  padding: 0 16px !important;
  height: 100% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  box-sizing: border-box !important;
  gap: 8px !important;
}

.brand-logo {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
  text-decoration: none !important;
  height: 100% !important;
}

.brand-badge {
  font-family: 'Inter', -apple-system, sans-serif !important;
  font-size: 0.72rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.03em !important;
  background: var(--athenaeum-gold-soft) !important;
  color: var(--athenaeum-gold-bright) !important;
  border: 1px solid var(--athenaeum-gold-border) !important;
  padding: 2px 8px !important;
  border-radius: 9999px !important;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  height: 24px !important;
  line-height: 1 !important;
  box-sizing: border-box !important;
}

@media (max-width: 1200px) {
  .brand-badge {
    display: none !important;
  }
}

.header-nav-desktop {
  display: none !important;
  align-items: center !important;
  flex-shrink: 0 !important;
}

@media (min-width: 1024px) {
  .header-nav-desktop {
    display: flex !important;
  }
}

@media (max-width: 1200px) {
  .header-nav-list > li.nav-item-hide-tablet {
    display: none !important;
  }
}

.header-nav-list {
  display: flex !important;
  align-items: center !important;
  gap: 3px !important;
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  flex-wrap: nowrap !important;
}

.nav-item-btn,
.nav-dropdown-btn {
  display: inline-flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 5px !important;
  white-space: nowrap !important;
  font-size: 0.83rem !important;
  font-weight: 600 !important;
  border-radius: var(--radius-pill) !important;
  padding: 6px 10px !important;
  height: 38px !important;
  box-sizing: border-box !important;
  flex-shrink: 0 !important;
}

.nav-item-btn span,
.nav-dropdown-btn span,
.header-search-pill-btn span,
.header-auth-btn span,
.profile-pill-btn span,
#header-student-badge span {
  white-space: nowrap !important;
  display: inline-block !important;
}

.header-actions-group {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  flex-shrink: 0 !important;
}

@media (max-width: 1360px) {
  .header-search-pill-btn .search-text,
  .header-search-pill-btn .header-search-kbd {
    display: none !important;
  }
  .header-search-pill-btn {
    padding: 0 10px !important;
    width: 38px !important;
    justify-content: center !important;
  }
}

@media (max-width: 1100px) {
  .header-auth-btn .auth-text {
    display: none !important;
  }
  .header-auth-btn {
    padding: 0 10px !important;
    width: 38px !important;
    justify-content: center !important;
  }
  .sound-btn {
    display: none !important;
  }
}

@media (max-width: 640px) {
  .header-actions-group {
    gap: 4px !important;
  }
  .sound-btn {
    display: none !important;
  }
  .header-auth-btn .auth-text {
    display: none !important;
  }
  .header-auth-btn {
    padding: 0 !important;
    width: 36px !important;
    height: 36px !important;
    justify-content: center !important;
  }
  .profile-pill-btn,
  #header-student-badge {
    padding: 0 8px !important;
    font-size: 0.78rem !important;
    height: 36px !important;
  }
  .theme-toggle-btn,
  .header-search-pill-btn {
    width: 36px !important;
    height: 36px !important;
  }
}

@media (max-width: 1440px) {
  .nav-item-btn,
  .nav-dropdown-btn {
    padding: 6px 8px !important;
    gap: 4px !important;
    font-size: 0.81rem !important;
  }
}


/* ═══════════════════════════════════════════════════════════════════
   7. TYPEUI CREATIVE NEO-EDTECH DASHBOARD & RECENT ACTIVITY STYLES
   ═══════════════════════════════════════════════════════════════════ */

.dashboard-wrapper {
  max-width: 1400px;
  margin: 0 auto;
  padding: 24px 20px 80px;
  display: flex;
  flex-direction: column;
  gap: 36px;
}

/* ─── Hero Command Deck ─── */
.dashboard-hero-card {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%) !important;
  border: 1px solid rgba(226, 232, 240, 0.9) !important;
  backdrop-filter: blur(20px) !important;
  border-radius: 24px !important;
  padding: 32px 36px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 28px !important;
  position: relative !important;
  overflow: hidden !important;
  box-shadow: 0 10px 30px -10px rgba(15, 23, 42, 0.06), 0 4px 6px -2px rgba(15, 23, 42, 0.03) !important;
}

[data-theme="dark"] .dashboard-hero-card {
  background: linear-gradient(135deg, rgba(26, 32, 53, 0.85) 0%, rgba(15, 23, 42, 0.95) 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.12) !important;
}

@media (min-width: 992px) {
  .dashboard-hero-card {
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 36px !important;
  }
  .hero-left {
    flex: 1 1 60%;
  }
  .hero-right {
    flex: 0 0 340px;
  }
}

.hero-tag-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(79, 70, 229, 0.08) !important;
  color: #4f46e5 !important;
  border: 1px solid rgba(79, 70, 229, 0.25) !important;
  padding: 5px 12px !important;
  border-radius: var(--radius-pill) !important;
  font-size: 0.75rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.04em !important;
  text-transform: uppercase !important;
}

[data-theme="dark"] .hero-tag {
  background: rgba(99, 102, 241, 0.15) !important;
  color: #a5b4fc !important;
  border-color: rgba(99, 102, 241, 0.35) !important;
}

.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
  display: inline-block;
  animation: pulse-dot 2s infinite ease-in-out;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.hero-grade-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(79, 70, 229, 0.06);
  color: #4f46e5;
  border: 1px solid rgba(79, 70, 229, 0.2);
  padding: 5px 11px;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

[data-theme="dark"] .hero-grade-pill {
  background: rgba(99, 102, 241, 0.12);
  color: #a5b4fc;
  border-color: rgba(99, 102, 241, 0.25);
}

.hero-status-pill {
  font-size: 0.75rem;
  font-weight: 700;
  color: #059669;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
  padding: 5px 12px;
  border-radius: var(--radius-pill);
}

[data-theme="dark"] .hero-status-pill {
  color: #34d399;
  background: rgba(16, 185, 129, 0.15);
  border-color: rgba(16, 185, 129, 0.3);
}

.hero-title {
  font-family: 'Inter', system-ui, -apple-system, sans-serif !important;
  font-size: clamp(1.6rem, 2.8vw, 2.2rem) !important;
  font-weight: 800 !important;
  line-height: 1.25 !important;
  letter-spacing: -0.025em !important;
  color: #0f172a !important;
  margin: 0 0 10px 0 !important;
}

[data-theme="dark"] .hero-title {
  color: #f8fafc !important;
}

.hero-subtitle {
  font-size: 0.95rem;
  color: #475569;
  margin: 0 0 24px 0;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  line-height: 1.5;
}

[data-theme="dark"] .hero-subtitle {
  color: #94a3b8;
}

.hero-subtitle strong {
  color: #0f172a;
}

[data-theme="dark"] .hero-subtitle strong {
  color: #f1f5f9;
}

.hero-standard-pill {
  display: inline-block;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  padding: 2px 9px;
  border-radius: 6px;
  font-size: 0.75rem;
  color: #475569;
  font-weight: 600;
}

[data-theme="dark"] .hero-standard-pill {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-main-cta {
  background: #0f172a !important;
  color: #ffffff !important;
  font-weight: 600 !important;
  padding: 12px 24px !important;
  border-radius: 12px !important;
  border: 1px solid #0f172a !important;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08) !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1) !important;
  cursor: pointer !important;
}

.hero-main-cta:hover {
  background: #1e293b !important;
  border-color: #1e293b !important;
  transform: translateY(-2px) scale(1.02) !important;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.15) !important;
}

[data-theme="dark"] .hero-main-cta {
  background: #ffffff !important;
  color: #0f172a !important;
  border-color: #ffffff !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4) !important;
}

[data-theme="dark"] .hero-main-cta:hover {
  background: #f1f5f9 !important;
  border-color: #f1f5f9 !important;
  color: #0f172a !important;
}

.btn-glass {
  background: #ffffff !important;
  color: #334155 !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 12px !important;
  padding: 11px 18px !important;
  font-weight: 600 !important;
  font-size: 0.88rem !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  transition: all 0.2s ease !important;
  cursor: pointer !important;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05) !important;
}

.btn-glass:hover {
  background: #f8fafc !important;
  border-color: #94a3b8 !important;
  color: #0f172a !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.08) !important;
}

[data-theme="dark"] .btn-glass {
  background: rgba(255, 255, 255, 0.05) !important;
  color: #e2e8f0 !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
  box-shadow: none !important;
}

[data-theme="dark"] .btn-glass:hover {
  background: rgba(255, 255, 255, 0.1) !important;
  border-color: rgba(255, 255, 255, 0.25) !important;
  color: #ffffff !important;
}

/* Hero Right Stat Widget */
.hero-stat-widget {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
}

[data-theme="dark"] .hero-stat-widget {
  background: rgba(15, 23, 42, 0.75);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: none;
}

.widget-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.widget-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.widget-icon.fire {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.widget-icon.target {
  background: rgba(79, 70, 229, 0.1);
  color: #4f46e5;
  border: 1px solid rgba(79, 70, 229, 0.2);
}

[data-theme="dark"] .widget-icon.target {
  color: #818cf8;
}

.widget-data {
  display: flex;
  flex-direction: column;
}

.widget-val {
  font-family: var(--font-display, 'Space Grotesk', monospace);
  font-size: 1.25rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.15;
}

[data-theme="dark"] .widget-val {
  color: #f8fafc;
}

.widget-lbl {
  font-size: 0.78rem;
  color: #64748b;
  margin-top: 2px;
}

[data-theme="dark"] .widget-lbl {
  color: #94a3b8;
}

.widget-divider {
  height: 1px;
  background: #e2e8f0;
}

[data-theme="dark"] .widget-divider {
  background: rgba(255, 255, 255, 0.06);
}

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

.widget-sub-title {
  font-size: 0.75rem;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

[data-theme="dark"] .widget-sub-title {
  color: #94a3b8;
}

.widget-chips-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

/* ─── 4 Core GDPT 2018 Subjects Grid ─── */
.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 18px;
  gap: 16px;
}

.section-header-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: none;
  color: #4f46e5;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  padding: 6px 10px;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.section-header-link:hover {
  background: rgba(79, 70, 229, 0.08);
  color: #4338ca;
}

[data-theme="dark"] .section-header-link {
  color: #818cf8;
}

[data-theme="dark"] .section-header-link:hover {
  background: rgba(99, 102, 241, 0.12);
  color: #a5b4fc;
}

.dashboard-subjects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

@media (max-width: 1024px) {
  .dashboard-subjects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

.dash-subject-card {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 20px !important;
  padding: 24px 22px !important;
  display: flex !important;
  flex-direction: column !important;
  position: relative !important;
  overflow: hidden !important;
  cursor: pointer !important;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04) !important;
}

[data-theme="dark"] .dash-subject-card {
  background: rgba(18, 24, 38, 0.85) !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25) !important;
}

.dash-subject-card:hover {
  transform: translateY(-4px) !important;
  box-shadow: 0 12px 28px -6px rgba(15, 23, 42, 0.08) !important;
}

[data-theme="dark"] .dash-subject-card:hover {
  border-color: rgba(255, 255, 255, 0.2) !important;
  box-shadow: 0 16px 36px -8px rgba(0, 0, 0, 0.5) !important;
}

.dash-sub-toan:hover,
.dash-sub-vatli:hover,
.dash-sub-hoahoc:hover,
.dash-sub-tienganh:hover,
.dash-sub-lichsu:hover,
.dash-sub-sinhhoc:hover {
  border-color: #0f172a !important;
}

[data-theme="dark"] .dash-sub-toan:hover,
[data-theme="dark"] .dash-sub-vatli:hover,
[data-theme="dark"] .dash-sub-hoahoc:hover,
[data-theme="dark"] .dash-sub-tienganh:hover,
[data-theme="dark"] .dash-sub-lichsu:hover,
[data-theme="dark"] .dash-sub-sinhhoc:hover {
  border-color: rgba(255, 255, 255, 0.35) !important;
}

/* Eliminate colorful neon glows completely */
.dash-sub-glow {
  display: none !important;
}

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

/* Unified Minimalist Monochrome Subject Icon */
.dash-sub-icon {
  width: 44px !important;
  height: 44px !important;
  border-radius: 12px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: #f1f5f9 !important;
  color: #0f172a !important;
  border: 1px solid #e2e8f0 !important;
  transition: all 0.2s ease !important;
}

.dash-subject-card:hover .dash-sub-icon {
  background: #0f172a !important;
  color: #ffffff !important;
  border-color: #0f172a !important;
}

[data-theme="dark"] .dash-sub-icon {
  background: rgba(255, 255, 255, 0.05) !important;
  color: #f1f5f9 !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
}

[data-theme="dark"] .dash-subject-card:hover .dash-sub-icon {
  background: #ffffff !important;
  color: #0f172a !important;
  border-color: #ffffff !important;
}

.dash-sub-icon.toan,
.dash-sub-icon.vatli,
.dash-sub-icon.hoahoc,
.dash-sub-icon.tienganh,
.dash-sub-icon.lichsu,
.dash-sub-icon.sinhhoc {
  background: #f1f5f9 !important;
  color: #0f172a !important;
  border: 1px solid #e2e8f0 !important;
}

[data-theme="dark"] .dash-sub-icon.toan,
[data-theme="dark"] .dash-sub-icon.vatli,
[data-theme="dark"] .dash-sub-icon.hoahoc,
[data-theme="dark"] .dash-sub-icon.tienganh,
[data-theme="dark"] .dash-sub-icon.lichsu,
[data-theme="dark"] .dash-sub-icon.sinhhoc {
  background: rgba(255, 255, 255, 0.05) !important;
  color: #f1f5f9 !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
}

/* Unified Minimalist Slate Pill */
.dash-sub-pill {
  font-size: 0.75rem !important;
  font-weight: 600 !important;
  padding: 3px 8px !important;
  border-radius: var(--radius-pill) !important;
  text-transform: uppercase !important;
  letter-spacing: 0.04em !important;
  background: #f8fafc !important;
  color: #475569 !important;
  border: 1px solid #e2e8f0 !important;
}

.dash-sub-pill.toan,
.dash-sub-pill.vatli,
.dash-sub-pill.hoahoc,
.dash-sub-pill.tienganh,
.dash-sub-pill.lichsu,
.dash-sub-pill.sinhhoc {
  background: #f8fafc !important;
  color: #475569 !important;
  border: 1px solid #e2e8f0 !important;
}

[data-theme="dark"] .dash-sub-pill,
[data-theme="dark"] .dash-sub-pill.toan,
[data-theme="dark"] .dash-sub-pill.vatli,
[data-theme="dark"] .dash-sub-pill.hoahoc,
[data-theme="dark"] .dash-sub-pill.tienganh,
[data-theme="dark"] .dash-sub-pill.lichsu,
[data-theme="dark"] .dash-sub-pill.sinhhoc {
  background: rgba(255, 255, 255, 0.04) !important;
  color: #94a3b8 !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
}

.dash-sub-name {
  font-size: 1.22rem;
  font-weight: 700;
  color: #0f172a !important;
  margin: 0 0 6px 0;
}

[data-theme="dark"] .dash-sub-name {
  color: #f8fafc !important;
}

.dash-sub-desc {
  font-size: 0.86rem;
  color: #475569 !important;
  line-height: 1.45;
  margin: 0 0 16px 0;
  min-height: 38px;
}

[data-theme="dark"] .dash-sub-desc {
  color: #94a3b8 !important;
}

.dash-sub-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 20px;
}

.dash-sub-tag {
  font-size: 0.72rem;
  font-weight: 600;
  color: #475569 !important;
  background: #f1f5f9 !important;
  border: 1px solid #e2e8f0 !important;
  padding: 3px 8px;
  border-radius: 6px;
}

[data-theme="dark"] .dash-sub-tag {
  color: #cbd5e1 !important;
  background: rgba(255, 255, 255, 0.05) !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
}

.dash-sub-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid #f1f5f9 !important;
}

[data-theme="dark"] .dash-sub-footer {
  border-top-color: rgba(255, 255, 255, 0.06) !important;
}

.dash-sub-count {
  font-size: 0.76rem;
  color: #64748b !important;
}

.dash-sub-cta {
  font-size: 0.82rem;
  font-weight: 700;
  color: #4f46e5 !important;
  transition: transform 0.2s ease;
}

[data-theme="dark"] .dash-sub-cta {
  color: #818cf8 !important;
}

.dash-subject-card:hover .dash-sub-cta {
  transform: translateX(4px);
  color: #4338ca !important;
}

[data-theme="dark"] .dash-subject-card:hover .dash-sub-cta {
  color: #a5b4fc !important;
}

/* ─── Refined Bento Metrics Grid ─── */
.metrics-grid {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 18px !important;
}

@media (max-width: 1024px) {
  .metrics-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (max-width: 540px) {
  .metrics-grid {
    grid-template-columns: 1fr !important;
  }
}

.metric-card {
  background: rgba(18, 24, 38, 0.7) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 20px !important;
  padding: 22px 20px !important;
  display: flex !important;
  align-items: flex-start !important;
  gap: 16px !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12) !important;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.metric-card:hover {
  transform: translateY(-3px) !important;
  border-color: rgba(99, 102, 241, 0.35) !important;
  box-shadow: 0 12px 28px -6px rgba(0, 0, 0, 0.45) !important;
}

.metric-card.clickable {
  cursor: pointer !important;
}

.metric-icon-box {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.metric-icon-box.emerald {
  background: rgba(16, 185, 129, 0.12);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.metric-icon-box.cyan {
  background: rgba(6, 182, 212, 0.12);
  color: #22d3ee;
  border: 1px solid rgba(6, 182, 212, 0.25);
}

.metric-icon-box.amber {
  background: rgba(245, 158, 11, 0.12);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.25);
}

.metric-icon-box.rose {
  background: rgba(239, 68, 68, 0.12);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.25);
}

.metric-icon-box.slate {
  background: rgba(148, 163, 184, 0.08);
  color: #94a3b8;
  border: 1px solid rgba(148, 163, 184, 0.15);
}

.metric-info {
  display: flex;
  flex-direction: column;
}

.metric-value {
  font-family: var(--font-display, 'Space Grotesk', monospace) !important;
  font-size: 2.1rem !important;
  font-weight: 800 !important;
  color: #f8fafc !important;
  line-height: 1.1 !important;
}

.metric-unit {
  font-size: 0.95rem;
  font-weight: 600;
  color: #94a3b8;
}

.metric-label {
  font-size: 0.85rem !important;
  font-weight: 600 !important;
  color: #cbd5e1 !important;
  margin-top: 4px !important;
}

.metric-sub-hint {
  font-size: 0.74rem;
  color: #64748b;
  margin-top: 2px;
}

.metric-glow-green {
  color: #34d399 !important;
  text-shadow: 0 0 12px rgba(52, 211, 153, 0.35);
}

.metric-val-danger {
  color: #f87171 !important;
  text-shadow: 0 0 12px rgba(248, 113, 113, 0.35);
}

/* ─── Recent Activity Master Styles (TypeUI Activity Card) ─── */
.history-count-badge {
  font-size: 0.8rem;
  font-weight: 700;
  color: #818cf8;
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.25);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
}

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

.history-item-card {
  background: rgba(18, 24, 38, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 18px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.history-item-card:hover {
  background: rgba(30, 41, 59, 0.75);
  border-color: rgba(99, 102, 241, 0.3);
  transform: translateX(4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.hist-left {
  display: flex;
  align-items: center;
  gap: 18px;
  flex: 1;
}

.history-badge {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  text-align: center;
}

.history-badge.score-high {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.18), rgba(5, 150, 105, 0.28));
  border: 1.5px solid rgba(16, 185, 129, 0.45);
  color: #34d399;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.15);
}

.history-badge.score-mid {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.18), rgba(217, 119, 6, 0.28));
  border: 1.5px solid rgba(245, 158, 11, 0.45);
  color: #fbbf24;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.15);
}

.history-badge.score-low {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.18), rgba(220, 38, 38, 0.28));
  border: 1.5px solid rgba(239, 68, 68, 0.45);
  color: #f87171;
  box-shadow: 0 4px 14px rgba(239, 68, 68, 0.15);
}

.hist-percentage {
  font-family: var(--font-display, 'Space Grotesk', monospace);
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1;
}

.hist-rating {
  font-size: 0.64rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-top: 3px;
  opacity: 0.9;
}

.history-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.history-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.history-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #f8fafc;
  margin: 0;
}

.history-score-detail {
  font-size: 0.8rem;
  font-weight: 600;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.25);
  padding: 1px 7px;
  border-radius: 4px;
}

.history-meta-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.history-date {
  font-size: 0.8rem;
  color: #94a3b8;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.history-mode-pill {
  font-size: 0.75rem;
  color: #cbd5e1;
  background: rgba(255, 255, 255, 0.05);
  padding: 2px 8px;
  border-radius: 4px;
}

.btn-outline-clean {
  background: transparent !important;
  color: #cbd5e1 !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  border-radius: 10px !important;
  padding: 8px 14px !important;
  font-size: 0.82rem !important;
  font-weight: 600 !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
}

.btn-outline-clean:hover {
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: rgba(99, 102, 241, 0.5) !important;
  color: #ffffff !important;
  transform: translateY(-1px) !important;
}

@media (max-width: 640px) {
  .history-item-card {
    flex-direction: column;
    align-items: flex-start;
  }
  .hist-actions {
    width: 100%;
    margin-top: 8px;
  }
  .btn-outline-clean {
    width: 100%;
    justify-content: center;
  }
}

/* ─── Community Discord Banner ─── */
.community-banner-card {
  background: linear-gradient(135deg, rgba(88, 101, 242, 0.12) 0%, rgba(15, 23, 42, 0.8) 100%) !important;
  border: 1px solid rgba(88, 101, 242, 0.3) !important;
  border-radius: 20px !important;
  padding: 24px 28px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 24px !important;
  box-shadow: 0 8px 24px -6px rgba(88, 101, 242, 0.2) !important;
}

@media (max-width: 768px) {
  .community-banner-card {
    flex-direction: column !important;
    align-items: flex-start !important;
  }
  .btn-discord {
    width: 100% !important;
    justify-content: center !important;
  }
}

.comm-left {
  display: flex;
  align-items: center;
  gap: 20px;
}

.comm-icon-chip {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: rgba(88, 101, 242, 0.2);
  color: #5865F2;
  border: 1px solid rgba(88, 101, 242, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.comm-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}

.comm-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #f8fafc;
  margin: 0;
}

.comm-status-badge {
  font-size: 0.72rem;
  font-weight: 700;
  color: #34d399;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.25);
  padding: 2px 8px;
  border-radius: var(--radius-pill);
}

.comm-desc {
  font-size: 0.88rem;
  color: #94a3b8;
  margin: 0;
  line-height: 1.45;
}

.btn-discord {
  background: #5865F2 !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  font-size: 0.92rem !important;
  padding: 12px 22px !important;
  border-radius: 12px !important;
  border: none !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  flex-shrink: 0 !important;
  transition: all 0.2s ease !important;
  text-decoration: none !important;
  box-shadow: 0 4px 16px rgba(88, 101, 242, 0.4) !important;
}

.btn-discord:hover {
  background: #4752c4 !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 24px rgba(88, 101, 242, 0.55) !important;
}


/* ═══════════════════════════════════════════════════════════════════
   8. TYPEUI CREATIVE SANCTUARY: TOPICS, EXAM ROOM & RESULTS
   Harmonious Dual-Theme: Athenaeum Parchment (Light) & Obsidian Glass (Dark)
   ═══════════════════════════════════════════════════════════════════ */

/* ─── Global Body & Theme Transitions ─── */
body {
  transition: background-color 0.25s ease, color 0.25s ease !important;
}

:root:not([data-theme="dark"]) body {
  background: #f8fafc !important;
  color: #0f172a !important;
}

[data-theme="dark"] body {
  background: #090d16 !important;
  color: #f8fafc !important;
}

/* ─── Mode Selector & Topic Header ─── */
.mode-selector {
  margin-bottom: 28px;
}

.mode-selector-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 16px;
  gap: 16px;
  flex-wrap: wrap;
}

.verified-link-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(16, 185, 129, 0.12);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s ease;
}

.verified-link-pill:hover {
  background: rgba(16, 185, 129, 0.22);
  transform: translateY(-1px);
  color: #059669;
}

[data-theme="dark"] .verified-link-pill {
  color: #34d399;
}

[data-theme="dark"] .verified-link-pill:hover {
  color: #6ee7b7;
}

.mode-cards {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 14px !important;
  margin-bottom: 24px !important;
}

@media (max-width: 1024px) {
  .mode-cards {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (max-width: 540px) {
  .mode-cards {
    grid-template-columns: 1fr !important;
  }
}

.mode-card {
  border-radius: 18px !important;
  padding: 20px 16px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  text-align: center !important;
  cursor: pointer !important;
  position: relative !important;
  overflow: hidden !important;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

:root:not([data-theme="dark"]) .mode-card {
  background: #ffffff !important;
  border: 1.5px solid rgba(226, 232, 240, 0.9) !important;
  box-shadow: 0 4px 14px -2px rgba(0, 0, 0, 0.04) !important;
}

:root:not([data-theme="dark"]) .mode-card:hover {
  transform: translateY(-3px) !important;
  border-color: #818cf8 !important;
  background: #fafafa !important;
  box-shadow: 0 10px 24px -4px rgba(99, 102, 241, 0.15) !important;
}

:root:not([data-theme="dark"]) .mode-card:hover {
  transform: translateY(-2px) !important;
  border-color: #0f172a !important;
  background: #ffffff !important;
  box-shadow: 0 4px 16px -2px rgba(15, 23, 42, 0.06) !important;
}

:root:not([data-theme="dark"]) .mode-card.selected {
  background: #f8fafc !important;
  border-color: #0f172a !important;
  box-shadow: 0 0 0 1px #0f172a, 0 4px 14px rgba(15, 23, 42, 0.08) !important;
  transform: translateY(-1px) !important;
}

:root:not([data-theme="dark"]) .mode-card .mode-icon {
  background: #f1f5f9 !important;
  color: #0f172a !important;
  border: 1px solid #e2e8f0 !important;
}

:root:not([data-theme="dark"]) .mode-card:hover .mode-icon {
  background: #0f172a !important;
  color: #ffffff !important;
}

:root:not([data-theme="dark"]) .mode-card.selected .mode-icon {
  background: #0f172a !important;
  color: #ffffff !important;
  border-color: #0f172a !important;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.15) !important;
}

:root:not([data-theme="dark"]) .mode-name {
  color: #0f172a !important;
}

:root:not([data-theme="dark"]) .mode-desc {
  color: #475569 !important;
}

[data-theme="dark"] .mode-card {
  background: rgba(18, 24, 38, 0.7) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
}

[data-theme="dark"] .mode-card:hover {
  transform: translateY(-3px) !important;
  border-color: rgba(99, 102, 241, 0.4) !important;
  box-shadow: 0 12px 24px -6px rgba(0, 0, 0, 0.35) !important;
}

[data-theme="dark"] .mode-card:hover {
  transform: translateY(-2px) !important;
  border-color: rgba(255, 255, 255, 0.4) !important;
  box-shadow: 0 8px 20px -4px rgba(0, 0, 0, 0.4) !important;
}

[data-theme="dark"] .mode-card.selected {
  background: rgba(255, 255, 255, 0.06) !important;
  border-color: #ffffff !important;
  box-shadow: 0 0 0 1px #ffffff, 0 4px 16px rgba(0, 0, 0, 0.4) !important;
  transform: translateY(-1px) !important;
}

[data-theme="dark"] .mode-card .mode-icon {
  background: rgba(255, 255, 255, 0.06) !important;
  color: #f1f5f9 !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

[data-theme="dark"] .mode-card:hover .mode-icon {
  background: #ffffff !important;
  color: #0f172a !important;
}

[data-theme="dark"] .mode-card.selected .mode-icon {
  background: #ffffff !important;
  color: #0f172a !important;
  border-color: #ffffff !important;
  box-shadow: 0 2px 8px rgba(255, 255, 255, 0.2) !important;
}

[data-theme="dark"] .mode-name {
  color: #f8fafc !important;
}

[data-theme="dark"] .mode-desc {
  color: #94a3b8 !important;
}

.mode-card .mode-icon {
  width: 48px !important;
  height: 48px !important;
  border-radius: 14px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin-bottom: 12px !important;
  transition: all 0.2s ease !important;
}

.mode-name {
  font-size: 0.95rem !important;
  font-weight: 700 !important;
  margin-bottom: 5px !important;
}

.mode-desc {
  font-size: 0.78rem !important;
  line-height: 1.4 !important;
}

/* ─── Topic Selection List ─── */
.topics-header {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  margin-bottom: 16px !important;
  flex-wrap: wrap !important;
  gap: 12px !important;
}

.select-all-btn {
  padding: 6px 14px !important;
  border-radius: var(--radius-pill) !important;
  font-size: 0.82rem !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
}

:root:not([data-theme="dark"]) .select-all-btn {
  background: #f1f5f9 !important;
  color: #334155 !important;
  border: 1px solid #cbd5e1 !important;
}

:root:not([data-theme="dark"]) .select-all-btn:hover {
  background: #e2e8f0 !important;
  border-color: #7c3aed !important;
  color: #6d28d9 !important;
}

[data-theme="dark"] .select-all-btn {
  background: rgba(255, 255, 255, 0.06) !important;
  color: #cbd5e1 !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
}

[data-theme="dark"] .select-all-btn:hover {
  background: rgba(99, 102, 241, 0.15) !important;
  border-color: #818cf8 !important;
  color: #ffffff !important;
}

.topics-list {
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
  margin-bottom: 24px !important;
}

.topic-card {
  border-radius: 14px !important;
  padding: 14px 18px !important;
  display: flex !important;
  align-items: center !important;
  gap: 14px !important;
  transition: all 0.2s ease !important;
}

:root:not([data-theme="dark"]) .topic-card {
  background: #ffffff !important;
  border: 1.5px solid rgba(226, 232, 240, 0.9) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03) !important;
}

:root:not([data-theme="dark"]) .topic-card:hover {
  background: #fafafa !important;
  border-color: #818cf8 !important;
  transform: translateX(3px) !important;
}

:root:not([data-theme="dark"]) .topic-card.selected {
  background: #f0fdf4 !important;
  border-color: #10b981 !important;
}

:root:not([data-theme="dark"]) .topic-title {
  color: #0f172a !important;
}

:root:not([data-theme="dark"]) .topic-meta {
  color: #475569 !important;
}

:root:not([data-theme="dark"]) .topic-meta span {
  background: #f1f5f9 !important;
  border: 1px solid #e2e8f0 !important;
  color: #334155 !important;
}

[data-theme="dark"] .topic-card {
  background: rgba(18, 24, 38, 0.65) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
}

[data-theme="dark"] .topic-card:hover {
  background: rgba(30, 41, 59, 0.75) !important;
  border-color: rgba(99, 102, 241, 0.3) !important;
  transform: translateX(3px) !important;
}

[data-theme="dark"] .topic-card.selected {
  background: rgba(16, 185, 129, 0.08) !important;
  border-color: rgba(16, 185, 129, 0.38) !important;
}

[data-theme="dark"] .topic-title {
  color: #f8fafc !important;
}

[data-theme="dark"] .topic-meta {
  color: #94a3b8 !important;
}

[data-theme="dark"] .topic-meta span {
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  color: #cbd5e1 !important;
}

.topic-title {
  font-size: 0.96rem !important;
  font-weight: 700 !important;
  margin-bottom: 4px !important;
}

.topic-meta {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  font-size: 0.78rem !important;
}

.topic-meta span {
  display: inline-block !important;
  padding: 2px 7px !important;
  border-radius: 5px !important;
}

/* ─── Quiz Configuration Box (Zero-Overflow & Dual-Theme) ─── */
.quiz-config {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  border-radius: 20px !important;
  padding: 24px 28px !important;
  margin-bottom: 24px !important;
  transition: all 0.25s ease !important;
}

:root:not([data-theme="dark"]) .quiz-config {
  background: #ffffff !important;
  border: 1.5px solid rgba(226, 232, 240, 0.9) !important;
  box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.05) !important;
}

[data-theme="dark"] .quiz-config {
  background: linear-gradient(135deg, rgba(26, 32, 53, 0.7) 0%, rgba(15, 23, 42, 0.8) 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5) !important;
}

.config-label {
  font-size: 0.92rem !important;
  font-weight: 700 !important;
  margin-bottom: 14px !important;
  text-transform: uppercase !important;
  letter-spacing: 0.04em !important;
}

:root:not([data-theme="dark"]) .config-label {
  color: #1e293b !important;
}

[data-theme="dark"] .config-label {
  color: #cbd5e1 !important;
}

.config-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 14px !important;
  margin-bottom: 18px !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

@media (max-width: 640px) {
  .config-grid {
    grid-template-columns: 1fr !important;
  }
}

.config-item {
  border-radius: 12px !important;
  padding: 10px 14px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 6px !important;
  min-width: 0 !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

:root:not([data-theme="dark"]) .config-item {
  background: #f8fafc !important;
  border: 1px solid rgba(226, 232, 240, 0.9) !important;
}

[data-theme="dark"] .config-item {
  background: rgba(15, 23, 42, 0.6) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.config-item label {
  font-size: 0.78rem !important;
  font-weight: 600 !important;
}

:root:not([data-theme="dark"]) .config-item label {
  color: #475569 !important;
}

[data-theme="dark"] .config-item label {
  color: #94a3b8 !important;
}

.config-input {
  border-radius: 8px !important;
  padding: 8px 12px !important;
  font-size: 1.05rem !important;
  font-weight: 700 !important;
  width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
}

:root:not([data-theme="dark"]) .config-input {
  background: #ffffff !important;
  border: 1.5px solid #cbd5e1 !important;
  color: #0f172a !important;
}

[data-theme="dark"] .config-input {
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  color: #f8fafc !important;
}

.config-row {
  display: flex !important;
  align-items: center !important;
  gap: 14px !important;
  margin-bottom: 16px !important;
  flex-wrap: wrap !important;
}

.config-row label {
  font-size: 0.88rem !important;
  font-weight: 600 !important;
}

:root:not([data-theme="dark"]) .config-row label {
  color: #334155 !important;
}

[data-theme="dark"] .config-row label {
  color: #cbd5e1 !important;
}

.config-row select {
  border-radius: 10px !important;
  padding: 8px 14px !important;
  font-size: 0.9rem !important;
  font-weight: 600 !important;
}

:root:not([data-theme="dark"]) .config-row select {
  background: #ffffff !important;
  border: 1.5px solid #cbd5e1 !important;
  color: #0f172a !important;
}

[data-theme="dark"] .config-row select {
  background: rgba(15, 23, 42, 0.8) !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  color: #f8fafc !important;
}

.quiz-summary {
  display: inline-flex !important;
  align-items: center !important;
  gap: 10px !important;
  padding: 6px 14px !important;
  border-radius: var(--radius-pill) !important;
  font-size: 0.88rem !important;
}

:root:not([data-theme="dark"]) .quiz-summary {
  background: #f1f5f9 !important;
  border: 1px solid #cbd5e1 !important;
  color: #334155 !important;
}

[data-theme="dark"] .quiz-summary {
  background: rgba(99, 102, 241, 0.12) !important;
  border: 1px solid rgba(99, 102, 241, 0.25) !important;
  color: #c7d2fe !important;
}

.start-btn {
  background: #0f172a !important;
  color: #ffffff !important;
  font-size: 1rem !important;
  font-weight: 700 !important;
  padding: 13px 26px !important;
  border-radius: 12px !important;
  border: 1px solid #0f172a !important;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.12) !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  transition: all 0.18s ease !important;
}

.start-btn:hover:not(:disabled) {
  background: #1e293b !important;
  border-color: #1e293b !important;
  transform: translateY(-1px) scale(1.01) !important;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.18) !important;
}

[data-theme="dark"] .start-btn {
  background: #ffffff !important;
  color: #0f172a !important;
  border-color: #ffffff !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4) !important;
}

[data-theme="dark"] .start-btn:hover:not(:disabled) {
  background: #f1f5f9 !important;
  border-color: #f1f5f9 !important;
  color: #0f172a !important;
}

.start-btn:disabled {
  opacity: 0.45 !important;
  cursor: not-allowed !important;
  box-shadow: none !important;
}

/* ─── Exam Sanctuary 2.0 (screen-quiz) ─── */
.quiz-layout {
  display: grid !important;
  grid-template-columns: 210px 1fr !important;
  gap: 20px !important;
}

@media (max-width: 860px) {
  .quiz-layout {
    grid-template-columns: 1fr !important;
  }
}

.quiz-sidebar {
  border-radius: 18px !important;
  padding: 18px !important;
}

:root:not([data-theme="dark"]) .quiz-sidebar {
  background: #ffffff !important;
  border: 1.5px solid rgba(226, 232, 240, 0.9) !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04) !important;
}

[data-theme="dark"] .quiz-sidebar {
  background: rgba(18, 24, 38, 0.75) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  backdrop-filter: blur(16px) !important;
}

.sidebar-header {
  font-size: 0.78rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.05em !important;
  text-transform: uppercase !important;
  margin-bottom: 14px !important;
}

:root:not([data-theme="dark"]) .sidebar-header {
  color: #475569 !important;
}

[data-theme="dark"] .sidebar-header {
  color: #94a3b8 !important;
}

/* ─── Sidebar Filter Tabs ─── */
.sidebar-filter-tabs {
  display: flex !important;
  gap: 4px !important;
  padding: 4px !important;
  border-radius: 10px !important;
  margin-bottom: 14px !important;
}

:root:not([data-theme="dark"]) .sidebar-filter-tabs,
body:not([data-theme="dark"]) .sidebar-filter-tabs {
  background: #f1f5f9 !important;
  border: 1px solid #e2e8f0 !important;
}

[data-theme="dark"] .sidebar-filter-tabs {
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.s-tab {
  flex: 1 !important;
  padding: 6px 4px !important;
  font-size: 0.72rem !important;
  font-weight: 600 !important;
  text-align: center !important;
  border-radius: 7px !important;
  border: none !important;
  background: transparent !important;
  cursor: pointer !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

:root:not([data-theme="dark"]) .s-tab,
body:not([data-theme="dark"]) .s-tab {
  color: #64748b !important;
}

:root:not([data-theme="dark"]) .s-tab:hover,
body:not([data-theme="dark"]) .s-tab:hover {
  color: #0f172a !important;
  background: rgba(0, 0, 0, 0.04) !important;
}

:root:not([data-theme="dark"]) .s-tab.active,
body:not([data-theme="dark"]) .s-tab.active {
  background: #ffffff !important;
  color: #4f46e5 !important;
  font-weight: 700 !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08) !important;
}

[data-theme="dark"] .s-tab {
  color: #94a3b8 !important;
}

[data-theme="dark"] .s-tab:hover {
  color: #f8fafc !important;
  background: rgba(255, 255, 255, 0.06) !important;
}

[data-theme="dark"] .s-tab.active {
  background: rgba(124, 58, 237, 0.25) !important;
  color: #c4b5fd !important;
  border: 1px solid rgba(124, 58, 237, 0.4) !important;
  box-shadow: 0 2px 8px rgba(124, 58, 237, 0.3) !important;
}

.question-dots {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 8px !important;
}

.q-dot {
  width: 36px !important;
  height: 36px !important;
  border-radius: 10px !important;
  font-size: 0.82rem !important;
  font-weight: 700 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: all 0.2s ease !important;
  cursor: pointer !important;
}

:root:not([data-theme="dark"]) .q-dot {
  background: #f8fafc !important;
  border: 1.5px solid #e2e8f0 !important;
  color: #475569 !important;
}

:root:not([data-theme="dark"]) .q-dot:hover {
  background: #f1f5f9 !important;
  border-color: #818cf8 !important;
  color: #1e1b4b !important;
}

[data-theme="dark"] .q-dot {
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  color: #94a3b8 !important;
}

[data-theme="dark"] .q-dot:hover {
  background: rgba(99, 102, 241, 0.15) !important;
  border-color: #818cf8 !important;
  color: #ffffff !important;
}

.q-dot.current {
  border-color: #4f46e5 !important;
  background: #4f46e5 !important;
  color: #ffffff !important;
  box-shadow: 0 0 12px rgba(79, 70, 229, 0.45) !important;
}

.q-dot.answered {
  border-color: rgba(16, 185, 129, 0.4) !important;
  background: rgba(16, 185, 129, 0.18) !important;
  color: #059669 !important;
}

[data-theme="dark"] .q-dot.answered {
  color: #34d399 !important;
}

.q-dot.flagged {
  border-color: rgba(245, 158, 11, 0.5) !important;
  background: rgba(245, 158, 11, 0.2) !important;
  color: #d97706 !important;
}

[data-theme="dark"] .q-dot.flagged {
  color: #fbbf24 !important;
}

/* ─── Question Flag Button ─── */
.btn-flag-toggle {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  padding: 6px 14px !important;
  font-size: 0.82rem !important;
  font-weight: 600 !important;
  border-radius: 10px !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
}

:root:not([data-theme="dark"]) .btn-flag-toggle,
body:not([data-theme="dark"]) .btn-flag-toggle {
  background: #ffffff !important;
  border: 1.5px solid #e2e8f0 !important;
  color: #64748b !important;
}

:root:not([data-theme="dark"]) .btn-flag-toggle:hover,
body:not([data-theme="dark"]) .btn-flag-toggle:hover {
  background: #f8fafc !important;
  border-color: #cbd5e1 !important;
  color: #0f172a !important;
}

:root:not([data-theme="dark"]) .btn-flag-toggle.active,
body:not([data-theme="dark"]) .btn-flag-toggle.active {
  background: rgba(245, 158, 11, 0.12) !important;
  border-color: rgba(245, 158, 11, 0.5) !important;
  color: #b45309 !important;
  font-weight: 700 !important;
}

[data-theme="dark"] .btn-flag-toggle {
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  color: #94a3b8 !important;
}

[data-theme="dark"] .btn-flag-toggle:hover {
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: rgba(255, 255, 255, 0.2) !important;
  color: #f8fafc !important;
}

[data-theme="dark"] .btn-flag-toggle.active {
  background: rgba(245, 158, 11, 0.18) !important;
  border-color: rgba(245, 158, 11, 0.6) !important;
  color: #fbbf24 !important;
  font-weight: 700 !important;
}

.question-card {
  border-radius: 22px !important;
  padding: 32px 36px !important;
  transition: all 0.25s ease !important;
}

:root:not([data-theme="dark"]) .question-card {
  background: #ffffff !important;
  border: 1.5px solid rgba(226, 232, 240, 0.9) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06) !important;
}

[data-theme="dark"] .question-card {
  background: rgba(18, 24, 38, 0.75) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25) !important;
}

.question-number {
  font-size: 0.92rem !important;
  font-weight: 700 !important;
  margin-left: 12px !important;
}

:root:not([data-theme="dark"]) .question-number {
  color: #0f172a !important;
}

[data-theme="dark"] .question-number {
  color: #f8fafc !important;
}

:root:not([data-theme="dark"]) #q-num {
  color: #d97706 !important;
  font-weight: 800 !important;
}

[data-theme="dark"] #q-num {
  color: #fbbf24 !important;
  font-weight: 800 !important;
}

.question-type-badge {
  padding: 4px 10px !important;
  border-radius: var(--radius-pill) !important;
  font-size: 0.75rem !important;
  font-weight: 700 !important;
}

:root:not([data-theme="dark"]) .question-type-badge {
  background: rgba(124, 58, 237, 0.1) !important;
  color: #7c3aed !important;
  border: 1px solid rgba(124, 58, 237, 0.25) !important;
}

[data-theme="dark"] .question-type-badge {
  background: rgba(99, 102, 241, 0.14) !important;
  color: #a5b4fc !important;
  border: 1px solid rgba(99, 102, 241, 0.3) !important;
}

.question-text {
  font-size: 1.15rem !important;
  line-height: 1.75 !important;
  margin-bottom: 28px !important;
}

:root:not([data-theme="dark"]) .question-text {
  color: #0f172a !important;
}

[data-theme="dark"] .question-text {
  color: #f8fafc !important;
}

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

.option {
  border-radius: 14px !important;
  padding: 16px 20px !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  gap: 14px !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

:root:not([data-theme="dark"]) .option {
  background: #f8fafc !important;
  border: 1.5px solid #e2e8f0 !important;
  color: #0f172a !important;
}

:root:not([data-theme="dark"]) .option:hover {
  background: #f1f5f9 !important;
  border-color: #818cf8 !important;
  transform: translateX(3px) !important;
}

:root:not([data-theme="dark"]) .option.selected {
  background: #f8fafc !important;
  border-color: #0f172a !important;
  color: #0f172a !important;
  box-shadow: 0 0 0 1px #0f172a, 0 4px 12px rgba(15, 23, 42, 0.08) !important;
}

:root:not([data-theme="dark"]) .option-letter {
  background: #f1f5f9 !important;
  color: #0f172a !important;
  border: 1px solid #e2e8f0 !important;
}

:root:not([data-theme="dark"]) .option.selected .option-letter {
  background: #0f172a !important;
  color: #ffffff !important;
  border-color: #0f172a !important;
}

:root:not([data-theme="dark"]) .option-shortcut-hint {
  background: #e2e8f0 !important;
  color: #475569 !important;
  border: 1px solid #cbd5e1 !important;
}

[data-theme="dark"] .option {
  background: rgba(255, 255, 255, 0.035) !important;
  border: 1.5px solid rgba(255, 255, 255, 0.08) !important;
  color: #f1f5f9 !important;
}

[data-theme="dark"] .option:hover {
  background: rgba(255, 255, 255, 0.07) !important;
  border-color: rgba(99, 102, 241, 0.35) !important;
  transform: translateX(3px) !important;
}

[data-theme="dark"] .option.selected {
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: #ffffff !important;
  box-shadow: 0 0 0 1px #ffffff, 0 4px 14px rgba(0, 0, 0, 0.4) !important;
}

[data-theme="dark"] .option-letter {
  background: rgba(255, 255, 255, 0.08) !important;
  color: #cbd5e1 !important;
}

[data-theme="dark"] .option.selected .option-letter {
  background: #ffffff !important;
  color: #0f172a !important;
}

[data-theme="dark"] .option-shortcut-hint {
  background: rgba(255, 255, 255, 0.08) !important;
  color: #cbd5e1 !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
}

.option-letter {
  width: 32px !important;
  height: 32px !important;
  border-radius: 8px !important;
  font-weight: 800 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
}

/* ─── Quick Math Keypad for Short Answer (Part III) ─── */
.sa-math-keypad {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 12px 0 14px;
}

.math-key-btn {
  padding: 6px 14px;
  border-radius: 8px;
  font-family: 'Space Grotesk', monospace, sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

:root:not([data-theme="dark"]) .math-key-btn {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #0f172a;
}

:root:not([data-theme="dark"]) .math-key-btn:hover {
  background: #e2e8f0;
  border-color: #4f46e5;
  color: #4338ca;
  transform: translateY(-1px);
}

[data-theme="dark"] .math-key-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #f8fafc;
}

[data-theme="dark"] .math-key-btn:hover {
  background: rgba(99, 102, 241, 0.25);
  border-color: #818cf8;
  color: #ffffff;
  transform: translateY(-1px);
}

.math-key-btn.clear {
  color: #ef4444 !important;
  border-color: rgba(239, 68, 68, 0.4) !important;
}

/* ─── Real-Time KaTeX Live Preview for Short Answer (Part III) ─── */
.sa-math-live-preview {
  min-height: 44px;
  display: flex;
  align-items: center;
  margin-top: 10px;
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 1.05rem;
  transition: all 0.2s ease;
  overflow-x: auto;
}

.sa-math-live-preview .sa-math-placeholder {
  font-size: 0.88rem;
  opacity: 0.65;
  font-style: italic;
}

:root:not([data-theme="dark"]) .sa-math-live-preview {
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  color: #0f172a;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.02);
}

[data-theme="dark"] .sa-math-live-preview {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #f8fafc;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* ─── Result View & Decision 764 Breakdown (Dual-Theme Harmony) ─── */
:root:not([data-theme="dark"]) .result-card {
  background: #ffffff !important;
  border: 1.5px solid rgba(226, 232, 240, 0.9) !important;
  color: #0f172a !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06) !important;
}

[data-theme="dark"] .result-card {
  background: linear-gradient(135deg, rgba(26, 32, 53, 0.9) 0%, rgba(15, 23, 42, 0.96) 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  color: #f8fafc !important;
  box-shadow: 0 16px 40px -10px rgba(0, 0, 0, 0.7) !important;
}

:root:not([data-theme="dark"]) .result-title {
  color: #0f172a !important;
}

[data-theme="dark"] .result-title {
  color: #f8fafc !important;
}

:root:not([data-theme="dark"]) .result-message {
  color: #475569 !important;
}

[data-theme="dark"] .result-message {
  color: #94a3b8 !important;
}

:root:not([data-theme="dark"]) .score-value {
  color: #0f172a !important;
}

[data-theme="dark"] .score-value {
  color: #f8fafc !important;
}

:root:not([data-theme="dark"]) .result-stats .stat {
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
}

[data-theme="dark"] .result-stats .stat {
  background: rgba(15, 23, 42, 0.7) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
}

:root:not([data-theme="dark"]) .stat-label {
  color: #64748b !important;
}

[data-theme="dark"] .stat-label {
  color: #94a3b8 !important;
}

.decision-764-breakdown {
  margin: 28px 0 !important;
  border-radius: 18px !important;
  padding: 22px 24px !important;
  text-align: left !important;
}

:root:not([data-theme="dark"]) .decision-764-breakdown {
  background: #f8fafc !important;
  border: 1.5px solid rgba(226, 232, 240, 0.9) !important;
}

[data-theme="dark"] .decision-764-breakdown {
  background: rgba(15, 23, 42, 0.65) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.breakdown-tag {
  font-size: 0.72rem !important;
  font-weight: 700 !important;
  color: #d97706 !important;
  background: rgba(245, 158, 11, 0.12) !important;
  border: 1px solid rgba(245, 158, 11, 0.3) !important;
  padding: 3px 9px !important;
  border-radius: var(--radius-pill) !important;
}

[data-theme="dark"] .breakdown-tag {
  color: #fbbf24 !important;
}

.breakdown-title {
  font-size: 1.05rem !important;
  font-weight: 700 !important;
  margin: 8px 0 16px 0 !important;
}

:root:not([data-theme="dark"]) .breakdown-title {
  color: #0f172a !important;
}

[data-theme="dark"] .breakdown-title {
  color: #f8fafc !important;
}

.breakdown-grid {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 14px !important;
}

@media (max-width: 680px) {
  .breakdown-grid {
    grid-template-columns: 1fr !important;
  }
}

.breakdown-item {
  border-radius: 12px !important;
  padding: 14px !important;
}

:root:not([data-theme="dark"]) .breakdown-item {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02) !important;
}

[data-theme="dark"] .breakdown-item {
  background: rgba(255, 255, 255, 0.035) !important;
  border: 1px solid rgba(255, 255, 255, 0.06) !important;
}

.bd-part {
  font-size: 0.72rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.06em !important;
  margin-bottom: 4px !important;
}

.breakdown-item.p1 .bd-part { color: #059669 !important; }
[data-theme="dark"] .breakdown-item.p1 .bd-part { color: #34d399 !important; }

.breakdown-item.p2 .bd-part { color: #6d28d9 !important; }
[data-theme="dark"] .breakdown-item.p2 .bd-part { color: #818cf8 !important; }

.breakdown-item.p3 .bd-part { color: #d97706 !important; }
[data-theme="dark"] .breakdown-item.p3 .bd-part { color: #fbbf24 !important; }

.bd-name {
  font-size: 0.92rem !important;
  font-weight: 700 !important;
  margin-bottom: 4px !important;
}

:root:not([data-theme="dark"]) .bd-name {
  color: #0f172a !important;
}

[data-theme="dark"] .bd-name {
  color: #f8fafc !important;
}

.bd-desc {
  font-size: 0.76rem !important;
  line-height: 1.4 !important;
  margin-bottom: 8px !important;
}

:root:not([data-theme="dark"]) .bd-desc {
  color: #475569 !important;
}

[data-theme="dark"] .bd-desc {
  color: #94a3b8 !important;
}

.bd-scale {
  font-size: 0.76rem !important;
  font-weight: 700 !important;
  padding: 3px 8px !important;
  border-radius: 5px !important;
  display: inline-block !important;
}

:root:not([data-theme="dark"]) .bd-scale {
  background: #f1f5f9 !important;
  color: #334155 !important;
}

[data-theme="dark"] .bd-scale {
  background: rgba(255, 255, 255, 0.06) !important;
  color: #cbd5e1 !important;
}

.btn-share-card {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(5, 150, 105, 0.25)) !important;
  color: #059669 !important;
  border: 1px solid rgba(16, 185, 129, 0.35) !important;
  border-radius: 12px !important;
  padding: 12px 22px !important;
  font-size: 0.92rem !important;
  font-weight: 700 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  margin: 18px 0 !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
}

[data-theme="dark"] .btn-share-card {
  color: #34d399 !important;
}

.btn-share-card:hover {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.25), rgba(5, 150, 105, 0.4)) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.3) !important;
}

/* ─── Flashcard Engine (No Cut-off Text & Dual-Theme) ─── */
.fc-card {
  min-height: 420px !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  position: relative !important;
  width: 100% !important;
  cursor: pointer !important;
  border-radius: 20px !important;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.fc-front, .fc-back {
  min-height: 420px !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  padding: 32px 28px !important;
  box-sizing: border-box !important;
}

.fc-hint {
  margin-top: auto !important;
  padding-top: 18px !important;
  font-size: 0.9rem !important;
  text-align: center !important;
  color: var(--text-dim, #64748b) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
}

:root:not([data-theme="dark"]) .fc-card {
  background: #ffffff !important;
  border: 1.5px solid rgba(226, 232, 240, 0.9) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06) !important;
}

[data-theme="dark"] .fc-card {
  background: rgba(18, 24, 38, 0.85) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  color: #f8fafc !important;
  box-shadow: 0 16px 40px -10px rgba(0, 0, 0, 0.6) !important;
}

@media (max-width: 600px) {
  .fc-card, .fc-front, .fc-back {
    min-height: 380px !important;
    padding: 24px 20px !important;
  }
}

/* ─── Study & Practice Mode Cards (Dual-Theme) ─── */
:root:not([data-theme="dark"]) .study-card,
:root:not([data-theme="dark"]) .practice-card {
  background: #ffffff !important;
  border: 1.5px solid rgba(226, 232, 240, 0.9) !important;
  color: #0f172a !important;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05) !important;
}

[data-theme="dark"] .study-card,
[data-theme="dark"] .practice-card {
  background: rgba(18, 24, 38, 0.8) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  color: #f8fafc !important;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.4) !important;
}

[data-theme="dark"] .study-question,
[data-theme="dark"] .practice-question {
  color: #f8fafc !important;
}

[data-theme="dark"] .study-option,
[data-theme="dark"] .practice-option {
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  color: #f8fafc !important;
}

/* ─── Dashboard Hero & Subject Cards Dual-Theme ─── */
:root:not([data-theme="dark"]) .dashboard-hero-card,
body:not([data-theme="dark"]) .dashboard-hero-card {
  background: #ffffff !important;
  border: 1.5px solid rgba(226, 232, 240, 0.9) !important;
  box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.05), 0 0 0 1px rgba(245, 158, 11, 0.08) !important;
}

:root:not([data-theme="dark"]) .hero-title,
body:not([data-theme="dark"]) .hero-title {
  color: #0f172a !important;
}

:root:not([data-theme="dark"]) .hero-sub,
body:not([data-theme="dark"]) .hero-sub {
  color: #475569 !important;
}

:root:not([data-theme="dark"]) .hero-stat-widget,
body:not([data-theme="dark"]) .hero-stat-widget {
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
}

:root:not([data-theme="dark"]) .widget-val,
body:not([data-theme="dark"]) .widget-val {
  color: #0f172a !important;
}

:root:not([data-theme="dark"]) .widget-lbl,
body:not([data-theme="dark"]) .widget-lbl {
  color: #64748b !important;
}

:root:not([data-theme="dark"]) .widget-sub-title,
body:not([data-theme="dark"]) .widget-sub-title {
  color: #475569 !important;
}

:root:not([data-theme="dark"]) .widget-divider,
body:not([data-theme="dark"]) .widget-divider {
  background: #e2e8f0 !important;
}

:root:not([data-theme="dark"]) .hero-actions .btn-glass,
body:not([data-theme="dark"]) .hero-actions .btn-glass {
  background: #f1f5f9 !important;
  border: 1.5px solid #cbd5e1 !important;
  color: #334155 !important;
}

:root:not([data-theme="dark"]) .hero-actions .btn-glass:hover,
body:not([data-theme="dark"]) .hero-actions .btn-glass:hover {
  background: #e2e8f0 !important;
  border-color: #94a3b8 !important;
  color: #0f172a !important;
}

:root:not([data-theme="dark"]) .section-title,
body:not([data-theme="dark"]) .section-title {
  color: #0f172a !important;
}

:root:not([data-theme="dark"]) .section-hint,
body:not([data-theme="dark"]) .section-hint {
  color: #475569 !important;
}

:root:not([data-theme="dark"]) .section-header-link,
body:not([data-theme="dark"]) .section-header-link {
  color: #6d28d9 !important;
}

:root:not([data-theme="dark"]) .section-header-link:hover,
body:not([data-theme="dark"]) .section-header-link:hover {
  background: rgba(109, 40, 217, 0.08) !important;
  color: #5b21b6 !important;
}

:root:not([data-theme="dark"]) .dash-subject-card,
body:not([data-theme="dark"]) .dash-subject-card {
  background: #ffffff !important;
  border: 1.5px solid rgba(226, 232, 240, 0.9) !important;
  box-shadow: 0 4px 16px -2px rgba(0, 0, 0, 0.05) !important;
}

:root:not([data-theme="dark"]) .dash-sub-name,
body:not([data-theme="dark"]) .dash-sub-name {
  color: #0f172a !important;
}

:root:not([data-theme="dark"]) .dash-sub-desc,
body:not([data-theme="dark"]) .dash-sub-desc {
  color: #475569 !important;
}

:root:not([data-theme="dark"]) .dash-sub-tag,
body:not([data-theme="dark"]) .dash-sub-tag {
  background: #f1f5f9 !important;
  border: 1px solid #e2e8f0 !important;
  color: #475569 !important;
}

:root:not([data-theme="dark"]) .dash-sub-footer,
body:not([data-theme="dark"]) .dash-sub-footer {
  border-top: 1px solid #f1f5f9 !important;
}

:root:not([data-theme="dark"]) .dash-sub-count,
body:not([data-theme="dark"]) .dash-sub-count {
  color: #64748b !important;
}

:root:not([data-theme="dark"]) .dash-sub-cta,
body:not([data-theme="dark"]) .dash-sub-cta {
  color: #6d28d9 !important;
}

:root:not([data-theme="dark"]) .dash-subject-card:hover .dash-sub-cta,
body:not([data-theme="dark"]) .dash-subject-card:hover .dash-sub-cta {
  color: #5b21b6 !important;
}

:root:not([data-theme="dark"]) .metric-card,
body:not([data-theme="dark"]) .metric-card {
  background: #ffffff !important;
  border: 1.5px solid rgba(226, 232, 240, 0.9) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04) !important;
}

:root:not([data-theme="dark"]) .metric-value,
body:not([data-theme="dark"]) .metric-value {
  color: #0f172a !important;
}

:root:not([data-theme="dark"]) .metric-label,
body:not([data-theme="dark"]) .metric-label {
  color: #475569 !important;
}

:root:not([data-theme="dark"]) .metric-sub-hint,
body:not([data-theme="dark"]) .metric-sub-hint {
  color: #64748b !important;
}

:root:not([data-theme="dark"]) .history-item-card,
body:not([data-theme="dark"]) .history-item-card {
  background: #ffffff !important;
  border: 1.5px solid rgba(226, 232, 240, 0.9) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04) !important;
}

:root:not([data-theme="dark"]) .history-item-card:hover,
body:not([data-theme="dark"]) .history-item-card:hover {
  background: #f8fafc !important;
  border-color: #cbd5e1 !important;
}

:root:not([data-theme="dark"]) .hist-title,
body:not([data-theme="dark"]) .hist-title {
  color: #0f172a !important;
}

:root:not([data-theme="dark"]) .hist-meta,
body:not([data-theme="dark"]) .hist-meta {
  color: #64748b !important;
}

:root:not([data-theme="dark"]) .hist-score-val,
body:not([data-theme="dark"]) .hist-score-val {
  color: #0f172a !important;
}

/* Dark Mode Dashboard Overrides (Obsidian Glass) */
[data-theme="dark"] .dashboard-hero-card {
  background: linear-gradient(135deg, rgba(26, 32, 53, 0.85) 0%, rgba(15, 23, 42, 0.92) 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  box-shadow: 0 16px 40px -10px rgba(0, 0, 0, 0.5) !important;
}

[data-theme="dark"] .hero-title {
  color: #f8fafc !important;
}

[data-theme="dark"] .hero-sub {
  color: #cbd5e1 !important;
}

[data-theme="dark"] .hero-stat-widget {
  background: rgba(15, 23, 42, 0.65) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
}

[data-theme="dark"] .widget-val {
  color: #f8fafc !important;
}

[data-theme="dark"] .widget-lbl {
  color: #94a3b8 !important;
}

[data-theme="dark"] .widget-sub-title {
  color: #94a3b8 !important;
}

[data-theme="dark"] .widget-divider {
  background: rgba(255, 255, 255, 0.06) !important;
}

[data-theme="dark"] .hero-actions .btn-glass {
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  color: #e2e8f0 !important;
}

[data-theme="dark"] .hero-actions .btn-glass:hover {
  background: rgba(255, 255, 255, 0.1) !important;
  border-color: rgba(255, 255, 255, 0.25) !important;
  color: #ffffff !important;
}

[data-theme="dark"] .dash-subject-card {
  background: rgba(18, 24, 38, 0.85) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  color: #f8fafc !important;
}

[data-theme="dark"] .dash-sub-name {
  color: #f8fafc !important;
}

[data-theme="dark"] .dash-sub-desc {
  color: #94a3b8 !important;
}

[data-theme="dark"] .dash-sub-tag {
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  color: #cbd5e1 !important;
}

[data-theme="dark"] .dash-sub-count {
  color: #64748b !important;
}

[data-theme="dark"] .dash-sub-cta {
  color: #818cf8 !important;
}

[data-theme="dark"] .dash-subject-card:hover .dash-sub-cta {
  color: #a5b4fc !important;
}

[data-theme="dark"] .dash-sub-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.06) !important;
}

[data-theme="dark"] .metric-card {
  background: rgba(18, 24, 38, 0.75) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  color: #f8fafc !important;
}

[data-theme="dark"] .metric-value {
  color: #f8fafc !important;
}

[data-theme="dark"] .metric-label {
  color: #cbd5e1 !important;
}

[data-theme="dark"] .metric-sub-hint {
  color: #64748b !important;
}

[data-theme="dark"] .history-item-card {
  background: rgba(18, 24, 38, 0.65) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  color: #f8fafc !important;
}

[data-theme="dark"] .history-item-card:hover {
  background: rgba(30, 41, 59, 0.75) !important;
  border-color: rgba(99, 102, 241, 0.3) !important;
}

[data-theme="dark"] .hist-title {
  color: #f8fafc !important;
}

[data-theme="dark"] .hist-meta {
  color: #94a3b8 !important;
}

[data-theme="dark"] .hist-score-val {
  color: #f8fafc !important;
}

[data-theme="dark"] .section-title {
  color: #f8fafc !important;
}

[data-theme="dark"] .section-hint {
  color: #94a3b8 !important;
}

[data-theme="dark"] .section-header-link {
  color: #818cf8 !important;
}


/* ═══════════════════════════════════════════════════════════════════════════
   PEDAGOGICAL SOLUTION ACCORDION (STEP-BY-STEP, METHOD & PITFALLS)
   Smart Neo-EdTech & Cyber-Scholastic Signature Dual-Theme Styling
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Light Mode Base ── */
.solution-accordion,
.pedagogical-solution {
  margin-top: 1.25rem;
  border-radius: 14px;
  border: 1px solid rgba(124, 58, 237, 0.18);
  background: #ffffff;
  box-shadow: 0 4px 18px -2px rgba(124, 58, 237, 0.06), 0 1px 3px rgba(0, 0, 0, 0.04);
  overflow: hidden;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.solution-accordion[open] {
  border-color: rgba(79, 70, 229, 0.25);
  box-shadow: 0 6px 24px -4px rgba(79, 70, 229, 0.08), 0 2px 6px rgba(0, 0, 0, 0.04);
}

.solution-summary {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 12px 18px !important;
  background: #f8fafc !important;
  border-bottom: 1px solid transparent;
  cursor: pointer;
  user-select: none;
  font-weight: 600;
  font-size: 0.95rem;
  color: #1e1b4b;
  list-style: none !important;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.solution-summary::-webkit-details-marker {
  display: none !important;
}

.solution-summary:hover {
  background: #f1f5f9 !important;
}

.solution-summary:focus-visible {
  outline: 2px solid var(--athenaeum-violet, #4f46e5);
  outline-offset: -2px;
}

.solution-accordion[open] > .solution-summary {
  border-bottom-color: rgba(79, 70, 229, 0.12);
}

.solution-summary-title {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #1e1b4b;
  font-family: var(--font-sans, system-ui, -apple-system, sans-serif);
}

.solution-summary-title svg {
  color: #4f46e5;
  flex-shrink: 0;
}

.solution-toggle-indicator {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 500;
  color: #4338ca;
}

.solution-accordion .chevron-icon {
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  color: #4f46e5;
}

.solution-accordion[open] .chevron-icon {
  transform: rotate(180deg);
}

.solution-details-content {
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.solution-section-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  font-weight: 700;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.025em;
}

/* 1. Core Method (Phương pháp giải / Kiến thức trọng tâm) - Clear border, Indigo/Violet accents */
.solution-method {
  padding: 14px 16px;
  background: rgba(99, 102, 241, 0.04);
  border: 1px solid rgba(99, 102, 241, 0.18);
  border-left: 4px solid #6366f1;
  border-radius: 10px;
}

.solution-method .solution-section-header {
  color: #4338ca;
}

.solution-method .solution-section-header svg {
  color: #6366f1;
}

.solution-method-text {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: #1e293b;
}

/* 2. Step-by-Step breakdown - Emerald/Indigo accents */
.solution-steps {
  display: flex;
  flex-direction: column;
}

.solution-steps .solution-section-header {
  color: #065f46;
}

.solution-steps .solution-section-header svg {
  color: #059669;
}

.solution-steps-list {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.solution-step-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  background: rgba(16, 185, 129, 0.04);
  border: 1px solid rgba(16, 185, 129, 0.18);
  border-left: 3px solid #10b981;
  border-radius: 10px;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.solution-step-item:hover {
  transform: translateX(2px);
  border-color: rgba(16, 185, 129, 0.35);
}

.solution-step-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  min-width: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  box-shadow: 0 2px 6px rgba(16, 185, 129, 0.28);
  flex-shrink: 0;
  margin-top: 1px;
}

.solution-step-body {
  flex: 1;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: #1e293b;
}

/* 3. Common Pitfalls (Lưu ý bẫy đề thi) - Amber/Rose accents */
.solution-pitfall,
.pitfall-alert {
  padding: 14px 16px;
  background: rgba(245, 158, 11, 0.06);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-left: 4px solid #f59e0b;
  border-radius: 10px;
}

.solution-pitfall .solution-section-header,
.pitfall-alert .solution-section-header {
  color: #b45309;
}

.solution-pitfall .solution-section-header svg,
.pitfall-alert .solution-section-header svg {
  color: #d97706;
}

.solution-pitfall-text {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: #78350f;
  font-weight: 500;
}


/* ═══════════════════════════════════════════════════════════════════════════
   DARK MODE — OBSIDIAN GLASS, GLOWING STEP BADGES & AMBER GLASS
   ═══════════════════════════════════════════════════════════════════════════ */

[data-theme="dark"] .solution-accordion,
[data-theme="dark"] .pedagogical-solution {
  background: rgba(15, 23, 42, 0.75) !important;
  backdrop-filter: blur(16px) saturate(1.8) !important;
  -webkit-backdrop-filter: blur(16px) saturate(1.8) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.45) !important;
}

[data-theme="dark"] .solution-accordion[open] {
  border-color: rgba(124, 58, 237, 0.4) !important;
  box-shadow: 0 12px 36px 0 rgba(0, 0, 0, 0.6), 0 0 16px rgba(124, 58, 237, 0.2) !important;
}

[data-theme="dark"] .solution-summary {
  background: rgba(30, 41, 59, 0.65) !important;
  color: #f1f5f9 !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

[data-theme="dark"] .solution-summary:hover {
  background: rgba(51, 65, 85, 0.75) !important;
}

[data-theme="dark"] .solution-summary-title {
  color: #f8fafc !important;
}

[data-theme="dark"] .solution-summary-title svg {
  color: #a78bfa !important;
}

[data-theme="dark"] .solution-toggle-indicator {
  color: #c4b5fd !important;
}

[data-theme="dark"] .solution-accordion .chevron-icon {
  color: #a78bfa !important;
}

[data-theme="dark"] .solution-method {
  background: rgba(99, 102, 241, 0.12) !important;
  border: 1px solid rgba(99, 102, 241, 0.28) !important;
  border-left: 4px solid #818cf8 !important;
}

[data-theme="dark"] .solution-method .solution-section-header {
  color: #a5b4fc !important;
}

[data-theme="dark"] .solution-method .solution-section-header svg {
  color: #818cf8 !important;
}

[data-theme="dark"] .solution-method-text {
  color: #e2e8f0 !important;
}

[data-theme="dark"] .solution-steps .solution-section-header {
  color: #6ee7b7 !important;
}

[data-theme="dark"] .solution-steps .solution-section-header svg {
  color: #34d399 !important;
}

[data-theme="dark"] .solution-step-item {
  background: rgba(16, 185, 129, 0.08) !important;
  border: 1px solid rgba(16, 185, 129, 0.22) !important;
  border-left: 3px solid #34d399 !important;
}

[data-theme="dark"] .solution-step-item:hover {
  background: rgba(16, 185, 129, 0.14) !important;
  border-color: rgba(52, 211, 153, 0.45) !important;
}

/* Glowing step badges in dark mode */
[data-theme="dark"] .solution-step-badge {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
  box-shadow: 0 0 12px rgba(52, 211, 153, 0.6), 0 2px 4px rgba(0, 0, 0, 0.5) !important;
  color: #ffffff !important;
}

[data-theme="dark"] .solution-step-body {
  color: #e2e8f0 !important;
}

/* Amber glass for pitfalls in dark mode */
[data-theme="dark"] .solution-pitfall,
[data-theme="dark"] .pitfall-alert {
  background: rgba(245, 158, 11, 0.12) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  border: 1px solid rgba(245, 158, 11, 0.35) !important;
  border-left: 4px solid #fbbf24 !important;
  box-shadow: 0 4px 20px -2px rgba(245, 158, 11, 0.15) !important;
}

[data-theme="dark"] .solution-pitfall .solution-section-header,
[data-theme="dark"] .pitfall-alert .solution-section-header {
  color: #fcd34d !important;
}

[data-theme="dark"] .solution-pitfall .solution-section-header svg,
[data-theme="dark"] .pitfall-alert .solution-section-header svg {
  color: #fbbf24 !important;
}

[data-theme="dark"] .solution-pitfall-text {
  color: #fef3c7 !important;
}

/* ═══════════════════════════════════════════════════════════════════
   SaaS EdTech Polish — THPT NTMK BÌNH DƯƠNG (100% Free Platform)
   ═══════════════════════════════════════════════════════════════════ */
.hero-free-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(16, 185, 129, 0.12);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 5px 11px;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

[data-theme="dark"] .hero-free-pill {
  color: #34d399;
  background: rgba(16, 185, 129, 0.16);
  border-color: rgba(52, 211, 153, 0.35);
}

.btn-hero-mistakes {
  border-color: rgba(244, 63, 94, 0.4) !important;
  color: #f43f5e !important;
}

.btn-hero-mistakes:hover {
  background: rgba(244, 63, 94, 0.12) !important;
  border-color: #f43f5e !important;
  color: #ffffff !important;
}

/* SaaS Institutional Footer */
.saas-institutional-footer {
  margin-top: 10px;
  padding: 30px 32px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

[data-theme="dark"] .saas-institutional-footer {
  background: rgba(15, 23, 42, 0.75);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.footer-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer-logo-img {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.2);
}

.footer-brand-title {
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  color: var(--text-main);
}

[data-theme="dark"] .footer-brand-title {
  color: #f8fafc;
}

.footer-brand-sub {
  font-size: 0.75rem;
  color: var(--text-dim);
  margin-top: 2px;
}

[data-theme="dark"] .footer-brand-sub {
  color: #94a3b8;
}

.footer-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.25);
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 700;
}

[data-theme="dark"] .footer-status-badge {
  color: #34d399;
  background: rgba(16, 185, 129, 0.14);
}

.footer-divider {
  height: 1px;
  background: var(--border-subtle);
  margin: 18px 0;
}

[data-theme="dark"] .footer-divider {
  background: rgba(255, 255, 255, 0.06);
}

.footer-bottom-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-copyright {
  margin: 0;
  font-size: 0.78rem;
  color: var(--text-dim);
  line-height: 1.5;
  max-width: 650px;
}

[data-theme="dark"] .footer-copyright {
  color: #94a3b8;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.footer-link-btn {
  background: transparent;
  border: none;
  color: var(--brand-primary);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  transition: all 0.15s ease;
}

.footer-link-btn:hover {
  background: var(--brand-primary-soft);
  text-decoration: underline;
}

[data-theme="dark"] .footer-link-btn {
  color: #818cf8;
}

[data-theme="dark"] .footer-link-btn:hover {
  background: rgba(129, 140, 248, 0.12);
}

/* All 6 subjects now uniformly styled with refined monochromatic slate rules above */


/* ═════════════════════════════════════════════════════════════
   MODERN FRIENDLY EDTECH REBUILD (QUIZLET / KHAN ACADEMY STYLE)
   Fresh, Inspiring, High-Focus Academic Blue Palette (#2563eb)
   ═════════════════════════════════════════════════════════════ */

/* ─── Hero Section ─── */
.dashboard-hero-card {
  background: linear-gradient(135deg, #ffffff 0%, #f0f7ff 100%) !important;
  border: 1.5px solid #dbeafe !important;
  border-radius: 20px !important;
  padding: 32px 36px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 28px !important;
  box-shadow: 0 10px 30px -5px rgba(37, 99, 235, 0.08) !important;
  position: relative !important;
  overflow: hidden !important;
}

@media (min-width: 992px) {
  .dashboard-hero-card {
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
  }
}

[data-theme="dark"] .dashboard-hero-card {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4) !important;
}

.hero-main-content {
  flex: 1;
  max-width: 720px;
}

.hero-badge-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.hero-school-badge {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 4px 10px;
  border-radius: 9999px;
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
}

.hero-grade-badge {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 9999px;
  background: #f1f5f9;
  color: #334155;
  border: 1px solid #cbd5e1;
}

.hero-moet-badge {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 9999px;
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
}

.hero-title {
  font-size: 1.85rem !important;
  font-weight: 800 !important;
  color: #0f172a !important;
  letter-spacing: -0.025em !important;
  margin: 0 0 10px 0 !important;
  line-height: 1.25 !important;
}

[data-theme="dark"] .hero-title {
  color: #f8fafc !important;
}

.hero-subtitle {
  font-size: 0.98rem !important;
  color: #475569 !important;
  margin: 0 0 20px 0 !important;
  line-height: 1.55 !important;
}

[data-theme="dark"] .hero-subtitle {
  color: #94a3b8 !important;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-hero-primary {
  background: #2563eb !important;
  color: #ffffff !important;
  font-size: 0.98rem !important;
  font-weight: 700 !important;
  padding: 13px 26px !important;
  border-radius: 14px !important;
  border: 1px solid #1d4ed8 !important;
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.35) !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 10px !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
  cursor: pointer !important;
}

.btn-hero-primary:hover {
  background: #1d4ed8 !important;
  transform: translateY(-2px) scale(1.02) !important;
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.45) !important;
}

.btn-hero-secondary {
  background: #ffffff !important;
  color: #dc2626 !important;
  font-size: 0.92rem !important;
  font-weight: 600 !important;
  padding: 12px 20px !important;
  border-radius: 14px !important;
  border: 1px solid #fecaca !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  box-shadow: 0 2px 8px rgba(220, 38, 38, 0.08) !important;
  transition: all 0.2s ease !important;
  cursor: pointer !important;
}

.btn-hero-secondary:hover {
  background: #fef2f2 !important;
  border-color: #f87171 !important;
  transform: translateY(-2px) !important;
}

/* ─── Hero Student Stats ─── */
.hero-student-stats {
  background: #ffffff;
  border: 1.5px solid #dbeafe;
  border-radius: 18px;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.06);
  flex-shrink: 0;
}

[data-theme="dark"] .hero-student-stats {
  background: #111827;
  border-color: rgba(255, 255, 255, 0.1);
}

.student-stat-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.stat-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stat-icon-wrap.streak {
  background: #fff7ed;
  color: #ea580c;
  border: 1px solid #ffedd5;
}

.stat-icon-wrap.exams {
  background: #eff6ff;
  color: #2563eb;
  border: 1px solid #dbeafe;
}

.stat-icon-wrap.accuracy {
  background: #ecfdf5;
  color: #059669;
  border: 1px solid #d1fae5;
}

.stat-info {
  display: flex;
  flex-direction: column;
}

.stat-num {
  font-size: 1.25rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.2;
}

[data-theme="dark"] .stat-num {
  color: #f8fafc;
}

.stat-label {
  font-size: 0.75rem;
  color: #64748b;
  font-weight: 600;
}

.stat-divider {
  width: 1px;
  height: 36px;
  background: #e2e8f0;
}

[data-theme="dark"] .stat-divider {
  background: rgba(255, 255, 255, 0.1);
}

/* ─── 6 Subject Cards (Modern Friendly EdTech) ─── */
.dashboard-subjects-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)) !important;
  gap: 20px !important;
  margin-top: 16px !important;
}

.dash-subject-card {
  background: #ffffff !important;
  border: 1.5px solid #e2e8f0 !important;
  border-radius: 18px !important;
  padding: 24px !important;
  display: flex !important;
  flex-direction: column !important;
  cursor: pointer !important;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1) !important;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04) !important;
  position: relative !important;
}

[data-theme="dark"] .dash-subject-card {
  background: #1e293b !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
}

.dash-subject-card:hover {
  transform: translateY(-4px) !important;
  box-shadow: 0 12px 28px -4px rgba(15, 23, 42, 0.08) !important;
}

.dash-sub-top {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  margin-bottom: 16px !important;
}

.dash-sub-icon {
  width: 52px !important;
  height: 52px !important;
  border-radius: 14px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: transform 0.2s ease !important;
}

.dash-subject-card:hover .dash-sub-icon {
  transform: scale(1.08) !important;
}

.dash-sub-name {
  font-size: 1.25rem !important;
  font-weight: 800 !important;
  color: #0f172a !important;
  margin: 0 0 8px 0 !important;
  letter-spacing: -0.02em !important;
}

[data-theme="dark"] .dash-sub-name {
  color: #f8fafc !important;
}

.dash-sub-desc {
  font-size: 0.88rem !important;
  color: #475569 !important;
  line-height: 1.5 !important;
  margin: 0 0 16px 0 !important;
  min-height: 40px !important;
}

[data-theme="dark"] .dash-sub-desc {
  color: #94a3b8 !important;
}

.dash-sub-meta {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 6px !important;
  margin-bottom: 16px !important;
}

.dash-sub-tag {
  font-size: 0.75rem !important;
  font-weight: 600 !important;
  padding: 3px 8px !important;
  border-radius: 6px !important;
  background: #f1f5f9 !important;
  color: #475569 !important;
  border: 1px solid #e2e8f0 !important;
}

[data-theme="dark"] .dash-sub-tag {
  background: rgba(255, 255, 255, 0.05) !important;
  color: #cbd5e1 !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
}

.dash-sub-footer {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding-top: 14px !important;
  border-top: 1px solid #f1f5f9 !important;
  margin-top: auto !important;
}

[data-theme="dark"] .dash-sub-footer {
  border-top-color: rgba(255, 255, 255, 0.08) !important;
}

.dash-sub-count {
  font-size: 0.78rem !important;
  color: #64748b !important;
  font-weight: 500 !important;
}

.dash-sub-cta {
  font-size: 0.88rem !important;
  font-weight: 700 !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
  transition: transform 0.2s ease !important;
}

.dash-subject-card:hover .dash-sub-cta {
  transform: translateX(3px) !important;
}

/* Tasteful Subject Pastel Accents */
/* TOÁN HỌC */
.dash-sub-toan:hover { border-color: #3b82f6 !important; }
.dash-sub-icon.toan { background: #eff6ff !important; color: #2563eb !important; border: 1px solid #bfdbfe !important; }
.dash-sub-pill.toan { background: #eff6ff !important; color: #1d4ed8 !important; border: 1px solid #dbeafe !important; font-size: 0.75rem !important; font-weight: 700 !important; padding: 4px 9px !important; border-radius: 9999px !important; }
.dash-sub-toan .dash-sub-cta { color: #2563eb !important; }

/* VẬT LÍ */
.dash-sub-vatli:hover { border-color: #6366f1 !important; }
.dash-sub-icon.vatli { background: #eef2ff !important; color: #4f46e5 !important; border: 1px solid #c7d2fe !important; }
.dash-sub-pill.vatli { background: #eef2ff !important; color: #4338ca !important; border: 1px solid #e0e7ff !important; font-size: 0.75rem !important; font-weight: 700 !important; padding: 4px 9px !important; border-radius: 9999px !important; }
.dash-sub-vatli .dash-sub-cta { color: #4f46e5 !important; }

/* HÓA HỌC */
.dash-sub-hoahoc:hover { border-color: #f59e0b !important; }
.dash-sub-icon.hoahoc { background: #fffbeb !important; color: #d97706 !important; border: 1px solid #fde68a !important; }
.dash-sub-pill.hoahoc { background: #fffbeb !important; color: #b45309 !important; border: 1px solid #fef3c7 !important; font-size: 0.75rem !important; font-weight: 700 !important; padding: 4px 9px !important; border-radius: 9999px !important; }
.dash-sub-hoahoc .dash-sub-cta { color: #d97706 !important; }

/* SINH HỌC */
.dash-sub-sinhhoc:hover { border-color: #10b981 !important; }
.dash-sub-icon.sinhhoc { background: #ecfdf5 !important; color: #059669 !important; border: 1px solid #a7f3d0 !important; }
.dash-sub-pill.sinhhoc { background: #ecfdf5 !important; color: #047857 !important; border: 1px solid #d1fae5 !important; font-size: 0.75rem !important; font-weight: 700 !important; padding: 4px 9px !important; border-radius: 9999px !important; }
.dash-sub-sinhhoc .dash-sub-cta { color: #059669 !important; }

/* LỊCH SỬ */
.dash-sub-lichsu:hover { border-color: #ef4444 !important; }
.dash-sub-icon.lichsu { background: #fef2f2 !important; color: #dc2626 !important; border: 1px solid #fecaca !important; }
.dash-sub-pill.lichsu { background: #fef2f2 !important; color: #b91c1c !important; border: 1px solid #fee2e2 !important; font-size: 0.75rem !important; font-weight: 700 !important; padding: 4px 9px !important; border-radius: 9999px !important; }
.dash-sub-lichsu .dash-sub-cta { color: #dc2626 !important; }

/* TIẾNG ANH */
.dash-sub-tienganh:hover { border-color: #06b6d4 !important; }
.dash-sub-icon.tienganh { background: #f0fdfa !important; color: #0891b2 !important; border: 1px solid #a5f3fc !important; }
.dash-sub-pill.tienganh { background: #f0fdfa !important; color: #0e7490 !important; border: 1px solid #cffafe !important; font-size: 0.75rem !important; font-weight: 700 !important; padding: 4px 9px !important; border-radius: 9999px !important; }
.dash-sub-tienganh .dash-sub-cta { color: #0891b2 !important; }

/* ─── Mode Cards & Start Buttons ─── */
.start-btn {
  background: #2563eb !important;
  color: #ffffff !important;
  font-size: 1rem !important;
  font-weight: 700 !important;
  padding: 13px 26px !important;
  border-radius: 14px !important;
  border: 1px solid #1d4ed8 !important;
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.35) !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.start-btn:hover:not(:disabled) {
  background: #1d4ed8 !important;
  transform: translateY(-2px) scale(1.02) !important;
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.45) !important;
}

:root:not([data-theme="dark"]) .mode-card.selected {
  background: #eff6ff !important;
  border-color: #2563eb !important;
  box-shadow: 0 0 0 1px #2563eb, 0 4px 16px rgba(37, 99, 235, 0.12) !important;
  transform: translateY(-2px) !important;
}

:root:not([data-theme="dark"]) .mode-card.selected .mode-icon {
  background: #2563eb !important;
  color: #ffffff !important;
  border-color: #2563eb !important;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25) !important;
}

:root:not([data-theme="dark"]) .option.selected {
  background: #eff6ff !important;
  border-color: #2563eb !important;
  color: #1e3a8a !important;
  box-shadow: 0 0 0 1.5px #2563eb, 0 4px 14px rgba(37, 99, 235, 0.1) !important;
}

:root:not([data-theme="dark"]) .option.selected .option-letter {
  background: #2563eb !important;
  color: #ffffff !important;
  border-color: #2563eb !important;
}


/* ═════════════════════════════════════════════════════════════
   DELIGHTFUL MICRO-INTERACTIONS & MOTION DESIGN ENGINE
   GPU-Accelerated • Tactile • Specular Shimmer • Stagger Entrance
   ═════════════════════════════════════════════════════════════ */

/* ─── 1. Cascading Stagger Entrance ─── */
@keyframes cardEntranceGlide {
  0% {
    opacity: 0;
    transform: translateY(24px) scale(0.96);
  }
  60% {
    opacity: 0.9;
    transform: translateY(-2px) scale(1.005);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.dashboard-subjects-grid .dash-subject-card {
  animation: cardEntranceGlide 0.55s cubic-bezier(0.16, 1, 0.3, 1) both !important;
  animation-delay: calc(var(--card-index, 0) * 65ms) !important;
}

.smart-tools-grid .smart-tool-card {
  animation: cardEntranceGlide 0.55s cubic-bezier(0.16, 1, 0.3, 1) both !important;
  animation-delay: calc(180ms + var(--tool-index, 0) * 65ms) !important;
}

/* ─── 2. Specular Glass Shimmer Sweep on Subject Cards ─── */
.dash-subject-card {
  position: relative !important;
  overflow: hidden !important;
  transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.28s ease, border-color 0.2s ease !important;
  will-change: transform, box-shadow !important;
}

.dash-subject-card::before {
  content: '' !important;
  position: absolute !important;
  top: -60% !important;
  left: -60% !important;
  width: 220% !important;
  height: 220% !important;
  background: linear-gradient(
    115deg,
    transparent 25%,
    rgba(255, 255, 255, 0.5) 48%,
    rgba(255, 255, 255, 0.7) 50%,
    rgba(255, 255, 255, 0.5) 52%,
    transparent 75%
  ) !important;
  transform: rotate(25deg) translateY(-120%) !important;
  transition: transform 0.75s cubic-bezier(0.16, 1, 0.3, 1) !important;
  pointer-events: none !important;
  z-index: 2 !important;
}

[data-theme="dark"] .dash-subject-card::before {
  background: linear-gradient(
    115deg,
    transparent 25%,
    rgba(255, 255, 255, 0.08) 50%,
    transparent 75%
  ) !important;
}

.dash-subject-card:hover::before {
  transform: rotate(25deg) translateY(120%) !important;
}

.dash-subject-card:not([data-tilt-active]):hover {
  transform: translateY(-6px) scale(1.018);
}

.dash-subject-card:active {
  transform: translateY(-2px) scale(0.985) !important;
  transition: transform 0.08s ease !important;
}

/* ─── 3. Aurora Ambient Ethereal Glow in Hero ─── */
@keyframes heroAuroraShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.dashboard-hero-card {
  background: linear-gradient(125deg, #ffffff 0%, #f0f7ff 35%, #e0f2fe 70%, #eff6ff 100%) !important;
  background-size: 250% 250% !important;
  animation: heroAuroraShift 16s ease infinite !important;
  transition: transform 0.3s ease, box-shadow 0.3s ease !important;
}

.dashboard-hero-card:hover {
  box-shadow: 0 16px 36px -8px rgba(37, 99, 235, 0.14) !important;
}

/* ─── 4. Streak Flame Breathing & Pulsing Glow ─── */
@keyframes flameBreath {
  0%, 100% {
    transform: scale(1) rotate(0deg);
    filter: drop-shadow(0 0 2px rgba(234, 88, 12, 0.3));
  }
  50% {
    transform: scale(1.15) rotate(-3deg);
    filter: drop-shadow(0 0 10px rgba(234, 88, 12, 0.7));
  }
}

.stat-icon-wrap.streak svg {
  animation: flameBreath 2.4s ease-in-out infinite !important;
  transform-origin: center bottom !important;
  will-change: transform, filter !important;
}

/* ─── 5. Radar Beacon Pulse for Status Dots ─── */
@keyframes beaconRadar {
  0% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(16, 185, 129, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

.live-dot {
  display: inline-block !important;
  width: 7px !important;
  height: 7px !important;
  border-radius: 50% !important;
  background: #10b981 !important;
  animation: beaconRadar 1.8s infinite !important;
  margin-right: 6px !important;
  vertical-align: middle !important;
}

/* ─── 6. Primary Button Radiant Pulse & Spring Click ─── */
@keyframes btnGlowPulse {
  0%, 100% {
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.35);
  }
  50% {
    box-shadow: 0 6px 24px rgba(37, 99, 235, 0.55), 0 0 14px rgba(59, 130, 246, 0.35);
  }
}

.btn-hero-primary {
  animation: btnGlowPulse 3.2s ease-in-out infinite !important;
  position: relative !important;
  overflow: hidden !important;
}

.btn-hero-primary:hover {
  animation: none !important;
  box-shadow: 0 8px 28px rgba(37, 99, 235, 0.55) !important;
  transform: translateY(-2px) scale(1.025) !important;
}

.btn:active,
.btn-hero-primary:active,
.btn-hero-secondary:active,
.start-btn:active {
  transform: scale(0.96) !important;
  transition: transform 0.08s ease !important;
}

/* ─── 7. Interactive Option Selection Elastic Pop & Ripple ─── */
@keyframes optionPopSpring {
  0% {
    transform: scale(0.97);
  }
  50% {
    transform: scale(1.025);
  }
  100% {
    transform: scale(1);
  }
}

.option.selected {
  animation: optionPopSpring 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}

.option.selected .option-letter {
  transform: scale(1.1) !important;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}

/* ─── 8. Tool Cards Micro-Interactions ─── */
.smart-tool-card {
  transition: transform 0.26s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.26s ease, border-color 0.2s ease !important;
}

.smart-tool-card:not([data-tilt-active]):hover {
  transform: translateY(-5px);
  border-color: #93c5fd !important;
  box-shadow: 0 12px 26px -4px rgba(37, 99, 235, 0.12) !important;
}

.smart-tool-card:hover .tool-icon-wrapper {
  transform: scale(1.12) rotate(-5deg) !important;
}

.tool-icon-wrapper {
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}

.smart-tool-card .tool-action-arrow {
  transition: transform 0.2s ease, color 0.2s ease !important;
}

.smart-tool-card:hover .tool-action-arrow {
  transform: translateX(5px) !important;
  color: #2563eb !important;
}

/* ─── 9. Respect Reduced Motion Preferences ─── */
@media (prefers-reduced-motion: reduce) {
  .dash-subject-card,
  .smart-tool-card,
  .dashboard-hero-card,
  .btn-hero-primary,
  .stat-icon-wrap.streak svg,
  .live-dot,
  .option.selected {
    animation: none !important;
    transition: none !important;
    transform: none !important;
  }
  .dash-subject-card::before {
    display: none !important;
  }
}


/* ═════════════════════════════════════════════════════════════
   CROSS-SCREEN POLISH & HARMONIZATION
   Subjects Explorer • Mode Selector • Quiz Navigator • Flashcards
   ═════════════════════════════════════════════════════════════ */

/* ─── Screen 2: Subjects Explorer Cards ─── */
.subjects-cards-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)) !important;
  gap: 22px !important;
  margin-top: 18px !important;
}

.subject-card-item {
  background: #ffffff !important;
  border: 1.5px solid #e2e8f0 !important;
  border-radius: 18px !important;
  padding: 24px !important;
  display: flex !important;
  flex-direction: column !important;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04) !important;
  position: relative !important;
  overflow: hidden !important;
  transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.28s ease, border-color 0.2s ease !important;
  animation: cardEntranceGlide 0.55s cubic-bezier(0.16, 1, 0.3, 1) both !important;
  animation-delay: calc(var(--card-index, 0) * 65ms) !important;
}

[data-theme="dark"] .subject-card-item {
  background: #1e293b !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
}

.subject-card-item::before {
  content: '' !important;
  position: absolute !important;
  top: -60% !important;
  left: -60% !important;
  width: 220% !important;
  height: 220% !important;
  background: linear-gradient(
    115deg,
    transparent 25%,
    rgba(255, 255, 255, 0.5) 48%,
    rgba(255, 255, 255, 0.7) 50%,
    rgba(255, 255, 255, 0.5) 52%,
    transparent 75%
  ) !important;
  transform: rotate(25deg) translateY(-120%) !important;
  transition: transform 0.75s cubic-bezier(0.16, 1, 0.3, 1) !important;
  pointer-events: none !important;
  z-index: 2 !important;
}

[data-theme="dark"] .subject-card-item::before {
  background: linear-gradient(
    115deg,
    transparent 25%,
    rgba(255, 255, 255, 0.08) 50%,
    transparent 75%
  ) !important;
}

.subject-card-item:hover::before {
  transform: rotate(25deg) translateY(120%) !important;
}

.subject-card-item:not([data-tilt-active]):hover {
  transform: translateY(-6px) scale(1.018);
  border-color: var(--sub-color, #2563eb) !important;
  box-shadow: 0 14px 30px -4px rgba(15, 23, 42, 0.09) !important;
}

.sub-icon-box {
  width: 52px !important;
  height: 52px !important;
  border-radius: 14px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}

.subject-card-item:hover .sub-icon-box {
  transform: scale(1.1) !important;
}

/* ─── Screen 3: Mode Cards & Topic Checklist ─── */
.mode-cards {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)) !important;
  gap: 14px !important;
}

.mode-card {
  border-radius: 16px !important;
  padding: 16px !important;
  border: 1.5px solid #e2e8f0 !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
  cursor: pointer !important;
}

.mode-card:not([data-tilt-active]):hover {
  transform: translateY(-3px) scale(1.015);
  border-color: #2563eb !important;
  box-shadow: 0 8px 20px -4px rgba(37, 99, 235, 0.12) !important;
}

.mode-card:active {
  transform: scale(0.96) !important;
}

.mode-card .mode-icon {
  width: 44px !important;
  height: 44px !important;
  border-radius: 12px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin-bottom: 10px !important;
  transition: transform 0.2s ease !important;
}

.mode-card:hover .mode-icon {
  transform: scale(1.08) !important;
}

.topic-card {
  border-radius: 14px !important;
  border: 1px solid #e2e8f0 !important;
  transition: all 0.2s ease !important;
  padding: 14px 18px !important;
}

.topic-card:hover {
  border-color: #93c5fd !important;
  background: #f8fafc !important;
  transform: translateX(3px) !important;
}

.topic-card.selected {
  border-color: #2563eb !important;
  background: #eff6ff !important;
}

/* ─── Screen 4: Quiz Room Navigation Dots & Options ─── */
.q-dot {
  width: 38px !important;
  height: 38px !important;
  border-radius: 10px !important;
  font-weight: 700 !important;
  font-size: 0.82rem !important;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1) !important;
  cursor: pointer !important;
}

.q-dot:hover {
  transform: scale(1.1) !important;
  border-color: #2563eb !important;
  color: #2563eb !important;
}

.q-dot.current {
  background: #2563eb !important;
  color: #ffffff !important;
  border-color: #1d4ed8 !important;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.25) !important;
  transform: scale(1.08) !important;
}

.q-dot.answered {
  background: #eff6ff !important;
  color: #1d4ed8 !important;
  border-color: #bfdbfe !important;
}

.question-card {
  border-radius: 18px !important;
  border: 1.5px solid #e2e8f0 !important;
  box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.05) !important;
}

.option {
  border-radius: 14px !important;
  border: 1.5px solid #e2e8f0 !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.option:hover {
  transform: translateX(4px) !important;
  border-color: #93c5fd !important;
  background: #f8fafc !important;
}

.option.selected {
  border-color: #2563eb !important;
  background: #eff6ff !important;
  color: #1e3a8a !important;
  box-shadow: 0 0 0 1.5px #2563eb, 0 4px 16px rgba(37, 99, 235, 0.12) !important;
}

/* ─── Screen 7: Flashcard 3D Perspective Flip ─── */
.flashcard-stage {
  perspective: 1200px !important;
}

.fc-card {
  transition: transform 0.55s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease !important;
  transform-style: preserve-3d !important;
  cursor: pointer !important;
  border-radius: 20px !important;
  box-shadow: 0 10px 30px -5px rgba(15, 23, 42, 0.08) !important;
}

.fc-card:hover {
  box-shadow: 0 16px 36px -6px rgba(37, 99, 235, 0.16) !important;
}

.fc-card.flipped {
  transform: rotateY(180deg) !important;
}

/* ─── True/False Tactile Buttons ─── */
.tf-btn {
  transition: all 0.18s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
  border-radius: 10px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
}

.tf-btn:active {
  transform: scale(0.93) !important;
}

.tf-btn.selected-true {
  background: #10b981 !important;
  color: #ffffff !important;
  border-color: #059669 !important;
  box-shadow: 0 2px 10px rgba(16, 185, 129, 0.35) !important;
}

.tf-btn.selected-false {
  background: #ef4444 !important;
  color: #ffffff !important;
  border-color: #dc2626 !important;
  box-shadow: 0 2px 10px rgba(239, 68, 68, 0.35) !important;
}

/* ═══════════════════════════════════════════════════════════
   8. 60 FPS 3D PARALLAX TILT & SPECULAR GLARE REFLECTION
   ═══════════════════════════════════════════════════════════ */
.hero-3d-bg-canvas {
  position: absolute !important;
  top: 0 !important;
  right: 0 !important;
  width: 100% !important;
  height: 100% !important;
  pointer-events: none !important;
  z-index: 0 !important;
  opacity: 0.9 !important;
}

.hero-main-content,
.hero-student-stats {
  position: relative !important;
  z-index: 1 !important;
}

.card-3d-glare {
  position: absolute !important;
  inset: 0 !important;
  border-radius: inherit !important;
  pointer-events: none !important;
  z-index: 3 !important;
  opacity: 0;
  transition: opacity 0.25s ease !important;
}

.dash-subject-card,
.subject-card-item,
.smart-tool-card,
.mode-card {
  transform-style: preserve-3d !important;
}

.dash-sub-icon,
.sub-icon-box,
.tool-icon-wrapper,
.mode-icon {
  transform-style: preserve-3d !important;
  transition: transform 0.18s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

@media (prefers-reduced-motion: reduce) {
  .hero-3d-bg-canvas {
    opacity: 0.5 !important;
  }
}

/* ═══════════════════════════════════════════════════════════
   9. CINEMATIC SITE INTRO SPLASH OVERLAY (60 FPS)
   ═══════════════════════════════════════════════════════════ */
.site-intro-overlay {
  position: fixed !important;
  inset: 0 !important;
  z-index: 999999 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: #090d16 !important;
  overflow: hidden !important;
  opacity: 1;
  transform: scale(1);
  transition: opacity 0.45s cubic-bezier(0.16, 1, 0.3, 1), transform 0.45s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.site-intro-overlay.intro-dismissing {
  opacity: 0 !important;
  transform: scale(1.08) !important;
  pointer-events: none !important;
}

.intro-backdrop {
  position: absolute !important;
  inset: 0 !important;
  pointer-events: none !important;
}

.intro-bg-canvas {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  opacity: 0.85 !important;
}

.intro-aurora-glow {
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
  width: 600px !important;
  height: 600px !important;
  border-radius: 50% !important;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.32) 0%, rgba(124, 58, 237, 0.16) 45%, transparent 70%) !important;
  filter: blur(48px) !important;
  animation: introPulseAurora 3.5s ease-in-out infinite alternate !important;
}

.intro-radial-vignette {
  position: absolute !important;
  inset: 0 !important;
  background: radial-gradient(circle at center, transparent 35%, rgba(9, 13, 22, 0.82) 100%) !important;
}

.intro-container {
  position: relative !important;
  z-index: 2 !important;
  width: 100% !important;
  max-width: 680px !important;
  padding: 28px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
}

.intro-header-bar {
  position: absolute !important;
  top: 24px !important;
  right: 24px !important;
}

.intro-skip-btn {
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
  backdrop-filter: blur(14px) !important;
  color: #cbd5e1 !important;
  border-radius: 9999px !important;
  padding: 7px 16px !important;
  font-size: 0.84rem !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.intro-skip-btn:hover {
  background: rgba(255, 255, 255, 0.18) !important;
  border-color: rgba(255, 255, 255, 0.35) !important;
  color: #ffffff !important;
  transform: scale(1.04) !important;
}

.intro-key-pill {
  font-size: 0.7rem !important;
  font-family: 'Space Grotesk', monospace !important;
  background: rgba(0, 0, 0, 0.4) !important;
  padding: 2px 6px !important;
  border-radius: 5px !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  color: #94a3b8 !important;
}

.intro-stage {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 24px !important;
  width: 100% !important;
}

.intro-logo-container {
  position: relative !important;
  width: 120px !important;
  height: 120px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.intro-logo-halo {
  position: absolute !important;
  inset: -12px !important;
  border-radius: 50% !important;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.45) 0%, transparent 70%) !important;
  filter: blur(16px) !important;
  animation: introHaloBreath 2.4s ease-in-out infinite alternate !important;
}

.intro-logo-ring {
  position: absolute !important;
  border-radius: 50% !important;
  pointer-events: none !important;
}

.intro-ring-outer {
  inset: -8px !important;
  border: 1.5px dashed rgba(96, 165, 250, 0.4) !important;
  animation: introSpinRing 16s linear infinite !important;
}

.intro-ring-inner {
  inset: -2px !important;
  border: 1px solid rgba(147, 197, 253, 0.25) !important;
}

.intro-logo-vector {
  position: relative !important;
  z-index: 2 !important;
  filter: drop-shadow(0 0 30px rgba(37, 99, 235, 0.8)) !important;
  animation: introLogoPop 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) both !important;
}

.intro-badge-pill {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  background: rgba(37, 99, 235, 0.16) !important;
  border: 1px solid rgba(96, 165, 250, 0.35) !important;
  border-radius: 9999px !important;
  padding: 5px 16px !important;
  font-size: 0.78rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.05em !important;
  color: #93c5fd !important;
  margin-bottom: 10px !important;
  animation: introFadeInUp 0.6s ease both 0.2s !important;
}

.intro-beacon-dot {
  width: 7px !important;
  height: 7px !important;
  border-radius: 50% !important;
  background: #3b82f6 !important;
  box-shadow: 0 0 8px #60a5fa !important;
  animation: beaconRadar 1.8s infinite !important;
}

.intro-title {
  font-size: 2.3rem !important;
  font-weight: 900 !important;
  letter-spacing: -0.025em !important;
  line-height: 1.18 !important;
  margin: 0 !important;
  color: #ffffff !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 4px !important;
  animation: introFadeInUp 0.6s ease both 0.35s !important;
}

.intro-title-primary {
  color: #ffffff !important;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.5) !important;
}

.intro-title-accent {
  background: linear-gradient(135deg, #60a5fa 0%, #a78bfa 50%, #38bdf8 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
}

.intro-motto {
  font-size: 0.95rem !important;
  color: #94a3b8 !important;
  margin: 8px 0 0 !important;
  max-width: 520px !important;
  line-height: 1.5 !important;
  animation: introFadeInUp 0.6s ease both 0.45s !important;
  transition: all 0.3s ease !important;
}

.intro-status-box {
  width: 100% !important;
  max-width: 460px !important;
  margin-top: 10px !important;
  animation: introFadeInUp 0.6s ease both 0.55s !important;
}

.intro-progress-track {
  width: 100% !important;
  height: 6px !important;
  background: rgba(255, 255, 255, 0.1) !important;
  border-radius: 9999px !important;
  overflow: hidden !important;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.4) !important;
}

.intro-progress-bar {
  height: 100% !important;
  background: linear-gradient(90deg, #2563eb, #60a5fa, #a855f7) !important;
  border-radius: 9999px !important;
  box-shadow: 0 0 14px rgba(96, 165, 250, 0.8) !important;
  transition: width 0.08s linear !important;
}

.intro-meta-row {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  font-size: 0.8rem !important;
  font-weight: 600 !important;
  margin-top: 10px !important;
}

.intro-meta-status {
  color: #94a3b8 !important;
  transition: color 0.25s ease !important;
}

.intro-meta-pct {
  color: #60a5fa !important;
  font-family: 'Space Grotesk', monospace !important;
  font-weight: 700 !important;
}

@keyframes introLogoPop {
  0% { transform: scale(0.6); opacity: 0; filter: blur(8px); }
  100% { transform: scale(1); opacity: 1; filter: blur(0px); }
}

@keyframes introFadeInUp {
  0% { opacity: 0; transform: translateY(14px); }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes introPulseAurora {
  0% { transform: translate(-50%, -50%) scale(0.9); opacity: 0.65; }
  100% { transform: translate(-50%, -50%) scale(1.15); opacity: 0.95; }
}

@keyframes introHaloBreath {
  0% { transform: scale(0.95); opacity: 0.5; }
  100% { transform: scale(1.12); opacity: 0.9; }
}

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



/* ═══════════════════════════════════════════════════════════
   BESPOKE VECTOR ILLUSTRATIONS & 60 FPS GRAPHICS INTEGRATION
   Dashboard Hero, 6 Subject Cards, Empty Mistakes & Trophy
   ═══════════════════════════════════════════════════════════ */

/* 1. Dashboard Hero Illustration */
.hero-illustration-slot {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
  pointer-events: none !important;
  user-select: none !important;
  margin: 8px 0 !important;
}

.hero-student-art-img {
  width: 220px !important;
  height: 160px !important;
  max-width: 100% !important;
  object-fit: contain !important;
  filter: drop-shadow(0 12px 28px rgba(37, 99, 235, 0.16)) !important;
  animation: heroArtFloat 5s ease-in-out infinite !important;
  will-change: transform, filter !important;
}

[data-theme="dark"] .hero-student-art-img {
  filter: drop-shadow(0 12px 32px rgba(6, 182, 212, 0.22)) !important;
}

@keyframes heroArtFloat {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-8px) rotate(1deg);
  }
}

@media (max-width: 991px) {
  .hero-illustration-slot {
    order: 2 !important;
    margin: 12px auto !important;
  }
  .hero-student-art-img {
    width: 180px !important;
    height: 130px !important;
  }
}

/* 2. 6 Subject Cards Vector Artworks */
.dash-sub-icon.dash-sub-art-wrap {
  padding: 0 !important;
  background: transparent !important;
  overflow: hidden !important;
  border-radius: 14px !important;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08) !important;
}

.dash-sub-art-img {
  width: 100% !important;
  height: 100% !important;
  display: block !important;
  object-fit: cover !important;
  border-radius: 14px !important;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), filter 0.3s ease !important;
}

.dash-subject-card:hover .dash-sub-art-img {
  transform: scale(1.08) !important;
  filter: drop-shadow(0 4px 12px rgba(37, 99, 235, 0.25)) !important;
}

/* 3. Explorer Cards Vector Artworks */
.sub-icon-box.explorer-art-box {
  padding: 0 !important;
  overflow: hidden !important;
  border-radius: 14px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06) !important;
}

.explorer-card-art-img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  border-radius: 14px !important;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.subject-card-item:hover .explorer-card-art-img {
  transform: scale(1.1) !important;
}

/* 4. Sổ tay câu sai - Empty State Artwork */
.empty-illustration-box {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin-bottom: 20px !important;
}

.empty-mistakes-art-img {
  width: 160px !important;
  height: 160px !important;
  max-width: 100% !important;
  object-fit: contain !important;
  filter: drop-shadow(0 10px 24px rgba(16, 185, 129, 0.22)) !important;
  animation: emptyMasteryPulse 4s ease-in-out infinite !important;
}

@keyframes emptyMasteryPulse {
  0%, 100% {
    transform: scale(1);
    filter: drop-shadow(0 10px 24px rgba(16, 185, 129, 0.22));
  }
  50% {
    transform: scale(1.04);
    filter: drop-shadow(0 14px 32px rgba(16, 185, 129, 0.35));
  }
}

/* 5. Exam Results Trophy Artwork */
.result-trophy-slot {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 auto 18px auto !important;
}

.result-trophy-art-img {
  width: 128px !important;
  height: 128px !important;
  object-fit: contain !important;
  filter: drop-shadow(0 12px 28px rgba(245, 158, 11, 0.38)) !important;
  animation: trophyEntranceBounce 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) both !important;
}

@keyframes trophyEntranceBounce {
  0% {
    transform: scale(0.3) rotate(-8deg);
    opacity: 0;
  }
  60% {
    transform: scale(1.12) rotate(3deg);
  }
  100% {
    transform: scale(1) rotate(0deg);
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-student-art-img,
  .empty-mistakes-art-img,
  .result-trophy-art-img,
  .dash-sub-art-img,
  .explorer-card-art-img {
    animation: none !important;
    transition: none !important;
    transform: none !important;
  }
}
