/* ============================================
   STYLE.CSS - Main Stylesheet
   Günlük Genel Kültür Testi
   ============================================ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;600;700&display=swap');
@import url('./themes.css');
@import url('./animations.css');

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  transition: background-color 0.3s ease, color 0.3s ease;
  overflow-x: hidden;
}
a { color: var(--accent-primary); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent-primary-hover); }
button { font-family: inherit; cursor: pointer; border: none; outline: none; }
input, select, textarea { font-family: inherit; outline: none; }
ul, ol { list-style: none; }
img { max-width: 100%; display: block; }

/* ---- Scrollbar ---- */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--scrollbar-track); }
::-webkit-scrollbar-thumb { background: var(--scrollbar-thumb); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent-primary); }

/* ---- Layout ---- */
.container { max-width: 900px; margin: 0 auto; padding: 0 20px; }
.page { display: none; min-height: calc(100vh - 70px); padding: 30px 0 60px; }
.page.active { display: block; animation: fadeIn 0.3s ease-out; }

/* ---- Navbar (3D Ultra Premium) ---- */

@property --navbar-angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

/* Particles */
.particles {
  position: fixed; inset: 0;
  pointer-events: none; overflow: hidden; z-index: 0;
}
.particle {
  position: absolute;
  width: 4px; height: 4px; border-radius: 999px;
  background: rgba(34,211,238,0.5);
  box-shadow: 0 0 18px rgba(34,211,238,0.8);
  animation: floatUp linear infinite;
}
@keyframes floatUp {
  from { transform: translateY(110vh) scale(0.7); opacity: 0; }
  15%  { opacity: 1; }
  to   { transform: translateY(-10vh) scale(1.3); opacity: 0; }
}

/* Site header */
.site-header {
  position: sticky; top: 0; z-index: 1000;
  padding: 18px 22px;
  perspective: 1200px;
  background: linear-gradient(180deg, var(--bg-primary) 60%, transparent 100%);
}

/* 3D wrapper */
.navbar-3d {
  max-width: 1180px; margin: auto;
  position: relative; border-radius: 26px;
  transform-style: preserve-3d;
  transition: transform 0.18s ease;
}

/* Main container */
.navbar .container {
  display: flex; align-items: center; justify-content: space-between;
  gap: 18px;
  max-width: none;
  padding: 14px 18px;
  border-radius: 26px;
  background: rgba(8, 13, 28, 0.92);
  backdrop-filter: blur(26px) saturate(150%);
  -webkit-backdrop-filter: blur(26px) saturate(150%);
  border: 1px solid rgba(255,255,255,0.08);
  position: relative; overflow: hidden;
  transition: background 0.3s, box-shadow 0.3s;
  box-shadow:
    0 24px 80px rgba(0,0,0,0.55),
    0 0 70px rgba(139,92,246,0.18),
    inset 0 1px 0 rgba(255,255,255,0.08);
}

