/* ═══════════════════════════════════════════════════════════════════════════════
   CYBER-LUXURY DESIGN SYSTEM FOR AI MARATHON LMS (V3 - WITH AUTH & SUPERADMIN)
   ═══════════════════════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600;700&display=swap');

:root {
  --bg-main: #06080d;
  --bg-card: rgba(13, 17, 28, 0.85);
  --bg-card-hover: rgba(19, 25, 41, 0.95);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-accent: rgba(99, 102, 241, 0.35);
  --neon-cyan: #06b6d4;
  --neon-indigo: #6366f1;
  --neon-purple: #a855f7;
  --neon-emerald: #10b981;
  --neon-gold: #f59e0b;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-main);
  color: #f1f5f9;
  overflow-x: hidden;
}

code, pre, .font-mono {
  font-family: 'JetBrains Mono', monospace;
}

/* ── Custom Ambient Gradients ─────────────────────────────────────────────── */
.ambient-glow {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
  background: 
    radial-gradient(circle at 15% 10%, rgba(99, 102, 241, 0.15) 0%, transparent 40%),
    radial-gradient(circle at 85% 15%, rgba(6, 182, 212, 0.12) 0%, transparent 45%),
    radial-gradient(circle at 50% 90%, rgba(168, 85, 247, 0.1) 0%, transparent 50%);
}

/* ── Glassmorphism ───────────────────────────────────────────────────────── */
.glass-panel {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-subtle);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-panel:hover {
  border-color: var(--border-accent);
}

/* ── Glowing Buttons & Cards ──────────────────────────────────────────────── */
.glow-primary {
  box-shadow: 0 0 25px -4px rgba(99, 102, 241, 0.45);
}
.glow-primary:hover {
  box-shadow: 0 0 35px 2px rgba(99, 102, 241, 0.65);
}

.glow-gold {
  box-shadow: 0 0 20px -3px rgba(245, 158, 11, 0.35);
}

.glow-emerald {
  box-shadow: 0 0 20px -3px rgba(16, 185, 129, 0.35);
}

.glow-admin {
  box-shadow: 0 0 25px -3px rgba(244, 63, 94, 0.45);
}

/* ── Battery Lives Pulse ─────────────────────────────────────────────────── */
.battery-pulse {
  animation: pulse-battery 2.2s infinite ease-in-out;
}

@keyframes pulse-battery {
  0%, 100% {
    transform: scale(1);
    filter: drop-shadow(0 0 2px rgba(16, 185, 129, 0.4));
  }
  50% {
    transform: scale(1.08);
    filter: drop-shadow(0 0 8px rgba(16, 185, 129, 0.8));
  }
}

/* ── Radar Pulse Ring for Video Play Button ───────────────────────────────── */
.radar-ring {
  position: absolute;
  inset: -10px;
  border-radius: 9999px;
  border: 2px solid rgba(99, 102, 241, 0.6);
  animation: radar-expand 2.5s infinite cubic-bezier(0.2, 0.8, 0.2, 1);
  pointer-events: none;
}

@keyframes radar-expand {
  0% {
    transform: scale(0.85);
    opacity: 0.9;
  }
  100% {
    transform: scale(1.6);
    opacity: 0;
  }
}

/* ── Custom Scrollbar ─────────────────────────────────────────────────────── */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: rgba(8, 11, 19, 0.8);
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(99, 102, 241, 0.6);
}

.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* ── Line Clamp for Lesson Titles ─────────────────────────────────────────── */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ── Teleprompter Window ─────────────────────────────────────────────────── */
.teleprompter-window {
  max-height: 420px;
  overflow-y: auto;
  scroll-behavior: smooth;
  line-height: 1.8;
}

/* ── Custom Tab Transitions ───────────────────────────────────────────────── */
.tab-active {
  background: rgba(99, 102, 241, 0.18);
  border-color: rgba(99, 102, 241, 0.7);
  color: #fff;
  box-shadow: inset 0 0 14px rgba(99, 102, 241, 0.25);
}

.tab-admin-active {
  background: rgba(244, 63, 94, 0.18);
  border-color: rgba(244, 63, 94, 0.7);
  color: #fff;
  box-shadow: inset 0 0 14px rgba(244, 63, 94, 0.25);
}

/* ── Video Player Timeline Glow ───────────────────────────────────────────── */
.video-timeline-head {
  box-shadow: 0 0 10px rgba(6, 182, 212, 0.8), 0 0 20px rgba(99, 102, 241, 0.6);
}

