@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@300;400;500;700;800&family=Inter:wght@300;400;500;600;700&display=swap');

/* ═══════════════════════════════════════════════════
   DESIGN TOKENS
═══════════════════════════════════════════════════ */
:root {
  --primary: #1a2744;
  --primary-dark: #0f1a33;
  --primary-light: #253563;
  --accent: #c9a84c;
  --accent-light: #e8c97a;
  --accent-dark: #a87c2a;
  --success: #22c55e;
  --danger: #ef4444;
  --warning: #f59e0b;
  --info: #3b82f6;
  --text-primary: #f0f4ff;
  --text-secondary: #94a3b8;
  --text-dark: #1e293b;
  --bg-glass: rgba(255,255,255,0.06);
  --bg-glass-hover: rgba(255,255,255,0.1);
  --border-glass: rgba(255,255,255,0.12);
  --shadow-lg: 0 20px 60px rgba(0,0,0,0.4);
  --shadow-card: 0 8px 32px rgba(0,0,0,0.25);
  --radius: 16px;
  --radius-sm: 8px;
  --transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
}

/* ═══════════════════════════════════════════════════
   RESET & BASE
═══════════════════════════════════════════════════ */
*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: 'Tajawal', 'Inter', sans-serif;
  background: linear-gradient(135deg, #0a0f1e 0%, #1a2744 50%, #0d1628 100%);
  min-height: 100vh;
  color: var(--text-primary);
  direction: rtl;
  overflow-x: hidden;
}
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 20%, rgba(201,168,76,0.08) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 80%, rgba(26,39,68,0.5) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
button { cursor: pointer; font-family: inherit; }

/* ═══════════════════════════════════════════════════
   ANIMATED BACKGROUND PARTICLES
═══════════════════════════════════════════════════ */
.particle-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.particle-bg span {
  position: absolute;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.04;
  animation: float linear infinite;
}
.particle-bg span:nth-child(1)  { width: 300px; height: 300px; top: -10%; left: -5%;  animation-duration: 20s; }
.particle-bg span:nth-child(2)  { width: 200px; height: 200px; top: 60%; right: -5%; animation-duration: 25s; animation-delay: -5s; }
.particle-bg span:nth-child(3)  { width: 150px; height: 150px; bottom: -5%; left: 40%; animation-duration: 18s; animation-delay: -10s; }
@keyframes float {
  0%   { transform: translateY(0)   rotate(0deg);   }
  50%  { transform: translateY(-30px) rotate(180deg); }
  100% { transform: translateY(0)   rotate(360deg); }
}

/* ═══════════════════════════════════════════════════
   NAVBAR
═══════════════════════════════════════════════════ */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10,15,30,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-glass);
  padding: 0 2rem;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--accent);
}
.navbar-brand .logo-icon {
  width: 40px; height: 40px;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 1.1rem;
}
.navbar-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
}
.navbar-nav a {
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 500;
  transition: var(--transition);
  color: var(--text-secondary);
}
.navbar-nav a:hover, .navbar-nav a.active {
  background: var(--bg-glass-hover);
  color: var(--accent);
}
.navbar-user {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
}
.navbar-user .user-badge {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: var(--primary-dark);
  padding: 0.3rem 0.9rem;
  border-radius: 20px;
  font-weight: 700;
  font-size: 0.85rem;
}

/* ═══════════════════════════════════════════════════
   PAGE CONTAINER
═══════════════════════════════════════════════════ */
.page { position: relative; z-index: 1; min-height: calc(100vh - 70px); }
.container { max-width: 1100px; margin: 0 auto; padding: 0 1.5rem; }

/* ═══════════════════════════════════════════════════
   GLASS CARD
═══════════════════════════════════════════════════ */
.card {
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 2rem;
  box-shadow: var(--shadow-card);
  transition: var(--transition);
}
.card:hover { border-color: rgba(201,168,76,0.2); }

