/* ════════════════════════════════════════════════════════════════
   ELMAHDY CHEMISTRY — SHARED DARK/LIGHT MODE SYSTEM
   dark-mode.css  |  index.html · lesson.html · auth.html · dashboard.html
   ════════════════════════════════════════════════════════════════ */

/* ── Smooth transitions ── */
body,
header,
.navbar,
section,
footer,
.pcc,
.pcc-body,
.stat-card,
.faq-item,
.glass-card,
.filter-chip,
.why-card,
.feature-card,
.result-card,
.teacher-card,
.hero-badge,
.lesson-topbar,
.lesson-sidebar,
.video-card,
.auth-card,
.auth-panel,
.topbar,
.table-card,
.course-admin-card,
input,
textarea,
select,
label,
.nav-link,
.logo-name,
.logo-sub,
.hamburger span,
.section-title,
.section-sub {
  transition: background-color 0.3s ease,
    background 0.3s ease,
    color 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}

/* ═══════════════════════════════════════
   NAVBAR TOGGLE BUTTON (index.html)
   ═══════════════════════════════════════ */
.theme-toggle {
  position: relative;
  width: 56px;
  height: 28px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
  outline: none;
  z-index: 10;
}

.theme-toggle-track {
  display: block;
  width: 56px;
  height: 28px;
  background: linear-gradient(135deg, #0a0f1a, #060d1a);
  border: 1.5px solid rgba(6, 182, 212, 0.5);
  border-radius: 999px;
  position: relative;
  box-shadow: 0 0 10px rgba(6, 182, 212, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: background 0.4s, border-color 0.4s, box-shadow 0.4s;
}

.theme-toggle:hover .theme-toggle-track {
  border-color: rgba(6, 182, 212, 0.85);
  box-shadow: 0 0 18px rgba(6, 182, 212, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.theme-toggle-thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  background: linear-gradient(135deg, #06B6D4, #3b82f6);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.4s;
  box-shadow: 0 0 12px rgba(6, 182, 212, 0.7), 0 2px 6px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}

.icon-sun,
.icon-moon {
  position: absolute;
  color: #fff;
  transition: opacity 0.3s, transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.icon-sun {
  opacity: 0;
  transform: rotate(90deg) scale(0.6);
}

.icon-moon {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

/* Light mode toggle state */
:root.light-mode .theme-toggle-track {
  background: linear-gradient(135deg, #e0f2fe, #bae6fd);
  border-color: rgba(251, 191, 36, 0.55);
  box-shadow: 0 0 8px rgba(251, 191, 36, 0.15);
}

:root.light-mode .theme-toggle-thumb {
  transform: translateX(28px);
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  box-shadow: 0 2px 10px rgba(245, 158, 11, 0.5);
}

:root.light-mode .icon-sun {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

:root.light-mode .icon-moon {
  opacity: 0;
  transform: rotate(-90deg) scale(0.6);
}


/* ═══════════════════════════════════════
   FLOATING BUTTON (lesson / auth / dashboard)
   ═══════════════════════════════════════ */
.floating-theme-btn {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 9999;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #050a12;
  border: 1.5px solid rgba(6, 182, 212, 0.55);
  box-shadow: 0 0 20px rgba(6, 182, 212, 0.25), 0 4px 16px rgba(0, 0, 0, 0.6);
  transition: transform 0.25s, box-shadow 0.3s;
}

.floating-theme-btn:hover {
  transform: scale(1.12);
  box-shadow: 0 0 30px rgba(6, 182, 212, 0.4), 0 4px 20px rgba(0, 0, 0, 0.7);
}

:root.light-mode .floating-theme-btn {
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  border-color: rgba(245, 158, 11, 0.5);
  box-shadow: 0 4px 20px rgba(245, 158, 11, 0.2), 0 2px 8px rgba(0, 0, 0, 0.15);
}

.floating-theme-btn .flt-icon-sun,
.floating-theme-btn .flt-icon-moon {
  position: absolute;
  width: 18px;
  height: 18px;
  transition: opacity 0.3s, transform 0.3s;
}

.floating-theme-btn .flt-icon-sun {
  opacity: 0;
  transform: rotate(90deg) scale(0.6);
  color: #92400e;
}

.floating-theme-btn .flt-icon-moon {
  opacity: 1;
  transform: rotate(0deg) scale(1);
  color: #06d6f7;
}

:root.light-mode .floating-theme-btn .flt-icon-sun {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

:root.light-mode .floating-theme-btn .flt-icon-moon {
  opacity: 0;
  transform: rotate(-90deg) scale(0.6);
}


/* ══════════════════════════════════════════════════════════
   DARK MODE — TRUE NIGHT (Default / no .light-mode class)
   Applied to html that does NOT have .light-mode class
   ══════════════════════════════════════════════════════════ */

/* ─── Root & Body ─── */
html:not(.light-mode) {
  background: #050d1a !important;
  color-scheme: dark;
}

html:not(.light-mode) body {
  background: transparent !important;
  color: #e2e8f0 !important;
  position: relative;
}

/* ─── Chemistry Canvas Background (global, all sections) ─── */
html:not(.light-mode) body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse at 15% 20%, rgba(6, 182, 212, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 85% 70%, rgba(37, 99, 235, 0.07) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 50%, rgba(139, 92, 246, 0.04) 0%, transparent 60%),
    linear-gradient(160deg, #050d1a 0%, #070f1f 40%, #060c18 70%, #040a15 100%);
  pointer-events: none;
}

/* ─── Animated Chemistry Molecules Canvas ─── */
html:not(.light-mode) #chem-canvas-bg {
  position: fixed !important;
  inset: 0 !important;
  z-index: -1 !important;
  pointer-events: none !important;
  opacity: 1 !important;
}

/* ─── Mobile nav menu (was rgba white) ─── */
html:not(.light-mode) .nav-links {
  background: rgba(2, 5, 10, 0.98) !important;
  border-color: rgba(6, 182, 212, 0.08) !important;
}

/* ─── btn-secondary (was white glass) ─── */
html:not(.light-mode) .btn-secondary {
  background: rgba(10, 15, 25, 0.9) !important;
  color: #e2e8f0 !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
}

html:not(.light-mode) .btn-secondary:hover {
  background: rgba(6, 182, 212, 0.08) !important;
  border-color: rgba(6, 182, 212, 0.3) !important;
}

/* ─── Glass / backdrop elements ─── */
html:not(.light-mode) [class*="glass"],
html:not(.light-mode) [class*="bg-blob"],
html:not(.light-mode) [class*="bg-hex"] {
  background: rgba(2, 5, 10, 0.85) !important;
}

/* ─── Particle canvas — ensure dark base ─── */
html:not(.light-mode) #particle-canvas {
  opacity: 0.25 !important;
}

/* ─── Navbar ─── */
html:not(.light-mode) .navbar {
  background: rgba(4, 9, 20, 0.88) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  border-bottom: 1px solid rgba(6, 182, 212, 0.12) !important;
  box-shadow: 0 1px 30px rgba(0, 0, 0, 0.6), 0 0 60px rgba(6, 182, 212, 0.03) !important;
}

html:not(.light-mode) .logo-name {
  color: #f1f5f9 !important;
}

html:not(.light-mode) .logo-sub {
  color: #06B6D4 !important;
}

html:not(.light-mode) .nav-link {
  color: #94a3b8 !important;
}

html:not(.light-mode) .nav-link:hover,
html:not(.light-mode) .nav-link.active {
  color: #06B6D4 !important;
}

html:not(.light-mode) .btn-ghost {
  color: #94a3b8 !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
}

html:not(.light-mode) .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.05) !important;
}

html:not(.light-mode) .hamburger span {
  background: #94a3b8 !important;
}

/* ─── Hero ─── */
html:not(.light-mode) .hero-section {
  background: transparent !important;
}

html:not(.light-mode) .hero-title {
  color: #f1f5f9 !important;
}

html:not(.light-mode) .hero-sub {
  color: #94a3b8 !important;
}

html:not(.light-mode) .hero-badge {
  background: rgba(6, 182, 212, 0.08) !important;
  color: #67e8f9 !important;
  border-color: rgba(6, 182, 212, 0.2) !important;
}

html:not(.light-mode) .hex-pattern {
  opacity: 0.03 !important;
  filter: invert(0) !important;
}

/* ─── Course Cards ─── */
html:not(.light-mode) .pcc {
  background: rgba(6, 10, 22, 0.6) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  border-color: rgba(6, 182, 212, 0.1) !important;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.04) !important;
}

html:not(.light-mode) .pcc:hover {
  background: rgba(8, 14, 32, 0.75) !important;
  border-color: rgba(6, 182, 212, 0.22) !important;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.6), 0 0 24px rgba(6, 182, 212, 0.09) !important;
}

html:not(.light-mode) .pcc-body {
  background: transparent !important;
}

html:not(.light-mode) .pcc-title {
  color: #f1f5f9 !important;
}

html:not(.light-mode) .pcc-desc {
  color: #64748b !important;
}

html:not(.light-mode) .pcc-detail {
  color: #475569 !important;
}

html:not(.light-mode) .pcc-updated {
  color: #334155 !important;
}

html:not(.light-mode) .pcc-score {
  color: #94a3b8 !important;
}

html:not(.light-mode) .pcc-reviews {
  color: #475569 !important;
}

/* ─── Sections — transparent so chemistry bg shows ─── */
html:not(.light-mode) section {
  background: transparent !important;
}

html:not(.light-mode) #courses,
html:not(.light-mode) #stats,
html:not(.light-mode) #faq {
  background: rgba(1, 3, 8, 0.35) !important;
}

html:not(.light-mode) #subjects,
html:not(.light-mode) #why,
html:not(.light-mode) #features,
html:not(.light-mode) #results,
html:not(.light-mode) #teacher {
  background: rgba(3, 6, 14, 0.3) !important;
}

html:not(.light-mode) .section-title {
  color: #e2e8f0 !important;
}

html:not(.light-mode) .section-sub {
  color: #475569 !important;
}

/* ─── Filter chips ─── */
html:not(.light-mode) .filter-chip {
  background: #0a0d15 !important;
  color: #64748b !important;
  border-color: rgba(255, 255, 255, 0.07) !important;
}

html:not(.light-mode) .filter-chip.active,
html:not(.light-mode) .filter-chip:hover {
  background: rgba(6, 182, 212, 0.1) !important;
  color: #06B6D4 !important;
  border-color: rgba(6, 182, 212, 0.3) !important;
}

/* ─── Stats ─── */
html:not(.light-mode) .stat-card {
  background: rgba(6, 10, 22, 0.55) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  border-color: rgba(6, 182, 212, 0.09) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.04) !important;
}