/* ── Verification Code Inputs ─────────────────────────────────────────────── */
.digit-code-input {
  letter-spacing: 0.5em;
  text-align: center;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   LUXURY LIGHT THEME SYSTEM (APPLE / LINEAR / STRIPE SAAS AESTHETIC)
   ═══════════════════════════════════════════════════════════════════════════════ */

/* Smooth transitions during theme changes */
body, header, aside, section, .glass-panel, input, textarea, select {
  transition: background-color 0.25s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.25s cubic-bezier(0.16, 1, 0.3, 1),
              color 0.2s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

html.light {
  --bg-main: #f8fafc;
  --bg-card: rgba(255, 255, 255, 0.95);
  --bg-card-hover: #ffffff;
  --border-subtle: rgba(226, 232, 240, 0.95);
  --border-accent: rgba(99, 102, 241, 0.45);
  --neon-cyan: #0891b2;
  --neon-indigo: #4f46e5;
  --neon-purple: #7e22ce;
  --neon-emerald: #059669;
  --neon-gold: #d97706;
}

html.light body {
  background-color: var(--bg-main) !important;
  color: #0f172a !important;
}

/* Light ambient glow */
html.light .ambient-glow {
  background: 
    radial-gradient(circle at 12% 8%, rgba(99, 102, 241, 0.08) 0%, transparent 45%),
    radial-gradient(circle at 88% 12%, rgba(6, 182, 212, 0.08) 0%, transparent 45%),
    radial-gradient(circle at 50% 90%, rgba(168, 85, 247, 0.05) 0%, transparent 50%);
}

/* Light Header */
html.light header {
  background-color: rgba(255, 255, 255, 0.9) !important;
  border-bottom-color: rgba(226, 232, 240, 0.95) !important;
  box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.04);
}

html.light header .bg-\[\#06080d\] {
  background-color: #ffffff !important;
}

html.light header .text-white {
  color: #0f172a !important;
}

html.light header .bg-clip-text.text-transparent {
  background: linear-gradient(135deg, #0f172a 0%, #312e81 60%, #0891b2 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
}

html.light header .bg-white\/5,
html.light header .bg-white\/\[0\.03\] {
  background-color: #f1f5f9 !important;
  border-color: #e2e8f0 !important;
  color: #1e293b !important;
}

html.light header .bg-white\/5:hover,
html.light header .bg-white\/\[0\.03\]:hover {
  background-color: #e2e8f0 !important;
  border-color: #cbd5e1 !important;
}

/* Light Glass Panels & Cards */
html.light .glass-panel {
  background: rgba(255, 255, 255, 0.95) !important;
  border-color: rgba(226, 232, 240, 0.95) !important;
  box-shadow: 0 8px 24px -4px rgba(15, 23, 42, 0.04), 0 2px 6px -1px rgba(15, 23, 42, 0.02) !important;
  color: #0f172a !important;
}

html.light .glass-panel:hover {
  border-color: rgba(99, 102, 241, 0.45) !important;
  box-shadow: 0 14px 30px -4px rgba(99, 102, 241, 0.08), 0 4px 8px -2px rgba(15, 23, 42, 0.03) !important;
}

/* Light Typography & Contrast */
html.light h1, 
html.light h2, 
html.light h3, 
html.light h4, 
html.light h5, 
html.light h6 {
  color: #0f172a !important;
}

html.light p {
  color: #334155 !important;
}

html.light .text-slate-100,
html.light .text-slate-200,
html.light .text-slate-300 {
  color: #334155 !important;
}

html.light .text-slate-400 {
  color: #64748b !important;
}

html.light .text-slate-500 {
  color: #94a3b8 !important;
}

/* High Contrast Colored Badges in Light Mode */
html.light .bg-indigo-500\/20, 
html.light .bg-indigo-500\/10 {
  background-color: rgba(99, 102, 241, 0.12) !important;
  color: #4338ca !important;
  border-color: rgba(99, 102, 241, 0.28) !important;
}
html.light .text-indigo-300, 
html.light .text-indigo-400 {
  color: #4338ca !important;
}

html.light .bg-cyan-500\/20, 
html.light .bg-cyan-500\/10 {
  background-color: rgba(6, 182, 212, 0.12) !important;
  color: #0e7490 !important;
  border-color: rgba(6, 182, 212, 0.28) !important;
}
html.light .text-cyan-300, 
html.light .text-cyan-400 {
  color: #0891b2 !important;
}

html.light .bg-emerald-500\/20, 
html.light .bg-emerald-500\/10 {
  background-color: rgba(16, 185, 129, 0.12) !important;
  color: #047857 !important;
  border-color: rgba(16, 185, 129, 0.28) !important;
}
html.light .text-emerald-300, 
html.light .text-emerald-400 {
  color: #047857 !important;
}

html.light .bg-amber-500\/20, 
html.light .bg-amber-500\/10 {
  background-color: rgba(245, 158, 11, 0.12) !important;
  color: #b45309 !important;
  border-color: rgba(245, 158, 11, 0.28) !important;
}
html.light .text-amber-300, 
html.light .text-amber-400 {
  color: #b45309 !important;
}

html.light .bg-purple-500\/20, 
html.light .bg-purple-500\/10 {
  background-color: rgba(168, 85, 247, 0.12) !important;
  color: #6b21a8 !important;
  border-color: rgba(168, 85, 247, 0.28) !important;
}
html.light .text-purple-300, 
html.light .text-purple-400 {
  color: #6b21a8 !important;
}

html.light .bg-rose-500\/20, 
html.light .bg-rose-500\/15,
html.light .bg-rose-500\/10 {
  background-color: rgba(244, 63, 94, 0.12) !important;
  color: #be123c !important;
  border-color: rgba(244, 63, 94, 0.28) !important;
}
html.light .text-rose-300, 
html.light .text-rose-400 {
  color: #be123c !important;
}

/* Light Sidebar Progress Card & Accordion */
html.light .bg-slate-800\/80 {
  background-color: #e2e8f0 !important;
}

html.light #sidebar-completed-count {
  color: #0f172a !important;
}

html.light #quiz-sidebar-trigger {
  background: linear-gradient(135deg, rgba(245, 243, 255, 0.95), rgba(238, 242, 255, 0.95)) !important;
  border-color: rgba(168, 85, 247, 0.3) !important;
}
html.light #quiz-sidebar-trigger .text-white {
  color: #581c87 !important;
}
html.light #quiz-sidebar-trigger .text-purple-300\/80 {
  color: #7e22ce !important;
}

html.light #course-accordion-container .glass-panel {
  background: #ffffff !important;
  border-color: #e2e8f0 !important;
}
html.light #course-accordion-container .bg-\[\#080c14\] {
  background-color: #f8fafc !important;
}
html.light #course-accordion-container .text-white {
  color: #0f172a !important;
}
html.light #course-accordion-container .text-slate-200,
html.light #course-accordion-container .text-slate-300 {
  color: #334155 !important;
}
html.light #course-accordion-container button:hover {
  background-color: #f8fafc !important;
}
html.light #course-accordion-container .hover\:bg-white\/\[0\.04\]:hover {
  background-color: #f1f5f9 !important;
}
html.light #course-accordion-container .bg-white\/5 {
  background-color: #f1f5f9 !important;
  color: #64748b !important;
}

/* Active lesson item in accordion (Light Mode) */
html.light #course-accordion-container .bg-gradient-to-r.from-indigo-600\/30 {
  background: linear-gradient(to right, rgba(99, 102, 241, 0.12), rgba(6, 182, 212, 0.08)) !important;
  border-color: rgba(99, 102, 241, 0.45) !important;
}
html.light #course-accordion-container .bg-gradient-to-r.from-indigo-600\/30 .text-white,
html.light #course-accordion-container .bg-gradient-to-r.from-indigo-600\/30 .text-slate-200 {
  color: #4338ca !important;
  font-weight: 700;
}

/* Cinema Video Stage Card in Light Mode */
html.light .aspect-video.bg-cyber-950 {
  background-color: #06080d !important;
  border-color: rgba(255, 255, 255, 0.15) !important;
}
html.light .aspect-video .text-white {
  color: #ffffff !important;
}

/* Depth Tabs (Light Mode) */
html.light .bg-cyber-900\/80 {
  background-color: #f1f5f9 !important;
  border-color: #e2e8f0 !important;
}

html.light .tab-active {
  background: #ffffff !important;
  border-color: #6366f1 !important;
  color: #4338ca !important;
  box-shadow: 0 2px 10px rgba(99, 102, 241, 0.15) !important;
}

