/* ============================================================
   Quiz de Maths — Design System
   Palette: Bleu éducatif + Teal accent, fond clair, haute lisibilité
   ============================================================ */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --blue-50: #EEF4FF;
  --blue-100: #D4E4FF;
  --blue-200: #A8C8FF;
  --blue-500: #3B7DDD;
  --blue-600: #2563B0;
  --blue-700: #1A4F8C;
  --blue-800: #113768;

  --teal-50: #E6F7F2;
  --teal-100: #B3E8D8;
  --teal-500: #14B88C;
  --teal-600: #0F9470;
  --teal-700: #0A7058;

  --amber-50: #FFF8E6;
  --amber-100: #FFECB3;
  --amber-500: #F5A623;
  --amber-600: #E08E00;

  --red-50: #FFF0F0;
  --red-500: #E24B4A;
  --red-600: #C33;

  --green-50: #EAFBE7;
  --green-500: #3CB043;
  --green-600: #2D8A35;

  --gray-50: #F8F9FA;
  --gray-100: #F1F3F5;
  --gray-200: #E2E5E9;
  --gray-300: #CED4DA;
  --gray-400: #ADB5BD;
  --gray-500: #6C757D;
  --gray-600: #495057;
  --gray-700: #373D43;
  --gray-800: #212529;

  --white: #FFFFFF;
  --bg: #F5F7FA;
  --text: #212529;
  --text-light: #495057;
  --text-muted: #6C757D;

  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.1);
  --shadow-xl: 0 16px 48px rgba(0,0,0,0.12);

  --transition: 0.2s ease;
  --max-width: 1200px;
  --header-h: 64px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--blue-600); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--blue-700); }

img { max-width: 100%; height: auto; display: block; }

/* --- Typography --- */
h1, h2, h3, h4 { font-weight: 700; line-height: 1.25; color: var(--gray-800); }
h1 { font-size: 2.5rem; }
h2 { font-size: 1.875rem; }
h3 { font-size: 1.375rem; }
h4 { font-size: 1.125rem; }

/* --- Layout --- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 80px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 48px;
}

.section-title h2 {
  margin-bottom: 12px;
}

.section-title p {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

/* --- Header / Navbar --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-h);
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-200);
  z-index: 1000;
  transition: box-shadow var(--transition);
}

.header.scrolled {
  box-shadow: var(--shadow);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--blue-700);
}

.logo-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--blue-500), var(--teal-500));
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.1rem;
  font-weight: 800;
}

.nav { display: flex; align-items: center; gap: 8px; }

.nav a {
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  color: var(--text-light);
  font-size: 0.938rem;
  font-weight: 500;
  transition: all var(--transition);
}

.nav a:hover {
  background: var(--gray-100);
  color: var(--text);
}

.nav a.active {
  color: var(--blue-600);
  background: var(--blue-50);
}

.nav .btn-primary { color: white; }
.nav .btn-primary:hover { color: white; }
.nav .btn-secondary { color: var(--blue-600); }
.nav .btn-secondary:hover { color: var(--blue-700); }

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text);
  cursor: pointer;
  padding: 4px;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 24px;
  border-radius: var(--radius);
  font-size: 0.938rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  line-height: 1.4;
}

.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--blue-600);
  color: white;
  box-shadow: 0 2px 8px rgba(37,99,176,0.3);
}
.btn-primary:hover {
  background: var(--blue-700);
  color: white;
  box-shadow: 0 4px 12px rgba(37,99,176,0.4);
}

.btn-secondary {
  background: var(--white);
  color: var(--blue-600);
  border: 1.5px solid var(--blue-200);
}
.btn-secondary:hover {
  background: var(--blue-50);
  border-color: var(--blue-500);
  color: var(--blue-700);
}

.btn-success {
  background: var(--teal-500);
  color: white;
  box-shadow: 0 2px 8px rgba(20,184,140,0.3);
}
.btn-success:hover { background: var(--teal-600); color: white; }

.btn-danger {
  background: var(--red-500);
  color: white;
}
.btn-danger:hover { background: var(--red-600); color: white; }

.btn-outline {
  background: transparent;
  color: var(--gray-600);
  border: 1.5px solid var(--gray-300);
}
.btn-outline:hover {
  border-color: var(--gray-400);
  background: var(--gray-50);
}

.btn-sm { padding: 6px 14px; font-size: 0.85rem; border-radius: var(--radius-sm); }
.btn-lg { padding: 14px 32px; font-size: 1.05rem; border-radius: var(--radius); }
.btn-block { width: 100%; }

.btn:disabled, .btn.disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

/* --- Cards --- */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
  padding: 28px;
  transition: all var(--transition);
}

