/* ============================
   LO Exam Prep - Professional Financial Theme
   Primary: #065f46 | Accent: #f59e0b | BG: #ffffff
   ============================ */

/* === Reset & Base === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --primary: #065f46;
  --primary-light: #0d9668;
  --primary-dark: #044032;
  --accent: #f59e0b;
  --accent-light: #fbbf24;
  --accent-dark: #d97706;
  --bg: #ffffff;
  --bg-alt: #f0fdf4;
  --bg-card: #ffffff;
  --text: #1e293b;
  --text-light: #64748b;
  --text-muted: #94a3b8;
  --border: #e2e8f0;
  --success: #10b981;
  --danger: #ef4444;
  --warning: #f59e0b;
  --info: #3b82f6;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 3px rgba(0,0,0,.1), 0 1px 2px rgba(0,0,0,.06);
  --shadow-md: 0 4px 6px rgba(0,0,0,.07), 0 2px 4px rgba(0,0,0,.06);
  --shadow-lg: 0 10px 15px rgba(0,0,0,.1), 0 4px 6px rgba(0,0,0,.05);
  --transition: .2s ease;
}

html { scroll-behavior: smooth; }
body {
  font-family: 'Lato', sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  min-height: 100vh;
}
h1,h2,h3,h4,h5,h6 { font-family: 'Poppins', sans-serif; font-weight: 600; line-height: 1.3; }
a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary-light); }
img { max-width: 100%; height: auto; }

/* === Navbar === */
.navbar {
  background: var(--primary);
  padding: .75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-md);
}
.navbar-brand {
  display: flex;
  align-items: center;
  gap: .75rem;
  color: #fff;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
}
.navbar-brand img, .navbar-brand .brand-icon {
  height: 36px;
  width: auto;
  border-radius: 6px;
  object-fit: contain;
  background: #fff;
  padding: 2px 4px;
}
.navbar-links {
  display: flex;
  align-items: center;
  gap: 1rem;
  list-style: none;
}
.navbar-links a {
  color: rgba(255,255,255,.85);
  font-weight: 500;
  padding: .5rem .75rem;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  font-size: .9rem;
}
.navbar-links a:hover, .navbar-links a.active {
  color: #fff;
  background: rgba(255,255,255,.15);
}
.navbar-right {
  display: flex;
  align-items: center;
  gap: .75rem;
}
.hamburger {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  padding: .25rem;
}
.lang-toggle {
  background: rgba(255,255,255,.15);
  border: none;
  color: #fff;
  padding: .4rem .75rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 1rem;
  transition: background var(--transition);
}
.lang-toggle:hover { background: rgba(255,255,255,.25); }

@media (max-width: 768px) {
  .hamburger { display: block; }
  .navbar-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--primary-dark);
    flex-direction: column;
    padding: 1rem;
    gap: .25rem;
  }
  .navbar-links.open { display: flex; }
  .navbar-links a { display: block; padding: .75rem 1rem; }
}

/* === Container === */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.container-sm { max-width: 600px; margin: 0 auto; padding: 0 1.5rem; }
.container-md { max-width: 800px; margin: 0 auto; padding: 0 1.5rem; }

/* === Cards === */
.card {
  background: var(--bg-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  padding: 1.5rem;
  transition: all var(--transition);
}
.card:hover { box-shadow: var(--shadow-md); }
.card-header {
  font-family: 'Poppins', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--primary);
}

/* Stat Cards */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}
.stat-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  border-left: 4px solid var(--primary);
  display: flex;
  align-items: center;
  gap: 1rem;
}
.stat-card .stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: var(--primary);
  flex-shrink: 0;
}
.stat-card .stat-info { flex: 1; }
.stat-card .stat-value {
  font-family: 'Poppins', sans-serif;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
}
.stat-card .stat-label {
  font-size: .85rem;
  color: var(--text-light);
  margin-top: .25rem;
}

/* Mode Cards */
.modes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}
.mode-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.mode-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}
.mode-card .mode-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.25rem;
  margin-bottom: 1rem;
}
.mode-card .mode-title {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 1.05rem;
  margin-bottom: .5rem;
  color: var(--text);
}
.mode-card .mode-desc {
  font-size: .875rem;
  color: var(--text-light);
  line-height: 1.5;
}
.mode-card .mode-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--accent);
  color: #fff;
  font-size: .7rem;
  font-weight: 700;
  padding: .2rem .6rem;
  border-radius: 20px;
  text-transform: uppercase;
}