html.light #tab-layer-1:not(.tab-active),
html.light #tab-layer-2:not(.tab-active),
html.light #tab-layer-3:not(.tab-active) {
  color: #64748b !important;
}
html.light #tab-layer-1:not(.tab-active):hover,
html.light #tab-layer-2:not(.tab-active):hover,
html.light #tab-layer-3:not(.tab-active):hover {
  color: #0f172a !important;
  background-color: #e2e8f0 !important;
}

html.light #layer-content-body {
  color: #334155 !important;
}
html.light #layer-content-body h4 {
  color: #4338ca !important;
}

/* Teleprompter Drawer in Light Mode */
html.light #teleprompter-drawer {
  background-color: #ffffff !important;
  border-color: #e2e8f0 !important;
  box-shadow: 0 10px 25px -4px rgba(15, 23, 42, 0.05) !important;
}
html.light #teleprompter-text {
  color: #1e293b !important;
}
html.light #script-hook-badge {
  color: #0891b2 !important;
}

/* Prompts Section in Light Mode */
html.light #prompt-text-display {
  background-color: #f8fafc !important;
  border-color: #e2e8f0 !important;
  color: #0f172a !important;
}
html.light .bg-cyber-950:not(.aspect-video) {
  background-color: #f8fafc !important;
  border-color: #e2e8f0 !important;
}

/* Homework Submission Form in Light Mode */
html.light #hw-input-text,
html.light #hw-input-url {
  background-color: #ffffff !important;
  border-color: #cbd5e1 !important;
  color: #0f172a !important;
}
html.light #hw-input-text:focus,
html.light #hw-input-url:focus {
  border-color: #6366f1 !important;
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.15) !important;
}
html.light #hw-dropzone {
  background-color: #f8fafc !important;
  border-color: #cbd5e1 !important;
}
html.light #hw-dropzone:hover {
  background-color: #f1f5f9 !important;
  border-color: #6366f1 !important;
}
html.light #hw-feedback-box {
  background-color: #f0fdf4 !important;
  border-color: #86efac !important;
  color: #166534 !important;
}
html.light #hw-feedback-comment {
  color: #15803d !important;
}

/* Modals System in Light Mode */
html.light .bg-black\/80,
html.light .bg-black\/85,
html.light .bg-black\/90 {
  background-color: rgba(15, 23, 42, 0.55) !important;
}
html.light #modal-quiz .glass-panel,
html.light #modal-profile .glass-panel,
html.light #modal-shop .glass-panel,
html.light #modal-auth .glass-panel,
html.light #modal-admin .glass-panel {
  background: #ffffff !important;
  border-color: #e2e8f0 !important;
  box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.22) !important;
}
html.light input:not([type="checkbox"]):not([type="radio"]),
html.light select {
  background-color: #ffffff !important;
  border-color: #cbd5e1 !important;
  color: #0f172a !important;
}
html.light input::placeholder {
  color: #94a3b8 !important;
}
html.light .bg-black\/50,
html.light .bg-black\/40,
html.light .bg-black\/30 {
  background-color: #f1f5f9 !important;
  border-color: #e2e8f0 !important;
}
html.light .border-white\/10,
html.light .border-white\/5 {
  border-color: #e2e8f0 !important;
}
html.light .bg-white\/10 {
  background-color: rgba(0, 0, 0, 0.06) !important;
}
html.light #profile-theme-toggle-group {
  background-color: #f1f5f9 !important;
  border-color: #e2e8f0 !important;
}

/* Superadmin Controls in Light Mode */
html.light #modal-admin .bg-slate-900\/60,
html.light #modal-admin .bg-cyber-900,
html.light #modal-admin .bg-cyber-950 {
  background-color: #f8fafc !important;
  border-color: #e2e8f0 !important;
}
html.light table th {
  background-color: #f1f5f9 !important;
  color: #475569 !important;
  border-color: #e2e8f0 !important;
}
html.light table td {
  border-color: #e2e8f0 !important;
  color: #1e293b !important;
}
html.light table tr:hover td {
  background-color: #f8fafc !important;
}

/* Shop Items in Light Mode */
html.light #shop-items-container .glass-panel,
html.light #shop-items-container .bg-white\/\[0\.03\] {
  background-color: #f8fafc !important;
  border-color: #e2e8f0 !important;
}

/* Quiz Option Cards in Light Mode */
html.light #quiz-options-container button {
  background-color: #ffffff !important;
  border-color: #e2e8f0 !important;
  color: #1e293b !important;
}
html.light #quiz-options-container button:hover {
  border-color: #a855f7 !important;
  background-color: #faf5ff !important;
}

/* Preserve Crisp White Text on Solid / Gradient Buttons in Light Mode */
html.light button.bg-gradient-to-r,
html.light a.bg-gradient-to-r,
html.light button.bg-gradient-to-tr,
html.light button.bg-indigo-600,
html.light button.bg-rose-500,
html.light .bg-gradient-to-r span,
html.light .bg-gradient-to-r i,
html.light button[type="submit"] span,
html.light button[type="submit"] i,
html.light #btn-admin-tab-metrics.tab-admin-active,
html.light #btn-admin-tab-homework.tab-admin-active,
html.light #btn-admin-tab-students.tab-admin-active,
html.light #btn-admin-tab-broadcast.tab-admin-active {
  color: #ffffff !important;
}

/* Scrollbars in Light Mode */
html.light ::-webkit-scrollbar-track {
  background: #f1f5f9;
}
html.light ::-webkit-scrollbar-thumb {
  background: #cbd5e1;
}
html.light ::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}


/* ═══════════════════════════════════════════════════════════════════════════════
   STYLES FOR RICH LESSON MODULES & GLOBAL HUBS (V4 PRODUCT EXPANSION)
   ═══════════════════════════════════════════════════════════════════════════════ */

/* ── Top ROI Metric Strip ─────────────────────────────────────────────────── */
.roi-metric-strip {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.08) 0%, rgba(6, 182, 212, 0.06) 100%);
  border: 1px solid rgba(99, 102, 241, 0.2);
}

/* ── Before / After Showcase Cards ────────────────────────────────────────── */
.before-card {
  background: rgba(244, 63, 94, 0.05);
  border: 1px solid rgba(244, 63, 94, 0.25);
}
.before-card:hover {
  border-color: rgba(244, 63, 94, 0.45);
}

.after-card {
  background: rgba(16, 185, 129, 0.05);
  border: 1px solid rgba(16, 185, 129, 0.3);
}
.after-card:hover {
  border-color: rgba(16, 185, 129, 0.55);
}