.card:hover {
  box-shadow: var(--shadow);
}

.card-highlight {
  border-color: var(--blue-500);
  box-shadow: var(--shadow), 0 0 0 3px var(--blue-100);
}

/* --- Hero Section --- */
.hero {
  padding: 120px 0 80px;
  text-align: center;
  background: linear-gradient(180deg, var(--white) 0%, var(--bg) 100%);
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.hero h1 .highlight {
  background: linear-gradient(135deg, var(--blue-600), var(--teal-500));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 32px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 48px;
  margin-top: 56px;
  padding-top: 40px;
  border-top: 1px solid var(--gray-200);
}

.hero-stat {
  text-align: center;
}

.hero-stat .number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--blue-600);
}

.hero-stat .label {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* --- Level Cards --- */
.levels-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.level-card {
  text-align: center;
  padding: 36px 24px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.level-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
}

.level-card[data-level="1"]::before { background: var(--blue-500); }
.level-card[data-level="2"]::before { background: var(--teal-500); }
.level-card[data-level="3"]::before { background: var(--amber-500); }

.level-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  font-weight: 800;
  margin: 0 auto 16px;
  color: white;
}

.level-card[data-level="1"] .level-icon { background: linear-gradient(135deg, var(--blue-500), var(--blue-600)); }
.level-card[data-level="2"] .level-icon { background: linear-gradient(135deg, var(--teal-500), var(--teal-600)); }
.level-card[data-level="3"] .level-icon { background: linear-gradient(135deg, var(--amber-500), var(--amber-600)); }

.level-card h3 { margin-bottom: 8px; }
.level-card p { color: var(--text-muted); font-size: 0.938rem; margin-bottom: 20px; }

/* --- Features --- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  text-align: center;
  padding: 32px 20px;
}

.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin: 0 auto 16px;
}

.feature-card:nth-child(1) .feature-icon { background: var(--blue-50); color: var(--blue-600); }
.feature-card:nth-child(2) .feature-icon { background: var(--teal-50); color: var(--teal-600); }
.feature-card:nth-child(3) .feature-icon { background: var(--amber-50); color: var(--amber-600); }
.feature-card:nth-child(4) .feature-icon { background: var(--green-50); color: var(--green-600); }
.feature-card:nth-child(5) .feature-icon { background: var(--red-50); color: var(--red-600); }
.feature-card:nth-child(6) .feature-icon { background: var(--blue-50); color: var(--blue-600); }

.feature-card h4 { margin-bottom: 8px; }
.feature-card p { color: var(--text-muted); font-size: 0.9rem; }

/* --- Pricing --- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: start;
}

.pricing-card {
  text-align: center;
  padding: 36px 28px;
  position: relative;
}

.pricing-card.popular {
  border-color: var(--blue-500);
  box-shadow: var(--shadow-lg), 0 0 0 3px var(--blue-100);
  transform: scale(1.03);
}

.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--blue-600);
  color: white;
  padding: 4px 16px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}

.pricing-card h3 { margin-bottom: 8px; font-size: 1.2rem; }

.pricing-price {
  margin: 20px 0;
}

.pricing-price .amount {
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--blue-700);
}

.pricing-price .currency {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-left: 4px;
}

.pricing-price .period {
  display: block;
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.pricing-features {
  list-style: none;
  text-align: left;
  margin: 24px 0;
}

.pricing-features li {
  padding: 8px 0;
  font-size: 0.938rem;
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: 10px;
}

.pricing-features li::before {
  content: '✓';
  color: var(--teal-500);
  font-weight: 700;
  font-size: 0.85rem;
  flex-shrink: 0;
}

/* --- How it works / Steps --- */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  position: relative;
}

