/* ============================================================
   AAMClassroom — Global Styles
   Palette: Navy #0B1929 | Orange #F97316
============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Nunito+Sans:wght@400;500;600;700;800&family=Inter:wght@300;400;500;600&display=swap');

/* ── CSS Custom Properties (Dark mode default) ─────────── */
:root {
  --navy:           #0B1929;
  --navy-mid:       #112236;
  --navy-light:     #1A3352;
  --navy-border:    rgba(255,255,255,0.09);
  --orange:         #F97316;
  --orange-dark:    #EA6005;
  --orange-glow:    rgba(249,115,22,0.13);
  --text-primary:   #F8F6F1;
  --text-secondary: rgba(248,246,241,0.65);
  --text-muted:     rgba(248,246,241,0.38);
  --success:        #22c55e;
  --error:          #ef4444;
  --warning:        #f59e0b;
  --info:           #3b82f6;
  --radius-sm:      6px;
  --radius-md:      12px;
  --radius-lg:      18px;
  --radius-xl:      26px;
  --shadow-sm:      0 2px 8px rgba(0,0,0,0.30);
  --shadow-md:      0 8px 32px rgba(0,0,0,0.40);
  --shadow-lg:      0 24px 64px rgba(0,0,0,0.50);
  --shadow-orange:  0 6px 24px rgba(249,115,22,0.32);
  --transition:     0.2s cubic-bezier(0.4,0,0.2,1);
  --font-heading:   'Nunito Sans', sans-serif;
  --font-body:      'Inter', sans-serif;
}

/* ── Light Mode ─────────────────────────────────────────── */
html[data-theme="light"] {
  --navy:           #F0F4F8;
  --navy-mid:       #FFFFFF;
  --navy-light:     #E2EAF2;
  --navy-border:    rgba(0,0,0,0.10);
  --orange-glow:    rgba(249,115,22,0.10);
  --text-primary:   #0B1929;
  --text-secondary: rgba(11,25,41,0.70);
  --text-muted:     rgba(11,25,41,0.40);
  --shadow-sm:      0 2px 8px rgba(0,0,0,0.08);
  --shadow-md:      0 8px 32px rgba(0,0,0,0.12);
  --shadow-lg:      0 24px 64px rgba(0,0,0,0.16);
}

/* ── Reset ──────────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body {
  font-family: var(--font-body);
  background: var(--navy);
  color: var(--text-primary);
  line-height: 1.65;
  min-height: 100vh;
  overflow-x: hidden;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font-family: inherit; }
ul, ol { list-style: none; }
::selection { background: var(--orange); color: #fff; }
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--navy); }
::-webkit-scrollbar-thumb { background: var(--navy-light); border-radius: 3px; }
html[data-theme="light"] ::-webkit-scrollbar-track { background: #F0F4F8; }
html[data-theme="light"] ::-webkit-scrollbar-thumb { background: #C5D3E0; }

/* ── Typography ─────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  line-height: 1.15;
  letter-spacing: -0.02em;
}
/* Fixed font sizes — no clamp() to avoid validator warnings */
h1 { font-size: 2.8rem; font-weight: 800; }
h2 { font-size: 2rem;   font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 700; }
h4 { font-size: 1rem;   font-weight: 600; }
p  { color: var(--text-secondary); line-height: 1.75; }
.lead { font-size: 1rem; color: var(--text-secondary); font-weight: 300; }
/* Responsive heading sizes */
@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.6rem; }
}
@media (max-width: 480px) {
  h1 { font-size: 1.7rem; }
  h2 { font-size: 1.4rem; }
}

/* ── Container ──────────────────────────────────────────── */
/* Fixed pixel width instead of var(--container) to avoid validator warning */
.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}
@media (min-width: 768px) { .container { padding: 0 40px; } }

/* ── Theme transitions (scoped, no universal selector) ── */
body,
.navbar,
.navbar__drawer,
.card,
.btn,
.badge,
.form-input,
.form-select,
.hero,
.section,
.footer,
.sidebar,
.dash-topbar,
.panel-login-card {
  transition-property: background-color, border-color, color, box-shadow;
  transition-duration: 0.22s;
  transition-timing-function: ease;
}