/* ── Interactive Playground Terminal Window ───────────────────────────────── */
.terminal-window {
  background: #04060a;
  border: 1px solid rgba(99, 102, 241, 0.3);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.05), 0 10px 30px -10px rgba(0, 0, 0, 0.7);
}

.terminal-header {
  background: rgba(13, 17, 28, 0.9);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.cursor-blink {
  display: inline-block;
  width: 7px;
  height: 14px;
  background-color: var(--neon-cyan);
  animation: blink 1s infinite;
  vertical-align: middle;
  margin-left: 2px;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* ── Walkthrough Steps & Timelines ────────────────────────────────────────── */
.step-badge {
  background: linear-gradient(135deg, #6366f1, #06b6d4);
  box-shadow: 0 0 12px rgba(6, 182, 212, 0.4);
}

/* ── Anti-pattern Red Flags ──────────────────────────────────────────────── */
.anti-pattern-card {
  background: rgba(244, 63, 94, 0.04);
  border: 1px solid rgba(244, 63, 94, 0.2);
}
.anti-pattern-card:hover {
  border-color: rgba(244, 63, 94, 0.4);
}

/* ── Downloadable Asset Cards ─────────────────────────────────────────────── */
.asset-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.asset-card:hover {
  border-color: rgba(99, 102, 241, 0.4);
  transform: translateY(-2px);
  background: rgba(99, 102, 241, 0.05);
}

/* ── Interactive Micro-Quiz ───────────────────────────────────────────────── */
.quiz-opt-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.2s ease;
  cursor: pointer;
}
.quiz-opt-btn:hover {
  border-color: rgba(99, 102, 241, 0.5);
  background: rgba(99, 102, 241, 0.08);
}
.quiz-opt-correct {
  background: rgba(16, 185, 129, 0.15) !important;
  border-color: rgba(16, 185, 129, 0.6) !important;
  color: #a7f3d0 !important;
}
.quiz-opt-wrong {
  background: rgba(244, 63, 94, 0.15) !important;
  border-color: rgba(244, 63, 94, 0.6) !important;
  color: #fecdd3 !important;
}

/* ── Hall of Fame Showcase ────────────────────────────────────────────────── */
.fame-card {
  background: rgba(13, 17, 28, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.07);
}
.fame-card:hover {
  border-color: rgba(245, 158, 11, 0.4);
}

/* ── Student Scratchpad (Notes) ───────────────────────────────────────────── */
.scratchpad-area {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-family: inherit;
}
.scratchpad-area:focus {
  border-color: rgba(6, 182, 212, 0.5);
  box-shadow: 0 0 15px rgba(6, 182, 212, 0.15);
}

/* ── Light Mode Adjustments for New Modules ────────────────────────────────── */
html.light .roi-metric-strip {
  background: #f8fafc !important;
  border: 1px solid #cbd5e1 !important;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05) !important;
}
html.light .roi-metric-strip .text-slate-400 {
  color: #64748b !important;
}
html.light #roi-time-saved {
  color: #0f172a !important;
}
html.light #roi-market-val {
  color: #b45309 !important;
}
html.light #roi-difficulty {
  color: #047857 !important;
}
html.light #roi-artifact-name {
  color: #6d28d9 !important;
}

html.light .before-card {
  background: #fff5f5 !important;
  border-color: #fecdd3 !important;
}
html.light .before-card * {
  color: #1e293b !important;
}
html.light .before-card .text-rose-400 {
  color: #e11d48 !important;
}

html.light .after-card {
  background: #f0fdf4 !important;
  border-color: #bbf7d0 !important;
}
html.light .after-card * {
  color: #1e293b !important;
}
html.light .after-card .text-emerald-400 {
  color: #059669 !important;
}

html.light .terminal-window {
  background: #0f172a !important;
  color: #f8fafc !important;
}

html.light .asset-card {
  background: #ffffff !important;
  border-color: #cbd5e1 !important;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05) !important;
}
html.light .asset-card:hover {
  border-color: #f59e0b !important;
  background: #ffffff !important;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.12) !important;
}
html.light .asset-card h4 {
  color: #0f172a !important;
}
html.light .asset-card p {
  color: #475569 !important;
}
html.light .asset-card .asset-badge {
  background: #fef3c7 !important;
  color: #92400e !important;
  border-color: #fde68a !important;
}
html.light .asset-card .asset-filename {
  color: #64748b !important;
}
html.light .asset-card .asset-divider {
  border-color: #f1f5f9 !important;
}
html.light .asset-card button {
  background: #f59e0b !important;
  color: #000000 !important;
}
html.light .asset-card button:hover {
  background: #d97706 !important;
}

html.light .anti-pattern-card {
  background: #fff1f2 !important;
  border-color: #fecdd3 !important;
}
html.light .anti-pattern-card .text-rose-300 {
  color: #be123c !important;
}
html.light .anti-pattern-card .text-slate-400 {
  color: #475569 !important;
}
html.light .anti-pattern-card .text-slate-300 {
  color: #0f172a !important;
}
html.light .anti-pattern-card .text-emerald-300 {
  color: #047857 !important;
}

html.light .quiz-opt-btn {
  background: #ffffff !important;
  border-color: #e2e8f0 !important;
  color: #1e293b !important;
}

html.light .fame-card {
  background: #ffffff !important;
  border-color: #cbd5e1 !important;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05) !important;
}
html.light .fame-card h4,
html.light .fame-card .text-white {
  color: #0f172a !important;
}
html.light .fame-card .text-slate-300,
html.light .fame-card .text-slate-400 {
  color: #475569 !important;
}
html.light .fame-card .bg-black\/30,
html.light .fame-card .bg-black\/40 {
  background: #f8fafc !important;
  border-color: #e2e8f0 !important;
}

html.light .scratchpad-area {
  background: #ffffff !important;
  border-color: #cbd5e1 !important;
  color: #0f172a !important;
}

/* ── AI Audio Podcast Waveform ────────────────────────────────────────────── */
@keyframes podcastWave {
  0%, 100% { height: 4px; }
  50% { height: 16px; }
}

#podcast-waveform {
  height: 28px !important;
  min-height: 28px !important;
  max-height: 28px !important;
  display: flex !important;
  align-items: flex-end !important;
  overflow: hidden !important;
}

.podcast-wave-bar {
  transition: height 0.2s ease;
  max-height: 16px !important;
  flex-shrink: 0;
}