html:not(.light-mode) .stat-value,
html:not(.light-mode) .stat-num {
  color: #e2e8f0 !important;
}

html:not(.light-mode) .stat-label {
  color: #475569 !important;
}

/* ─── FAQ ─── */
html:not(.light-mode) .faq-item {
  background: rgba(6, 10, 22, 0.55) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  border-color: rgba(6, 182, 212, 0.08) !important;
}

html:not(.light-mode) .faq-question {
  color: #e2e8f0 !important;
}

html:not(.light-mode) .faq-answer {
  color: #64748b !important;
}

/* ─── Feature / Why / Result cards ─── */
html:not(.light-mode) .why-card,
html:not(.light-mode) .feature-card,
html:not(.light-mode) .result-card {
  background: rgba(7, 12, 28, 0.55) !important;
  backdrop-filter: blur(14px) !important;
  -webkit-backdrop-filter: blur(14px) !important;
  border-color: rgba(6, 182, 212, 0.1) !important;
  color: #e2e8f0 !important;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(6, 182, 212, 0.06) !important;
}

html:not(.light-mode) .why-card:hover,
html:not(.light-mode) .feature-card:hover {
  border-color: rgba(6, 182, 212, 0.25) !important;
  background: rgba(7, 16, 36, 0.7) !important;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5), 0 0 20px rgba(6, 182, 212, 0.07), inset 0 1px 0 rgba(6, 182, 212, 0.1) !important;
}