/* Animated conic gradient border */
.navbar .container::before {
  content: '';
  position: absolute; inset: -2px;
  padding: 2px; border-radius: 28px;
  background: conic-gradient(from var(--navbar-angle),
    transparent 0deg, transparent 80deg,
    #22d3ee 120deg, #a855f7 160deg, #6366f1 210deg,
    transparent 270deg, transparent 360deg);
  animation: navbarBorderSpin 5s linear infinite;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

@keyframes navbarBorderSpin {
  to { --navbar-angle: 360deg; }
}

/* Mouse-tracking glow */
.nav-glow {
  position: absolute;
  width: 360px; height: 360px; border-radius: 50%;
  background: radial-gradient(circle, rgba(34,211,238,0.22), rgba(168,85,247,0.14), transparent 66%);
  left: var(--glow-x, 50%); top: var(--glow-y, 50%);
  transform: translate(-50%, -50%);
  pointer-events: none;
  filter: blur(6px);
  z-index: 0;
}

/* ---- Brand ---- */
.navbar-brand {
  display: flex; align-items: center; gap: 12px;
  white-space: nowrap; text-decoration: none;
  color: var(--text-primary);
  position: relative; z-index: 2;
}
.brand-logo.premium-brain-logo {
  width: 46px; height: 46px; border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  position: relative;
  background:
    linear-gradient(135deg, rgba(34,211,238,0.18), rgba(168,85,247,0.16)),
    rgba(255,255,255,0.055);
  border: 1px solid rgba(255,255,255,0.13);
  box-shadow:
    0 0 22px rgba(34,211,238,0.28),
    0 0 44px rgba(168,85,247,0.18),
    inset 0 1px 0 rgba(255,255,255,0.22);
  overflow: hidden;
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
  transform: translateZ(34px);
  font-size: unset; line-height: unset;
}

/* Shine sweep */
.premium-brain-logo::before {
  content: "";
  position: absolute; inset: -40%;
  background: linear-gradient(120deg, transparent 20%, rgba(255,255,255,0.35) 45%, transparent 70%);
  transform: translateX(-90%) rotate(18deg);
  transition: transform 0.65s ease;
  z-index: 1;
}

/* Inner glow border */
.premium-brain-logo::after {
  content: "";
  position: absolute; inset: 5px;
  border-radius: 12px;
  border: 1px solid rgba(34,211,238,0.22);
  pointer-events: none;
  z-index: 1;
}

.navbar-brand:hover .premium-brain-logo {
  transform: translateZ(34px) translateY(-2px) scale(1.08) rotate(3deg);
  border-color: rgba(34,211,238,0.38);
  box-shadow:
    0 0 32px rgba(34,211,238,0.46),
    0 0 70px rgba(168,85,247,0.32),
    inset 0 1px 0 rgba(255,255,255,0.28);
}

.navbar-brand:hover .premium-brain-logo::before {
  transform: translateX(90%) rotate(18deg);
}

/* SVG animations */
.brain-svg {
  position: relative; z-index: 2;
  animation: brainFloat 3.2s ease-in-out infinite;
}
.brain-shape {
  transform-origin: center;
  animation: brainPulse 2.6s ease-in-out infinite;
}

@keyframes brainFloat {
  0%, 100% { transform: translateY(0) scale(1); }
  50%      { transform: translateY(-1.5px) scale(1.03); }
}
@keyframes brainPulse {
  0%, 100% { opacity: 0.95; transform: scale(1); }
  50%      { opacity: 1; transform: scale(1.035); }
}
.brand-text-wrap {
  display: flex; flex-direction: column;
}
.brand-text {
  font-size: 15px; font-weight: 800; letter-spacing: -0.02em;
  background: linear-gradient(135deg, #22d3ee, #c084fc);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.brand-text strong {
  font-weight: 900;
  background: linear-gradient(135deg, #22d3ee, #c084fc);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.brand-sub {
  display: block; margin-top: 2px;
  font-size: 11px; font-weight: 500;
  color: var(--text-secondary);
  -webkit-text-fill-color: unset;
}

/* ---- Nav Links ---- */
.navbar-nav {
  display: flex; gap: 5px; align-items: center;
  position: relative; z-index: 2;
}
.navbar-nav .nav-link {
  color: var(--text-secondary);
  padding: 10px 13px; border-radius: 14px;
  font-size: 13px; font-weight: 650;
  transition: all 0.25s ease;
  display: flex; align-items: center; gap: 7px;
  white-space: nowrap; border: none;
  position: relative; overflow: hidden;
  transform: translateZ(22px);
}
.navbar-nav .nav-link svg {
  width: 16px; height: 16px;
  transition: all 0.25s ease;
  flex-shrink: 0;
}

/* Moving shine sweep */
.navbar-nav .nav-link::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(115deg, transparent, rgba(255,255,255,0.18), transparent);
  transform: translateX(-120%);
  transition: 0.4s ease;
  pointer-events: none;
}
.navbar-nav .nav-link:hover::after {
  transform: translateX(120%);
}

/* Hover — 3D lift */
.navbar-nav .nav-link:hover {
  color: var(--text-primary);
  background: rgba(255,255,255,0.055);
  transform: translateZ(30px) translateY(-2px) scale(1.06);
}
.navbar-nav .nav-link:hover svg {
  transform: rotate(10deg) scale(1.2);
}

/* Active — deep neon glow */
.navbar-nav .nav-link.active {
  color: #67e8f9;
  background: linear-gradient(135deg, rgba(34,211,238,0.14), rgba(168,85,247,0.1));
  box-shadow:
    0 0 28px rgba(34,211,238,0.34),
    0 0 48px rgba(168,85,247,0.22),
    inset 0 0 14px rgba(34,211,238,0.12);
}
.navbar-nav .nav-link.active svg { opacity: 1; }

/* ---- Actions ---- */
.navbar-actions {
  display: flex; align-items: center; gap: 10px;
  position: relative; z-index: 2;
}

/* Theme toggle */
.theme-toggle {
  width: 40px; height: 40px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.055);
  color: var(--text-primary);
  display: grid; place-items: center;
  transition: all 0.25s ease;
}
.theme-toggle:hover {
  transform: translateY(-2px) scale(1.08) rotate(8deg);
  box-shadow: 0 0 26px rgba(34,211,238,0.2);
}
.theme-toggle svg { transition: transform 0.35s ease; }

/* Auth button — animated gradient pill */
.btn-auth {
  display: flex; align-items: center; gap: 8px;
  height: 40px; padding: 0 20px;
  border-radius: 999px; border: none;
  color: #fff; font-weight: 800; font-size: 0.85rem;
  white-space: nowrap;
  background: linear-gradient(270deg, #06b6d4, #8b5cf6, #6366f1, #06b6d4);
  background-size: 300% 300%;
  animation: btnGradientMove 5s ease infinite;
  box-shadow:
    0 14px 34px rgba(139,92,246,0.44),
    inset 0 1px 0 rgba(255,255,255,0.28);
  transition: all 0.25s ease;
  position: relative; overflow: hidden;
}

@keyframes btnGradientMove {
  0%, 100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}

.btn-auth:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow:
    0 22px 52px rgba(139,92,246,0.62),
    0 0 24px rgba(34,211,238,0.26);
}
.btn-auth svg { opacity: 0.9; }

/* ---- Light Mode Navbar Overrides ---- */
[data-theme="light"] .navbar .container {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(0,0,0,0.06);
  box-shadow:
    0 12px 40px rgba(0,0,0,0.08),
    0 0 30px rgba(8,145,178,0.06),
    inset 0 1px 0 rgba(255,255,255,0.9);
}

[data-theme="light"] .navbar .container::before {
  opacity: 0.35;
}

[data-theme="light"] .nav-glow {
  background: radial-gradient(circle, rgba(8,145,178,0.12), rgba(124,58,237,0.08), transparent 66%);
}

[data-theme="light"] .brand-text,
[data-theme="light"] .brand-text strong {
  background: linear-gradient(135deg, #0891b2, #7c3aed);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}

[data-theme="light"] .brand-sub {
  color: #64748b;
}

[data-theme="light"] .premium-brain-logo {
  background:
    linear-gradient(135deg, rgba(8,145,178,0.12), rgba(124,58,237,0.1)),
    rgba(255,255,255,0.6);
  border-color: rgba(0,0,0,0.08);
  box-shadow:
    0 0 14px rgba(8,145,178,0.12),
    0 0 28px rgba(124,58,237,0.08),
    inset 0 1px 0 rgba(255,255,255,0.7);
}

[data-theme="light"] .navbar-nav .nav-link {
  color: #475569;
}

[data-theme="light"] .navbar-nav .nav-link:hover {
  color: #0f172a;
  background: rgba(0,0,0,0.04);
}

[data-theme="light"] .navbar-nav .nav-link::after {
  background: linear-gradient(115deg, transparent, rgba(0,0,0,0.06), transparent);
}

[data-theme="light"] .navbar-nav .nav-link.active {
  color: #0891b2;
  background: linear-gradient(135deg, rgba(8,145,178,0.1), rgba(124,58,237,0.06));
  box-shadow:
    0 0 16px rgba(8,145,178,0.15),
    0 0 30px rgba(124,58,237,0.08),
    inset 0 0 8px rgba(8,145,178,0.06);
}

[data-theme="light"] .theme-toggle {
  background: rgba(0,0,0,0.04);
  border: 1px solid rgba(0,0,0,0.08);
  color: #475569;
}

[data-theme="light"] .theme-toggle:hover {
  box-shadow: 0 0 16px rgba(8,145,178,0.12);
  color: #0891b2;
}

[data-theme="light"] .btn-auth {
  box-shadow:
    0 8px 24px rgba(124,58,237,0.22),
    inset 0 1px 0 rgba(255,255,255,0.3);
}

[data-theme="light"] .btn-auth:hover {
  box-shadow:
    0 14px 36px rgba(124,58,237,0.35),
    0 0 16px rgba(8,145,178,0.12);
}

[data-theme="light"] .navbar-toggle {
  color: #1e293b;
  border-color: rgba(0,0,0,0.1);
  background: rgba(0,0,0,0.04);
}

[data-theme="light"] .particle {
  background: rgba(8,145,178,0.3);
  box-shadow: 0 0 12px rgba(8,145,178,0.4);
}

/* User button (logged in) */
.btn-user {
  display: flex; align-items: center; gap: 6px;
  padding: 8px 14px; border-radius: 12px;
  background: var(--bg-glass); border: 1px solid var(--border-color);
  color: var(--text-primary); font-size: 0.88rem; font-weight: 500;
  transition: all 0.2s; cursor: pointer; position: relative;
}
.btn-user:hover { border-color: var(--accent-primary); background: var(--bg-card); }
.btn-user .user-name { max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.btn-user .user-chevron { font-size: 0.7rem; color: var(--text-secondary); transition: transform 0.2s; }

/* User dropdown */
.user-dropdown {
  position: fixed; z-index: 1500;
  background: var(--bg-secondary); border: 1px solid var(--border-color);
  border-radius: 14px; padding: 6px; min-width: 200px;
  box-shadow: var(--shadow-lg); animation: fadeInDown 0.15s ease-out;
}
.dropdown-email {
  padding: 10px 14px; font-size: 0.82rem; color: var(--text-secondary);
  border-bottom: 1px solid var(--border-color); margin-bottom: 4px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.dropdown-item {
  width: 100%; text-align: left; padding: 10px 14px; border-radius: 8px;
  background: none; color: var(--text-primary); font-size: 0.88rem;
  cursor: pointer; border: none; font-family: inherit;
  display: flex; align-items: center; gap: 8px; transition: background 0.15s;
}
.dropdown-item:hover { background: var(--bg-glass); }
.dropdown-divider { height: 1px; background: var(--border-color); margin: 4px 0; }
.dropdown-logout { color: var(--error); }
.dropdown-logout:hover { background: var(--error-bg); }

/* Mobile menu */
.navbar-toggle {
  display: none; width: 38px; height: 38px; border-radius: 10px;
  background: var(--bg-glass); border: 1px solid var(--border-color);
  color: var(--text-secondary); font-size: 1.2rem;
  align-items: center; justify-content: center;
}


/* ---- Cards ---- */
.card {
  background: var(--bg-card); border: 1px solid var(--border-color);
  border-radius: 16px; padding: 24px;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
}
.card:hover { border-color: var(--border-color-hover); box-shadow: var(--shadow-md); }
.card-glass {
  background: var(--bg-glass); border: 1px solid var(--bg-glass-border);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-radius: 16px; padding: 24px;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 24px; border-radius: 10px; font-size: 0.9rem; font-weight: 600;
  transition: all 0.2s; border: none;
}
.btn-primary {
  background: var(--accent-gradient); color: #fff;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-glow); }
.btn-secondary {
  background: var(--bg-tertiary); color: var(--text-primary);
  border: 1px solid var(--border-color);
}
.btn-secondary:hover { border-color: var(--accent-primary); color: var(--accent-primary); }
.btn-success { background: var(--success); color: #fff; }
.btn-danger { background: var(--error); color: #fff; }
.btn-lg { padding: 14px 32px; font-size: 1rem; border-radius: 12px; }
.btn-sm { padding: 8px 16px; font-size: 0.8rem; border-radius: 8px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none !important; }

/* ---- Quiz Specific ---- */
.quiz-header { text-align: center; margin-bottom: 30px; }
.quiz-header h1 {
  font-size: 1.6rem; font-weight: 700; margin-bottom: 4px;
  background: var(--accent-gradient); -webkit-background-clip: text;
  -webkit-text-fill-color: transparent; background-clip: text;
}
.quiz-header .quiz-date { color: var(--text-secondary); font-size: 0.9rem; }
.quiz-progress {
  height: 4px; background: var(--bg-tertiary); border-radius: 4px;
  margin-bottom: 24px; overflow: hidden;
}
.quiz-progress-bar {
  height: 100%; background: var(--accent-gradient); border-radius: 4px;
  transition: width 0.4s ease;
}
.question-card {
  background: var(--bg-card); border: 1px solid var(--border-color);
  border-radius: 16px; padding: 32px; margin-bottom: 20px;
  animation: fadeInUp 0.4s ease-out;
}

/* Question Timer Bar */
.question-timer-bar {
  background: var(--bg-tertiary); border: 1px solid var(--border-color);
  border-radius: 14px; padding: 14px 18px; margin-bottom: 16px;
  transition: all 0.3s ease;
}
.question-timer-info {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 8px;
}
.question-timer-label {
  font-size: 0.82rem; color: var(--text-secondary); font-weight: 500;
}
.question-timer-text {
  font-size: 1.15rem; font-weight: 800; font-variant-numeric: tabular-nums;
  color: var(--accent-primary);
  transition: color 0.3s ease;
}
.question-timer-track {
  width: 100%; height: 6px; border-radius: 3px;
  background: var(--bg-input); overflow: hidden;
}
.question-timer-fill {
  height: 100%; border-radius: 3px; width: 100%;
  background: var(--accent-gradient);
  transition: width 120s linear;
}

/* Timer warning states */
.question-timer-bar.warning {
  border-color: var(--warning);
  background: rgba(245, 158, 11, 0.05);
}
.question-timer-bar.warning .question-timer-text { color: var(--warning); }
.question-timer-bar.warning .question-timer-fill {
  background: linear-gradient(90deg, var(--warning), #f59e0b);
}

.question-timer-bar.danger {
  border-color: var(--error);
  background: rgba(239, 68, 68, 0.08);
  animation: timerDangerPulse 0.8s ease-in-out infinite;
}
.question-timer-bar.danger .question-timer-text {
  color: var(--error); animation: timerTextPulse 0.5s ease-in-out infinite;
}
.question-timer-bar.danger .question-timer-fill {
  background: linear-gradient(90deg, var(--error), #ef4444);
}

@keyframes timerDangerPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
  50% { box-shadow: 0 0 12px 2px rgba(239, 68, 68, 0.15); }
}
@keyframes timerTextPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}
.question-number {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 8px;
  background: var(--accent-gradient); color: #fff;
  font-size: 0.85rem; font-weight: 700; margin-bottom: 12px;
}
.question-text { font-size: 1.1rem; font-weight: 600; line-height: 1.5; margin-bottom: 20px; }
.options-list { display: flex; flex-direction: column; gap: 10px; }
.option-btn {
  width: 100%; padding: 14px 18px; border-radius: 12px;
  background: var(--bg-input); border: 2px solid var(--border-color);
  color: var(--text-primary); font-size: 0.95rem; font-weight: 500;
  text-align: left; transition: all 0.2s; cursor: pointer;
  display: flex; align-items: center; gap: 12px;
}
.option-btn:hover:not(.selected):not(.correct):not(.wrong) {
  border-color: var(--accent-primary); background: var(--accent-primary-glow);
}
.option-btn .option-letter {
  width: 28px; height: 28px; border-radius: 8px;
  background: var(--bg-tertiary); display: flex; align-items: center;
  justify-content: center; font-weight: 700; font-size: 0.85rem;
  flex-shrink: 0; transition: all 0.2s;
}
.option-btn.selected { border-color: var(--accent-primary); background: var(--accent-primary-glow); }
.option-btn.selected .option-letter { background: var(--accent-primary); color: #fff; }
.option-btn.correct {
  border-color: var(--success); background: var(--success-bg);
  animation: fadeInScale 0.3s ease-out;
}
.option-btn.correct .option-letter { background: var(--success); color: #fff; }
.option-btn.wrong {
  border-color: var(--error); background: var(--error-bg);
  animation: shake 0.4s ease-out;
}
.option-btn.wrong .option-letter { background: var(--error); color: #fff; }

/* ---- Premium Results ---- */
.results-container { text-align: center; max-width: 640px; margin: 0 auto; }

/* Hero Header */
.results-hero { margin-bottom: 8px; }
.results-hero-sub {
  font-size: 0.85rem; color: var(--text-secondary);
  letter-spacing: 0.05em; text-transform: uppercase; margin-bottom: 4px;
}
.results-hero-title {
  font-size: 1.6rem; font-weight: 800; letter-spacing: -0.01em;
  background: linear-gradient(135deg, #22d3ee, #60a5fa, #a855f7);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  text-shadow: none; opacity: 0.9;
}
.results-hero-date {
  font-size: 0.82rem; color: var(--text-secondary); margin-top: 2px;
}

/* Result Animations */
.anim-fade-in-up {
  opacity: 0; transform: translateY(20px);
  animation: premiumFadeInUp 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}
.premium-score.anim-fade-in-up {
  transform: translateY(20px) scale(0.95);
  animation: premiumScaleInUp 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}
@keyframes premiumFadeInUp {
  to { opacity: 1; transform: translateY(0); }
}
@keyframes premiumScaleInUp {
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Success Message */
.success-message {
  display: inline-block; margin: 12px auto 0;
  padding: 6px 16px; border-radius: 999px;
  background: linear-gradient(135deg, rgba(16,185,129,0.15), rgba(34,211,238,0.15));
  border: 1px solid rgba(16,185,129,0.3);
  color: #10b981; font-weight: 800; font-size: 0.85rem;
  box-shadow: 0 0 16px rgba(16,185,129,0.2);
}

/* Premium Score Circle */
.premium-score { margin: 24px auto 20px; display: flex; justify-content: center; }
.premium-score-ring {
  position: relative; width: 200px; height: 200px;
}
.premium-score-ring svg {
  width: 100%; height: 100%;
  transform: rotate(-90deg);
}
.premium-score-ring .ring-bg {
  fill: none; stroke: rgba(255,255,255,0.06); stroke-width: 7;
}
.premium-score-ring .ring-fill {
  fill: none; stroke-width: 7; stroke-linecap: round;
  stroke: url(#scoreGrad);
  stroke-dasharray: 326.73;
  stroke-dashoffset: calc(326.73 - (326.73 * var(--pct, 0) / 100));
  animation: ringDraw 1.2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  filter: drop-shadow(0 0 8px rgba(34,211,238,0.4));
}
@keyframes ringDraw {
  from { stroke-dashoffset: 326.73; }
}
.premium-score-inner {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.premium-score.is-perfect .premium-score-inner {
  animation: perfectPulse 2s ease-in-out infinite;
}
@keyframes perfectPulse {
  0%, 100% { transform: scale(1); filter: drop-shadow(0 0 10px rgba(34,211,238,0.3)); }
  50% { transform: scale(1.05); filter: drop-shadow(0 0 20px rgba(34,211,238,0.6)); }
}
.premium-score-value {
  font-family: 'JetBrains Mono', monospace; font-size: 3rem; font-weight: 900;
  background: linear-gradient(135deg, #22d3ee, #a855f7);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  text-shadow: none;
  animation: scoreGlow 2s ease-in-out infinite;
}
.premium-score.is-perfect .premium-score-value {
  font-size: 3.2rem;
  background: linear-gradient(135deg, #10b981, #22d3ee);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
@keyframes scoreGlow {
  0%, 100% { filter: drop-shadow(0 0 6px rgba(34,211,238,0.25)); }
  50%      { filter: drop-shadow(0 0 12px rgba(168,85,247,0.4)); }
}
.premium-score-label {
  font-size: 0.85rem; color: var(--text-secondary); margin-top: 2px;
}
.premium-score-perfect {
  font-size: 0.8rem; font-weight: 800; color: #10b981;
  text-transform: uppercase; letter-spacing: 1px; margin-top: 2px;
  text-shadow: 0 0 10px rgba(16,185,129,0.5);
}

/* Sparkles */
.sparkle {
  position: absolute; width: 6px; height: 6px; border-radius: 50%;
  background: #22d3ee; box-shadow: 0 0 8px 2px rgba(34,211,238,0.8);
  opacity: 0; pointer-events: none;
  animation: sparkleFlash 1.5s ease-out forwards;
}
.s-1 { top: 10%; left: 10%; animation-delay: 0.2s; }
.s-2 { top: 5%; right: 20%; background: #a855f7; box-shadow: 0 0 8px 2px rgba(168,85,247,0.8); animation-delay: 0.4s; }
.s-3 { top: 40%; right: -5%; animation-delay: 0.6s; }
.s-4 { bottom: 15%; right: 10%; background: #10b981; box-shadow: 0 0 8px 2px rgba(16,185,129,0.8); animation-delay: 0.3s; }
.s-5 { bottom: 5%; left: 20%; animation-delay: 0.5s; }
.s-6 { top: 50%; left: -5%; background: #a855f7; box-shadow: 0 0 8px 2px rgba(168,85,247,0.8); animation-delay: 0.7s; }

@keyframes sparkleFlash {
  0% { transform: scale(0); opacity: 0; }
  20% { transform: scale(1.5); opacity: 1; }
  100% { transform: scale(0); opacity: 0; }
}

/* Achievement Badge */
.achievement-badge { margin-bottom: 28px; }
.badge-pill {
  display: inline-block;
  padding: 8px 22px; border-radius: 999px;
  font-size: 0.95rem; font-weight: 900;
  background: linear-gradient(135deg, rgba(34,211,238,0.2), rgba(168,85,247,0.2));
  border: 1px solid rgba(34,211,238,0.4);
  color: #fff;
  text-shadow: 0 0 8px rgba(34,211,238,0.8);
  box-shadow: 0 0 20px rgba(34,211,238,0.25);
  animation: badgeFloat 3s ease-in-out infinite;
}
@keyframes badgeFloat {
  0%, 100% { transform: translateY(0); filter: drop-shadow(0 0 8px rgba(34,211,238,0.3)); }
  50%      { transform: translateY(-4px); filter: drop-shadow(0 0 16px rgba(168,85,247,0.5)); }
}
.badge-sub {
  font-size: 0.8rem; color: var(--text-secondary); margin-top: 8px;
}
.badge-sub strong { color: var(--accent-primary); font-weight: 800; }

/* Premium Stat Cards */
.premium-stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 24px;
}
.pstat-card {
  position: relative; overflow: hidden;
  padding: 20px 14px 16px;
  border-radius: 16px;
  background: rgba(15,23,42,0.5);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.06);
  text-align: center;
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}
.pstat-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.25);
}
.pstat-glow {
  position: absolute; top: -40%; left: 50%; transform: translateX(-50%);
  width: 120px; height: 80px; border-radius: 50%;
  pointer-events: none; opacity: 0.12;
}
.pstat-correct .pstat-glow { background: radial-gradient(circle, #10b981, transparent); }
.pstat-wrong .pstat-glow   { background: radial-gradient(circle, #ef4444, transparent); }
.pstat-avg .pstat-glow     { background: radial-gradient(circle, #8b5cf6, transparent); }
.pstat-timeout .pstat-glow { background: radial-gradient(circle, #f59e0b, transparent); }

.pstat-icon { width: 28px; height: 28px; margin: 0 auto 8px; }
.pstat-value {
  font-family: 'JetBrains Mono', monospace; font-size: 1.6rem; font-weight: 800;
}
.pstat-correct .pstat-value { color: #10b981; }
.pstat-wrong .pstat-value   { color: #ef4444; }
.pstat-avg .pstat-value     { color: #8b5cf6; }
.pstat-timeout .pstat-value { color: #f59e0b; }

.pstat-label {
  font-size: 0.78rem; color: var(--text-secondary); margin-top: 2px; font-weight: 600;
}
.pstat-micro {
  font-size: 0.65rem; color: var(--text-tertiary); margin-top: 4px;
  font-style: italic; opacity: 0.8;
}
.pstat-bar {
  position: absolute; bottom: 0; left: 0;
  height: 3px; width: var(--bar-w, 0%);
  background: var(--bar-c, var(--accent-primary));
  border-radius: 0 2px 0 0;
  animation: pstatBarGrow 0.8s 0.3s cubic-bezier(0.4, 0, 0.2, 1) both;
}
@keyframes pstatBarGrow {
  from { width: 0; }
}

/* Result Action Buttons */
.results-actions {
  display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 28px;
}
.rbtn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 24px; border-radius: 14px;
  font-size: 0.9rem; font-weight: 700; cursor: pointer;
  border: none; transition: transform 0.25s, box-shadow 0.25s;
}
.rbtn:hover { transform: translateY(-3px); }
.rbtn-primary {
  background: linear-gradient(135deg, #22d3ee, #6366f1);
  color: #fff;
  box-shadow: 0 4px 18px rgba(34,211,238,0.25);
}
.rbtn-primary:hover { box-shadow: 0 8px 28px rgba(34,211,238,0.4); }
.rbtn-glass {
  background: rgba(255,255,255,0.06);
  color: var(--text-primary);
  border: 1px solid rgba(255,255,255,0.1);
  backdrop-filter: blur(8px);
}
.rbtn-glass:hover {
  background: rgba(255,255,255,0.1);
  box-shadow: 0 6px 22px rgba(0,0,0,0.2);
}

/* ---- Score Distribution Chart ---- */
.dist-section {
  margin-bottom: 20px; padding: 28px;
  background: rgba(15,23,42,0.45);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 18px; position: relative; overflow: hidden;
  transition: box-shadow 0.3s;
}
.dist-section::before {
  content: ""; position: absolute;
  top: -50%; left: 50%; transform: translateX(-50%);
  width: 300px; height: 200px; border-radius: 50%;
  background: radial-gradient(circle, rgba(34,211,238,0.06), transparent 70%);
  pointer-events: none;
}
.dist-section:hover {
  box-shadow: 0 0 40px rgba(34,211,238,0.08);
}
.dist-header {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 12px; margin-bottom: 20px; text-align: left;
}
.dist-title {
  font-size: 1.1rem; font-weight: 700; margin-bottom: 6px;
  display: flex; align-items: center; gap: 8px;
  background: linear-gradient(135deg, #22d3ee, #a855f7);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.dist-title svg {
  flex-shrink: 0;
  stroke: #22d3ee;
}
.dist-subtitle {
  font-size: 0.85rem; color: var(--text-secondary);
  line-height: 1.5;
}
.dist-subtitle strong { color: var(--accent-primary); font-weight: 800; }

.dist-badge {
  flex-shrink: 0; padding: 5px 14px;
  border-radius: 999px; font-size: 0.75rem; font-weight: 800;
  background: linear-gradient(135deg, rgba(250,204,21,0.12), rgba(245,158,11,0.12));
  border: 1px solid rgba(250,204,21,0.3);
  color: #fbbf24; white-space: nowrap;
}

.dist-chart { padding: 0 4px; position: relative; z-index: 1; }
.dist-bars {
  display: flex; align-items: flex-end; gap: 6px;
  height: 140px; border-bottom: 1px solid rgba(255,255,255,0.06);
  padding-bottom: 0;
}
.dist-bar-col {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: flex-end; height: 100%;
  position: relative;
}
.dist-bar-value {
  font-size: 0.7rem; color: var(--text-secondary);
  margin-bottom: 4px; font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.dist-bar {
  width: 100%; min-width: 16px; border-radius: 4px 4px 0 0;
  background: rgba(6, 182, 212, 0.2);
  border: 1px solid rgba(6, 182, 212, 0.3);
  border-bottom: none;
  transition: height 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
  animation: barGrow 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}
.dist-bar-user {
  background: linear-gradient(180deg, rgba(34,211,238,0.6), rgba(16,185,129,0.4));
  border-color: rgba(34,211,238,0.8);
  box-shadow: 0 0 24px rgba(34,211,238,0.4);
}
.dist-bar-you-pill {
  position: absolute; top: -34px; left: 50%; transform: translateX(-50%);
  background: rgba(34,211,238,0.25); border: 1px solid rgba(34,211,238,0.6);
  color: #22d3ee; font-size: 0.65rem; font-weight: 800;
  padding: 4px 10px; border-radius: 999px; white-space: nowrap;
  animation: pulsePill 2.5s ease-in-out infinite;
  box-shadow: 0 0 12px rgba(34,211,238,0.3);
}
.dist-bar-you-pill::after {
  content: "↓"; position: absolute; bottom: -16px; left: 50%;
  transform: translateX(-50%); color: #22d3ee; font-size: 0.9rem;
}
@keyframes pulsePill {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: 0.85; }
  50% { transform: translateX(-50%) translateY(-3px); opacity: 1; }
}
.dist-bar-label {
  font-size: 0.75rem; font-weight: 700; color: var(--text-secondary);
  margin-top: 8px; font-variant-numeric: tabular-nums;
}
.dist-bar-col:has(.dist-bar-user) .dist-bar-label {
  color: #10b981; font-weight: 800;
}

@keyframes barGrow {
  0% { transform: scaleY(0); transform-origin: bottom; }
  100% { transform: scaleY(1); transform-origin: bottom; }
}

.dist-legend {
  display: flex; justify-content: center; gap: 24px;
  margin-top: 16px; position: relative; z-index: 1;
}
.dist-legend-item {
  display: flex; align-items: center; gap: 6px;
  font-size: 0.78rem; color: var(--text-secondary);
}
.dist-legend-dot { width: 10px; height: 10px; border-radius: 3px; }
.dist-legend-others {
  background: rgba(6, 182, 212, 0.3); border: 1px solid rgba(6, 182, 212, 0.4);
}
.dist-legend-you {
  background: rgba(16, 185, 129, 0.5); border: 1px solid rgba(16, 185, 129, 0.7);
}

/* ---- Share Section ---- */
.share-section {
  padding: 28px;
  background: rgba(15,23,42,0.4);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 18px; text-align: center;
}
.share-title {
  font-size: 1.05rem; font-weight: 800; margin-bottom: 4px;
  background: linear-gradient(135deg, #22d3ee, #a855f7);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.share-text {
  font-size: 0.82rem; color: var(--text-secondary); margin-bottom: 18px;
}
.share-buttons {
  display: flex; justify-content: center; gap: 10px; flex-wrap: wrap;
}
.share-btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 6px; padding: 11px 18px; border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(6px);
  color: var(--text-primary);
  cursor: pointer; font-size: 0.85rem; font-weight: 600;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s, background 0.25s;
}
.share-btn:hover {
  transform: translateY(-4px) scale(1.08);
}
.share-x {
  background: rgba(0,0,0,0.5); color: #fff; border-color: rgba(255,255,255,0.1);
}
.share-x:hover { box-shadow: 0 6px 20px rgba(0,0,0,0.35); }
.share-whatsapp {
  background: rgba(37,211,102,0.15); color: #25d366; border-color: rgba(37,211,102,0.3);
}
.share-whatsapp:hover { box-shadow: 0 6px 20px rgba(37,211,102,0.25); background: rgba(37,211,102,0.25); }
.share-facebook {
  background: rgba(24,119,242,0.15); color: #1877f2; border-color: rgba(24,119,242,0.3);
}
.share-facebook:hover { box-shadow: 0 6px 20px rgba(24,119,242,0.25); background: rgba(24,119,242,0.25); }
.share-copy {
  background: rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.08);
}
.share-copy:hover { border-color: var(--accent-primary); color: var(--accent-primary); box-shadow: 0 6px 20px rgba(34,211,238,0.12); }

/* ---- Quickfire ---- */
.quickfire-timer {
  position: relative; width: 120px; height: 120px; margin: 0 auto 20px;
}
.quickfire-timer svg { transform: rotate(-90deg); width: 120px; height: 120px; }
.quickfire-timer circle {
  fill: none; stroke-width: 6; stroke-linecap: round;
}
.quickfire-timer .timer-bg { stroke: var(--bg-tertiary); }
.quickfire-timer .timer-fill {
  stroke: var(--accent-primary); stroke-dasharray: 283;
  transition: stroke-dashoffset 0.1s linear;
}
.quickfire-timer .timer-text {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  font-family: 'JetBrains Mono', monospace; font-size: 1.8rem; font-weight: 700;
  color: var(--accent-primary);
}
.quickfire-score {
  font-family: 'JetBrains Mono', monospace; font-size: 2rem; font-weight: 700;
  text-align: center; margin-bottom: 20px; color: var(--text-primary);
}

/* ---- Archive ---- */
.archive-list { display: flex; flex-direction: column; gap: 12px; }
.archive-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 24px; background: var(--bg-card);
  border: 1px solid var(--border-color); border-radius: 14px;
  transition: all 0.2s; cursor: pointer;
}
.archive-item:hover { border-color: var(--accent-primary); transform: translateX(4px); }
.archive-item-info h3 { font-size: 1rem; font-weight: 600; margin-bottom: 4px; }
.archive-item-info .archive-date { color: var(--text-secondary); font-size: 0.85rem; }
.archive-item-stats { text-align: right; }
.archive-item-stats .avg-score {
  font-family: 'JetBrains Mono', monospace; font-size: 1.5rem; font-weight: 700;
  color: var(--accent-primary);
}
.archive-item-stats .plays-count { color: var(--text-secondary); font-size: 0.8rem; }

/* ---- Pagination ---- */
.pagination { display: flex; justify-content: center; gap: 6px; margin-top: 24px; }
.pagination button {
  width: 36px; height: 36px; border-radius: 8px;
  background: var(--bg-card); border: 1px solid var(--border-color);
  color: var(--text-secondary); font-weight: 600; font-size: 0.85rem;
  transition: all 0.2s;
}
.pagination button.active,
.pagination button:hover {
  background: var(--accent-primary); color: #fff; border-color: var(--accent-primary);
}

/* ---- League ---- */
.league-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 24px; }
.league-table {
  width: 100%; border-collapse: collapse;
  background: var(--bg-card); border-radius: 12px; overflow: hidden;
  border: 1px solid var(--border-color);
}
.league-table th {
  background: var(--bg-tertiary); padding: 12px 16px;
  text-align: left; font-size: 0.85rem; font-weight: 600;
  color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.5px;
}
.league-table td {
  padding: 12px 16px; border-top: 1px solid var(--border-color);
  font-size: 0.9rem;
}
.league-table tr:hover td { background: var(--bg-glass); }
.rank-badge {
  width: 28px; height: 28px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.8rem;
}
.rank-1 { background: linear-gradient(135deg, #fbbf24, #f59e0b); color: #78350f; }
.rank-2 { background: linear-gradient(135deg, #d1d5db, #9ca3af); color: #374151; }
.rank-3 { background: linear-gradient(135deg, #d97706, #b45309); color: #fff; }

/* ---- Statistics ---- */
.stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-bottom: 24px; }
.stats-card {
  background: var(--bg-card); border: 1px solid var(--border-color);
  border-radius: 14px; padding: 20px; text-align: center;
}
.stats-card .stats-icon { font-size: 1.5rem; margin-bottom: 8px; }
.stats-card .stats-value {
  font-family: 'JetBrains Mono', monospace; font-size: 1.8rem; font-weight: 700;
  background: var(--accent-gradient); -webkit-background-clip: text;
  -webkit-text-fill-color: transparent; background-clip: text;
}
.stats-card .stats-label { color: var(--text-secondary); font-size: 0.85rem; margin-top: 4px; }
.chart-container {
  background: var(--bg-card); border: 1px solid var(--border-color);
  border-radius: 14px; padding: 24px;
}
.chart-container canvas { width: 100% !important; height: 250px !important; }

/* ---- Admin ---- */
.admin-sidebar {
  display: flex; gap: 8px; margin-bottom: 24px; flex-wrap: wrap;
}
.admin-tab {
  padding: 10px 18px; border-radius: 10px; font-size: 0.88rem; font-weight: 500;
  background: var(--bg-card); border: 1px solid var(--border-color);
  color: var(--text-secondary); transition: all 0.2s;
}
.admin-tab.active, .admin-tab:hover {
  background: var(--accent-primary); color: #fff; border-color: var(--accent-primary);
}
.admin-panel { display: none; }
.admin-panel.active { display: block; animation: fadeIn 0.3s; }
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block; font-size: 0.88rem; font-weight: 600;
  margin-bottom: 6px; color: var(--text-secondary);
}
.form-input, .form-textarea, .form-select {
  width: 100%; padding: 12px 16px; border-radius: 10px;
  background: var(--bg-input); border: 1px solid var(--border-color);
  color: var(--text-primary); font-size: 0.9rem;
  transition: border-color 0.2s;
}
.form-input:focus, .form-textarea:focus, .form-select:focus {
  border-color: var(--accent-primary); box-shadow: 0 0 0 3px var(--accent-primary-glow);
}
.form-textarea { min-height: 100px; resize: vertical; }
.module-toggle {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px; background: var(--bg-card);
  border: 1px solid var(--border-color); border-radius: 12px;
  margin-bottom: 12px;
}
.toggle-switch {
  position: relative; width: 48px; height: 26px;
}
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.toggle-slider {
  position: absolute; cursor: pointer; inset: 0;
  background: var(--bg-tertiary); border-radius: 26px;
  transition: 0.3s;
}
.toggle-slider::before {
  content: ''; position: absolute; height: 20px; width: 20px;
  left: 3px; bottom: 3px; background: white; border-radius: 50%;
  transition: 0.3s;
}
.toggle-switch input:checked + .toggle-slider { background: var(--accent-primary); }
.toggle-switch input:checked + .toggle-slider::before { transform: translateX(22px); }

/* ---- Auth Modal ---- */
.modal-overlay {
  display: none; position: fixed; inset: 0; z-index: 2000;
  background: var(--bg-overlay); backdrop-filter: blur(8px);
  align-items: center; justify-content: center; padding: 20px;
}
.modal-overlay.active { display: flex; }
.modal {
  background: var(--bg-secondary); border: 1px solid var(--border-color);
  border-radius: 20px; padding: 32px; width: 100%; max-width: 420px;
  animation: fadeInScale 0.3s ease-out;
}
.modal h2 { text-align: center; margin-bottom: 24px; font-size: 1.3rem; }
.modal-close {
  position: absolute; top: 16px; right: 16px;
  width: 32px; height: 32px; border-radius: 8px;
  background: var(--bg-tertiary); border: none;
  color: var(--text-secondary); font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center;
}
.auth-divider {
  display: flex; align-items: center; gap: 12px;
  margin: 18px 0; color: var(--text-tertiary); font-size: 0.85rem;
}
.auth-divider::before, .auth-divider::after {
  content: ''; flex: 1; height: 1px; background: var(--border-color);
}
.btn-google {
  width: 100%; padding: 12px; border-radius: 10px;
  background: var(--bg-card); border: 1px solid var(--border-color);
  color: var(--text-primary); font-weight: 600; font-size: 0.9rem;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  transition: all 0.2s;
}
.btn-google:hover { border-color: var(--accent-primary); }

/* ---- About Page ---- */
.about-content { line-height: 1.8; }
.about-content h2 {
  font-size: 1.4rem; margin: 24px 0 12px;
  background: var(--accent-gradient); -webkit-background-clip: text;
  -webkit-text-fill-color: transparent; background-clip: text;
}
.about-content p { color: var(--text-secondary); margin-bottom: 12px; }

/* ---- Toast ---- */
.toast-container { position: fixed; top: 80px; right: 20px; z-index: 3000; display: flex; flex-direction: column; gap: 8px; }
.toast {
  padding: 14px 20px; border-radius: 12px; font-size: 0.88rem; font-weight: 500;
  animation: slideInRight 0.3s ease-out; min-width: 280px;
  display: flex; align-items: center; gap: 10px;
  box-shadow: var(--shadow-lg);
}
.toast-success { background: var(--success); color: #fff; }
.toast-error { background: var(--error); color: #fff; }
.toast-info { background: var(--info); color: #fff; }

/* ---- Empty State ---- */
.empty-state {
  text-align: center; padding: 60px 20px; color: var(--text-secondary);
}
.empty-state .empty-icon { font-size: 3rem; margin-bottom: 16px; }
.empty-state h3 { font-size: 1.2rem; margin-bottom: 8px; color: var(--text-primary); }

/* ---- Loading ---- */
.loading-spinner {
  display: flex; align-items: center; justify-content: center; padding: 40px;
}
.spinner {
  width: 40px; height: 40px; border: 3px solid var(--bg-tertiary);
  border-top-color: var(--accent-primary); border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

/* ---- Suggest Question FAB ---- */
.suggest-fab {
  position: fixed;
  right: 28px; bottom: 28px; z-index: 999;
  height: 64px; width: 64px;
  border: 1px solid rgba(34,211,238,0.22);
  border-radius: 999px; padding: 0; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  background: rgba(15,23,42,0.72);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  box-shadow:
    0 0 24px rgba(34,211,238,0.24),
    0 0 56px rgba(99,102,241,0.18),
    inset 0 1px 0 rgba(255,255,255,0.16);
  overflow: hidden;
  transition: width 0.32s ease, transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}
.suggest-fab:hover {
  width: 168px;
  transform: translateY(-4px);
  border-color: rgba(34,211,238,0.45);
  box-shadow:
    0 0 34px rgba(34,211,238,0.42),
    0 0 82px rgba(168,85,247,0.28),
    inset 0 1px 0 rgba(255,255,255,0.2);
}
.suggest-fab:active { transform: scale(0.96); }

.suggest-fab-ring {
  position: absolute;
  width: 52px; height: 52px;
  left: 6px; top: 6px;
  border-radius: 999px;
  border: 2px solid rgba(34,211,238,0.48);
  box-shadow:
    0 0 18px rgba(34,211,238,0.35),
    inset 0 0 14px rgba(34,211,238,0.12);
  animation: suggestFabPulse 2.4s ease-in-out infinite;
  pointer-events: none;
}

.suggest-fab-core {
  position: absolute; left: 14px;
  width: 36px; height: 36px; border-radius: 999px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #22d3ee, #6366f1, #a855f7);
  box-shadow:
    0 0 18px rgba(34,211,238,0.38),
    inset 0 1px 0 rgba(255,255,255,0.36);
}

.suggest-fab-core::after {
  content: "";
  position: absolute; inset: -6px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(34,211,238,0.25), transparent);
  opacity: 0.6;
  pointer-events: none;
}

.suggest-fab-question {
  font-size: 18px; font-weight: 900;
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  width: 20px; height: 20px;
  position: relative; z-index: 1;
  text-shadow:
    0 0 6px rgba(255,255,255,0.8),
    0 0 14px rgba(34,211,238,0.6),
    0 0 22px rgba(168,85,247,0.4);
  animation: questionPulse 2s ease-in-out infinite;
}

@keyframes questionPulse {
  0%, 100% { transform: scale(1); opacity: 0.9; }
  50%      { transform: scale(1.15); opacity: 1; }
}

.suggest-fab-text {
  margin-left: 54px;
  white-space: nowrap;
  opacity: 0; transform: translateX(-8px);
  color: #f8fafc; font-size: 14px; font-weight: 800;
  letter-spacing: -0.01em;
  transition: 0.24s ease;
  pointer-events: none;
}
.suggest-fab:hover .suggest-fab-text {
  opacity: 1; transform: translateX(0);
}

/* Shine sweep */
.suggest-fab::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(120deg, transparent 15%, rgba(255,255,255,0.18) 45%, transparent 75%);
  transform: translateX(-120%);
  transition: 0.65s ease;
}
.suggest-fab:hover::before {
  transform: translateX(120%);
}

@keyframes suggestFabPulse {
  0%, 100% { opacity: 0.58; transform: scale(0.94); }
  50%      { opacity: 1; transform: scale(1.08); }
}

/* Light mode FAB */
[data-theme="light"] .suggest-fab {
  background: rgba(255,255,255,0.82);
  border-color: rgba(8,145,178,0.2);
  box-shadow:
    0 0 18px rgba(8,145,178,0.12),
    0 0 40px rgba(124,58,237,0.08),
    inset 0 1px 0 rgba(255,255,255,0.8);
}
[data-theme="light"] .suggest-fab:hover {
  border-color: rgba(8,145,178,0.35);
  box-shadow:
    0 0 28px rgba(8,145,178,0.22),
    0 0 60px rgba(124,58,237,0.15),
    inset 0 1px 0 rgba(255,255,255,0.8);
}
[data-theme="light"] .suggest-fab-text {
  color: #0f172a;
}
[data-theme="light"] .suggest-fab-ring {
  border-color: rgba(8,145,178,0.35);
  box-shadow: 0 0 12px rgba(8,145,178,0.2), inset 0 0 8px rgba(8,145,178,0.06);
}

/* ---- Onboarding Coach Mark ---- */
.onboarding-overlay {
  position: fixed; inset: 0; z-index: 1600;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s ease;
  display: flex; align-items: flex-end; justify-content: flex-end;
  padding: 0 28px 100px 0;
}
.onboarding-overlay.active {
  opacity: 1; pointer-events: auto;
}

.onboarding-tooltip {
  position: relative;
  max-width: 280px;
  padding: 16px 20px;
  border-radius: 16px;
  background: rgba(15,23,42,0.82);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(34,211,238,0.28);
  box-shadow:
    0 0 24px rgba(34,211,238,0.18),
    0 0 56px rgba(168,85,247,0.12),
    inset 0 1px 0 rgba(255,255,255,0.12);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.4s ease 0.15s, transform 0.4s ease 0.15s;
}
.onboarding-overlay.active .onboarding-tooltip {
  opacity: 1; transform: translateY(0);
}

.onboarding-arrow {
  position: absolute;
  bottom: -8px; right: 24px;
  width: 16px; height: 16px;
  background: rgba(15,23,42,0.82);
  border-right: 1px solid rgba(34,211,238,0.28);
  border-bottom: 1px solid rgba(34,211,238,0.28);
  transform: rotate(45deg);
  box-shadow: 4px 4px 12px rgba(34,211,238,0.08);
}

.onboarding-text {
  font-size: 14px; font-weight: 600;
  color: #f1f5f9; line-height: 1.5;
  margin: 0;
}

/* Spotlight on FAB during onboarding */
.suggest-fab.onboarding-spotlight {
  z-index: 1700;
  transform: scale(1.1);
  box-shadow:
    0 0 40px rgba(34,211,238,0.5),
    0 0 80px rgba(168,85,247,0.3),
    0 0 120px rgba(34,211,238,0.15),
    inset 0 1px 0 rgba(255,255,255,0.2);
  animation: onboardingSpotlightPulse 1.2s ease-in-out infinite;
}

@keyframes onboardingSpotlightPulse {
  0%, 100% {
    box-shadow:
      0 0 40px rgba(34,211,238,0.5),
      0 0 80px rgba(168,85,247,0.3),
      0 0 120px rgba(34,211,238,0.15),
      inset 0 1px 0 rgba(255,255,255,0.2);
  }
  50% {
    box-shadow:
      0 0 50px rgba(34,211,238,0.65),
      0 0 100px rgba(168,85,247,0.4),
      0 0 150px rgba(34,211,238,0.22),
      inset 0 1px 0 rgba(255,255,255,0.25);
  }
}

/* Light mode onboarding */
[data-theme="light"] .onboarding-tooltip {
  background: rgba(255,255,255,0.88);
  border-color: rgba(8,145,178,0.22);
  box-shadow:
    0 0 18px rgba(8,145,178,0.1),
    0 0 40px rgba(124,58,237,0.06),
    inset 0 1px 0 rgba(255,255,255,0.8);
}
[data-theme="light"] .onboarding-arrow {
  background: rgba(255,255,255,0.88);
  border-color: rgba(8,145,178,0.22);
}
[data-theme="light"] .onboarding-text {
  color: #0f172a;
}

@media (max-width: 640px) {
  .onboarding-overlay {
    padding: 0 0 108px 0;
    justify-content: center;
  }
  .onboarding-tooltip {
    max-width: 260px;
    padding: 14px 16px;
  }
  .onboarding-arrow {
    right: 50%;
    transform: translateX(50%) rotate(45deg);
  }
}

/* ---- Suggest Panel ---- */
.suggest-overlay {
  position: fixed; inset: 0; z-index: 1800;
  background: rgba(0,0,0,0.5); backdrop-filter: blur(4px);
  opacity: 0; pointer-events: none;
  transition: opacity 0.25s ease;
}
.suggest-overlay.active { opacity: 1; pointer-events: auto; }

.suggest-panel {
  position: fixed; bottom: 0; right: 0; z-index: 1900;
  width: 420px; max-height: 90vh;
  background: var(--bg-secondary); border: 1px solid var(--border-color);
  border-radius: 20px 20px 0 0;
  box-shadow: 0 -10px 40px rgba(0,0,0,0.3);
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  overflow-y: auto;
  overscroll-behavior: contain;
}
.suggest-panel.active { transform: translateY(0); }

.suggest-panel-header {
  position: sticky; top: 0; z-index: 1;
  background: var(--bg-secondary);
  padding: 24px 24px 12px; border-bottom: 1px solid var(--border-color);
}
.suggest-panel-header h3 {
  font-size: 1.2rem; margin-bottom: 4px;
  background: var(--accent-gradient); -webkit-background-clip: text;
  -webkit-text-fill-color: transparent; background-clip: text;
}
.suggest-panel-header p {
  font-size: 0.85rem; color: var(--text-secondary); margin: 0;
}
.suggest-panel-close {
  position: absolute; top: 20px; right: 20px;
  width: 32px; height: 32px; border-radius: 8px;
  background: var(--bg-tertiary); border: none;
  color: var(--text-secondary); font-size: 1rem;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all 0.2s;
}
.suggest-panel-close:hover { color: var(--error); background: var(--error-bg); }

.suggest-panel-body { padding: 20px 24px 28px; }

.suggest-inputs-wrap {
  display: flex; flex-direction: column; gap: 14px;
}
.suggest-input-focus {
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(8px);
  transition: all 0.25s ease;
}
.suggest-input-focus:focus {
  transform: scale(1.01);
  border-color: #22d3ee;
  box-shadow: 0 4px 16px rgba(34, 211, 238, 0.15);
}

.suggest-options-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
}
.suggest-options-grid .form-group { margin-bottom: 0; }

.suggest-correct-options {
  display: flex; gap: 8px;
}
.suggest-radio-new {
  flex: 1; cursor: pointer;
}
.suggest-radio-new input { display: none; }
.radio-box {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  padding: 12px; border-radius: 12px;
  background: rgba(15, 23, 42, 0.5); border: 2px solid var(--border-color);
  font-weight: 800; font-size: 1rem; color: var(--text-secondary);
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.check-icon {
  width: 16px; height: 16px; color: #10b981;
  opacity: 0; transform: scale(0.5); transition: all 0.25s;
}
.suggest-radio-new input:checked + .radio-box {
  background: rgba(16, 185, 129, 0.1);
  border-color: #10b981;
  color: #10b981;
  transform: scale(1.05);
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.2);
}
.suggest-radio-new input:checked + .radio-box .check-icon {
  opacity: 1; transform: scale(1);
}
.suggest-radio-new:hover .radio-box:not(:has(input:checked)) {
  border-color: var(--accent-primary);
  background: rgba(34, 211, 238, 0.05);
}

/* Mini Preview */
.suggest-preview-wrapper {
  margin-top: 24px; padding-top: 20px;
  border-top: 1px dashed var(--border-color);
}
.suggest-preview-label {
  font-size: 0.8rem; font-weight: 700; color: var(--accent-primary);
  text-transform: uppercase; letter-spacing: 1px; margin-bottom: 12px;
}
.suggest-preview-card {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 14px; padding: 16px;
  backdrop-filter: blur(10px);
}
.sp-cat {
  display: inline-block; font-size: 0.75rem; font-weight: 800;
  padding: 4px 10px; border-radius: 8px;
  background: rgba(168, 85, 247, 0.15); color: #a855f7;
  margin-bottom: 10px;
}
.sp-q {
  font-size: 1rem; font-weight: 600; color: var(--text-primary);
  margin-bottom: 14px; line-height: 1.4;
}
.sp-opts {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
}
.sp-opt {
  font-size: 0.85rem; padding: 10px; border-radius: 8px;
  background: rgba(255, 255, 255, 0.03); color: var(--text-secondary);
  border: 1px solid transparent; transition: all 0.2s;
}
.sp-opt.is-correct {
  background: rgba(16, 185, 129, 0.1); border-color: rgba(16, 185, 129, 0.4);
  color: #10b981; font-weight: 600;
}

.suggest-gamify-hint {
  text-align: center; font-size: 0.8rem; color: #a855f7;
  margin: 24px 0 12px; font-weight: 600;
  background: rgba(168, 85, 247, 0.1);
  padding: 8px; border-radius: 8px;
}
.suggest-submit-btn {
  width: 100%; padding: 16px; font-size: 1rem; font-weight: 800;
  border-radius: 14px; cursor: pointer;
  background: linear-gradient(135deg, #22d3ee, #6366f1);
  color: #fff; border: none;
  box-shadow: 0 4px 16px rgba(34, 211, 238, 0.25);
  display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.suggest-submit-btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(34, 211, 238, 0.4);
}
.suggest-submit-btn:active {
  transform: scale(0.96) translateY(0);
}

/* Success state */
.suggest-success {
  text-align: center; padding: 40px 20px;
  animation: fadeInScale 0.4s ease-out;
}
.suggest-success-icon {
  font-size: 3.5rem; margin-bottom: 16px;
  animation: bounceIn 0.6s ease-out;
}
.suggest-success h3 {
  font-size: 1.3rem; margin-bottom: 8px;
  background: var(--accent-gradient); -webkit-background-clip: text;
  -webkit-text-fill-color: transparent; background-clip: text;
}
.suggest-success p {
  color: var(--text-secondary); font-size: 0.9rem; line-height: 1.6;
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .navbar-nav { display: none; }
  .navbar-nav.open {
    display: flex; flex-direction: column;
    position: absolute;
    top: calc(100% + 12px); left: 12px; right: 12px;
    align-items: stretch;
    padding: 12px;
    border-radius: 22px;
    background: rgba(8, 13, 28, 0.95);
    backdrop-filter: blur(24px);
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 20px 50px rgba(0,0,0,0.45);
    z-index: 100;
  }
  .navbar-nav.open .nav-link {
    justify-content: flex-start;
    padding: 13px 14px;
  }
  .navbar-toggle { display: flex; }
  .site-header { padding: 12px; }
  .navbar .container { padding: 12px; }
  .brand-text { font-size: 13px; }
  .brand-sub { display: none; }
  .brand-logo { width: 36px; height: 36px; font-size: 1.1rem; }
  .container { padding: 0 16px; }
  .quiz-header h1 { font-size: 1.3rem; }
  .question-card { padding: 20px; }
  .league-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; }
  .results-stats { grid-template-columns: 1fr; }
  .score-circle { width: 130px; height: 130px; }
  .score-circle .score-value { font-size: 2rem; }
  .suggest-panel { width: 100%; border-radius: 16px 16px 0 0; }
  .suggest-fab {
    right: 18px; bottom: 18px; width: 58px; height: 58px;
  }
  .suggest-fab:hover { width: 58px; }
  .suggest-fab-text { display: none; }
  .suggest-fab-ring { width: 48px; height: 48px; left: 5px; top: 5px; }
  .suggest-fab-core { left: 12px; width: 34px; height: 34px; }
}
@media (max-width: 480px) {
  .brand-text { display: none; }
  .btn-auth span { display: none; }
  .btn-auth { padding: 9px 12px; border-radius: 50%; }
  .suggest-options-grid { grid-template-columns: 1fr; }
}

/* ============================================
   GLOBAL QUIZ PANEL (Game UI)
   ============================================ */
.quiz-panel {
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(34, 211, 238, 0.15);
  border-radius: 24px;
  padding: 32px;
  box-shadow: 
    0 24px 64px -12px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  position: relative;
  overflow: hidden;
}

/* Subtle background radial glow */
.quiz-panel::before {
  content: "";
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: radial-gradient(circle at top, rgba(34, 211, 238, 0.08), transparent 50%);
  pointer-events: none;
  z-index: 0;
}

.quiz-panel > * { position: relative; z-index: 1; }

.quiz-question-badge {
  display: inline-flex;
  align-items: center; justify-content: center;
  padding: 6px 14px;
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.15), rgba(168, 85, 247, 0.15));
  border: 1px solid rgba(34, 211, 238, 0.3);
  border-radius: 999px;
  color: #22d3ee;
  font-weight: 800; font-size: 0.9rem;
  letter-spacing: 0.5px;
  margin-bottom: 20px;
  box-shadow: 0 0 16px rgba(34, 211, 238, 0.15);
  animation: badgeScaleIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes badgeScaleIn {
  from { transform: scale(0.8); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.quiz-question-text {
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1.5;
  color: #f8fafc;
  margin-bottom: 32px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.quiz-options {
  display: flex; flex-direction: column; gap: 14px;
}

.quiz-option {
  display: flex; align-items: center;
  width: 100%; text-align: left;
  background: rgba(30, 41, 59, 0.5);
  border: 2px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  padding: 16px 20px;
  cursor: pointer;
  color: var(--text-primary);
  font-size: 1.05rem; font-weight: 600;
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.quiz-option .opt-letter {
  display: flex; align-items: center; justify-content: center;
  width: 32px; height: 32px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  margin-right: 16px;
  font-weight: 800; font-size: 0.9rem;
  color: var(--text-secondary);
  transition: all 0.2s;
}

.quiz-option:hover:not(:disabled) {
  transform: translateY(-2px) scale(1.01);
  background: rgba(30, 41, 59, 0.8);
  border-color: rgba(34, 211, 238, 0.4);
  box-shadow: 0 8px 24px rgba(34, 211, 238, 0.12);
}

.quiz-option:hover:not(:disabled) .opt-letter {
  background: rgba(34, 211, 238, 0.2);
  color: #22d3ee;
}

/* Selected state (before validation) */
.quiz-option.selected {
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.15), rgba(168, 85, 247, 0.15));
  border-color: #22d3ee;
  transform: scale(1.02);
  box-shadow: 0 0 24px rgba(34, 211, 238, 0.25);
}
.quiz-option.selected .opt-letter {
  background: #22d3ee; color: #0f172a;
}

/* Correct state */
.quiz-option.correct {
  background: rgba(16, 185, 129, 0.15);
  border-color: #10b981;
  color: #10b981;
  box-shadow: 0 0 32px rgba(16, 185, 129, 0.25);
  animation: correctPulse 0.4s ease;
}
.quiz-option.correct .opt-letter {
  background: #10b981; color: #fff;
}
@keyframes correctPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.03); }
}

/* Wrong state */
.quiz-option.wrong {
  background: rgba(239, 68, 68, 0.1);
  border-color: #ef4444;
  color: #ef4444;
  opacity: 0.85;
}
.quiz-option.wrong .opt-letter {
  background: #ef4444; color: #fff;
}

.quiz-option-icon {
  margin-left: auto; width: 24px; height: 24px;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transform: scale(0); transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.quiz-option.correct .quiz-option-icon,
.quiz-option.wrong .quiz-option-icon,
.quiz-option.selected .quiz-option-icon {
  opacity: 1; transform: scale(1);
}

.quiz-options.disabled .quiz-option:not(.selected):not(.correct):not(.wrong) {
  opacity: 0.4; pointer-events: none;
}

/* Timer Bar */
.quiz-timer {
  margin-bottom: 24px;
}
.quiz-timer-bar-wrap {
  width: 100%; height: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px; overflow: hidden;
}
.quiz-timer-bar {
  height: 100%; width: 100%;
  background: linear-gradient(90deg, #22d3ee, #a855f7);
  transition: width 0.1s linear, background 0.3s;
  box-shadow: 0 0 12px rgba(34, 211, 238, 0.5);
}
.quiz-timer-bar.danger {
  background: #ef4444;
  box-shadow: 0 0 16px rgba(239, 68, 68, 0.6);
  animation: dangerPulse 1s infinite alternate;
}
@keyframes dangerPulse {
  from { opacity: 1; }
  to { opacity: 0.7; }
}
.quiz-timer-text {
  font-size: 0.9rem; font-weight: 700; color: var(--text-secondary);
  margin-top: 8px; text-align: right;
}
.quiz-timer-text.danger { color: #ef4444; }

/* Panel Transition Animations */
.quiz-panel-enter {
  animation: quizPanelEnter 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}
.quiz-panel-exit {
  animation: quizPanelExit 0.3s ease forwards;
}
@keyframes quizPanelEnter {
  from { opacity: 0; transform: translateX(30px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes quizPanelExit {
  from { opacity: 1; transform: translateX(0); }
  to { opacity: 0; transform: translateX(-30px); }
}

@media (max-width: 640px) {
  .quiz-panel { padding: 24px; border-radius: 20px; }
  .quiz-question-text { font-size: 1.25rem; margin-bottom: 24px; }
  .quiz-option { padding: 14px 16px; font-size: 0.95rem; }
  .quiz-option .opt-letter { width: 28px; height: 28px; margin-right: 12px; }
}

/* ============================================
   LEAGUE SYSTEM (Game UI Redesign)
   ============================================ */
.league-hero-title {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 12px;
  background: linear-gradient(135deg, #22d3ee, #a855f7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 4px 16px rgba(34, 211, 238, 0.2);
}
.league-hero-sub {
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin-bottom: 32px;
}

.league-action-card {
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(34, 211, 238, 0.15);
  border-radius: 20px;
  padding: 32px 24px;
  text-align: center;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
}
.league-action-card:hover {
  transform: translateY(-4px);
  border-color: rgba(168, 85, 247, 0.4);
  box-shadow: 0 16px 40px rgba(168, 85, 247, 0.15);
}
.league-action-icon {
  font-size: 3rem;
  margin-bottom: 16px;
  filter: drop-shadow(0 4px 8px rgba(34, 211, 238, 0.3));
}
.league-action-card h3 {
  font-size: 1.4rem;
  margin-bottom: 12px;
  color: #fff;
}
.league-action-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 24px;
}
.league-input {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #fff;
  transition: all 0.2s;
}
.league-input:focus {
  border-color: #22d3ee;
  box-shadow: 0 0 16px rgba(34, 211, 238, 0.2);
  transform: scale(1.02);
}
.league-btn {
  background: linear-gradient(135deg, #22d3ee, #6366f1);
  border: none;
  font-weight: 800;
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 4px 16px rgba(34, 211, 238, 0.25);
}
.league-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(34, 211, 238, 0.4);
}
.league-btn:active {
  transform: scale(0.96) translateY(0);
}

/* LEADERBOARD CARD */
.league-board-card {
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(34, 211, 238, 0.15);
  border-radius: 24px;
  padding: 32px;
  box-shadow: 0 24px 64px -12px rgba(0, 0, 0, 0.5);
  margin-top: 32px;
}

.league-board-header {
  display: flex; justify-content: space-between; align-items: flex-start;
  margin-bottom: 24px; flex-wrap: wrap; gap: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 20px;
}
.league-board-title h3 {
  font-size: 1.6rem; font-weight: 800; color: #fff;
  margin-bottom: 4px;
}
.league-board-title p {
  color: var(--text-secondary); font-size: 0.95rem;
}
.league-code-hl {
  color: #22d3ee; font-family: 'JetBrains Mono', monospace;
  font-weight: 800; padding: 2px 6px; background: rgba(34, 211, 238, 0.1);
  border-radius: 6px; letter-spacing: 1px;
}

.league-leader-hint {
  font-size: 0.85rem; font-weight: 700;
  color: #a855f7; background: rgba(168, 85, 247, 0.1);
  padding: 6px 12px; border-radius: 8px;
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 12px;
}

/* ROWS */
.league-row-list {
  display: flex; flex-direction: column; gap: 12px;
}
.league-row {
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(30, 41, 59, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.03);
  border-radius: 16px;
  padding: 14px 20px;
  transition: all 0.25s ease;
  animation: fadeUpRow 0.4s ease forwards;
  opacity: 0; transform: translateY(10px);
}
.league-row:hover {
  background: rgba(30, 41, 59, 0.9);
  border-color: rgba(34, 211, 238, 0.2);
  transform: translateX(4px) !important;
}

@keyframes fadeUpRow {
  to { opacity: 1; transform: translateY(0); }
}

.league-row-left { display: flex; align-items: center; gap: 16px; }

.league-rank-badge {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  border-radius: 12px; font-weight: 800; font-size: 1rem;
  background: rgba(255,255,255,0.05); color: var(--text-secondary);
}
/* TOP 3 */
.league-row.rank-1 .league-rank-badge {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  color: #fff; box-shadow: 0 0 16px rgba(245, 158, 11, 0.4);
}
.league-row.rank-2 .league-rank-badge {
  background: linear-gradient(135deg, #94a3b8, #64748b);
  color: #fff; box-shadow: 0 0 16px rgba(148, 163, 184, 0.4);
}
.league-row.rank-3 .league-rank-badge {
  background: linear-gradient(135deg, #b45309, #78350f);
  color: #fff; box-shadow: 0 0 16px rgba(180, 83, 9, 0.4);
}

.league-player-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(34, 211, 238, 0.1);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; color: #22d3ee;
  border: 2px solid rgba(34, 211, 238, 0.3);
}

.league-player-name {
  font-weight: 600; font-size: 1.05rem; color: var(--text-primary);
}

.league-row-right {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 800; font-size: 1.2rem;
  color: #22d3ee;
}

/* "You" Highlights */
.league-row.is-me {
  background: rgba(168, 85, 247, 0.1) !important;
  border-color: rgba(168, 85, 247, 0.4) !important;
  box-shadow: 0 0 24px rgba(168, 85, 247, 0.15);
}
.league-row.is-me .league-player-name {
  color: #a855f7; font-weight: 800;
}
.league-row.is-me .league-player-avatar {
  background: rgba(168, 85, 247, 0.2); border-color: #a855f7; color: #a855f7;
}

@media (max-width: 640px) {
  .league-board-card { padding: 20px; }
  .league-hero-title { font-size: 1.6rem; }
  .league-row { padding: 12px 14px; }
  .league-player-avatar { width: 32px; height: 32px; font-size: 0.8rem; }
  .league-rank-badge { width: 32px; height: 32px; font-size: 0.9rem; }
  .league-player-name { font-size: 0.95rem; }
  .league-row-right { font-size: 1.1rem; }
}

/* ============================================
   ARCHIVE SYSTEM (Past Performance UI)
   ============================================ */
.archive-hero-title {
  font-size: 2.2rem; font-weight: 800; margin-bottom: 12px;
  background: linear-gradient(135deg, #10b981, #22d3ee);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text; text-shadow: 0 4px 16px rgba(16, 185, 129, 0.2);
}
.archive-hero-sub {
  color: var(--text-secondary); font-size: 1.1rem; margin-bottom: 32px;
}

.archive-card {
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(15, 23, 42, 0.65); backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.05); border-radius: 20px;
  padding: 20px 24px; cursor: pointer; transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2); margin-bottom: 16px;
  position: relative; overflow: hidden;
}
.archive-card:hover {
  transform: translateY(-4px); border-color: rgba(34, 211, 238, 0.3);
  box-shadow: 0 16px 40px rgba(34, 211, 238, 0.15);
}

.archive-card-left { flex: 0 0 120px; }
.ac-date { font-weight: 800; font-size: 1.15rem; color: #fff; margin-bottom: 4px; }
.ac-day { font-size: 0.85rem; color: var(--text-secondary); font-weight: 600; text-transform: uppercase; letter-spacing: 1px; }

.archive-card-mid { flex: 1; padding: 0 32px; }
.ac-score-text { font-size: 0.95rem; font-weight: 600; color: var(--text-secondary); margin-bottom: 8px; }
.ac-score-text.score-high { color: #10b981; }
.ac-score-text.score-med { color: #f59e0b; }
.ac-score-text.score-low { color: #ef4444; }

.ac-progress-wrap {
  width: 100%; height: 6px; background: rgba(255, 255, 255, 0.05); border-radius: 3px; overflow: hidden;
}
.ac-progress-fill {
  height: 100%; border-radius: 3px; background: var(--text-secondary); transition: width 1s ease-out;
}
.ac-progress-fill.score-high { background: #10b981; box-shadow: 0 0 12px rgba(16, 185, 129, 0.6); }
.ac-progress-fill.score-med { background: #f59e0b; box-shadow: 0 0 12px rgba(245, 158, 11, 0.6); }
.ac-progress-fill.score-low { background: #ef4444; box-shadow: 0 0 12px rgba(239, 68, 68, 0.6); }

.archive-card-right {
  display: flex; align-items: center; gap: 24px; justify-content: flex-end;
}
.ac-completed-badge {
  font-size: 0.75rem; font-weight: 800; color: #10b981; background: rgba(16, 185, 129, 0.1);
  padding: 6px 10px; border-radius: 8px; letter-spacing: 0.5px; text-transform: uppercase;
  border: 1px solid rgba(16, 185, 129, 0.3);
}
.ac-avg-box { text-align: right; }
.ac-avg-score { font-size: 1.4rem; font-weight: 800; color: #fff; font-family: 'JetBrains Mono', monospace; text-shadow: 0 0 12px rgba(255,255,255,0.2); }
.ac-avg-label { font-size: 0.75rem; color: var(--accent-primary); font-weight: 700; text-transform: uppercase; margin: 2px 0; }
.ac-plays-count { font-size: 0.75rem; color: var(--text-secondary); }

.ac-hover-hint {
  position: absolute; right: 24px; top: 50%; transform: translateY(-50%) translateX(20px);
  opacity: 0; color: #22d3ee; font-weight: 800; font-size: 0.9rem; transition: all 0.3s ease;
}
.archive-card:hover .ac-hover-hint { opacity: 1; transform: translateY(-50%) translateX(0); }
.archive-card:hover .archive-card-right > *:not(.ac-hover-hint) { opacity: 0; transform: translateX(-10px); transition: all 0.2s; }

@media (max-width: 768px) {
  .archive-card { flex-direction: column; align-items: flex-start; padding: 20px; }
  .archive-card-left { flex: auto; margin-bottom: 16px; width: 100%; border-bottom: 1px dashed rgba(255,255,255,0.1); padding-bottom: 12px; }
  .archive-card-mid { padding: 0; width: 100%; margin-bottom: 16px; }
  .archive-card-right { width: 100%; justify-content: space-between; flex-direction: row-reverse; }
  .ac-hover-hint { display: none; }
  .archive-card:hover .archive-card-right > * { opacity: 1; transform: none; }
}

/* ============================================
   STATISTICS SYSTEM (Dashboard Redesign)
   ============================================ */
.stats-hero-title {
  font-size: 2.2rem; font-weight: 800; margin-bottom: 12px;
  background: linear-gradient(135deg, #a855f7, #ec4899);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text; text-shadow: 0 4px 16px rgba(168, 85, 247, 0.2);
  display: flex; align-items: center; justify-content: center; gap: 12px;
}
.pulse-dot {
  width: 12px; height: 12px; background: #ec4899; border-radius: 50%;
  box-shadow: 0 0 12px rgba(236, 72, 153, 0.8);
  animation: pulseDotAnim 2s infinite ease-in-out;
  display: inline-block;
}
@keyframes pulseDotAnim {
  0% { transform: scale(0.8); opacity: 0.6; }
  50% { transform: scale(1.2); opacity: 1; box-shadow: 0 0 20px rgba(236, 72, 153, 1); }
  100% { transform: scale(0.8); opacity: 0.6; }
}
.stats-hero-sub {
  color: var(--text-secondary); font-size: 1.1rem; margin-bottom: 32px;
}

.stats-card {
  transition: all 0.3s ease-out;
  position: relative;
}
.stats-card:hover {
  transform: translateY(-4px); border-color: rgba(168, 85, 247, 0.6);
  box-shadow: 0 16px 40px rgba(168, 85, 247, 0.25);
}
.stats-card .stats-icon { 
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5)); margin-bottom: 12px; 
  transition: transform 0.3s ease-out;
}
.stats-card:hover .stats-icon {
  transform: scale(1.05);
}
.stats-card .stats-hint {
  font-size: 0.8rem; font-weight: 600; color: #a855f7; margin-top: 8px;
  background: rgba(168, 85, 247, 0.1); padding: 4px 8px; border-radius: 6px;
  display: inline-block;
}

.chart-container {
  background: rgba(15, 23, 42, 0.65); backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.05); border-radius: 20px;
  padding: 24px; margin-bottom: 24px; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}
.chart-header-row {
  display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px;
}
.trend-indicator {
  font-size: 0.85rem; font-weight: 600; color: #a855f7; background: rgba(168, 85, 247, 0.1);
  padding: 6px 12px; border-radius: 8px; border: 1px solid rgba(168, 85, 247, 0.2);
}

.chart-last-label {
  position: absolute; background: rgba(34, 211, 238, 0.15); border: 1px solid rgba(34, 211, 238, 0.5);
  color: #22d3ee; font-size: 0.75rem; font-weight: 700; padding: 4px 8px; border-radius: 20px;
  transform: translate(-50%, -150%);
  box-shadow: 0 4px 12px rgba(34, 211, 238, 0.3);
  pointer-events: none;
  animation: floatLabel 2s infinite ease-in-out;
}
@keyframes floatLabel {
  0%, 100% { transform: translate(-50%, -150%); }
  50% { transform: translate(-50%, calc(-150% - 4px)); }
}

.stats-bottom-row {
  display: grid; grid-template-columns: 1fr 2fr; gap: 24px;
}
.last-test-card {
  background: rgba(15, 23, 42, 0.65); backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.05); border-radius: 20px;
  padding: 24px; display: flex; flex-direction: column; justify-content: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}
.ltc-score {
  font-size: 3rem; font-family: 'JetBrains Mono', monospace; font-weight: 800;
  margin: 8px 0; text-shadow: 0 0 24px currentColor;
}
.ltc-score.glow-cyan { color: #22d3ee; }
.ltc-score.glow-green { color: #10b981; }
.ltc-score.glow-red { color: #ef4444; }
.ltc-comment {
  font-size: 0.9rem; color: var(--text-secondary); font-weight: 500; line-height: 1.4;
}

.badge-list-wrap {
  background: rgba(15, 23, 42, 0.65); backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.05); border-radius: 20px;
  padding: 24px; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}
.badge-list {
  display: flex; gap: 16px; overflow-x: auto; padding-bottom: 8px;
}
.badge-list::-webkit-scrollbar { height: 6px; }
.badge-list::-webkit-scrollbar-track { background: rgba(255,255,255,0.05); border-radius: 3px; }
.badge-list::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.2); border-radius: 3px; }

.badge-item {
  background: rgba(30, 41, 59, 0.5); border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px; padding: 16px 24px; text-align: center;
  min-width: 140px; transition: all 0.3s ease-out; font-size: 0.9rem; font-weight: 600;
  color: var(--text-primary); flex: 0 0 auto; cursor: default;
}
.badge-item:hover {
  transform: translateY(-4px) scale(1.05); border-color: #a855f7;
  box-shadow: 0 8px 32px rgba(168, 85, 247, 0.3);
}
.badge-icon {
  font-size: 2.5rem; margin-bottom: 12px; filter: drop-shadow(0 4px 8px rgba(0,0,0,0.4));
}

@media (max-width: 768px) {
  .stats-bottom-row { grid-template-columns: 1fr; }
}

/* ============================================
   LANDING PAGE (About Redesign)
   ============================================ */
.landing-container {
  padding-bottom: 40px;
}

.landing-hero {
  text-align: center; margin: 20px 0 48px 0;
}
.landing-hero-title {
  font-size: 2.5rem; font-weight: 900; margin-bottom: 16px;
  background: linear-gradient(135deg, #38bdf8, #818cf8, #c084fc);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text; text-shadow: 0 4px 24px rgba(129, 140, 248, 0.3);
  line-height: 1.2;
}
.landing-hero-sub {
  color: var(--text-secondary); font-size: 1.15rem; max-width: 600px; margin: 0 auto;
}

.landing-steps {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: 48px;
}
.step-card {
  background: rgba(15, 23, 42, 0.4); border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 20px; padding: 32px 24px; text-align: center;
  transition: all 0.3s ease-out; position: relative; overflow: hidden;
}
.step-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, rgba(56, 189, 248, 0.5), transparent);
  opacity: 0; transition: opacity 0.3s;
}
.step-card:hover {
  transform: translateY(-8px); border-color: rgba(56, 189, 248, 0.3);
  box-shadow: 0 16px 40px rgba(56, 189, 248, 0.15); background: rgba(15, 23, 42, 0.6);
}
.step-card:hover::before { opacity: 1; }
.step-icon { font-size: 3rem; margin-bottom: 16px; filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3)); }
.step-card h3 { font-size: 1.2rem; color: #fff; margin-bottom: 8px; }
.step-card p { color: var(--text-secondary); font-size: 0.95rem; }

.feature-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-bottom: 64px;
}
.feature-card {
  display: flex; align-items: center; gap: 20px;
  background: rgba(30, 41, 59, 0.5); backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 20px; padding: 24px;
  transition: all 0.3s ease-out;
}
.feature-card:hover {
  transform: scale(1.02); border-color: #818cf8;
  box-shadow: 0 12px 32px rgba(129, 140, 248, 0.2);
}
.feature-icon {
  font-size: 2.5rem; filter: drop-shadow(0 4px 8px rgba(0,0,0,0.4));
  background: rgba(255, 255, 255, 0.05); width: 64px; height: 64px;
  display: flex; align-items: center; justify-content: center; border-radius: 16px;
}
.feature-card h4 { font-size: 1.1rem; color: #fff; margin-bottom: 4px; }
.feature-card p { color: var(--text-secondary); font-size: 0.9rem; }

.landing-cta-area {
  text-align: center; margin-bottom: 64px;
}
.btn-landing-cta {
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  color: white; border: none; padding: 18px 48px; border-radius: 50px;
  font-size: 1.2rem; font-weight: 800; font-family: 'Inter', sans-serif;
  cursor: pointer; transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.4);
  position: relative; overflow: hidden;
}
.btn-landing-cta::after {
  content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%;
  background: linear-gradient(45deg, transparent, rgba(255,255,255,0.2), transparent);
  transform: rotate(45deg) translateX(-100%); transition: 0.5s;
}
.btn-landing-cta:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 16px 40px rgba(139, 92, 246, 0.6);
}
.btn-landing-cta:hover::after {
  transform: rotate(45deg) translateX(100%);
}

.landing-footer {
  text-align: center; border-top: 1px solid rgba(255, 255, 255, 0.05); padding-top: 24px;
}
.landing-footer p {
  color: var(--text-secondary); font-size: 0.9rem;
}
.landing-footer span {
  color: #818cf8; font-weight: 600; cursor: pointer; transition: color 0.2s;
}
.landing-footer span:hover { color: #c084fc; }

@media (max-width: 768px) {
  .landing-steps { grid-template-columns: 1fr; gap: 16px; }
  .feature-grid { grid-template-columns: 1fr; gap: 16px; }
  .landing-hero-title { font-size: 2rem; }
  .btn-landing-cta { width: 100%; padding: 16px 24px; }
}

/* ============================================
   ADMIN DASHBOARD REDESIGN
   ============================================ */
.admin-hero {
  text-align: center; margin: 20px 0 40px 0;
}
.admin-hero-title {
  font-size: 2.2rem; font-weight: 800; margin-bottom: 8px;
  background: linear-gradient(135deg, #06b6d4, #a855f7);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text; text-shadow: 0 4px 16px rgba(6, 182, 212, 0.2);
}
.admin-hero-sub {
  color: var(--text-secondary); font-size: 1.05rem;
}

.admin-tabs-wrapper {
  overflow-x: auto; padding-bottom: 16px; padding-top: 16px; margin-bottom: 32px;
  -webkit-overflow-scrolling: touch;
}
.admin-tabs-wrapper::-webkit-scrollbar { height: 0px; }
.admin-sidebar {
  display: flex; gap: 12px; min-width: max-content; justify-content: center;
}
.admin-tab {
  background: rgba(30, 41, 59, 0.5); border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50px; padding: 0 24px; color: var(--text-secondary);
  font-weight: 600; font-size: 0.95rem; cursor: pointer;
  transition: all 0.3s ease-out; display: flex; align-items: center; gap: 8px;
  min-height: 52px; box-sizing: border-box;
}
.admin-tab:hover {
  background: rgba(255, 255, 255, 0.05); color: var(--text-primary);
  transform: translateY(-2px); border-width: 1px;
}
.admin-tab.active {
  background: rgba(139, 92, 246, 0.15); color: #c084fc;
  border-width: 1px; border-color: rgba(139, 92, 246, 0.4);
  box-shadow: 0 0 24px rgba(139, 92, 246, 0.28); transform: translateY(-2px);
}

.admin-form-card {
  background: radial-gradient(circle at top left, rgba(30, 41, 59, 0.7), rgba(15, 23, 42, 0.8));
  backdrop-filter: blur(16px); border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px; padding: 40px; box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease; position: relative; overflow: hidden;
}
.admin-form-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(6, 182, 212, 0.5), transparent);
}
.admin-form-card:hover { border-color: rgba(6, 182, 212, 0.2); }

.admin-form-header { text-align: center; margin-bottom: 32px; }
.admin-form-header h3 { font-size: 1.5rem; color: #fff; margin-bottom: 6px; }
.admin-form-header p { color: var(--text-secondary); font-size: 0.9rem; }

.premium-input {
  background: rgba(15, 23, 42, 0.5) !important; border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 12px !important; padding: 14px 16px !important; color: #fff !important;
  font-size: 0.95rem !important; transition: all 0.2s ease-out !important; width: 100% !important;
}
.premium-input:focus {
  border-color: #06b6d4 !important; outline: none !important;
  box-shadow: 0 0 0 4px rgba(6, 182, 212, 0.1) !important; transform: scale(1.01);
}
.premium-input::placeholder { color: rgba(255, 255, 255, 0.3); }

.options-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 24px; }
.options-item label { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.opt-badge {
  width: 24px; height: 24px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 6px; font-weight: 800; font-size: 0.8rem; color: white;
}
.opt-a { background: linear-gradient(135deg, #ef4444, #f87171); box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3); }
.opt-b { background: linear-gradient(135deg, #3b82f6, #60a5fa); box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3); }
.opt-c { background: linear-gradient(135deg, #10b981, #34d399); box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3); }
.opt-d { background: linear-gradient(135deg, #f59e0b, #fbbf24); box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3); }

.settings-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 32px; }
.premium-select-wrapper { position: relative; }
.premium-select-wrapper select { appearance: none; -webkit-appearance: none; cursor: pointer; }
.select-icon {
  position: absolute; right: 16px; top: 50%; transform: translateY(-50%);
  color: var(--text-secondary); pointer-events: none; font-size: 0.8rem;
}

.admin-submit-area { text-align: center; border-top: 1px solid rgba(255, 255, 255, 0.05); padding-top: 32px; }
.admin-microcopy { font-size: 0.85rem; color: var(--text-secondary); margin-bottom: 12px; }
.btn-admin-submit {
  background: linear-gradient(135deg, #06b6d4, #3b82f6); color: #fff;
  border: none; border-radius: 50px; padding: 16px 40px; font-size: 1.1rem; font-weight: 700;
  cursor: pointer; transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: inline-flex; align-items: center; gap: 10px;
  box-shadow: 0 8px 24px rgba(6, 182, 212, 0.3); width: 100%; max-width: 400px; justify-content: center;
}
.btn-admin-submit:hover {
  transform: translateY(-4px); box-shadow: 0 12px 32px rgba(6, 182, 212, 0.5);
}
.btn-admin-submit:active { transform: translateY(0); scale: 0.98; }

@media (max-width: 768px) {
  .options-grid { grid-template-columns: 1fr; }
  .settings-grid { grid-template-columns: 1fr; }
}

.admin-q-card {
  background: rgba(15, 23, 42, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 16px;
}
.admin-q-header {
  font-weight: 600;
  margin-bottom: 12px;
  color: #fff;
}
.admin-q-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 12px;
  font-size: 0.95rem;
}
.admin-q-actions {
  display: flex;
  justify-content: flex-end;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 12px;
}

/* ============================================
   ADMIN QUIZ PLAN REDESIGN
   ============================================ */
.date-input {
  color-scheme: dark; font-family: inherit;
}
.date-input::-webkit-calendar-picker-indicator {
  filter: invert(1) opacity(0.7); cursor: pointer;
}

.plan-mode-toggle {
  display: flex; background: rgba(15, 23, 42, 0.5); border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50px; padding: 6px; gap: 8px; max-width: 500px; margin: 0 auto 12px auto;
}
.plan-mode-btn {
  flex: 1; padding: 12px; border-radius: 40px; font-weight: 600; font-size: 0.95rem;
  color: var(--text-secondary); background: transparent; transition: all 0.3s ease;
  display: flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer;
  border: 1px solid transparent;
}
.plan-mode-btn:hover { color: #fff; background: rgba(255, 255, 255, 0.05); }
.plan-mode-btn.active {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.15), rgba(139, 92, 246, 0.15));
  color: #fff; border-color: rgba(6, 182, 212, 0.3);
  box-shadow: 0 4px 16px rgba(6, 182, 212, 0.15), 0 0 8px rgba(139, 92, 246, 0.2) inset;
}
.plan-mode-btn.active .btn-icon { transform: scale(1.1); }

.plan-info-text {
  text-align: center; color: var(--text-secondary); font-size: 0.85rem;
}

@media (max-width: 768px) {
  .plan-mode-toggle { flex-direction: column; border-radius: 16px; padding: 12px; }
  .plan-mode-btn { border-radius: 12px; }
}

/* ============================================
   ADMIN FEATURE CONTROL PANEL
   ============================================ */
.feature-cards-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px;
}
.admin-feature-card {
  background: rgba(30, 41, 59, 0.4); border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 20px; padding: 24px; position: relative; overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); filter: grayscale(0.8) opacity(0.7);
}
.admin-feature-card.active {
  background: radial-gradient(circle at top right, rgba(6, 182, 212, 0.08), rgba(15, 23, 42, 0.6));
  border-color: rgba(6, 182, 212, 0.2); filter: none; box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}
.admin-feature-card:hover { transform: translateY(-3px); }
.admin-feature-card.active:hover { border-color: rgba(6, 182, 212, 0.4); box-shadow: 0 12px 40px rgba(6, 182, 212, 0.1); }

.feature-card-header {
  display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 20px;
}
.feature-icon-large {
  font-size: 2.5rem; line-height: 1; filter: drop-shadow(0 4px 12px rgba(255,255,255,0.1));
}
.feature-status {
  font-size: 0.75rem; font-weight: 800; padding: 4px 10px; border-radius: 50px;
  letter-spacing: 0.5px; transition: all 0.3s ease;
}
.status-active {
  background: rgba(16, 185, 129, 0.15); color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.4); box-shadow: 0 0 12px rgba(16, 185, 129, 0.2);
}
.status-inactive {
  background: rgba(255, 255, 255, 0.05); color: var(--text-secondary);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.feature-card-body h4 { font-size: 1.25rem; font-weight: 700; color: #fff; margin-bottom: 8px; }
.feature-card-body p { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.5; margin-bottom: 24px; }

.feature-card-footer {
  display: flex; justify-content: flex-end; align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.05); padding-top: 16px; margin-bottom: 12px;
}

.feature-warning {
  font-size: 0.75rem; color: #ef4444; opacity: 0.8; text-align: right;
  display: none; /* Sadece inaktifken göstermek istiyorsanız JS ile yönetilebilir, şu an kalıcı ancak card opacity ile soluk. */
}
.admin-feature-card:not(.active) .feature-warning { display: block; }

/* Premium Toggle Switch */
.premium-toggle {
  position: relative; display: inline-block; width: 56px; height: 32px;
}
.premium-toggle input { opacity: 0; width: 0; height: 0; }
.premium-toggle-slider {
  position: absolute; cursor: pointer; inset: 0; background-color: rgba(255, 255, 255, 0.1);
  border-radius: 34px; transition: .4s cubic-bezier(0.4, 0, 0.2, 1); border: 1px solid rgba(255, 255, 255, 0.05);
}
.premium-toggle-slider:before {
  position: absolute; content: ""; height: 24px; width: 24px; left: 3px; bottom: 3px;
  background-color: var(--text-secondary); border-radius: 50%; transition: .4s cubic-bezier(0.4, 0, 0.2, 1);
}
.premium-toggle input:checked + .premium-toggle-slider {
  background: linear-gradient(135deg, #06b6d4, #8b5cf6); border-color: transparent;
  box-shadow: 0 0 16px rgba(6, 182, 212, 0.4);
}
.premium-toggle input:checked + .premium-toggle-slider:before {
  transform: translateX(24px); background-color: #fff; box-shadow: -2px 0 8px rgba(0,0,0,0.2);
}
.premium-toggle:hover .premium-toggle-slider:before { transform: scale(1.1) translateX(0px); }
.premium-toggle input:checked:hover + .premium-toggle-slider:before { transform: scale(1.1) translateX(21px); }

@media (max-width: 768px) {
  .feature-cards-grid { grid-template-columns: 1fr; }
}

/* Premium Stat Cards */
.premium-stat-card {
  background: rgba(30, 41, 59, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}
.premium-stat-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: transparent; transition: all 0.3s ease;
}
.premium-stat-card:hover {
  transform: translateY(-4px); background: rgba(30, 41, 59, 0.6);
}
.stat-icon-wrap {
  width: 64px; height: 64px; border-radius: 18px;
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem; background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}
.stat-content { display: flex; flex-direction: column; gap: 4px; }
.stat-value { font-size: 2.2rem; font-weight: 800; color: #fff; line-height: 1; letter-spacing: -1px; }
.stat-label { font-size: 0.95rem; color: var(--text-secondary); font-weight: 500; }

/* Colors */
.card-cyan:hover { box-shadow: 0 12px 32px rgba(6, 182, 212, 0.15); border-color: rgba(6, 182, 212, 0.3); }
.card-cyan::before { background: #06b6d4; opacity: 0; }
.card-cyan:hover::before { opacity: 1; }
.card-cyan .stat-icon-wrap { background: linear-gradient(135deg, rgba(6, 182, 212, 0.2), rgba(6, 182, 212, 0.05)); color: #06b6d4; border: 1px solid rgba(6, 182, 212, 0.2); }
.card-cyan .stat-value { color: #22d3ee; }

.card-purple:hover { box-shadow: 0 12px 32px rgba(168, 85, 247, 0.15); border-color: rgba(168, 85, 247, 0.3); }
.card-purple::before { background: #a855f7; opacity: 0; }
.card-purple:hover::before { opacity: 1; }
.card-purple .stat-icon-wrap { background: linear-gradient(135deg, rgba(168, 85, 247, 0.2), rgba(168, 85, 247, 0.05)); color: #a855f7; border: 1px solid rgba(168, 85, 247, 0.2); }
.card-purple .stat-value { color: #c084fc; }

.card-emerald:hover { box-shadow: 0 12px 32px rgba(16, 185, 129, 0.15); border-color: rgba(16, 185, 129, 0.3); }
.card-emerald::before { background: #10b981; opacity: 0; }
.card-emerald:hover::before { opacity: 1; }
.card-emerald .stat-icon-wrap { background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(16, 185, 129, 0.05)); color: #10b981; border: 1px solid rgba(16, 185, 129, 0.2); }
.card-emerald .stat-value { color: #34d399; }

.card-amber:hover { box-shadow: 0 12px 32px rgba(245, 158, 11, 0.15); border-color: rgba(245, 158, 11, 0.3); }
.card-amber::before { background: #f59e0b; opacity: 0; }
.card-amber:hover::before { opacity: 1; }
.card-amber .stat-icon-wrap { background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(245, 158, 11, 0.05)); color: #f59e0b; border: 1px solid rgba(245, 158, 11, 0.2); }
.card-amber .stat-value { color: #fbbf24; }

/* ============================================
   LIGHT MODE ADMIN OVERRIDES
   ============================================ */
/* ============================================
   LIGHT MODE OVERRIDES (PREMIUM SAAS)
   ============================================ */

/* 1. Admin Cards & Layouts */
[data-theme="light"] .admin-form-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(18px);
}
[data-theme="light"] .admin-tab {
  background: rgba(255, 255, 255, 0.6);
  border-color: var(--border-color);
  color: var(--text-tertiary);
}
[data-theme="light"] .admin-tab:hover {
  background: rgba(255, 255, 255, 0.9);
  color: var(--text-primary);
}
[data-theme="light"] .admin-tab.active {
  background: rgba(255, 255, 255, 1);
  color: var(--accent-secondary);
  border-color: rgba(124, 58, 237, 0.3);
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.1);
}
[data-theme="light"] .admin-hero-sub { color: var(--text-tertiary); }
[data-theme="light"] .admin-q-card {
  background: rgba(255,255,255,0.5);
  border-color: var(--border-color);
  color: var(--text-primary);
}
[data-theme="light"] .admin-q-header { color: var(--text-primary); }
[data-theme="light"] .admin-q-actions { border-top-color: var(--border-color); }

/* 2. Stat Kartları & Result Screen (Premium Stat Cards) */
[data-theme="light"] .stat-card,
[data-theme="light"] .premium-stat-card {
  background: rgba(255,255,255,0.75);
  border: 1px solid rgba(15,23,42,0.08);
  box-shadow: 0 14px 40px rgba(15,23,42,0.08);
  backdrop-filter: blur(18px);
}
[data-theme="light"] .premium-stat-card:hover {
  background: rgba(255,255,255,0.95);
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(15,23,42,0.1);
}
[data-theme="light"] .stat-value { color: var(--text-primary); }
[data-theme="light"] .stat-label { color: var(--text-secondary); }
[data-theme="light"] .stat-icon-wrap { background: rgba(248,251,255,0.8); }

[data-theme="light"] .card-cyan .stat-value { color: #0891b2; }
[data-theme="light"] .card-cyan .stat-icon-wrap { background: rgba(8, 145, 178, 0.1); border-color: rgba(8, 145, 178, 0.2); }
[data-theme="light"] .card-purple .stat-value { color: #7c3aed; }
[data-theme="light"] .card-purple .stat-icon-wrap { background: rgba(124, 58, 237, 0.1); border-color: rgba(124, 58, 237, 0.2); }
[data-theme="light"] .card-emerald .stat-value { color: #059669; }
[data-theme="light"] .card-emerald .stat-icon-wrap { background: rgba(5, 150, 105, 0.1); border-color: rgba(5, 150, 105, 0.2); }
[data-theme="light"] .card-amber .stat-value { color: #d97706; }
[data-theme="light"] .card-amber .stat-icon-wrap { background: rgba(217, 119, 6, 0.1); border-color: rgba(217, 119, 6, 0.2); }

[data-theme="light"] .glass-card {
  background: rgba(255,255,255,0.72);
  border: 1px solid rgba(15,23,42,0.08);
  box-shadow: 0 18px 50px rgba(15,23,42,0.08);
  backdrop-filter: blur(18px);
}

/* 3. Score Circle */
[data-theme="light"] .score-circle-inner {
  background: rgba(255,255,255,0.9);
  box-shadow: inset 0 0 10px rgba(8, 145, 178, 0.1);
}
[data-theme="light"] .glow-ring { opacity: 0.3; }
[data-theme="light"] .score-text { color: var(--text-primary); font-weight: 800; }

/* 4. Badge / TOP %2 */
[data-theme="light"] .top-badge {
  background: rgba(255,255,255,0.75);
  border: 1px solid rgba(8, 145, 178, 0.3);
  box-shadow: 0 4px 15px rgba(8, 145, 178, 0.1);
}
[data-theme="light"] .top-badge-text {
  background: linear-gradient(135deg, #0891b2, #7c3aed);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: none;
}

/* 5. Butonlar */
[data-theme="light"] .btn-primary {
  box-shadow: 0 8px 20px rgba(124, 58, 237, 0.25);
}
[data-theme="light"] .btn-primary:hover {
  box-shadow: 0 12px 25px rgba(124, 58, 237, 0.35);
}
[data-theme="light"] .btn-secondary {
  background: rgba(255,255,255,0.75);
  color: #0f172a;
  border: 1px solid rgba(15,23,42,0.10);
  box-shadow: 0 2px 8px rgba(15,23,42,0.04);
}
[data-theme="light"] .btn-secondary:hover {
  background: rgba(255,255,255,0.9);
  box-shadow: 0 4px 15px rgba(8, 145, 178, 0.15);
  border-color: rgba(8, 145, 178, 0.3);
}

/* Planla */
[data-theme="light"] .plan-mode-toggle {
  background: rgba(255,255,255,0.6);
  border-color: var(--border-color);
}
[data-theme="light"] .plan-mode-btn { color: var(--text-tertiary); }
[data-theme="light"] .plan-mode-btn:hover { background: rgba(255,255,255,0.9); color: var(--text-primary); }
[data-theme="light"] .plan-mode-btn.active {
  background: #ffffff; color: var(--text-primary);
  border-color: rgba(15,23,42,0.08); box-shadow: 0 4px 12px rgba(15,23,42,0.05);
}
[data-theme="light"] .plan-info-text { color: var(--text-tertiary); }

/* Inputs inside admin panel */
[data-theme="light"] .admin-form-card .form-input,
[data-theme="light"] .admin-form-card .form-select,
[data-theme="light"] .admin-form-card .form-textarea {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(15, 23, 42, 0.08);
  color: #0f172a;
}
[data-theme="light"] .admin-form-card .form-input:focus,
[data-theme="light"] .admin-form-card .form-select:focus,
[data-theme="light"] .admin-form-card .form-textarea:focus {
  background: #ffffff;
  border-color: rgba(124, 58, 237, 0.4);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}
/* 6. Results Screen Elements */
[data-theme="light"] .pstat-card {
  background: rgba(255,255,255,0.75);
  border: 1px solid rgba(15,23,42,0.08);
  box-shadow: 0 14px 40px rgba(15,23,42,0.08);
  backdrop-filter: blur(18px);
}
[data-theme="light"] .pstat-value { color: var(--text-primary); }
[data-theme="light"] .pstat-label { color: var(--text-secondary); }
[data-theme="light"] .pstat-micro { color: var(--text-tertiary); }

[data-theme="light"] .rbtn-glass {
  background: rgba(255,255,255,0.75);
  color: #0f172a;
  border: 1px solid rgba(15,23,42,0.10);
  box-shadow: 0 2px 8px rgba(15,23,42,0.04);
}
[data-theme="light"] .rbtn-glass:hover {
  background: rgba(255,255,255,0.9);
  box-shadow: 0 4px 15px rgba(8, 145, 178, 0.15);
  border-color: rgba(8, 145, 178, 0.3);
}
[data-theme="light"] .rbtn-primary {
  box-shadow: 0 8px 20px rgba(124, 58, 237, 0.25);
}
[data-theme="light"] .rbtn-primary:hover {
  box-shadow: 0 12px 25px rgba(124, 58, 237, 0.35);
}

[data-theme="light"] .dist-section {
  background: rgba(255,255,255,0.75);
  border: 1px solid rgba(15,23,42,0.08);
  box-shadow: 0 14px 40px rgba(15,23,42,0.08);
  backdrop-filter: blur(18px);
}
[data-theme="light"] .dist-title { color: var(--text-primary); }
[data-theme="light"] .dist-subtitle { color: var(--text-secondary); }
[data-theme="light"] .dist-legend-item { color: var(--text-secondary); }
[data-theme="light"] .dist-bar-value { color: var(--text-secondary); }
[data-theme="light"] .dist-bar-label { color: var(--text-secondary); }
[data-theme="light"] .dist-bar-fill { background: rgba(8, 145, 178, 0.3); }

[data-theme="light"] .share-section {
  background: rgba(255,255,255,0.75);
  border: 1px solid rgba(15,23,42,0.08);
  box-shadow: 0 14px 40px rgba(15,23,42,0.08);
  backdrop-filter: blur(18px);
}
[data-theme="light"] .share-title { color: var(--text-primary); }
[data-theme="light"] .share-text { color: var(--text-secondary); }
[data-theme="light"] .share-btn {
  background: rgba(255,255,255,0.9);
  border: 1px solid rgba(15,23,42,0.08);
  color: #0f172a;
}
[data-theme="light"] .share-btn:hover {
  background: #ffffff;
  box-shadow: 0 4px 15px rgba(15,23,42,0.1);
}
[data-theme="light"] .share-x { color: #000; }
[data-theme="light"] .share-whatsapp { color: #25D366; }
[data-theme="light"] .share-facebook { color: #1877F2; }
/* ============================================
   LIGHT MODE OVERRIDES - PART 3 (Cards & Inputs)
   ============================================ */

/* League Cards */
[data-theme="light"] .league-action-card,
[data-theme="light"] .league-board-card {
  background: rgba(255,255,255,0.75);
  border: 1px solid rgba(15,23,42,0.08);
  box-shadow: 0 14px 40px rgba(15,23,42,0.08);
  backdrop-filter: blur(18px);
}
[data-theme="light"] .league-action-card:hover {
  background: rgba(255,255,255,0.95);
  box-shadow: 0 20px 50px rgba(15,23,42,0.1);
}
[data-theme="light"] .league-action-card h3,
[data-theme="light"] .league-board-title h3 { color: #0f172a; }
[data-theme="light"] .league-action-card p { color: var(--text-secondary); }

[data-theme="light"] .league-row {
  background: rgba(255,255,255,0.5);
  border-color: rgba(15,23,42,0.08);
}
[data-theme="light"] .league-row:hover { background: rgba(255,255,255,0.9); }
[data-theme="light"] .league-player-name { color: #0f172a; }

[data-theme="light"] .league-input {
  background: rgba(255,255,255,0.8);
  border: 1px solid rgba(15,23,42,0.08);
  color: #0f172a;
}
[data-theme="light"] .league-input:focus {
  background: #ffffff;
  border-color: rgba(8, 145, 178, 0.4);
}

/* Archive Cards */
[data-theme="light"] .archive-card {
  background: rgba(255,255,255,0.75);
  border: 1px solid rgba(15,23,42,0.08);
  box-shadow: 0 14px 40px rgba(15,23,42,0.08);
  backdrop-filter: blur(18px);
}
[data-theme="light"] .archive-card:hover {
  background: rgba(255,255,255,0.95);
  box-shadow: 0 20px 50px rgba(15,23,42,0.1);
}
[data-theme="light"] .archive-item-info h3,
[data-theme="light"] .archive-card h3 { color: #0f172a; }

/* Stats Screen (Chart, Last Test, Badges) */
[data-theme="light"] .chart-container,
[data-theme="light"] .last-test-card {
  background: rgba(255,255,255,0.75);
  border: 1px solid rgba(15,23,42,0.08);
  box-shadow: 0 14px 40px rgba(15,23,42,0.08);
  backdrop-filter: blur(18px);
  color: #0f172a;
}
[data-theme="light"] .last-test-card h3 { color: #0f172a; }
[data-theme="light"] .last-test-card .score-fraction { color: #0f172a; }
[data-theme="light"] .badge-list-wrap {
  background: rgba(255,255,255,0.75);
  border: 1px solid rgba(15,23,42,0.08);
  box-shadow: 0 14px 40px rgba(15,23,42,0.08);
  backdrop-filter: blur(18px);
  border-radius: 16px;
  padding: 24px;
}
[data-theme="light"] .badge-item {
  background: rgba(255,255,255,0.6);
  border: 1px solid rgba(15,23,42,0.08);
}
[data-theme="light"] .badge-item:hover {
  background: rgba(255,255,255,0.95);
}
[data-theme="light"] .badge-name { color: #0f172a; }

/* Home / Steps & Feature Cards */
[data-theme="light"] .step-card,
[data-theme="light"] .feature-card {
  background: rgba(255,255,255,0.75);
  border: 1px solid rgba(15,23,42,0.08);
  box-shadow: 0 14px 40px rgba(15,23,42,0.08);
  backdrop-filter: blur(18px);
}
[data-theme="light"] .step-card:hover,
[data-theme="light"] .feature-card:hover {
  background: rgba(255,255,255,0.95);
  box-shadow: 0 20px 50px rgba(15,23,42,0.1);
}
[data-theme="light"] .step-card h3,
[data-theme="light"] .feature-card h4,
[data-theme="light"] .feature-card-body h4 { color: #0f172a; }

/* Admin Premium Inputs Fix */
[data-theme="light"] .premium-input {
  background: rgba(255, 255, 255, 0.8) !important;
  border: 1px solid rgba(15, 23, 42, 0.08) !important;
  color: #0f172a !important;
}
[data-theme="light"] .premium-input:focus {
  background: #ffffff !important;
  border-color: rgba(124, 58, 237, 0.4) !important;
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1) !important;
}
[data-theme="light"] .premium-input::placeholder { color: rgba(15, 23, 42, 0.4) !important; }
/* ============================================
   LIGHT MODE OVERRIDES - PART 4 (Suggest Modal)
   ============================================ */

/* Inputs & Textareas */
[data-theme="light"] .suggest-input-focus {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(15, 23, 42, 0.08);
  color: #0f172a;
}
[data-theme="light"] .suggest-input-focus:focus {
  background: #ffffff;
  border-color: rgba(8, 145, 178, 0.4);
  box-shadow: 0 4px 16px rgba(8, 145, 178, 0.15);
}

/* Radio Boxes */
[data-theme="light"] .radio-box {
  background: rgba(255, 255, 255, 0.8);
  border: 2px solid rgba(15, 23, 42, 0.08);
  color: var(--text-secondary);
}
[data-theme="light"] .suggest-radio-new input:checked + .radio-box {
  background: rgba(16, 185, 129, 0.1);
  border-color: #10b981;
  color: #10b981;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.1);
}
[data-theme="light"] .suggest-radio-new:hover .radio-box:not(:has(input:checked)) {
  background: rgba(8, 145, 178, 0.05);
  border-color: rgba(8, 145, 178, 0.4);
}

/* Live Preview Card */
[data-theme="light"] .suggest-preview-card {
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 14px 40px rgba(15, 23, 42, 0.04);
}
[data-theme="light"] .sp-opt {
  background: rgba(15, 23, 42, 0.03);
  color: var(--text-secondary);
}
[data-theme="light"] .sp-opt.is-correct {
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.4);
}
[data-theme="light"] .sp-q {
  color: #0f172a;
}