.podcast-playing .podcast-wave-bar:nth-child(1) { animation: podcastWave 0.8s ease-in-out infinite; }
.podcast-playing .podcast-wave-bar:nth-child(2) { animation: podcastWave 0.6s ease-in-out infinite 0.15s; }
.podcast-playing .podcast-wave-bar:nth-child(3) { animation: podcastWave 0.9s ease-in-out infinite 0.3s; }
.podcast-playing .podcast-wave-bar:nth-child(4) { animation: podcastWave 0.7s ease-in-out infinite 0.1s; }
.podcast-playing .podcast-wave-bar:nth-child(5) { animation: podcastWave 0.85s ease-in-out infinite 0.25s; }
.podcast-playing .podcast-wave-bar:nth-child(6) { animation: podcastWave 0.65s ease-in-out infinite 0.05s; }

html.light #podcast-waveform {
  background: rgba(226, 232, 240, 0.8) !important;
  border-color: #cbd5e1 !important;
}

/* ── Command Palette Items & Active State ─────────────────────────────────── */
.cmd-palette-item {
  transition: all 0.15s cubic-bezier(0.16, 1, 0.3, 1);
}
.cmd-palette-item:hover,
.cmd-palette-item.cmd-active {
  background: rgba(99, 102, 241, 0.15);
  border-color: rgba(99, 102, 241, 0.5);
  transform: translateX(4px);
}

/* ── Certificate Canvas ──────────────────────────────────────────────────── */
#certificate-canvas {
  box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.8), 0 0 30px rgba(245, 158, 11, 0.15);
}

/* ── Light Mode Adjustments: Command Palette & Modals ──────────────────────── */
html.light #modal-command-palette .glass-panel,
html.light #modal-prompt-hub .glass-panel,
html.light #modal-tools-radar .glass-panel,
html.light #modal-skill-tree .glass-panel,
html.light #modal-certificate .glass-panel,
html.light #modal-certificate-locked .glass-panel {
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.25), 0 0 0 1px rgba(15, 23, 42, 0.05) !important;
}

html.light #modal-command-palette .border-b,
html.light #modal-prompt-hub .border-b,
html.light #modal-tools-radar .border-b,
html.light #modal-skill-tree .border-b {
  border-bottom-color: #e2e8f0 !important;
}

/* Command Palette Input */
html.light #modal-command-palette input#cmd-palette-input {
  color: #0f172a !important;
  font-weight: 600 !important;
}
html.light #modal-command-palette input#cmd-palette-input::placeholder {
  color: #64748b !important;
}
html.light #modal-command-palette .border-b kbd {
  background: #f1f5f9 !important;
  border-color: #cbd5e1 !important;
  color: #475569 !important;
}

/* Command Palette Filter Bar */
html.light #modal-command-palette .px-4.py-2 {
  background: #f8fafc !important;
  border-bottom: 1px solid #e2e8f0 !important;
}

html.light .cmd-filter-pill {
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  color: #475569 !important;
  font-weight: 600 !important;
  transition: all 0.15s ease !important;
}
html.light .cmd-filter-pill:hover {
  background: #f1f5f9 !important;
  border-color: #94a3b8 !important;
  color: #0f172a !important;
}
html.light .cmd-filter-pill.bg-indigo-500\/20,
html.light .cmd-filter-pill[class*="bg-indigo-500"] {
  background: #4f46e5 !important;
  border-color: #4338ca !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  box-shadow: 0 1px 3px rgba(79, 70, 229, 0.25) !important;
}

/* Command Palette Results Area */
html.light #cmd-palette-results {
  background: #f1f5f9 !important;
  padding: 12px !important;
}

/* Command Palette Individual Result Cards */
html.light .cmd-palette-item {
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06) !important;
  border-radius: 14px !important;
  margin-bottom: 6px !important;
}
html.light .cmd-palette-item:hover {
  background: #ffffff !important;
  border-color: #6366f1 !important;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.15) !important;
  transform: translateX(3px);
}
html.light .cmd-palette-item.cmd-active {
  background: #ffffff !important;
  border-color: #4f46e5 !important;
  box-shadow: 0 0 0 2px #4f46e5, 0 4px 14px rgba(79, 70, 229, 0.2) !important;
  transform: translateX(3px);
}

/* Command Palette Titles and Subtitles */
html.light .cmd-item-title,
html.light .cmd-palette-item .cmd-item-title,
html.light .cmd-palette-item .text-white,
html.light .cmd-palette-item div.text-white,
html.light .cmd-palette-item span.text-white {
  color: #0f172a !important;
  font-weight: 700 !important;
}

html.light .cmd-item-subtitle,
html.light .cmd-palette-item .cmd-item-subtitle,
html.light .cmd-palette-item .text-slate-400,
html.light .cmd-palette-item div.text-slate-400 {
  color: #475569 !important;
  font-weight: 500 !important;
}

html.light .cmd-palette-item i[data-lucide="chevron-right"] {
  color: #64748b !important;
}
html.light .cmd-palette-item:hover i[data-lucide="chevron-right"],
html.light .cmd-palette-item.cmd-active i[data-lucide="chevron-right"] {
  color: #4f46e5 !important;
}

/* Command Palette Badges */
html.light .cmd-palette-item span[class*="bg-indigo-500"] {
  background: #e0e7ff !important;
  color: #3730a3 !important;
  border-color: #a5b4fc !important;
  font-weight: 800 !important;
}
html.light .cmd-palette-item span[class*="bg-cyan-500"] {
  background: #cffafe !important;
  color: #0e7490 !important;
  border-color: #67e8f9 !important;
  font-weight: 800 !important;
}
html.light .cmd-palette-item span[class*="bg-purple-500"] {
  background: #f3e8ff !important;
  color: #6b21a8 !important;
  border-color: #d8b4fe !important;
  font-weight: 800 !important;
}
html.light .cmd-palette-item span[class*="bg-amber-500"] {
  background: #fef3c7 !important;
  color: #92400e !important;
  border-color: #fcd34d !important;
  font-weight: 800 !important;
}
html.light .cmd-palette-item span[class*="bg-emerald-500"] {
  background: #d1fae5 !important;
  color: #065f46 !important;
  border-color: #6ee7b7 !important;
  font-weight: 800 !important;
}
html.light .cmd-palette-item span[class*="bg-rose-500"] {
  background: #ffe4e6 !important;
  color: #9f1239 !important;
  border-color: #fda4af !important;
  font-weight: 800 !important;
}