/* ─── Teacher card ─── */
html:not(.light-mode) .teacher-card {
  background: #07090f !important;
  border-color: rgba(255, 255, 255, 0.05) !important;
  color: #e2e8f0 !important;
}

html:not(.light-mode) .teacher-photo,
html:not(.light-mode) .teacher-photo--real {
  background: linear-gradient(145deg, #0f172a 0%, #1e293b 100%) !important;
  border-color: rgba(6, 182, 212, .18) !important;
  box-shadow:
    0 4px 6px rgba(0, 0, 0, .25),
    0 12px 28px rgba(6, 182, 212, .08),
    0 32px 64px rgba(6, 182, 212, .06) !important;
}

html:not(.light-mode) .teacher-photo-wrap::before {
  background: linear-gradient(135deg,
      rgba(6, 182, 212, .12) 0%,
      rgba(37, 99, 235, .10) 50%,
      rgba(139, 92, 246, .08) 100%) !important;
}

html:not(.light-mode) .teacher-name {
  color: #f1f5f9 !important;
}

html:not(.light-mode) .teacher-bio {
  color: #64748b !important;
}

/* ─── Hero profile card ─── */
html:not(.light-mode) .hv2-profile-card,
html:not(.light-mode) .hv2-photo-wrap {
  background: rgba(6, 182, 212, 0.04) !important;
  border-color: rgba(6, 182, 212, 0.15) !important;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.8), 0 0 40px rgba(6, 182, 212, 0.06) !important;
}