/* === Buttons === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .65rem 1.5rem;
  border-radius: var(--radius-sm);
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: .95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  line-height: 1.4;
}
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-primary {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.btn-primary:hover { background: var(--primary-light); border-color: var(--primary-light); color: #fff; }
.btn-accent {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.btn-accent:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; }
.btn-outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-outline-light {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,.5);
}
.btn-outline-light:hover { background: rgba(255,255,255,.15); border-color: #fff; }
.btn-danger { background: var(--danger); color: #fff; border-color: var(--danger); }
.btn-danger:hover { background: #dc2626; }
.btn-success { background: var(--success); color: #fff; border-color: var(--success); }
.btn-success:hover { background: #059669; }
.btn-sm { padding: .4rem 1rem; font-size: .85rem; }
.btn-lg { padding: .85rem 2rem; font-size: 1.1rem; }
.btn-block { display: flex; width: 100%; }
.btn-group { display: flex; gap: .5rem; flex-wrap: wrap; }

/* === Forms === */
.form-group { margin-bottom: 1.25rem; }
.form-label {
  display: block;
  font-weight: 600;
  margin-bottom: .4rem;
  font-size: .9rem;
  color: var(--text);
}
.form-control {
  width: 100%;
  padding: .7rem 1rem;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: 'Lato', sans-serif;
  font-size: 1rem;
  transition: border-color var(--transition), box-shadow var(--transition);
  background: #fff;
  color: var(--text);
}
.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(6,95,70,.15);
}
.form-control::placeholder { color: var(--text-muted); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 500px) { .form-row { grid-template-columns: 1fr; } }
.password-wrapper { position: relative; }
.password-wrapper .form-control { padding-right: 3rem; }
.password-toggle {
  position: absolute;
  right: .75rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-light);
  cursor: pointer;
  font-size: 1.1rem;
}
select.form-control { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2364748b' d='M6 8L1 3h10z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; padding-right: 2.5rem; }

/* === Hero === */
.hero {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%);
  color: #fff;
  padding: 5rem 1.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(245,158,11,.15) 0%, transparent 70%);
  border-radius: 50%;
}
.hero h1 {
  font-size: 2.75rem;
  margin-bottom: 1rem;
  position: relative;
}
.hero .subtitle {
  font-size: 1.25rem;
  opacity: .9;
  max-width: 600px;
  margin: 0 auto 2rem;
  position: relative;
}
.hero .hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
}
@media (max-width: 600px) {
  .hero { padding: 3rem 1rem; }
  .hero h1 { font-size: 1.75rem; }
  .hero .subtitle { font-size: 1rem; }
}

/* === Features === */
.features-section { padding: 4rem 1.5rem; background: var(--bg-alt); }
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}
.feature-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  text-align: center;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: transform var(--transition);
}
.feature-card:hover { transform: translateY(-4px); }
.feature-card .feature-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}
.feature-card h3 { margin-bottom: .5rem; font-size: 1.1rem; }
.feature-card p { color: var(--text-light); font-size: .9rem; }

/* === Section titles === */
.section-title {
  font-size: 1.75rem;
  text-align: center;
  margin-bottom: 2.5rem;
  color: var(--primary);
}
.section-title span { color: var(--accent); }

/* === Exam UI === */
.exam-container { max-width: 800px; margin: 0 auto; padding: 1.5rem; }
.exam-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding: 1rem 1.5rem;
  background: var(--bg-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}
.exam-timer {
  font-family: 'Poppins', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: .5rem;
}
.exam-timer.warning { color: var(--warning); }
.exam-timer.danger { color: var(--danger); animation: pulse 1s ease infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .5; } }
.exam-progress-info { font-size: .9rem; color: var(--text-light); font-weight: 600; }
.progress-bar-container {
  width: 100%;
  height: 8px;
  background: var(--border);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 1.5rem;
}
.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
  border-radius: 4px;
  transition: width .3s ease;
}

/* Question Card */
.question-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  padding: 2rem;
  margin-bottom: 1.5rem;
}
.question-number {
  font-size: .85rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: .75rem;
}
.question-text {
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  color: var(--text);
}