/* Command Palette Footer */
html.light #modal-command-palette .bg-black\/60 {
  background: #f8fafc !important;
  border-top: 1px solid #e2e8f0 !important;
  color: #64748b !important;
}
html.light #modal-command-palette .bg-black\/60 kbd {
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  color: #0f172a !important;
  font-weight: 700 !important;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05) !important;
}

/* Prompt Hub in Light Mode */
html.light #prompt-hub-search-input {
  background: #f8fafc !important;
  border-color: #cbd5e1 !important;
  color: #0f172a !important;
}
html.light #prompt-hub-category-bar button {
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  color: #475569 !important;
}
html.light #prompt-hub-category-bar button:hover {
  background: #f1f5f9 !important;
  color: #0f172a !important;
}
html.light #prompt-hub-category-bar button.tab-active {
  background: #4f46e5 !important;
  border-color: #4338ca !important;
  color: #ffffff !important;
}
html.light #prompt-hub-cards-container .glass-panel {
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05) !important;
}
html.light #prompt-hub-cards-container .glass-panel:hover {
  border-color: #6366f1 !important;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.1) !important;
}
html.light #prompt-hub-cards-container h4 {
  color: #0f172a !important;
  font-weight: 700 !important;
}
html.light #prompt-hub-cards-container p.text-slate-300 {
  color: #475569 !important;
}
html.light #prompt-hub-cards-container .bg-black\/60 {
  background: #f8fafc !important;
  border: 1px solid #cbd5e1 !important;
  color: #0369a1 !important;
}
html.light #prompt-hub-cards-container button[onclick*="copyPromptHubText"] {
  background: #e0e7ff !important;
  border-color: #c7d2fe !important;
  color: #3730a3 !important;
}

/* Tools Radar in Light Mode */
html.light #tools-radar-cards-container .glass-panel {
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05) !important;
}
html.light #tools-radar-cards-container h4 {
  color: #0f172a !important;
  font-weight: 700 !important;
}
html.light #tools-radar-cards-container p.text-slate-300 {
  color: #475569 !important;
}
html.light #tools-radar-cards-container a {
  background: #e0f2fe !important;
  border-color: #bae6fd !important;
  color: #0284c7 !important;
}

/* Skill Tree in Light Mode */
html.light #skill-tree-cards-container .glass-panel {
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05) !important;
}
html.light #skill-tree-cards-container h4 {
  color: #0f172a !important;
  font-weight: 700 !important;
}
html.light #skill-tree-cards-container .bg-white\/\[0\.02\] {
  background: #f8fafc !important;
  border-color: #e2e8f0 !important;
  color: #1e293b !important;
}
html.light #skill-tree-cards-container .bg-\[\#080c14\] {
  background: #ffffff !important;
}

/* Certificate Locked Modal in Light Mode */
html.light #modal-certificate-locked .glass-panel {
  background: #ffffff !important;
  border: 1px solid #fde68a !important;
  box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.25) !important;
}
html.light #modal-certificate-locked h3 {
  color: #0f172a !important;
}
html.light #modal-certificate-locked p {
  color: #475569 !important;
}
html.light #modal-certificate-locked .bg-black\/40 {
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
}
html.light #modal-certificate-locked .bg-white\/\[0\.03\] {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05) !important;
}
html.light #modal-certificate-locked #cert-locked-completed {
  color: #0f172a !important;
}
html.light #modal-certificate-locked #cert-locked-remaining {
  color: #b45309 !important;
}

html.light #lesson-podcast-player {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.05) 0%, rgba(99, 102, 241, 0.05) 100%) !important;
  border-color: rgba(6, 182, 212, 0.3) !important;
}
html.light #lesson-podcast-player .bg-black\/50,
html.light #lesson-podcast-player .bg-black\/40 {
  background-color: #f1f5f9 !important;
  border-color: #cbd5e1 !important;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   UNIFIED HEADER DESIGN SYSTEM (PIXEL-PERFECT HEIGHT: 36px, NO WRAPPING, HIGH CONTRAST)
   ═══════════════════════════════════════════════════════════════════════════════ */

/* Universal header button: strictly 36px height, single-line, aligned icons */
.header-btn {
  height: 36px !important;
  min-height: 36px !important;
  max-height: 36px !important;
  padding: 0 10px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 5px !important;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
  border-radius: 10px !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  line-height: 1 !important;
  box-sizing: border-box !important;
  transition: all 0.15s cubic-bezier(0.16, 1, 0.3, 1) !important;
  user-select: none !important;
  cursor: pointer !important;
}

.header-btn.btn-icon-only {
  width: 36px !important;
  min-width: 36px !important;
  max-width: 36px !important;
  padding: 0 !important;
}

.header-btn.hidden,
[hidden].header-btn,
.hidden {
  display: none !important;
}

.header-btn i,
.header-btn svg {
  width: 14px !important;
  height: 14px !important;
  flex-shrink: 0 !important;
}

/* Dark Mode: Crisp cyber glass aesthetic */
html.dark .header-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #f1f5f9;
}
html.dark .header-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(99, 102, 241, 0.4);
  color: #ffffff;
}

/* Light Mode: 100% High Contrast, Deep Slate #0f172a, Crisp 1px #cbd5e1 border */
html.light .header-btn {
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  color: #0f172a !important;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05) !important;
}
html.light .header-btn:hover {
  background: #f8fafc !important;
  border-color: #6366f1 !important;
  color: #020617 !important;
  box-shadow: 0 2px 6px rgba(99, 102, 241, 0.12) !important;
}

/* Hub Badges (e.g. 20+, 14 ДЗ) */
.header-hub-badge {
  font-size: 9px !important;
  font-weight: 700 !important;
  font-family: 'JetBrains Mono', monospace !important;
  padding: 1.5px 4.5px !important;
  border-radius: 4px !important;
  line-height: 1 !important;
  display: inline-block !important;
  margin-left: 2px !important;
}

html.dark .header-hub-badge {
  background: rgba(99, 102, 241, 0.25);
  color: #c7d2fe;
  border: 1px solid rgba(99, 102, 241, 0.35);
}
html.light .header-hub-badge {
  background: #e0e7ff !important;
  color: #4338ca !important;
  border: 1px solid #c7d2fe !important;
}

/* Primary "Вход" Button: Solid, High Contrast In Both Modes */
.header-btn-primary {
  background: #4f46e5 !important;
  border: 1px solid #4338ca !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  box-shadow: 0 1px 3px rgba(79, 70, 229, 0.3) !important;
}
.header-btn-primary:hover {
  background: #4338ca !important;
  color: #ffffff !important;
  box-shadow: 0 4px 10px rgba(79, 70, 229, 0.4) !important;
}
.header-btn-primary span,
.header-btn-primary i {
  color: #ffffff !important;
}