html:not(.light-mode) .hv2-achievement-badge,
html:not(.light-mode) .hv2-photo-badge {
  background: rgba(3, 7, 15, 0.92) !important;
  border-color: rgba(6, 182, 212, 0.15) !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.7) !important;
}

/* ─── Glass elements ─── */
html:not(.light-mode) .glass-card,
html:not(.light-mode) [class*="glass"] {
  background: rgba(7, 9, 15, 0.85) !important;
  border-color: rgba(255, 255, 255, 0.06) !important;
  color: #e2e8f0 !important;
}

/* ─── Scrollbar ─── */
html:not(.light-mode) ::-webkit-scrollbar {
  width: 6px;
}

html:not(.light-mode) ::-webkit-scrollbar-track {
  background: #010306 !important;
}

html:not(.light-mode) ::-webkit-scrollbar-thumb {
  background: #0f172a !important;
  border-radius: 99px;
}

html:not(.light-mode) ::-webkit-scrollbar-thumb:hover {
  background: #1e293b !important;
}


/* ═══════════════════════════════════════════════════
   LESSON.HTML — TRUE NIGHT
   ═══════════════════════════════════════════════════ */
html:not(.light-mode) body.lesson-body {
  background: transparent !important;
  color: #e2e8f0 !important;
}

html:not(.light-mode) .lesson-topbar {
  background: rgba(2, 5, 10, 0.98) !important;
  border-bottom-color: rgba(6, 182, 212, 0.08) !important;
  box-shadow: 0 1px 24px rgba(0, 0, 0, 0.9) !important;
}

html:not(.light-mode) .t-name {
  color: #e2e8f0 !important;
}

html:not(.light-mode) .t-sub {
  color: #475569 !important;
}

html:not(.light-mode) .topbar-breadcrumb {
  color: #475569 !important;
}

html:not(.light-mode) .bc-active {
  color: #e2e8f0 !important;
}

html:not(.light-mode) .topbar-btn {
  color: #475569 !important;
}

html:not(.light-mode) .topbar-btn:hover {
  background: rgba(255, 255, 255, 0.04) !important;
  color: #e2e8f0 !important;
}

html:not(.light-mode) .sidebar-toggle {
  background: #0a0d15 !important;
  border-color: rgba(255, 255, 255, 0.07) !important;
  color: #475569 !important;
}

html:not(.light-mode) .topbar-progress-pill {
  background: #0a0d15 !important;
  border-color: rgba(255, 255, 255, 0.07) !important;
  color: #94a3b8 !important;
}

html:not(.light-mode) .lesson-sidebar {
  background: #03060d !important;
  border-right-color: rgba(6, 182, 212, 0.07) !important;
}