/* ══════════════════════════════════════════════════════════
   THEME TOGGLE BUTTON
══════════════════════════════════════════════════════════ */
.theme-toggle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  border: 1.5px solid var(--navy-border);
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}
.theme-toggle:hover {
  background: rgba(249,115,22,0.12);
  border-color: rgba(249,115,22,0.3);
  color: var(--orange);
  transform: rotate(15deg) scale(1.08);
}
/* Icon visibility — also controlled by JS inline styles for reliability */
.theme-toggle .icon-sun  { display: none; }
.theme-toggle .icon-moon { display: block; }
html[data-theme="light"] .theme-toggle .icon-sun  { display: block; }
html[data-theme="light"] .theme-toggle .icon-moon { display: none; }

/* ══════════════════════════════════════════════════════════
   LIGHT MODE OVERRIDES
══════════════════════════════════════════════════════════ */
html[data-theme="light"] .navbar {
  background: rgba(240,244,248,0.96);
  border-bottom: 1px solid var(--navy-border);
}
html[data-theme="light"] .navbar.scrolled {
  background: rgba(240,244,248,0.99);
  box-shadow: 0 4px 20px rgba(0,0,0,0.10);
}
html[data-theme="light"] .navbar__drawer { background: #FFFFFF; }
html[data-theme="light"] .hero {
  background: linear-gradient(135deg, #EBF2FA 0%, #F5F9FF 100%);
}
html[data-theme="light"] .hero__dots { opacity: 0.15; }
html[data-theme="light"] .section    { background: var(--navy); }
html[data-theme="light"] #features   { background: var(--navy-mid) !important; }
html[data-theme="light"] .footer {
  background: #E8EEF5;
  border-top: 1px solid var(--navy-border);
}
html[data-theme="light"] .form-input,
html[data-theme="light"] .form-select {
  background: #FFFFFF;
  color: var(--text-primary);
  border-color: rgba(0,0,0,0.15);
}
html[data-theme="light"] .form-input::placeholder { color: rgba(11,25,41,0.35); }
html[data-theme="light"] .form-select option { background: #FFFFFF; color: #0B1929; }
html[data-theme="light"] .card { box-shadow: 0 2px 12px rgba(0,0,0,0.07); }
html[data-theme="light"] .td-mono { color: #F97316; }

/* ══════════════════════════════════════════════════════════
   NAVBAR
══════════════════════════════════════════════════════════ */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 999;
  height: 64px; display: flex; align-items: center;
  background: rgba(11,25,41,0.92);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--navy-border);
  transition: background var(--transition), box-shadow var(--transition);
}
.navbar.scrolled {
  background: rgba(11,25,41,0.98);
  box-shadow: 0 4px 20px rgba(0,0,0,0.35);
}
.navbar__inner {
  width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.navbar__logo {
  display: flex; align-items: center; gap: 5px; flex-shrink: 0;
  font-family: var(--font-heading); font-size: 1.2rem; font-weight: 800;
  letter-spacing: -0.03em; color: var(--text-primary);
}
.navbar__logo-dot {
  display: inline-block; width: 7px; height: 7px;
  background: var(--orange); border-radius: 50%;
}
.navbar__links  { display: flex; align-items: center; gap: 28px; }
.navbar__link   { font-size: 0.88rem; font-weight: 500; color: var(--text-secondary); transition: color var(--transition); white-space: nowrap; }
.navbar__link:hover  { color: var(--text-primary); }
.navbar__link.active { color: var(--orange); }
.navbar__actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

.navbar__burger {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 6px; width: 36px; height: 36px;
}
.navbar__burger span {
  display: block; width: 22px; height: 2px;
  background: var(--text-primary); border-radius: 2px; transition: var(--transition);
}
.navbar__burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.navbar__burger.open span:nth-child(2) { opacity: 0; }
.navbar__burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.navbar__drawer {
  position: fixed; top: 64px; left: 0; right: 0; bottom: 0;
  background: var(--navy-mid); border-top: 1px solid var(--navy-border);
  padding: 16px; z-index: 998;
  display: flex; flex-direction: column; gap: 2px;
  transform: translateX(-100%); transition: transform 0.28s cubic-bezier(0.4,0,0.2,1);
  overflow-y: auto;
}
.navbar__drawer.open { transform: translateX(0); }
.navbar__drawer .navbar__link       { display: block; padding: 12px 14px; font-size: 0.95rem; border-radius: var(--radius-md); color: var(--text-primary); }
.navbar__drawer .navbar__link:hover { background: rgba(255,255,255,0.05); }
.navbar__drawer .navbar__link.active{ background: var(--orange-glow); color: var(--orange); }
.navbar__drawer-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--navy-border); }
.navbar__drawer-actions .btn { width: 100%; justify-content: center; }

@media (max-width: 768px) {
  .navbar__links,
  .navbar__actions { display: none; }
  .navbar__burger  { display: flex; }
}

/* ══════════════════════════════════════════════════════════
   BUTTONS
══════════════════════════════════════════════════════════ */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 22px; border-radius: var(--radius-md);
  font-family: var(--font-body); font-size: 0.92rem; font-weight: 600;
  cursor: pointer; transition: var(--transition);
  border: none; white-space: nowrap; text-decoration: none; line-height: 1;
}
.btn--primary { background: var(--orange); color: #fff; box-shadow: var(--shadow-orange); }
.btn--primary:hover { background: var(--orange-dark); transform: translateY(-2px); box-shadow: 0 10px 28px rgba(249,115,22,0.42); }
.btn--primary:active { transform: translateY(0); }
.btn--outline { background: transparent; color: var(--text-primary); border: 1.5px solid var(--navy-border); }
.btn--outline:hover { border-color: rgba(255,255,255,0.25); background: rgba(255,255,255,0.06); }
.btn--ghost { background: rgba(255,255,255,0.06); color: var(--text-primary); border: 1.5px solid var(--navy-border); }
.btn--ghost:hover { background: rgba(255,255,255,0.11); border-color: rgba(255,255,255,0.18); }
.btn--sm  { padding: 8px 16px; font-size: 0.83rem; }
.btn--lg  { padding: 14px 34px; font-size: 1rem; }
.btn--full{ width: 100%; justify-content: center; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }

/* ══════════════════════════════════════════════════════════
   CARDS
══════════════════════════════════════════════════════════ */
.card {
  background: var(--navy-mid); border: 1px solid var(--navy-border);
  border-radius: var(--radius-lg); padding: 24px; transition: var(--transition);
}
.card--hover:hover { border-color: rgba(255,255,255,0.16); transform: translateY(-3px); box-shadow: var(--shadow-md); }

/* ══════════════════════════════════════════════════════════
   BADGES
══════════════════════════════════════════════════════════ */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 9px; border-radius: 100px;
  font-size: 0.73rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
}
.badge--orange  { background: var(--orange-glow); color: var(--orange); border: 1px solid rgba(249,115,22,0.3); }
.badge--blue    { background: rgba(59,130,246,0.12); color: #60a5fa; border: 1px solid rgba(59,130,246,0.25); }
.badge--green   { background: rgba(34,197,94,0.12); color: #4ade80; border: 1px solid rgba(34,197,94,0.25); }
.badge--pending { background: rgba(245,158,11,0.12); color: #fbbf24; border: 1px solid rgba(245,158,11,0.25); }
.badge--danger  { background: rgba(239,68,68,0.12); color: #f87171; border: 1px solid rgba(239,68,68,0.25); }

/* ══════════════════════════════════════════════════════════
   FORMS
══════════════════════════════════════════════════════════ */
.form-stack { display: flex; flex-direction: column; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-label { font-size: 0.78rem; font-weight: 700; color: var(--text-secondary); letter-spacing: 0.04em; text-transform: uppercase; }
.form-input,
.form-select,
.form-textarea {
  width: 100%; padding: 12px 14px;
  background: rgba(255,255,255,0.05); border: 1.5px solid var(--navy-border);
  border-radius: var(--radius-md); color: var(--text-primary);
  font-family: var(--font-body); font-size: 0.92rem;
  transition: var(--transition); outline: none; appearance: none;
}
.form-input::placeholder { color: var(--text-muted); }
.form-input:focus,
.form-select:focus,
.form-textarea:focus  { border-color: var(--orange); background: rgba(249,115,22,0.04); box-shadow: 0 0 0 3px rgba(249,115,22,0.1); }
.form-input.error,
.form-select.error    { border-color: var(--error); box-shadow: 0 0 0 3px rgba(239,68,68,0.1); }
.form-select option   { background: var(--navy-mid); color: var(--text-primary); }
.form-textarea        { resize: vertical; min-height: 88px; }
.form-hint  { font-size: 0.78rem; color: var(--text-muted); }
.form-error { font-size: 0.79rem; color: #f87171; display: flex; align-items: center; gap: 4px; }
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 480px) { .form-grid-2 { grid-template-columns: 1fr; } }

/* Input with icon */
.input-wrapper { position: relative; }
.input-wrapper .form-input { padding-left: 42px; }
.input-icon    { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--text-muted); width: 16px; height: 16px; pointer-events: none; }
.input-toggle  { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); background: none; border: none; color: var(--text-muted); cursor: pointer; padding: 4px; line-height: 0; }
.input-toggle:hover { color: var(--text-primary); }

/* ══════════════════════════════════════════════════════════
   FLASH MESSAGES
══════════════════════════════════════════════════════════ */
.flash {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 12px 15px; border-radius: var(--radius-md);
  font-size: 0.88rem; font-weight: 500; margin-bottom: 16px;
  animation: flashIn 0.3s ease;
}
@keyframes flashIn { from { opacity: 0; transform: translateY(-5px); } to { opacity: 1; transform: translateY(0); } }
.flash__icon { font-size: 0.95rem; flex-shrink: 0; margin-top: 1px; }
.flash__msg  { flex: 1; line-height: 1.5; }
.flash--success { background: rgba(34,197,94,0.10);  color: #4ade80; border: 1px solid rgba(34,197,94,0.25); }
.flash--error   { background: rgba(239,68,68,0.10);  color: #f87171; border: 1px solid rgba(239,68,68,0.25); }
.flash--warning { background: rgba(245,158,11,0.10); color: #fbbf24; border: 1px solid rgba(245,158,11,0.25); }
.flash--info    { background: rgba(59,130,246,0.10); color: #60a5fa; border: 1px solid rgba(59,130,246,0.25); }

/* ══════════════════════════════════════════════════════════
   DIVIDER
══════════════════════════════════════════════════════════ */
.divider { display: flex; align-items: center; gap: 10px; color: var(--text-muted); font-size: 0.8rem; }
.divider::before,
.divider::after { content: ''; flex: 1; height: 1px; background: var(--navy-border); }

/* ══════════════════════════════════════════════════════════
   PAGINATION
══════════════════════════════════════════════════════════ */
.pagination { display: flex; justify-content: center; margin-top: 28px; }
.pagination__list { display: flex; align-items: center; gap: 5px; }
.pagination__btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 36px; height: 36px; padding: 0 10px; border-radius: var(--radius-sm);
  font-size: 0.83rem; font-weight: 500; color: var(--text-secondary);
  background: rgba(255,255,255,0.04); border: 1px solid var(--navy-border); transition: var(--transition);
}
.pagination__btn:hover { color: var(--text-primary); border-color: rgba(255,255,255,0.18); }
.pagination__btn--active { background: var(--orange); color: #fff; border-color: var(--orange); }
.pagination__ellipsis { color: var(--text-muted); padding: 0 4px; }

/* ══════════════════════════════════════════════════════════
   SECTION HELPERS
══════════════════════════════════════════════════════════ */
.section    { padding: 88px 0; }
.section--sm{ padding: 56px 0; }
.section--lg{ padding: 116px 0; }
.section-eyebrow { font-size: 0.73rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--orange); margin-bottom: 10px; }
.section-title { margin-bottom: 14px; }

/* ══════════════════════════════════════════════════════════
   HERO
══════════════════════════════════════════════════════════ */
.hero {
  min-height: 100vh; display: flex; align-items: center;
  padding: 100px 0 60px; position: relative; overflow: hidden;
}
.hero__bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero__bg::before {
  content: ''; position: absolute; top: -10%; right: -5%; width: 55%; height: 120%;
  background: linear-gradient(135deg, rgba(249,115,22,0.06) 0%, transparent 55%);
  clip-path: polygon(20% 0%, 100% 0%, 100% 100%, 0% 100%);
}
.hero__bg::after {
  content: ''; position: absolute; top: 10%; right: 8%;
  width: 340px; height: 340px; border-radius: 50%;
  background: radial-gradient(circle, rgba(249,115,22,0.10) 0%, transparent 65%);
}
.hero__dots {
  position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 28px 28px;
}
.hero__content  { position: relative; z-index: 1; max-width: 640px; }
.hero__label    { display: inline-flex; align-items: center; gap: 10px; font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--orange); margin-bottom: 18px; opacity: 0; animation: fadeUp 0.6s 0.1s ease both; }
.hero__label-line { width: 20px; height: 2px; background: var(--orange); border-radius: 2px; display: inline-block; }
.hero__title    { margin-bottom: 18px; opacity: 0; animation: fadeUp 0.6s 0.25s ease both; }
.hero__title em { font-style: normal; color: var(--orange); }
.hero__desc     { font-size: 1rem; max-width: 480px; margin-bottom: 30px; opacity: 0; animation: fadeUp 0.6s 0.40s ease both; }
.hero__actions  { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; opacity: 0; animation: fadeUp 0.6s 0.55s ease both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 768px) { .hero { min-height: auto; padding: 100px 0 48px; } }

/* ══════════════════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════════════════ */
.footer { background: var(--navy-mid); border-top: 1px solid var(--navy-border); padding: 52px 0 0; }
.footer__wrap { max-width: 1140px; margin: 0 auto; padding: 0 40px; }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 36px; }
.footer__logo {
  font-family: var(--font-heading); font-size: 1.1rem; font-weight: 800;
  letter-spacing: -0.03em; display: inline-flex; align-items: center; gap: 5px;
  margin-bottom: 12px; color: var(--text-primary);
}
.footer__brand p  { font-size: 0.85rem; max-width: 210px; }
.footer__col h5   { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.09em; color: var(--text-muted); margin-bottom: 14px; }
.footer__col ul   { display: flex; flex-direction: column; gap: 9px; }
.footer__col a    { font-size: 0.85rem; color: var(--text-secondary); transition: color var(--transition); }
.footer__col a:hover { color: var(--orange); }
.footer__bottom   { margin-top: 36px; padding: 18px 0; border-top: 1px solid var(--navy-border); display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 0.78rem; color: var(--text-muted); }
@media (max-width: 880px) { .footer__wrap { padding: 0 24px; } .footer__grid { grid-template-columns: 1fr 1fr; gap: 28px; } }
@media (max-width: 480px) { .footer__grid { grid-template-columns: 1fr; } }

/* ══════════════════════════════════════════════════════════
   AUTH — REGISTER PAGE
══════════════════════════════════════════════════════════ */
.auth-page { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
@media (max-width: 860px) { .auth-page { grid-template-columns: 1fr; } }
.auth-left {
  background: var(--navy-mid); border-right: 1px solid var(--navy-border);
  padding: 48px; display: flex; flex-direction: column; justify-content: space-between;
  position: relative; overflow: hidden;
}
.auth-left::before { content: ''; position: absolute; bottom: -15%; left: -15%; width: 70%; height: 70%; background: radial-gradient(circle, rgba(249,115,22,0.07) 0%, transparent 65%); border-radius: 50%; pointer-events: none; }
.auth-left::after  { content: ''; position: absolute; inset: 0; background-image: radial-gradient(circle, rgba(255,255,255,0.04) 1px, transparent 1px); background-size: 24px 24px; pointer-events: none; }
.auth-left-body    { position: relative; z-index: 1; }
.auth-logo {
  font-family: var(--font-heading); font-size: 1.2rem; font-weight: 800;
  letter-spacing: -0.03em; color: var(--text-primary);
  display: inline-flex; align-items: center; gap: 5px; margin-bottom: 44px; text-decoration: none;
}
.auth-tagline    { font-family: var(--font-heading); font-size: 1.6rem; font-weight: 700; line-height: 1.25; margin-bottom: 12px; }
.auth-tagline em { font-style: normal; color: var(--orange); }
.auth-features   { margin-top: 28px; display: flex; flex-direction: column; gap: 14px; }
.auth-feature    { display: flex; align-items: flex-start; gap: 11px; }
.auth-feature-icon { width: 30px; height: 30px; border-radius: var(--radius-sm); background: var(--orange-glow); border: 1px solid rgba(249,115,22,0.2); display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: var(--orange); }
.auth-feature h5 { font-size: 0.85rem; margin-bottom: 2px; }
.auth-feature p  { font-size: 0.78rem; }
.auth-left-foot  { position: relative; z-index: 1; font-size: 0.8rem; color: var(--text-muted); }
.auth-left-foot a { color: var(--orange); font-weight: 600; }
@media (max-width: 860px) { .auth-left { display: none; } }
.auth-right       { display: flex; flex-direction: column; overflow-y: auto; max-height: 100vh; }
.auth-right-inner { flex: 1; display: flex; flex-direction: column; justify-content: center; padding: 48px; width: 100%; max-width: 500px; margin: 0 auto; }
@media (max-width: 860px) { .auth-right { max-height: none; } .auth-right-inner { padding: 40px 24px; } }
@media (max-width: 480px) { .auth-right-inner { padding: 32px 18px; } }
.auth-header { margin-bottom: 24px; }
.auth-header h2 { margin-bottom: 6px; }
.auth-header p  { font-size: 0.88rem; }
.admin-id-hint  { background: rgba(249,115,22,0.07); border: 1px solid rgba(249,115,22,0.18); border-radius: var(--radius-md); padding: 10px 12px; display: flex; gap: 9px; font-size: 0.8rem; color: var(--text-secondary); margin-top: 6px; line-height: 1.5; }
.admin-id-hint svg { flex-shrink: 0; color: var(--orange); margin-top: 1px; }
.dob-hint { display: inline-flex; align-items: center; gap: 4px; font-size: 0.73rem; color: var(--orange); font-weight: 600; background: var(--orange-glow); border: 1px solid rgba(249,115,22,0.2); border-radius: var(--radius-sm); padding: 2px 7px; margin-left: 5px; }

/* ══════════════════════════════════════════════════════════
   LOGIN PAGE (centered card)
══════════════════════════════════════════════════════════ */
.login-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px; position: relative; }
.login-page::before { content: ''; position: fixed; inset: 0; background-image: radial-gradient(circle, rgba(255,255,255,0.05) 1px, transparent 1px); background-size: 28px 28px; z-index: 0; pointer-events: none; }
.login-wrap  { position: relative; z-index: 1; width: 100%; max-width: 420px; }
.login-back  { display: inline-flex; align-items: center; gap: 6px; font-size: 0.82rem; color: var(--text-muted); margin-bottom: 22px; transition: color var(--transition); }
.login-back:hover { color: var(--text-primary); }
.login-card  { background: var(--navy-mid); border: 1px solid var(--navy-border); border-radius: var(--radius-xl); padding: 36px 32px; box-shadow: var(--shadow-lg); }
@media (max-width: 480px) { .login-card { padding: 28px 18px; } }

/* ══════════════════════════════════════════════════════════
   HOMEPAGE — FEATURES / STEPS / LEADERBOARD
══════════════════════════════════════════════════════════ */
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; background: var(--navy-border); border-radius: var(--radius-lg); overflow: hidden; }
.step-item  { background: var(--navy-mid); padding: 32px 26px; position: relative; }
.step-item::before { content: attr(data-step); position: absolute; top: 12px; right: 16px; font-family: var(--font-heading); font-size: 2.8rem; font-weight: 800; color: rgba(255,255,255,0.04); line-height: 1; }
.step-icon  { width: 42px; height: 42px; border-radius: var(--radius-md); background: var(--orange-glow); border: 1px solid rgba(249,115,22,0.2); display: flex; align-items: center; justify-content: center; color: var(--orange); margin-bottom: 16px; }
.step-item h4 { margin-bottom: 8px; }
.step-item p  { font-size: 0.86rem; }
@media (max-width: 768px) { .steps-grid { grid-template-columns: 1fr; } }
@media (min-width: 769px) and (max-width: 960px) { .steps-grid { grid-template-columns: 1fr 1fr; } }

.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 960px) { .features-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .features-grid { grid-template-columns: 1fr; } }
.feature-card { background: var(--navy-mid); border: 1px solid var(--navy-border); border-radius: var(--radius-lg); padding: 26px 22px; transition: var(--transition); }
.feature-card:hover { border-color: rgba(249,115,22,0.2); transform: translateY(-3px); box-shadow: var(--shadow-md); }
.feature-icon { width: 46px; height: 46px; border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center; margin-bottom: 16px; font-size: 1.25rem; }
.feature-card h4 { margin-bottom: 8px; font-size: 0.97rem; }
.feature-card p  { font-size: 0.86rem; }

.lb-table { width: 100%; border-collapse: collapse; }
.lb-table thead th { padding: 10px 14px; text-align: left; font-size: 0.71rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; color: var(--text-muted); border-bottom: 1px solid var(--navy-border); }
.lb-table tbody tr { border-bottom: 1px solid var(--navy-border); transition: background var(--transition); }
.lb-table tbody tr:last-child { border-bottom: none; }
.lb-table tbody tr:hover { background: rgba(255,255,255,0.02); }
.lb-table td  { padding: 13px 14px; font-size: 0.88rem; color: var(--text-secondary); }
.lb-rank { width: 32px; height: 32px; background: var(--orange-glow); color: var(--orange); border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-family: var(--font-heading); font-weight: 700; font-size: 0.82rem; }
.lb-name  { font-weight: 600; color: var(--text-primary); }
.lb-score { font-family: var(--font-heading); font-weight: 700; color: var(--orange); }
.lb-empty { text-align: center; padding: 40px 16px; color: var(--text-muted); font-size: 0.86rem; }

/* ══════════════════════════════════════════════════════════
   EMPTY STATE
══════════════════════════════════════════════════════════ */
.empty-state { text-align: center; padding: 52px 24px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.empty-state__icon { width: 56px; height: 56px; border-radius: var(--radius-lg); background: rgba(255,255,255,0.04); border: 1px solid var(--navy-border); display: flex; align-items: center; justify-content: center; color: var(--text-muted); margin-bottom: 4px; }
.empty-state h4 { font-size: 0.98rem; color: var(--text-secondary); }
.empty-state p  { font-size: 0.84rem; max-width: 300px; margin: 0 auto; }

/* ══════════════════════════════════════════════════════════
   STATS BAR (homepage)
══════════════════════════════════════════════════════════ */
.stats-bar   { background: var(--navy-mid); border-top: 1px solid var(--navy-border); border-bottom: 1px solid var(--navy-border); }
.stats-inner { display: grid; grid-template-columns: repeat(4, 1fr); max-width: 1140px; margin: 0 auto; }
.stat-item   { padding: 36px 20px; text-align: center; border-right: 1px solid var(--navy-border); }
.stat-item:last-child { border-right: none; }
.stat-number { font-family: var(--font-heading); font-size: 2.2rem; font-weight: 800; color: var(--orange); line-height: 1; margin-bottom: 6px; }
.stat-label  { font-size: 0.8rem; font-weight: 500; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.06em; }
@media (max-width: 680px) {
  .stats-inner { grid-template-columns: 1fr 1fr; }
  .stat-item   { border-right: none; border-bottom: 1px solid var(--navy-border); }
  .stat-item:nth-child(odd)     { border-right: 1px solid var(--navy-border); }
  .stat-item:nth-last-child(-n+2) { border-bottom: none; }
}
@media (max-width: 400px) { .stats-inner { grid-template-columns: 1fr; } }

/* ══════════════════════════════════════════════════════════
   UTILITIES
══════════════════════════════════════════════════════════ */
.text-orange    { color: var(--orange); }
.text-muted     { color: var(--text-muted); }
.text-secondary { color: var(--text-secondary); }
.text-center    { text-align: center; }
.mt-8  { margin-top: 8px; }  .mt-12 { margin-top: 12px; } .mt-16 { margin-top: 16px; }
.mt-20 { margin-top: 20px; } .mt-24 { margin-top: 24px; } .mt-32 { margin-top: 32px; }
.mb-8  { margin-bottom: 8px; } .mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; } .mb-32 { margin-bottom: 32px; }
.page-enter { animation: pageEnter 0.4s ease both; }
@keyframes pageEnter { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.55s ease, transform 0.55s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.spinner { display: inline-block; width: 13px; height: 13px; border: 2px solid rgba(255,255,255,0.3); border-top-color: #fff; border-radius: 50%; animation: spin 0.7s linear infinite; vertical-align: middle; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Dot reuse */
.navbar__logo-dot,
.footer__logo-dot { display: inline-block; width: 7px; height: 7px; background: var(--orange); border-radius: 50%; }