/* ═══════════════════════════════════════════════════
   BUTTONS
═══════════════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: 10px;
  border: none;
  font-size: 1rem;
  font-weight: 600;
  font-family: inherit;
  transition: var(--transition);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: white;
  opacity: 0;
  transition: opacity 0.2s;
}
.btn:hover::after { opacity: 0.08; }
.btn:active { transform: scale(0.97); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn:disabled:hover::after { opacity: 0; }

.btn-primary {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  color: var(--primary-dark);
  box-shadow: 0 4px 20px rgba(201,168,76,0.3);
}
.btn-primary:hover { box-shadow: 0 6px 30px rgba(201,168,76,0.5); transform: translateY(-1px); }

.btn-outline {
  background: transparent;
  border: 1.5px solid var(--border-glass);
  color: var(--text-primary);
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }

.btn-danger {
  background: linear-gradient(135deg, var(--danger), #b91c1c);
  color: white;
}
.btn-success {
  background: linear-gradient(135deg, var(--success), #16a34a);
  color: white;
}
.btn-sm { padding: 0.4rem 1rem; font-size: 0.85rem; }
.btn-lg { padding: 1rem 2.5rem; font-size: 1.1rem; border-radius: 12px; }
.btn-block { width: 100%; }

/* Spinner */
.spinner {
  width: 18px; height: 18px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: none;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ═══════════════════════════════════════════════════
   FORM ELEMENTS
═══════════════════════════════════════════════════ */
.form-group { margin-bottom: 1.25rem; }
.form-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}
.form-control {
  width: 100%;
  background: rgba(255,255,255,0.05);
  border: 1.5px solid var(--border-glass);
  border-radius: 10px;
  padding: 0.8rem 1rem;
  color: var(--text-primary);
  font-size: 1rem;
  font-family: inherit;
  transition: var(--transition);
  outline: none;
}
.form-control:focus {
  border-color: var(--accent);
  background: rgba(201,168,76,0.05);
  box-shadow: 0 0 0 3px rgba(201,168,76,0.1);
}
.form-control::placeholder { color: rgba(148,163,184,0.5); }
.input-icon-wrap { position: relative; }
.input-icon-wrap .icon {
  position: absolute;
  top: 50%; right: 1rem;
  transform: translateY(-50%);
  color: var(--text-secondary);
  font-size: 1rem;
  pointer-events: none;
}
.input-icon-wrap .form-control { padding-right: 2.75rem; }
.form-error { color: var(--danger); font-size: 0.8rem; margin-top: 0.4rem; display: none; }
.form-error.visible { display: block; }