html:not(.light-mode) .sb-course-title {
  color: #e2e8f0 !important;
}

html:not(.light-mode) .sb-progress-wrap {
  background: #070a12 !important;
  border-color: rgba(255, 255, 255, 0.06) !important;
}

html:not(.light-mode) .sb-search {
  background: #070a12 !important;
  border-color: rgba(255, 255, 255, 0.07) !important;
}

html:not(.light-mode) .sb-search input {
  color: #e2e8f0 !important;
}

html:not(.light-mode) .lesson-main {
  background: #020508 !important;
}

html:not(.light-mode) .video-card {
  background: #07090f !important;
  border-color: rgba(255, 255, 255, 0.06) !important;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.7) !important;
}

html:not(.light-mode) .video-title {
  color: #f1f5f9 !important;
}

html:not(.light-mode) .lesson-tabs {
  background: #07090f !important;
  border-color: rgba(255, 255, 255, 0.06) !important;
}

html:not(.light-mode) .tab-btn {
  color: #475569 !important;
}

html:not(.light-mode) .tab-btn.active {
  color: #06B6D4 !important;
}

html:not(.light-mode) .bg-blob {
  opacity: 0.04 !important;
}

html:not(.light-mode) .bg-hex-grid {
  opacity: 0.015 !important;
}


/* ═══════════════════════════════════════════════════
   AUTH.HTML — TRUE NIGHT
   ═══════════════════════════════════════════════════ */
html:not(.light-mode) .auth-page,
html:not(.light-mode) .auth-bg {
  background: transparent !important;
}

html:not(.light-mode) .auth-card,
html:not(.light-mode) .auth-panel,
html:not(.light-mode) [class*="auth-form"] {
  background: #07090f !important;
  border-color: rgba(255, 255, 255, 0.07) !important;
  color: #e2e8f0 !important;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.8) !important;
}

html:not(.light-mode) input[type="text"],
html:not(.light-mode) input[type="email"],
html:not(.light-mode) input[type="password"],
html:not(.light-mode) input[type="number"],
html:not(.light-mode) input[type="tel"],
html:not(.light-mode) select,
html:not(.light-mode) textarea {
  background: #0a0d18 !important;
  color: #e2e8f0 !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
}

html:not(.light-mode) input::placeholder,
html:not(.light-mode) textarea::placeholder {
  color: #334155 !important;
}

html:not(.light-mode) label {
  color: #94a3b8 !important;
}


/* ═══════════════════════════════════════════════════
   DASHBOARD.HTML — TRUE NIGHT
   ═══════════════════════════════════════════════════ */
html:not(.light-mode) .main {
  background: transparent !important;
}

html:not(.light-mode) .content {
  background: transparent !important;
}

html:not(.light-mode) .topbar {
  background: #03060d !important;
  border-color: rgba(6, 182, 212, 0.08) !important;
  box-shadow: 0 1px 20px rgba(0, 0, 0, 0.8) !important;
}

html:not(.light-mode) .topbar-title {
  color: #e2e8f0 !important;
}

html:not(.light-mode) .topbar-actions button {
  background: #0a0d18 !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
  color: #94a3b8 !important;
}

html:not(.light-mode) .table-card {
  background: #03060d !important;
  border-color: rgba(255, 255, 255, 0.05) !important;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.6) !important;
}

html:not(.light-mode) th {
  background: #070a12 !important;
  color: #475569 !important;
  border-color: rgba(255, 255, 255, 0.05) !important;
}

html:not(.light-mode) td {
  color: #94a3b8 !important;
  border-color: rgba(255, 255, 255, 0.04) !important;
}

html:not(.light-mode) tr:hover td {
  background: rgba(6, 182, 212, 0.03) !important;
}

html:not(.light-mode) .table-search input {
  background: #0a0d18 !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
  color: #e2e8f0 !important;
}

html:not(.light-mode) .course-admin-card {
  background: #07090f !important;
  border-color: rgba(255, 255, 255, 0.05) !important;
}

html:not(.light-mode) .course-admin-title {
  color: #e2e8f0 !important;
}