/* Status Indicators in Light Mode: Legible dark text with colored tint */
html.light #btn-lives {
  background: #f0fdf4 !important;
  border-color: #bbf7d0 !important;
  color: #14532d !important;
}
html.light #btn-lives #lives-count-text {
  color: #047857 !important;
  font-weight: 800 !important;
}

html.light #btn-token-shop {
  background: #fffbeb !important;
  border-color: #fde68a !important;
  color: #78350f !important;
}
html.light #btn-token-shop #user-tokens-badge {
  color: #b45309 !important;
  font-weight: 800 !important;
}
html.light #btn-token-shop span {
  color: #92400e !important;
}

html.light #header-deadline-widget {
  background: #fff1f2 !important;
  border-color: #fecdd3 !important;
  color: #881337 !important;
}
html.light #header-deadline-widget span {
  color: #be123c !important;
}

/* Superadmin Button in Header */
html.dark #btn-open-admin {
  background: rgba(244, 63, 94, 0.12);
  border-color: rgba(244, 63, 94, 0.35);
  color: #fecdd3;
}
html.light #btn-open-admin {
  background: #fff1f2 !important;
  border-color: #fecdd3 !important;
  color: #9f1239 !important;
}
html.light #btn-open-admin .header-hub-badge {
  background: #ffe4e6 !important;
  color: #be123c !important;
  border-color: #fecdd3 !important;
}

/* Profile Pill */
.header-btn-profile {
  padding-left: 6px !important;
  padding-right: 10px !important;
}
html.light .header-btn-profile #user-name-label {
  color: #0f172a !important;
  font-weight: 700 !important;
}
html.light .header-btn-profile #user-rank-label {
  color: #0284c7 !important;
  font-weight: 600 !important;
}

html.light #active-role-text.text-rose-400 {
  color: #be123c !important;
}
html.light #active-role-text.text-cyan-400,
html.light #active-role-text {
  color: #0284c7 !important;
  font-weight: 700 !important;
}

html.light #theme-toggle-label {
  color: #0f172a !important;
  font-weight: 600 !important;
}

html.light #btn-open-cmd-palette kbd {
  background: #f1f5f9 !important;
  border-color: #cbd5e1 !important;
  color: #475569 !important;
}

html.light .cmd-filter-pill {
  color: #475569 !important;
}
html.light .cmd-filter-pill.bg-indigo-500\/20 {
  background: #e0e7ff !important;
  color: #4338ca !important;
  border-color: #c7d2fe !important;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   MODULE: LESSON FEEDBACK & RATING (ОБРАТНАЯ СВЯЗЬ)
   ═══════════════════════════════════════════════════════════════════════════════ */
.feedback-star-btn {
  font-size: 26px;
  line-height: 1;
  color: #475569;
  cursor: pointer;
  transition: all 0.15s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
  background: transparent;
  border: none;
  padding: 2px 4px;
}
.feedback-star-btn:hover {
  transform: scale(1.25);
  color: #f59e0b;
}
.feedback-star-btn.star-active {
  color: #fbbf24;
  text-shadow: 0 0 12px rgba(251, 191, 36, 0.6);
}

.feedback-diff-btn,
.feedback-tag-btn {
  padding: 6px 12px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #94a3b8;
}
.feedback-diff-btn:hover,
.feedback-tag-btn:hover {
  color: #ffffff;
  border-color: rgba(99, 102, 241, 0.4);
  background: rgba(99, 102, 241, 0.08);
}
.feedback-diff-active,
.feedback-tag-active {
  background: rgba(99, 102, 241, 0.2) !important;
  border-color: rgba(99, 102, 241, 0.6) !important;
  color: #c7d2fe !important;
  font-weight: 700;
}

/* Light mode support for feedback */
html.light .feedback-star-btn {
  color: #cbd5e1;
}
html.light .feedback-star-btn:hover {
  color: #f59e0b;
}
html.light .feedback-star-btn.star-active {
  color: #d97706;
  text-shadow: 0 0 6px rgba(217, 119, 6, 0.3);
}
html.light .feedback-diff-btn,
html.light .feedback-tag-btn {
  background: #f8fafc;
  border-color: #cbd5e1;
  color: #334155;
}
html.light .feedback-diff-btn:hover,
html.light .feedback-tag-btn:hover {
  background: #f1f5f9;
  color: #0f172a;
  border-color: #6366f1;
}
html.light .feedback-diff-active,
html.light .feedback-tag-active {
  background: #e0e7ff !important;
  border-color: #6366f1 !important;
  color: #4338ca !important;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   MODULE: STUDENT STATS & TELEMETRY HUB (МОЯ СТАТИСТИКА)
   ═══════════════════════════════════════════════════════════════════════════════ */
.stats-track-row {
  transition: all 0.2s ease;
}
.stats-track-row:hover {
  background: rgba(255, 255, 255, 0.04);
}
html.light #modal-student-stats .glass-panel {
  background: #ffffff !important;
  border-color: #cbd5e1 !important;
  color: #0f172a !important;
}
html.light #modal-student-stats h3,
html.light #modal-student-stats h4,
html.light #modal-student-stats .text-white {
  color: #0f172a !important;
}
html.light #modal-student-stats .text-slate-400 {
  color: #64748b !important;
}
html.light #modal-student-stats .text-slate-300 {
  color: #334155 !important;
}
html.light #modal-student-stats .bg-black\/40 {
  background: #f8fafc !important;
  border-color: #e2e8f0 !important;
}
html.light #modal-student-stats .bg-white\/\[0\.03\],
html.light #modal-student-stats .bg-white\/\[0\.02\] {
  background: #ffffff !important;
  border-color: #e2e8f0 !important;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
html.light #modal-student-stats .border-white\/10,
html.light #modal-student-stats .border-white\/5 {
  border-color: #e2e8f0 !important;
}
html.light #modal-student-stats .bg-slate-800 {
  background: #e2e8f0 !important;
}
html.light .stats-track-row:hover {
  background: #f1f5f9;
}

/* ═══════════════════════════════════════════════════════════════════════════════
   MODERN RICH MARKDOWN & TYPOGRAPHY SYSTEM
   ═══════════════════════════════════════════════════════════════════════════════ */
.markdown-content,
#layer-content-body {
  color: #cbd5e1;
  font-size: 0.875rem;
  line-height: 1.65;
}

.markdown-content p,
#layer-content-body p {
  margin-bottom: 0.75rem;
  line-height: 1.65;
}