/* ═══════════════════════════════════════════════════
   ALERTS / TOASTS
═══════════════════════════════════════════════════ */
.alert {
  padding: 0.9rem 1.25rem;
  border-radius: 10px;
  font-size: 0.9rem;
  margin-bottom: 1rem;
  display: none;
  align-items: center;
  gap: 0.5rem;
  animation: slideDown 0.3s ease;
}
.alert.visible { display: flex; }
.alert-error { background: rgba(239,68,68,0.15); border: 1px solid rgba(239,68,68,0.3); color: #fca5a5; }
.alert-success { background: rgba(34,197,94,0.15); border: 1px solid rgba(34,197,94,0.3); color: #86efac; }
@keyframes slideDown { from { opacity:0; transform:translateY(-10px); } to { opacity:1; transform:translateY(0); } }

.toast-container {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: center;
}
.toast {
  background: #1e293b;
  border: 1px solid var(--border-glass);
  border-radius: 10px;
  padding: 0.75rem 1.5rem;
  font-size: 0.9rem;
  color: var(--text-primary);
  box-shadow: var(--shadow-lg);
  animation: toastIn 0.3s ease;
  min-width: 220px;
  text-align: center;
}
.toast.success { border-color: rgba(34,197,94,0.4); color: #86efac; }
.toast.error { border-color: rgba(239,68,68,0.4); color: #fca5a5; }
@keyframes toastIn { from { opacity:0; transform:translateY(20px); } to { opacity:1; transform:translateY(0); } }

/* ═══════════════════════════════════════════════════
   HERO SECTION
═══════════════════════════════════════════════════ */
.hero {
  padding: 6rem 0 4rem;
  text-align: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(201,168,76,0.1);
  border: 1px solid rgba(201,168,76,0.25);
  color: var(--accent);
  padding: 0.4rem 1.2rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1.25rem;
  background: linear-gradient(135deg, #fff 0%, var(--accent-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero p {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}
.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ═══════════════════════════════════════════════════
   STATS / FEATURE CARDS
═══════════════════════════════════════════════════ */
.features { padding: 3rem 0 5rem; }
.section-title {
  text-align: center;
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}
.section-subtitle {
  text-align: center;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  font-size: 1rem;
}
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.5rem; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; }
.feature-card {
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: var(--transition);
  backdrop-filter: blur(10px);
}
.feature-card:hover { transform: translateY(-4px); border-color: rgba(201,168,76,0.3); box-shadow: 0 20px 40px rgba(0,0,0,0.3); }
.feature-icon {
  width: 52px; height: 52px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(201,168,76,0.2), rgba(201,168,76,0.05));
  border: 1px solid rgba(201,168,76,0.2);
  display: grid;
  place-items: center;
  font-size: 1.4rem;
  margin-bottom: 1rem;
}
.feature-card h3 { font-size: 1.1rem; font-weight: 600; margin-bottom: 0.5rem; }
.feature-card p { color: var(--text-secondary); font-size: 0.9rem; line-height: 1.6; }

/* Stat cards */
.stat-card {
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
  backdrop-filter: blur(10px);
  transition: var(--transition);
}
.stat-card:hover { transform: translateY(-3px); }
.stat-value {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 0.25rem;
}
.stat-label { font-size: 0.9rem; color: var(--text-secondary); font-weight: 500; }

/* ═══════════════════════════════════════════════════
   AUTH PAGE
═══════════════════════════════════════════════════ */
.auth-wrapper {
  min-height: calc(100vh - 70px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
}
.auth-card {
  width: 100%;
  max-width: 460px;
  background: rgba(15,25,55,0.8);
  border: 1px solid var(--border-glass);
  border-radius: 20px;
  backdrop-filter: blur(20px);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.auth-header {
  padding: 2rem 2rem 1rem;
  text-align: center;
}
.auth-logo {
  width: 64px; height: 64px;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-size: 1.75rem;
  margin: 0 auto 1rem;
}
.auth-header h2 { font-size: 1.5rem; font-weight: 700; margin-bottom: 0.25rem; }
.auth-header p { color: var(--text-secondary); font-size: 0.9rem; }

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid var(--border-glass);
}
.auth-tab {
  padding: 0.9rem;
  text-align: center;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  color: var(--text-secondary);
  transition: var(--transition);
  border-bottom: 2px solid transparent;
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
  font-family: inherit;
}
.auth-tab.active { color: var(--accent); border-bottom-color: var(--accent); }
.auth-body { padding: 1.75rem 2rem 2rem; }
.auth-form { display: none; }
.auth-form.active { display: block; animation: fadeIn 0.3s ease; }
@keyframes fadeIn { from { opacity:0; transform:translateY(8px); } to { opacity:1; transform:translateY(0); } }

.divider {
  display: flex; align-items: center; gap: 1rem;
  color: var(--text-secondary); font-size: 0.8rem; margin: 1rem 0;
}
.divider::before, .divider::after {
  content: ''; flex: 1;
  height: 1px; background: var(--border-glass);
}

/* ═══════════════════════════════════════════════════
   QUIZ PAGE
═══════════════════════════════════════════════════ */
.quiz-wrapper { padding: 3rem 0; }
.quiz-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}
.quiz-title { font-size: 1.3rem; font-weight: 700; }
.quiz-meta { display: flex; gap: 1.5rem; align-items: center; }
.quiz-meta-item {
  display: flex; align-items: center; gap: 0.4rem;
  color: var(--text-secondary); font-size: 0.9rem;
}
.quiz-meta-item .val { color: var(--accent); font-weight: 600; }

.progress-bar-wrap {
  background: rgba(255,255,255,0.08);
  border-radius: 20px;
  height: 6px;
  margin-bottom: 2.5rem;
  overflow: hidden;
}
.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-dark), var(--accent));
  border-radius: 20px;
  transition: width 0.5s ease;
}

.question-card {
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: 20px;
  padding: 2.5rem;
  margin-bottom: 2rem;
  backdrop-filter: blur(10px);
  animation: slideIn 0.4s ease;
}
@keyframes slideIn { from { opacity:0; transform:translateX(20px); } to { opacity:1; transform:translateX(0); } }

.question-number {
  font-size: 0.85rem;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.question-category {
  display: inline-block;
  background: rgba(201,168,76,0.1);
  border: 1px solid rgba(201,168,76,0.2);
  color: var(--accent);
  padding: 0.2rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
}
.question-text {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 1.75rem;
  line-height: 1.6;
  color: var(--text-primary);
}
.options-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
@media (max-width: 600px) { .options-grid { grid-template-columns: 1fr; } }

.option-btn {
  background: rgba(255,255,255,0.04);
  border: 1.5px solid var(--border-glass);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  text-align: right;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.option-btn:hover:not(:disabled) {
  background: rgba(201,168,76,0.08);
  border-color: rgba(201,168,76,0.4);
  transform: scale(1.01);
}
.option-btn.selected {
  background: rgba(201,168,76,0.12);
  border-color: var(--accent);
  color: var(--accent);
}
.option-btn.correct {
  background: rgba(34,197,94,0.12) !important;
  border-color: var(--success) !important;
  color: #86efac !important;
}
.option-btn.wrong {
  background: rgba(239,68,68,0.12) !important;
  border-color: var(--danger) !important;
  color: #fca5a5 !important;
}
.option-btn:disabled { cursor: not-allowed; }
.option-letter {
  width: 30px; height: 30px;
  border-radius: 8px;
  background: rgba(255,255,255,0.08);
  display: grid;
  place-items: center;
  font-size: 0.8rem;
  font-weight: 700;
  flex-shrink: 0;
  transition: var(--transition);
}
.option-btn.selected .option-letter { background: var(--accent); color: var(--primary-dark); }
.option-btn.correct .option-letter { background: var(--success); color: white; }
.option-btn.wrong .option-letter { background: var(--danger); color: white; }

.quiz-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.feedback-text {
  font-size: 1rem;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  display: none;
  animation: fadeIn 0.3s ease;
}
.feedback-text.correct { color: #86efac; background: rgba(34,197,94,0.1); }
.feedback-text.wrong { color: #fca5a5; background: rgba(239,68,68,0.1); }
.feedback-text.visible { display: inline-block; }

/* Results */
.results-card {
  text-align: center;
  padding: 3rem 2rem;
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: 20px;
  backdrop-filter: blur(10px);
  display: none;
}
.results-card.visible { display: block; animation: fadeIn 0.5s ease; }
.score-circle {
  width: 160px; height: 160px;
  border-radius: 50%;
  border: 6px solid var(--accent);
  display: grid;
  place-items: center;
  margin: 0 auto 1.5rem;
  position: relative;
  background: radial-gradient(circle, rgba(201,168,76,0.1), transparent);
}
.score-circle .score-num { font-size: 2.5rem; font-weight: 800; color: var(--accent); }
.score-circle .score-sub { font-size: 0.8rem; color: var(--text-secondary); }
.results-title { font-size: 1.75rem; font-weight: 700; margin-bottom: 0.5rem; }
.results-sub { color: var(--text-secondary); margin-bottom: 2rem; font-size: 1rem; }
.results-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ═══════════════════════════════════════════════════
   SCOREBOARD PAGE
═══════════════════════════════════════════════════ */
.scoreboard-wrapper { padding: 3rem 0; }
.scoreboard-header { text-align: center; margin-bottom: 2.5rem; }
.scoreboard-header h1 { font-size: 2rem; font-weight: 800; margin-bottom: 0.5rem; }

.table-wrap {
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius);
  overflow: hidden;
  backdrop-filter: blur(10px);
}
.score-table { width: 100%; border-collapse: collapse; }
.score-table th {
  background: rgba(255,255,255,0.04);
  padding: 1rem 1.25rem;
  text-align: right;
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid var(--border-glass);
}
.score-table td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  font-size: 0.95rem;
  transition: background 0.2s;
}
.score-table tr:last-child td { border-bottom: none; }
.score-table tbody tr:hover td { background: rgba(255,255,255,0.03); }
.rank-badge {
  width: 32px; height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 0.85rem;
}
.rank-1 { background: linear-gradient(135deg, #ffd700, #b8860b); color: #1a1a1a; }
.rank-2 { background: linear-gradient(135deg, #c0c0c0, #808080); color: #1a1a1a; }
.rank-3 { background: linear-gradient(135deg, #cd7f32, #8b4513); color: white; }
.rank-other { background: rgba(255,255,255,0.08); color: var(--text-secondary); }

.pct-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.pct-track {
  flex: 1;
  height: 8px;
  background: rgba(255,255,255,0.06);
  border-radius: 4px;
  overflow: hidden;
}
.pct-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-dark), var(--accent));
  border-radius: 4px;
  transition: width 1s ease;
}

/* ═══════════════════════════════════════════════════
   ADMIN PAGE
═══════════════════════════════════════════════════ */
.admin-wrapper { padding: 2.5rem 0; }
.admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}
.admin-header h1 { font-size: 1.6rem; font-weight: 800; }
.admin-badge {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: var(--primary-dark);
  padding: 0.3rem 0.9rem;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.admin-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1.25rem; margin-bottom: 2.5rem; }

.status-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  display: inline-block;
  margin-left: 0.5rem;
}
.status-dot.active { background: var(--success); box-shadow: 0 0 6px var(--success); }
.status-dot.inactive { background: var(--danger); }

.toggle-btn {
  padding: 0.3rem 0.75rem;
  border-radius: 6px;
  border: none;
  font-size: 0.8rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: var(--transition);
}
.toggle-btn.deactivate { background: rgba(239,68,68,0.15); color: #fca5a5; border: 1px solid rgba(239,68,68,0.3); }
.toggle-btn.deactivate:hover { background: rgba(239,68,68,0.25); }
.toggle-btn.activate { background: rgba(34,197,94,0.15); color: #86efac; border: 1px solid rgba(34,197,94,0.3); }
.toggle-btn.activate:hover { background: rgba(34,197,94,0.25); }

/* ═══════════════════════════════════════════════════
   LOADING / EMPTY STATES
═══════════════════════════════════════════════════ */
.loading-state {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--text-secondary);
}
.spinner-lg {
  width: 50px; height: 50px;
  border: 3px solid rgba(201,168,76,0.2);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
  margin: 0 auto 1rem;
}
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--text-secondary);
}
.empty-icon { font-size: 3rem; margin-bottom: 1rem; }

/* ═══════════════════════════════════════════════════
   PAGE TITLES
═══════════════════════════════════════════════════ */
.page-top {
  padding: 3rem 0 2rem;
  border-bottom: 1px solid var(--border-glass);
  margin-bottom: 2.5rem;
}
.page-top h1 { font-size: 1.8rem; font-weight: 800; margin-bottom: 0.25rem; }
.page-top p { color: var(--text-secondary); }

/* ═══════════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════════ */
.footer {
  border-top: 1px solid var(--border-glass);
  padding: 2rem;
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.85rem;
  margin-top: 4rem;
}

/* ═══════════════════════════════════════════════════
   UTILITIES
═══════════════════════════════════════════════════ */
.text-accent { color: var(--accent); }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
.text-muted { color: var(--text-secondary); }
.fw-bold { font-weight: 700; }
.text-center { text-align: center; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-2 { margin-bottom: 1rem; }
.d-none { display: none !important; }
.d-flex { display: flex; }
.gap-1 { gap: 0.5rem; }

/* Responsive */
@media (max-width: 768px) {
  .navbar { padding: 0 1rem; }
  .hero { padding: 4rem 0 3rem; }
  .quiz-header-bar { flex-direction: column; align-items: flex-start; }
  .options-grid { grid-template-columns: 1fr; }
  .admin-header { flex-direction: column; align-items: flex-start; }
}