/* Options - VERTICAL */
.options-list {
  display: flex;
  flex-direction: column;
  gap: .75rem;
}
.option-item {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  padding: 1rem 1.25rem;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition);
  background: #fff;
  position: relative;
}
.option-item:hover {
  border-color: var(--primary);
  background: var(--bg-alt);
}
.option-item.selected {
  border-color: var(--primary);
  background: rgba(6,95,70,.08);
}
.option-item.selected .option-letter {
  background: var(--primary);
  color: #fff;
}
.option-item.correct {
  border-color: var(--success);
  background: rgba(16,185,129,.08);
}
.option-item.correct .option-letter { background: var(--success); color: #fff; }
.option-item.incorrect {
  border-color: var(--danger);
  background: rgba(239,68,68,.08);
}
.option-item.incorrect .option-letter { background: var(--danger); color: #fff; }
.option-letter {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: .85rem;
  color: var(--primary);
  flex-shrink: 0;
  transition: all var(--transition);
}
.option-text { font-size: .95rem; line-height: 1.5; padding-top: .15rem; }

.option-item input[type="radio"] { display: none; }

/* Exam Navigation */
.exam-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* === Score Circle (SVG) === */
.score-section { text-align: center; padding: 2rem 0; }
.score-circle-wrap { display: inline-block; position: relative; margin-bottom: 1rem; }
.score-circle-wrap svg { width: 200px; height: 200px; transform: rotate(-90deg); }
.score-circle-bg { fill: none; stroke: var(--border); stroke-width: 8; }
.score-circle-fill { fill: none; stroke-width: 8; stroke-linecap: round; transition: stroke-dashoffset 1s ease; }
.score-circle-fill.pass { stroke: var(--success); }
.score-circle-fill.fail { stroke: var(--danger); }
.score-value {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: 'Poppins', sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text);
}
.score-value small { font-size: .9rem; font-weight: 400; color: var(--text-light); }

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: .3rem .75rem;
  border-radius: 20px;
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
}
.badge-pass { background: rgba(16,185,129,.12); color: #059669; }
.badge-fail { background: rgba(239,68,68,.12); color: #dc2626; }
.badge-pending { background: rgba(245,158,11,.12); color: #d97706; }
.badge-approved { background: rgba(16,185,129,.12); color: #059669; }
.badge-rejected { background: rgba(239,68,68,.12); color: #dc2626; }
.badge-admin { background: rgba(6,95,70,.12); color: var(--primary); }

/* Chapter Progress */
.chapter-progress { margin-bottom: 1rem; }
.chapter-progress .chapter-label {
  display: flex;
  justify-content: space-between;
  font-size: .85rem;
  margin-bottom: .35rem;
  font-weight: 600;
}
.chapter-progress .chapter-label span:last-child { color: var(--primary); }
.chapter-bar {
  height: 10px;
  background: var(--border);
  border-radius: 5px;
  overflow: hidden;
}
.chapter-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 5px;
  transition: width .5s ease;
}

/* === Toast === */
.toast-container {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: .5rem;
}
.toast {
  padding: .85rem 1.25rem;
  border-radius: var(--radius-sm);
  color: #fff;
  font-weight: 600;
  font-size: .9rem;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: .75rem;
  animation: slideIn .3s ease;
  min-width: 280px;
  max-width: 420px;
}
.toast.success { background: var(--success); }
.toast.error { background: var(--danger); }
.toast.warning { background: var(--warning); }
.toast.info { background: var(--info); }
.toast .toast-close {
  margin-left: auto;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  font-size: 1.2rem;
  opacity: .7;
}
.toast .toast-close:hover { opacity: 1; }
@keyframes slideIn { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

/* === Modal === */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 5000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  animation: fadeIn .2s ease;
}
.modal {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  max-width: 500px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  animation: scaleIn .2s ease;
}
.modal-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.modal-header h3 { font-size: 1.1rem; }
.modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-light);
  line-height: 1;
}
.modal-body { padding: 1.5rem; }
.modal-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: flex-end;
  gap: .75rem;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes scaleIn { from { transform: scale(.95); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* Chapter selector in modal */
.chapter-checkbox {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: .5rem;
  cursor: pointer;
  transition: all var(--transition);
}
.chapter-checkbox:hover { border-color: var(--primary); background: var(--bg-alt); }
.chapter-checkbox input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--primary); }
.chapter-checkbox label { cursor: pointer; font-weight: 500; }

/* === Tables === */
.table-responsive { overflow-x: auto; }
table {
  width: 100%;
  border-collapse: collapse;
  font-size: .9rem;
}
th, td {
  padding: .75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
th {
  background: var(--bg-alt);
  font-weight: 700;
  font-family: 'Poppins', sans-serif;
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--text-light);
}
tr:hover { background: rgba(6,95,70,.03); }
.clickable-row { cursor: pointer; }
.clickable-row:hover { background: var(--bg-alt); }

/* === Review Items === */
.review-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1.25rem;
  margin-bottom: .75rem;
  background: #fff;
}
.review-item.correct { border-left: 4px solid var(--success); }
.review-item.incorrect { border-left: 4px solid var(--danger); }
.review-item .review-question { font-weight: 600; margin-bottom: .5rem; }
.review-item .review-answer { font-size: .9rem; color: var(--text-light); }
.review-item .review-answer .correct-text { color: var(--success); font-weight: 600; }
.review-item .review-answer .wrong-text { color: var(--danger); font-weight: 600; }

/* === Auth Pages === */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  background: var(--bg-alt);
}
.auth-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 2.5rem;
  width: 100%;
  max-width: 480px;
}
.auth-card .auth-logo {
  text-align: center;
  margin-bottom: 2rem;
}
.auth-card .auth-logo img { width: 80px; border-radius: 12px; }
.auth-card .auth-logo h2 { margin-top: .75rem; color: var(--primary); font-size: 1.5rem; }
.auth-card .auth-logo p { color: var(--text-light); font-size: .9rem; }
.auth-links { text-align: center; margin-top: 1.5rem; font-size: .9rem; }
.auth-links a { font-weight: 600; }