.step {
  text-align: center;
  position: relative;
}

.step-number {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--blue-600);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  margin: 0 auto 14px;
}

.step h4 { margin-bottom: 6px; font-size: 1rem; }
.step p { color: var(--text-muted); font-size: 0.875rem; }

/* --- Footer --- */
.footer {
  background: var(--gray-800);
  color: var(--gray-300);
  padding: 48px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 32px;
}

.footer-brand .logo { color: white; margin-bottom: 12px; }
.footer-brand .logo-icon { background: linear-gradient(135deg, var(--blue-500), var(--teal-500)); }
.footer-brand p { font-size: 0.9rem; color: var(--gray-400); max-width: 300px; }

.footer h4 {
  color: white;
  font-size: 0.938rem;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-links { list-style: none; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { color: var(--gray-400); font-size: 0.9rem; }
.footer-links a:hover { color: white; }

.footer-bottom {
  border-top: 1px solid var(--gray-700);
  padding-top: 20px;
  text-align: center;
  font-size: 0.85rem;
  color: var(--gray-500);
}

/* --- Forms --- */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 6px;
}

.form-input {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--gray-300);
  border-radius: var(--radius);
  font-size: 0.938rem;
  font-family: inherit;
  color: var(--text);
  background: var(--white);
  transition: all var(--transition);
}

.form-input:focus {
  outline: none;
  border-color: var(--blue-500);
  box-shadow: 0 0 0 3px var(--blue-100);
}

.form-input.error {
  border-color: var(--red-500);
  box-shadow: 0 0 0 3px var(--red-50);
}

.form-input::placeholder { color: var(--gray-400); }

select.form-input {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236C757D' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

.form-error {
  font-size: 0.8rem;
  color: var(--red-500);
  margin-top: 4px;
}

.form-help {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* --- Auth Pages --- */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  background: var(--bg);
}

.auth-card {
  width: 100%;
  max-width: 440px;
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 40px;
  box-shadow: var(--shadow-lg);
}

.auth-card .logo {
  justify-content: center;
  margin-bottom: 28px;
  font-size: 1.4rem;
}

.auth-card h2 {
  text-align: center;
  margin-bottom: 8px;
  font-size: 1.5rem;
}

.auth-card .subtitle {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 28px;
  font-size: 0.938rem;
}

.auth-footer {
  text-align: center;
  margin-top: 20px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* --- Dashboard --- */
.dashboard {
  padding-top: calc(var(--header-h) + 24px);
  min-height: 100vh;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 24px;
  min-height: calc(100vh - var(--header-h) - 48px);
}

.sidebar {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
  padding: 20px 0;
  height: fit-content;
  position: sticky;
  top: calc(var(--header-h) + 24px);
}

.sidebar-menu { list-style: none; }

.sidebar-menu li a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 24px;
  color: var(--text-light);
  font-size: 0.938rem;
  font-weight: 500;
  transition: all var(--transition);
  border-left: 3px solid transparent;
}

.sidebar-menu li a:hover {
  background: var(--gray-50);
  color: var(--text);
}

.sidebar-menu li a.active {
  color: var(--blue-600);
  background: var(--blue-50);
  border-left-color: var(--blue-600);
  font-weight: 600;
}

.dashboard-content {
  min-width: 0;
}

/* Stats cards */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.stat-card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--gray-200);
  padding: 20px;
}

.stat-card .stat-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  margin-bottom: 12px;
}

.stat-card .stat-value {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--gray-800);
}

.stat-card .stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Data tables */
.table-wrap {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
  overflow-x: auto;
}

.table-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--gray-200);
  flex-wrap: wrap;
  gap: 12px;
}

.table-header h3 { font-size: 1.1rem; }

table {
  width: 100%;
  border-collapse: collapse;
}

th, td {
  padding: 12px 20px;
  text-align: left;
  font-size: 0.9rem;
}

th {
  background: var(--gray-50);
  font-weight: 600;
  color: var(--gray-600);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-bottom: 1px solid var(--gray-200);
}