html:not(.light-mode) .course-admin-meta {
  color: #475569 !important;
}

html:not(.light-mode) .quiz-preview-q {
  background: #070a12 !important;
  border-color: rgba(255, 255, 255, 0.06) !important;
}

html:not(.light-mode) .quiz-preview-q-text {
  color: #e2e8f0 !important;
}

html:not(.light-mode) .quiz-preview-opts li {
  background: #0a0d18 !important;
  border-color: rgba(255, 255, 255, 0.06) !important;
}

html:not(.light-mode) .stat-card {
  background: #07090f !important;
  border-color: rgba(255, 255, 255, 0.05) !important;
}

html:not(.light-mode) .stat-label {
  color: #475569 !important;
}

html:not(.light-mode) .stat-val {
  color: #e2e8f0 !important;
}


/* ═══════════════════════════════════════════════════
   LIGHT MODE OVERRIDES (keep pages usable in light)
   ═══════════════════════════════════════════════════ */
:root.light-mode {
  background: #f0f4f8 !important;
}

:root.light-mode body {
  background: #f0f4f8 !important;
  color: #0f172a !important;
}

:root.light-mode .btn-secondary {
  background: rgba(255, 255, 255, 0.9) !important;
  color: #0f172a !important;
  border-color: rgba(15, 23, 42, 0.15) !important;
}

:root.light-mode .nav-links {
  background: rgba(248, 250, 252, 0.97) !important;
  border-color: rgba(15, 23, 42, 0.09) !important;
}

:root.light-mode #particle-canvas {
  opacity: 0.35 !important;
}

:root.light-mode .navbar {
  background: rgba(248, 250, 252, 0.97) !important;
  border-bottom-color: rgba(15, 23, 42, 0.09) !important;
  box-shadow: 0 1px 12px rgba(15, 23, 42, 0.07) !important;
}

:root.light-mode .logo-name {
  color: #0f172a !important;
}

:root.light-mode .logo-sub {
  color: #2563EB !important;
}

:root.light-mode .nav-link {
  color: #374151 !important;
}

:root.light-mode .nav-link:hover,
:root.light-mode .nav-link.active {
  color: #2563EB !important;
}

:root.light-mode .btn-ghost {
  color: #374151 !important;
  border-color: rgba(15, 23, 42, 0.15) !important;
}

:root.light-mode .hamburger span {
  background: #374151 !important;
}

:root.light-mode .hero-section {
  background: linear-gradient(135deg, #e0f2fe 0%, #dbeafe 40%, #ede9fe 100%) !important;
}

:root.light-mode .hero-title {
  color: #0f172a !important;
}

:root.light-mode .hero-sub {
  color: #475569 !important;
}

:root.light-mode .hero-badge {
  background: rgba(255, 255, 255, 0.8) !important;
  color: #1e40af !important;
  border-color: rgba(37, 99, 235, 0.2) !important;
}

:root.light-mode .pcc {
  background: #ffffff !important;
  border-color: rgba(15, 23, 42, 0.07) !important;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.06) !important;
}

:root.light-mode .pcc-body {
  background: #ffffff !important;
}

:root.light-mode .pcc-title {
  color: #0f172a !important;
}

:root.light-mode .pcc-desc {
  color: #64748b !important;
}

:root.light-mode .pcc-detail {
  color: #64748b !important;
}

:root.light-mode .pcc-updated {
  color: #94a3b8 !important;
}

:root.light-mode section {
  background: transparent !important;
}

:root.light-mode .section-title {
  color: #0f172a !important;
}

:root.light-mode .section-sub {
  color: #64748b !important;
}

:root.light-mode .filter-chip {
  background: #ffffff !important;
  color: #374151 !important;
  border-color: rgba(15, 23, 42, 0.12) !important;
}

:root.light-mode .filter-chip.active,
:root.light-mode .filter-chip:hover {
  background: #2563EB !important;
  color: #fff !important;
  border-color: #2563EB !important;
}

:root.light-mode .stat-card {
  background: #ffffff !important;
  border-color: rgba(15, 23, 42, 0.07) !important;
}