/* === Pending Page === */
.pending-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
}
.pending-icon {
  font-size: 4rem;
  color: var(--accent);
  margin-bottom: 1rem;
}

/* === Footer === */
.footer {
  background: var(--primary-dark);
  color: rgba(255,255,255,.8);
  padding: 3rem 1.5rem 1.5rem;
  margin-top: 4rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto 2rem;
}
.footer h4 { color: var(--accent); margin-bottom: 1rem; font-size: 1rem; }
.footer a { color: rgba(255,255,255,.7); }
.footer a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 1.5rem;
  text-align: center;
  font-size: .85rem;
  max-width: 1200px;
  margin: 0 auto;
}

/* === Welcome Banner === */
.welcome-banner {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff;
  padding: 2rem;
  border-radius: var(--radius);
  margin-bottom: 2rem;
}
.welcome-banner h2 { font-size: 1.5rem; margin-bottom: .5rem; }
.welcome-banner p { opacity: .9; }

/* === Test A/B Section === */
.test-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 2rem;
}
@media (max-width: 600px) { .test-section { grid-template-columns: 1fr; } }
.test-card {
  background: linear-gradient(135deg, var(--accent-dark), var(--accent));
  color: #fff;
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition);
  box-shadow: var(--shadow);
}
.test-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.test-card h3 { font-size: 1.25rem; margin-bottom: .5rem; }
.test-card p { font-size: .9rem; opacity: .9; }

/* === Certificate === */
.cert-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.cert-info h4 { font-size: 1rem; margin-bottom: .25rem; }
.cert-info p { font-size: .85rem; color: var(--text-light); }
.cert-actions { display: flex; gap: .5rem; }

/* === Verify === */
.verify-card {
  max-width: 600px;
  margin: 3rem auto;
  text-align: center;
  padding: 3rem;
}
.verify-icon { font-size: 4rem; margin-bottom: 1rem; }
.verify-icon.valid { color: var(--success); }
.verify-icon.invalid { color: var(--danger); }

/* === Page Content === */
.page-content { padding: 2rem 0; }
.page-header {
  margin-bottom: 2rem;
}
.page-header h1 {
  font-size: 1.75rem;
  color: var(--primary);
}
.page-header p { color: var(--text-light); margin-top: .25rem; }

/* === Admin === */
.admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}
.admin-stat {
  background: #fff;
  padding: 1.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  text-align: center;
}
.admin-stat .admin-stat-value {
  font-family: 'Poppins', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
}
.admin-stat .admin-stat-label {
  font-size: .85rem;
  color: var(--text-light);
}
.user-actions { display: flex; gap: .5rem; }

/* === Filter Bar === */
.filter-bar {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  align-items: center;
}
.filter-bar .form-control { max-width: 250px; }
@media (max-width: 600px) { .filter-bar .form-control { max-width: 100%; } }

/* === Upload === */
.upload-zone {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 3rem;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition);
  background: var(--bg-alt);
}
.upload-zone:hover { border-color: var(--primary); background: rgba(6,95,70,.03); }
.upload-zone i { font-size: 2.5rem; color: var(--primary); margin-bottom: 1rem; }

/* === Loading === */
.loading {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem;
}
.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* === Pagination === */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  margin-top: 1.5rem;
}
.pagination button {
  padding: .4rem .8rem;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-weight: 600;
  transition: all var(--transition);
}
.pagination button:hover { border-color: var(--primary); color: var(--primary); }
.pagination button.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.pagination button:disabled { opacity: .4; cursor: not-allowed; }

/* === Utilities === */
.text-center { text-align: center; }
.text-right { text-align: right; }
.mt-1 { margin-top: .5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: .5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.gap-1 { gap: .5rem; }
.gap-2 { gap: 1rem; }
.d-flex { display: flex; }
.d-none { display: none; }
.flex-wrap { flex-wrap: wrap; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.w-100 { width: 100%; }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
.text-warning { color: var(--warning); }
.text-muted { color: var(--text-muted); }
.fw-bold { font-weight: 700; }
.hidden { display: none !important; }
.admin-only { display: none; }

/* === Responsive === */
@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .modes-grid { grid-template-columns: 1fr; }
  .question-card { padding: 1.25rem; }
  .auth-card { padding: 1.5rem; }
  .exam-header { flex-direction: column; text-align: center; }
}