.markdown-content p:last-child,
#layer-content-body p:last-child {
  margin-bottom: 0;
}

.markdown-content strong,
.markdown-content b,
#layer-content-body strong,
#layer-content-body b {
  color: #ffffff;
  font-weight: 700;
}

.markdown-content em,
.markdown-content i,
#layer-content-body em,
#layer-content-body i {
  color: #94a3b8;
  font-style: italic;
}

.markdown-content a,
#layer-content-body a {
  color: #38bdf8;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(56, 189, 248, 0.45);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.markdown-content a:hover,
#layer-content-body a:hover {
  color: #67e8f9;
  text-decoration-color: #67e8f9;
  text-shadow: 0 0 10px rgba(6, 182, 212, 0.45);
}

/* Unordered Lists */
.markdown-content ul,
.markdown-content .markdown-list,
#layer-content-body ul,
#layer-content-body .markdown-list {
  list-style: none;
  padding-left: 0;
  margin: 0.65rem 0;
}

.markdown-content ul li,
.markdown-content .markdown-list li,
#layer-content-body ul li,
#layer-content-body .markdown-list li {
  position: relative;
  padding-left: 1.4rem;
  margin-bottom: 0.45rem;
  line-height: 1.55;
}

.markdown-content ul li::before,
.markdown-content .markdown-list li::before,
#layer-content-body ul li::before,
#layer-content-body .markdown-list li::before {
  content: "•";
  position: absolute;
  left: 0.3rem;
  top: -0.05rem;
  color: #06b6d4;
  font-size: 1.15em;
  line-height: 1.4;
  font-weight: 800;
}

/* Nested lists */
.markdown-content ul ul,
.markdown-content ol ul,
#layer-content-body ul ul,
#layer-content-body ol ul {
  margin: 0.35rem 0 0.35rem 0.75rem;
}

.markdown-content ul ul li::before,
#layer-content-body ul ul li::before {
  content: "◦";
  color: #a855f7;
}

/* Ordered Lists */
.markdown-content ol,
.markdown-content .markdown-olist,
#layer-content-body ol,
#layer-content-body .markdown-olist {
  list-style: none;
  counter-reset: md-counter;
  padding-left: 0;
  margin: 0.65rem 0;
}

.markdown-content ol li,
.markdown-content .markdown-olist li,
#layer-content-body ol li,
#layer-content-body .markdown-olist li {
  position: relative;
  counter-increment: md-counter;
  padding-left: 1.7rem;
  margin-bottom: 0.45rem;
  line-height: 1.55;
}

.markdown-content ol li::before,
.markdown-content .markdown-olist li::before,
#layer-content-body ol li::before,
#layer-content-body .markdown-olist li::before {
  content: counter(md-counter) ".";
  position: absolute;
  left: 0.1rem;
  top: 0;
  color: #818cf8;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: 0.85em;
  line-height: 1.6;
}

/* Inline Code */
.markdown-content code:not(pre code),
#layer-content-body code:not(pre code) {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.825em;
  color: #67e8f9;
  background: rgba(6, 182, 212, 0.1);
  border: 1px solid rgba(6, 182, 212, 0.25);
  padding: 0.15rem 0.45rem;
  border-radius: 0.375rem;
  word-break: break-word;
}

/* Code Blocks */
.markdown-content pre,
#layer-content-body pre {
  background: rgba(0, 0, 0, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0.875rem;
  padding: 0.875rem 1rem;
  overflow-x: auto;
  margin: 0.75rem 0;
}

.markdown-content pre code,
#layer-content-body pre code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.825rem;
  color: #e2e8f0;
  background: transparent;
  border: none;
  padding: 0;
}

/* Blockquotes */
.markdown-content blockquote,
#layer-content-body blockquote {
  border-left: 3px solid #6366f1;
  background: rgba(99, 102, 241, 0.08);
  border-radius: 0 0.5rem 0.5rem 0;
  padding: 0.5rem 1rem;
  margin: 0.75rem 0;
  color: #cbd5e1;
  font-style: italic;
}

/* Headings */
.markdown-content h1, .markdown-content h2, .markdown-content h3, .markdown-content h4,
#layer-content-body h1, #layer-content-body h2, #layer-content-body h3, #layer-content-body h4 {
  font-weight: 700;
  margin-top: 1rem;
  margin-bottom: 0.45rem;
}

.markdown-content h1, #layer-content-body h1 { font-size: 1.25rem; color: #38bdf8; }
.markdown-content h2, #layer-content-body h2 { font-size: 1.125rem; color: #818cf8; }
.markdown-content h3, #layer-content-body h3 { font-size: 1rem; color: #a855f7; }
.markdown-content h4, #layer-content-body h4 { font-size: 0.925rem; color: #22d3ee; }

/* Light Theme Support */
html.light .markdown-content,
html.light #layer-content-body {
  color: #334155;
}

html.light .markdown-content strong,
html.light .markdown-content b,
html.light #layer-content-body strong,
html.light #layer-content-body b {
  color: #0f172a;
}

html.light .markdown-content em,
html.light .markdown-content i,
html.light #layer-content-body em,
html.light #layer-content-body i {
  color: #64748b;
}

html.light .markdown-content a,
html.light #layer-content-body a {
  color: #0284c7;
  text-decoration-color: rgba(2, 132, 199, 0.4);
}

html.light .markdown-content a:hover,
html.light #layer-content-body a:hover {
  color: #0369a1;
  text-decoration-color: #0369a1;
}

html.light .markdown-content ul li::before,
html.light .markdown-content .markdown-list li::before,
html.light #layer-content-body ul li::before,
html.light #layer-content-body .markdown-list li::before {
  color: #0891b2;
}

html.light .markdown-content ol li::before,
html.light .markdown-content .markdown-olist li::before,
html.light #layer-content-body ol li::before,
html.light #layer-content-body .markdown-olist li::before {
  color: #4f46e5;
}

html.light .markdown-content code:not(pre code),
html.light #layer-content-body code:not(pre code) {
  color: #0f766e;
  background: #f1f5f9;
  border-color: #cbd5e1;
}

html.light .markdown-content pre,
html.light #layer-content-body pre {
  background: #f8fafc;
  border-color: #e2e8f0;
}

html.light .markdown-content pre code,
html.light #layer-content-body pre code {
  color: #1e293b;
}

html.light .markdown-content blockquote,
html.light #layer-content-body blockquote {
  border-left-color: #4f46e5;
  background: #eef2ff;
  color: #334155;
}