:root.light-mode .stat-value,
:root.light-mode .stat-num {
  color: #0f172a !important;
}

:root.light-mode .stat-label {
  color: #64748b !important;
}

:root.light-mode .faq-item {
  background: #ffffff !important;
  border-color: rgba(15, 23, 42, 0.07) !important;
}

:root.light-mode .faq-question {
  color: #0f172a !important;
}

:root.light-mode .faq-answer {
  color: #64748b !important;
}

:root.light-mode .why-card,
:root.light-mode .feature-card,
:root.light-mode .result-card {
  background: #ffffff !important;
  border-color: rgba(15, 23, 42, 0.07) !important;
  color: #0f172a !important;
}

:root.light-mode .teacher-card {
  background: #ffffff !important;
  color: #0f172a !important;
}

:root.light-mode ::-webkit-scrollbar-track {
  background: #e2e8f0 !important;
}

:root.light-mode ::-webkit-scrollbar-thumb {
  background: #94a3b8 !important;
}

:root.light-mode ::-webkit-scrollbar-thumb:hover {
  background: #64748b !important;
}

/* Lesson light mode */
:root.light-mode body.lesson-body {
  background: #f0f4f8 !important;
  color: #0a1628 !important;
}

:root.light-mode .lesson-topbar {
  background: rgba(255, 255, 255, 0.98) !important;
  border-bottom-color: #e2e8f0 !important;
}

:root.light-mode .lesson-sidebar {
  background: rgba(255, 255, 255, 0.98) !important;
  border-right-color: #e2e8f0 !important;
}

:root.light-mode .video-card {
  background: #ffffff !important;
  border-color: #e2e8f0 !important;
}

/* Auth light mode */
:root.light-mode .auth-page {
  background: linear-gradient(135deg, #e0f2fe 0%, #dbeafe 40%, #ede9fe 100%) !important;
}

:root.light-mode .auth-card,
:root.light-mode .auth-panel {
  background: rgba(255, 255, 255, 0.95) !important;
  border-color: rgba(15, 23, 42, 0.07) !important;
  color: #0f172a !important;
}

:root.light-mode input[type="text"],
:root.light-mode input[type="email"],
:root.light-mode input[type="password"],
:root.light-mode input[type="number"],
:root.light-mode select,
:root.light-mode textarea {
  background: #f8fafc !important;
  color: #0f172a !important;
  border-color: #cbd5e1 !important;
}

:root.light-mode label {
  color: #374151 !important;
}

/* Dashboard light mode */
:root.light-mode .main,
:root.light-mode .content {
  background: #f8fafc !important;
}

:root.light-mode .topbar {
  background: #ffffff !important;
  border-color: #e2e8f0 !important;
}

:root.light-mode .table-card {
  background: #ffffff !important;
  border-color: #e2e8f0 !important;
}

:root.light-mode th {
  background: #f8fafc !important;
  color: #64748b !important;
}

:root.light-mode td {
  color: #0f172a !important;
  border-color: #f1f5f9 !important;
}

:root.light-mode .stat-card {
  background: #ffffff !important;
}

/* ══════════════════════════════════════
   GANG BANNER — Light Mode Overrides
   ══════════════════════════════════════ */
.light-mode .gang-line1 {
  color: var(--text-primary, #0F172A);
  opacity: .9;
}

.light-mode .gang-badge {
  background: rgba(6, 182, 212, .08);
  border-color: rgba(6, 182, 212, .25);
}

.light-mode .dev-credit-link {
  color: #0891B2;
}

/* ════ Light mode overrides for new elements ════ */
.light-mode .gang-line-1 {
  color: #1e293b;
}

.light-mode .gang-welcome-eyebrow {
  color: #0369a1;
}

.light-mode .gang-welcome-sub {
  color: #475569;
}

.light-mode .gang-divider span:first-child,
.light-mode .gang-divider span:last-child {
  background: linear-gradient(90deg, transparent, #0369a1, transparent);
}

.light-mode .gang-divider span:nth-child(2) {
  color: #0369a1;
}

.light-mode .footer-dev-credit {
  color: #475569;
}