td { border-bottom: 1px solid var(--gray-100); }

tr:last-child td { border-bottom: none; }

tr:hover td { background: var(--gray-50); }

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
}

.badge-success { background: var(--green-50); color: var(--green-600); }
.badge-warning { background: var(--amber-50); color: var(--amber-600); }
.badge-danger { background: var(--red-50); color: var(--red-600); }
.badge-info { background: var(--blue-50); color: var(--blue-600); }
.badge-muted { background: var(--gray-100); color: var(--gray-500); }

/* --- Alerts / Toasts --- */
.alert {
  padding: 12px 16px;
  border-radius: var(--radius);
  font-size: 0.9rem;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.alert-success { background: var(--green-50); color: var(--green-600); border: 1px solid #b3e6b3; }
.alert-error { background: var(--red-50); color: var(--red-600); border: 1px solid #f5c1c1; }
.alert-warning { background: var(--amber-50); color: var(--amber-600); border: 1px solid #ffe0a3; }
.alert-info { background: var(--blue-50); color: var(--blue-600); border: 1px solid #a8c8ff; }

.toast-container {
  position: fixed;
  top: 80px;
  right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast {
  padding: 12px 20px;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-lg);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: slideIn 0.3s ease;
  border-left: 4px solid var(--blue-500);
  max-width: 360px;
}

.toast.success { border-left-color: var(--green-500); }
.toast.error { border-left-color: var(--red-500); }

@keyframes slideIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* --- Loading / Spinner --- */
.spinner {
  width: 24px;
  height: 24px;
  border: 3px solid var(--gray-200);
  border-top-color: var(--blue-500);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.loading-overlay {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  flex-direction: column;
  gap: 12px;
  color: var(--text-muted);
}

/* --- Pagination --- */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin-top: 20px;
}

.pagination button {
  padding: 6px 12px;
  border: 1px solid var(--gray-300);
  background: var(--white);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  cursor: pointer;
  transition: all var(--transition);
}

.pagination button:hover { background: var(--gray-50); }
.pagination button.active {
  background: var(--blue-600);
  color: white;
  border-color: var(--blue-600);
}

/* --- Premium Lock Overlay --- */
.premium-lock {
  position: relative;
}

.premium-lock::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(255,255,255,0.9) 40%, white 70%);
  border-radius: inherit;
  pointer-events: none;
}

.premium-lock-message {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  text-align: center;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .levels-grid,
  .features-grid,
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-card.popular { transform: none; }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
  .hero h1 { font-size: 2.25rem; }
  .hero { padding: 100px 0 60px; }
  .section { padding: 56px 0; }
  .hero-stats { gap: 24px; }
  .hero-stat .number { font-size: 1.5rem; }

  .nav { 
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 16px;
    border-bottom: 1px solid var(--gray-200);
    box-shadow: var(--shadow-lg);
  }
  .nav.open { display: flex; }
  .menu-toggle { display: block; }

  .levels-grid,
  .features-grid,
  .pricing-grid { grid-template-columns: 1fr; }

  .steps-grid { grid-template-columns: 1fr 1fr; }

  .footer-grid { grid-template-columns: 1fr; }

  .dashboard-grid {
    grid-template-columns: 1fr;
  }
  .sidebar {
    position: static;
    display: flex;
    overflow-x: auto;
  }
  .sidebar-menu {
    display: flex;
    width: 100%;
  }
  .sidebar-menu li a {
    border-left: none;
    border-bottom: 3px solid transparent;
    white-space: nowrap;
    padding: 10px 16px;
  }
  .sidebar-menu li a.active {
    border-bottom-color: var(--blue-600);
    border-left-color: transparent;
  }

  .auth-card { padding: 28px 20px; }

  .table-header { flex-direction: column; align-items: stretch; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 1.75rem; }
  .hero-stats { flex-direction: column; gap: 16px; }
  .steps-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; }
}

/* --- Utility --- */
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.gap-1 { gap: 8px; }
.gap-2 { gap: 16px; }
.d-flex { display: flex; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.flex-wrap { flex-wrap: wrap; }
.hidden { display: none !important; }
