/* ── CSS VARIABLES & RESET ──────────────────────────────── */
:root {
  --primary:       #4F46E5;
  --primary-dark:  #3730A3;
  --primary-light: #EEF2FF;
  --accent:        #F59E0B;
  --accent-light:  #FEF3C7;
  --success:       #10B981;
  --danger:        #EF4444;
  --warning:       #F59E0B;
  --info:          #3B82F6;

  --sidebar-bg:     #1E1B4B;
  --sidebar-text:   #C7D2FE;

  --bg:     #F8FAFC;
  --card:   #FFFFFF;
  --border: #E2E8F0;
  --text:         #1E293B;
  --text-muted:   #64748B;
  --text-light:   #94A3B8;

  --radius:    12px;
  --shadow:    0 1px 3px rgba(0,0,0,.08), 0 4px 12px rgba(0,0,0,.05);
  --shadow-lg: 0 10px 40px rgba(0,0,0,.12);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  /* Smooth scroll for anchor links */
  scroll-behavior: smooth;
  /* Prevent font scaling on orientation change (webkit for iOS, unprefixed for Chrome/Edge) */
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: 'Segoe UI', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  /* Prevent horizontal overflow on mobile */
  overflow-x: hidden;
}

/* Prevent body scroll when mobile sidebar is open */
body.sidebar-open { overflow: hidden; }

a    { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; font-family: inherit; }
input, select, textarea { font-family: inherit; }

/* ── UTILITY ────────────────────────────────────────────── */
.hidden          { display: none !important; }
.text-muted      { color: var(--text-muted); }
.text-sm         { font-size: .85rem; }
.fw-bold         { font-weight: 700; }
.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; }
.flex            { display: flex; }
.items-center    { align-items: center; }
.gap-1           { gap: .5rem; }
.gap-2           { gap: 1rem; }
.justify-between { justify-content: space-between; }
.divider         { border: none; border-top: 1px solid var(--border); margin: 1.5rem 0; }

/* ── LOADING OVERLAY ────────────────────────────────────── */
.loading-overlay {
  position: fixed; inset: 0;
  background: rgba(255,255,255,.8);
  z-index: 2000;
  display: flex; align-items: center; justify-content: center;
}
.loading-box { text-align: center; }
.loading-box .spinner { width: 40px; height: 40px; border-width: 4px; }
.loading-box p { margin-top: 1rem; color: var(--text-muted); font-weight: 500; }

/* ── SPINNER ────────────────────────────────────────────── */
.spinner {
  display: inline-block; width: 20px; height: 20px;
  border: 3px solid rgba(255,255,255,.3);
  border-top-color: #fff; border-radius: 50%;
  animation: spin .6s linear infinite;
}
.spinner.dark { border-color: rgba(79,70,229,.2); border-top-color: var(--primary); }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── RESPONSIVE BREAKPOINT ──────────────────────────────── */
@media (max-width: 768px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
}
/* ── APP SHELL ───────────────────────────────────────────── */
#app-view { display: flex; min-height: 100vh; }

/* ── SIDEBAR ─────────────────────────────────────────────── */
.sidebar {
  width: 260px;
  background: var(--sidebar-bg);
  color: var(--sidebar-text);
  display: flex; flex-direction: column;
  position: fixed; top: 0; left: 0; bottom: 0;
  z-index: 200;
  transition: transform .28s cubic-bezier(.4,0,.2,1);
  will-change: transform;
  /* Always off-screen on mobile, on-screen on desktop */
}

.sidebar-logo        { padding: 1.25rem 1.5rem .9rem; border-bottom: 1px solid rgba(255,255,255,.07); }
.sidebar-logo-text   { font-size: 1.4rem; font-weight: 900; color: #fff; letter-spacing: -.5px; }
.sidebar-logo-text span { color: var(--accent); }
.sidebar-logo-sub    { font-size: .72rem; color: rgba(255,255,255,.4); margin-top: .15rem; text-transform: uppercase; letter-spacing: 1px; }
.sidebar-logo-img    { height: 38px; width: auto; display: block; margin-bottom: .25rem; }

.sidebar-user        { padding: .9rem 1.5rem; border-bottom: 1px solid rgba(255,255,255,.07); display: flex; align-items: center; gap: .75rem; }
.sidebar-avatar      {
  width: 40px; height: 40px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; color: #fff; font-size: 1rem; flex-shrink: 0;
}
.sidebar-user-info   { min-width: 0; }
.sidebar-user-name   { font-size: .9rem; font-weight: 600; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar-user-role   { font-size: .72rem; color: rgba(255,255,255,.4); text-transform: capitalize; margin-top: .1rem; }

.sidebar-nav         { flex: 1; padding: .75rem 0; overflow-y: auto; }
.nav-section-label   { padding: .5rem 1.5rem .3rem; font-size: .7rem; color: rgba(255,255,255,.3); text-transform: uppercase; letter-spacing: 1px; }
.nav-item {
  display: flex; align-items: center; gap: .75rem;
  padding: .78rem 1.5rem;
  cursor: pointer; transition: background .15s, color .15s;
  border-left: 3px solid transparent;
  font-size: .92rem; color: var(--sidebar-text);
  /* Larger tap target */
  min-height: 48px;
  -webkit-tap-highlight-color: transparent;
}
.nav-item:hover         { background: rgba(255,255,255,.06); color: #fff; }
.nav-item:active        { background: rgba(255,255,255,.1); }
.nav-item.active        { background: rgba(79,70,229,.3); border-left-color: var(--accent); color: #fff; }
.nav-item .nav-icon     { font-size: 1.15rem; width: 22px; text-align: center; flex-shrink: 0; }
.nav-item .badge        { margin-left: auto; background: var(--accent); color: #000; font-size: .7rem; font-weight: 700; padding: .1rem .5rem; border-radius: 99px; }

.sidebar-footer         { padding: .75rem 1.5rem; border-top: 1px solid rgba(255,255,255,.07); }
.sidebar-footer .nav-item { padding: .5rem 0; border-left: none; }
.sidebar-version          { padding: .6rem 1rem; font-size: .7rem; color: var(--text-muted); opacity: .6; -webkit-user-select: none; user-select: none; }

/* ── SIDEBAR OVERLAY (mobile backdrop) ──────────────────── */
.sidebar-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 150;
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  opacity: 0;
  transition: opacity .28s;
}
.sidebar-overlay.active { opacity: 1; }

/* ── MAIN CONTENT ────────────────────────────────────────── */
.main-content { margin-left: 260px; flex: 1; min-height: 100vh; display: flex; flex-direction: column; min-width: 0; }

/* ── TOPBAR ──────────────────────────────────────────────── */
.topbar {
  background: #fff; border-bottom: 1px solid var(--border);
  padding: .75rem 1.5rem;
  display: flex; align-items: center; justify-content: space-between;
  position: sticky; top: 0; z-index: 50;
  gap: .75rem;
}
.topbar-left    { display: flex; align-items: center; gap: .75rem; min-width: 0; }
.topbar-title   { font-size: 1.2rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar-actions { display: flex; align-items: center; gap: .5rem; flex-shrink: 0; flex-wrap: wrap; }

/* ── HAMBURGER BUTTON (hidden on desktop) ────────────────── */
.hamburger-btn {
  display: none;
  flex-direction: column; justify-content: center; align-items: center;
  gap: 5px;
  width: 40px; height: 40px;
  background: transparent;
  border: none; border-radius: 8px;
  cursor: pointer;
  padding: 6px;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
  transition: background .15s;
}
.hamburger-btn:hover { background: var(--primary-light); }
.hamburger-btn:active { background: #E0E7FF; }
.hamburger-btn span {
  display: block;
  width: 22px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .25s, opacity .25s;
}

/* Hamburger → X animation when sidebar is open */
.sidebar.open ~ .sidebar-overlay,
body.sidebar-open .sidebar-overlay { display: block; }

/* ── PAGE CONTENT ────────────────────────────────────────── */
.page-content { padding: 1.5rem 2rem; flex: 1; }

.page-header { margin-bottom: 1.75rem; }
.page-header h1 { font-size: 1.65rem; font-weight: 800; margin-bottom: .35rem; }
.page-header p  { color: var(--text-muted); }

/* ── LAYOUT GRIDS ────────────────────────────────────────── */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr;     gap: 1.25rem; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 1.25rem; }

/* ══════════════════════════════════════════════════════════
   RESPONSIVE — Mobile-first
══════════════════════════════════════════════════════════ */

/* ── Tablet & smaller (≤ 900px) ──────────────────────────── */
@media (max-width: 900px) {
  .grid-3 { grid-template-columns: 1fr 1fr; }
}

/* ── Mobile (≤ 768px) ────────────────────────────────────── */
@media (max-width: 768px) {
  /* Sidebar hides off-screen; .open class slides it in */
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: translateX(0); }

  /* Show overlay when sidebar is open */
  .sidebar-overlay { display: block; pointer-events: none; }
  .sidebar-overlay.active { pointer-events: auto; }

  /* Show hamburger */
  .hamburger-btn { display: flex; }

  /* Main content takes full width */
  .main-content { margin-left: 0; }

  /* Topbar compact */
  .topbar { padding: .65rem 1rem; }
  .topbar-title { font-size: 1.05rem; }

  /* Page padding */
  .page-content { padding: 1rem; }
  .page-header { margin-bottom: 1.25rem; }
  .page-header h1 { font-size: 1.4rem; }

  /* Grids single column on small mobile */
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
}

/* ── Very small screens (≤ 400px) ────────────────────────── */
@media (max-width: 400px) {
  .page-content { padding: .75rem; }
  .topbar { padding: .6rem .75rem; }
  .topbar-title { font-size: 1rem; }
}

/* ── iOS safe area support ───────────────────────────────── */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
  .sidebar-footer { padding-bottom: calc(.75rem + env(safe-area-inset-bottom)); }
  .topbar { padding-top: max(.65rem, env(safe-area-inset-top)); }
}
/* ── AUTH LAYOUT ────────────────────────────────────────── */
#auth-view { display: flex; min-height: 100vh; }

.auth-hero {
  flex: 1;
  background: linear-gradient(135deg, #1E1B4B 0%, #4F46E5 50%, #7C3AED 100%);
  display: flex; flex-direction: column;
  justify-content: center; align-items: center;
  padding: 3rem; color: #fff;
  position: relative; overflow: hidden;
}
.auth-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}
.auth-hero-logo       { font-size: 2.5rem; font-weight: 900; letter-spacing: -1px; margin-bottom: 1rem; }
.auth-hero-logo span  { color: var(--accent); }
.auth-hero-logo-img   { height: 52px; width: auto; display: block; }
.auth-hero h2         { font-size: 1.8rem; font-weight: 700; margin-bottom: 1rem; text-align: center; }
.auth-hero p          { color: rgba(255,255,255,.7); text-align: center; max-width: 360px; line-height: 1.7; }

.auth-hero-stats { display: flex; gap: 2rem; margin-top: 2.5rem; }
.auth-stat       { text-align: center; }
.auth-stat-num   { font-size: 2rem; font-weight: 800; color: var(--accent); }
.auth-stat-lbl   { font-size: .8rem; color: rgba(255,255,255,.6); text-transform: uppercase; letter-spacing: .5px; }

/* ── AUTH FORM SIDE ─────────────────────────────────────── */
.auth-form-side {
  width: 480px;
  display: flex; flex-direction: column; justify-content: center;
  padding: 3rem; background: #fff;
}
.auth-form-side h1       { font-size: 1.8rem; font-weight: 800; margin-bottom: .5rem; }
.auth-form-side p.subtitle { color: var(--text-muted); margin-bottom: 2rem; }

/* Inline label hint (e.g. "(optional)") */
.label-optional  { font-weight: 400; color: var(--text-muted); }

.auth-switch     { text-align: center; margin-top: 1.5rem; color: var(--text-muted); font-size: .9rem; }
.auth-switch a   { color: var(--primary); font-weight: 600; cursor: pointer; }
.auth-switch a:hover { text-decoration: underline; }

/* ── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 768px) {
  .auth-hero      { display: none; }
  .auth-form-side { width: 100%; }
}
/* ══════════════════════════════════════════════════════════
   REUSABLE COMPONENTS
══════════════════════════════════════════════════════════ */

/* ── FORMS ───────────────────────────────────────────────── */
.form-group          { margin-bottom: 1.2rem; }
.form-group label    { display: block; font-size: .85rem; font-weight: 600; margin-bottom: .4rem; color: var(--text); }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%; padding: .75rem 1rem;
  border: 2px solid var(--border); border-radius: 8px;
  font-size: .95rem; transition: border-color .2s, box-shadow .2s;
  background: #fff;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(79,70,229,.1);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }

/* ── PASSWORD TOGGLE WRAPPER ─────────────────────────────── */
/*
  display:flex + align-items:center eliminates the inline-block baseline gap
  that a plain display:block container creates under the input, which was
  inflating .pw-wrap's height and pushing the absolute-positioned toggle below
  the visible input field.
*/
.pw-wrap { position: relative; display: flex; align-items: center; }
.pw-wrap input { flex: 1; min-width: 0; padding-right: 2.75rem; }
.pw-toggle {
  position: absolute; right: .75rem; top: 50%; transform: translateY(-50%);
  background: none; border: none; cursor: pointer;
  color: var(--text-muted); padding: .2rem; line-height: 1; display: flex;
}
.pw-toggle:hover { color: var(--primary); }

/* ── PASSWORD MATCH FEEDBACK ─────────────────────────────── */
.pw-match-hint { font-size: .78rem; font-weight: 600; margin-top: .35rem; min-height: 1.1em; }
.pw-match-hint.match   { color: var(--success); }
.pw-match-hint.no-match { color: var(--danger); }
.pw-wrap input.pw-ok  { border-color: var(--success); box-shadow: 0 0 0 3px rgba(16,185,129,.1); }
.pw-wrap input.pw-bad { border-color: var(--danger);  box-shadow: 0 0 0 3px rgba(239,68,68,.1); }

/* ── BUTTONS ─────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .75rem 1.5rem; border-radius: 8px;
  font-weight: 600; font-size: .95rem; transition: .2s;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.btn-primary  { background: var(--primary); color: #fff; }
.btn-primary:hover  { background: var(--primary-dark); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(79,70,229,.3); }
.btn-secondary { background: var(--primary-light); color: var(--primary); }
.btn-secondary:hover { background: #E0E7FF; }
.btn-danger    { background: var(--danger); color: #fff; }
.btn-danger:hover    { background: #DC2626; }
.btn-success   { background: var(--success); color: #fff; }
.btn-success:hover   { background: #059669; }
.btn-outline   { background: transparent; border: 2px solid var(--border); color: var(--text); }
.btn-outline:hover   { border-color: var(--primary); color: var(--primary); }
.btn-full { width: 100%; }
.btn-sm   { padding: .45rem 1rem; font-size: .85rem; }
.btn-lg   { padding: 1rem 2rem; font-size: 1.05rem; }

/* ── FEEDBACK MESSAGES ───────────────────────────────────── */
.error-msg   { background: #FEF2F2; border: 1px solid #FECACA; color: #B91C1C; padding: .75rem 1rem; border-radius: 8px; font-size: .9rem; margin-bottom: 1rem; }
.success-msg { background: #F0FDF4; border: 1px solid #BBF7D0; color: #166534; padding: .75rem 1rem; border-radius: 8px; font-size: .9rem; margin-bottom: 1rem; }

/* ── CARDS ───────────────────────────────────────────────── */
.card        { background: var(--card); border-radius: var(--radius); border: 1px solid var(--border); box-shadow: var(--shadow); }
.card-header { padding: 1.25rem 1.5rem; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.card-body   { padding: 1.5rem; }
.card-title  { font-size: 1.05rem; font-weight: 700; }

/* ── STAT CARDS ──────────────────────────────────────────── */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 1rem; margin-bottom: 1.75rem; }
.stat-card  {
  background: var(--card); border-radius: var(--radius); border: 1px solid var(--border);
  padding: 1.5rem; box-shadow: var(--shadow); position: relative; overflow: hidden;
}
.stat-card::before { content: ''; position: absolute; top: -20px; right: -20px; width: 80px; height: 80px; border-radius: 50%; opacity: .1; }
.stat-card.indigo::before { background: var(--primary); }
.stat-card.amber::before  { background: var(--accent); }
.stat-card.green::before  { background: var(--success); }
.stat-card.red::before    { background: var(--danger); }
.stat-card.blue::before   { background: var(--info); }
.stat-icon  { font-size: 1.5rem; margin-bottom: .75rem; }
.stat-value { font-size: 2rem; font-weight: 800; line-height: 1; }
.stat-label { font-size: .82rem; color: var(--text-muted); margin-top: .3rem; }

/* ── TABLE ───────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--border); }
table       { width: 100%; border-collapse: collapse; background: #fff; }
th          { background: #F8FAFC; padding: .85rem 1rem; text-align: left; font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: var(--text-muted); border-bottom: 2px solid var(--border); }
td          { padding: .85rem 1rem; border-bottom: 1px solid var(--border); font-size: .9rem; }
tr:last-child td { border-bottom: none; }
tr:hover td { background: #F8FAFC; }

/* ── BADGES ──────────────────────────────────────────────── */
.badge        { display: inline-flex; align-items: center; padding: .25rem .6rem; border-radius: 99px; font-size: .75rem; font-weight: 600; }
.badge-green  { background: #D1FAE5; color: #065F46; }
.badge-red    { background: #FEE2E2; color: #991B1B; }
.badge-blue   { background: #DBEAFE; color: #1E40AF; }
.badge-amber  { background: #FEF3C7; color: #92400E; }
.badge-purple { background: #EDE9FE; color: #4C1D95; }
.badge-gray   { background: #F1F5F9; color: #475569; }

/* ── SEARCH & FILTER BAR ─────────────────────────────────── */
.filter-bar     { display: flex; gap: .75rem; margin-bottom: 1.5rem; flex-wrap: wrap; align-items: center; }
.search-box     { position: relative; flex: 1; min-width: 180px; }
.search-box input { padding: .65rem 1rem .65rem 2.5rem; width: 100%; border: 2px solid var(--border); border-radius: 8px; font-size: .9rem; }
.search-box input:focus { outline: none; border-color: var(--primary); }
.search-box::before { content: '🔍'; position: absolute; left: .75rem; top: 50%; transform: translateY(-50%); font-size: .85rem; }
.filter-select  { padding: .65rem 1rem; border: 2px solid var(--border); border-radius: 8px; font-size: .9rem; background: #fff; min-width: 130px; }
.filter-select:focus { outline: none; border-color: var(--primary); }
@media (max-width: 560px) {
  .filter-bar { gap: .5rem; }
  .search-box { min-width: 100%; }
  .filter-select { flex: 1; min-width: calc(50% - .25rem); }
}

/* ── MODAL ───────────────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 1000;
  display: flex; align-items: flex-end; justify-content: center; padding: 1rem;
}
@media (min-width: 561px) {
  .modal-overlay { align-items: center; }
}
.modal          { background: #fff; border-radius: var(--radius); width: 100%; max-width: 560px; max-height: 92vh; overflow-y: auto; overflow-x: hidden; box-shadow: var(--shadow-lg); }
@media (max-width: 560px) {
  .modal { border-radius: var(--radius) var(--radius) 0 0; max-height: 85vh; }
}
.subject-row { display: grid; grid-template-columns: 5.5rem 1fr 4.5rem; gap: .5rem; align-items: center; }
.subject-row select { min-width: 0; width: 100%; }
@media (max-width: 560px) {
  .subject-row { grid-template-columns: 1fr; gap: .25rem; align-items: stretch; }
  .subject-row > span { grid-column: 1 / -1; font-size: .78rem; font-weight: 700; color: var(--text-muted); letter-spacing: .02em; padding-top: .35rem; }
}
.modal-header   { padding: 1.25rem 1.5rem; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.modal-title    { font-size: 1.1rem; font-weight: 700; }
.modal-close    { background: none; color: var(--text-muted); font-size: 1.4rem; width: 32px; height: 32px; border-radius: 6px; display: flex; align-items: center; justify-content: center; }
.modal-close:hover { background: var(--border); color: var(--text); }
.modal-body     { padding: 1.5rem; }
.modal-footer   { padding: 1rem 1.5rem; border-top: 1px solid var(--border); display: flex; gap: .75rem; justify-content: flex-end; }

/* ── TABS ────────────────────────────────────────────────── */
.tabs   { display: flex; border-bottom: 2px solid var(--border); margin-bottom: 1.5rem; overflow-x: auto; -ms-overflow-style: none; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab    { padding: .75rem 1.1rem; cursor: pointer; font-size: .88rem; font-weight: 600; color: var(--text-muted); border-bottom: 2px solid transparent; margin-bottom: -2px; transition: .15s; white-space: nowrap; flex-shrink: 0; }
.tab:hover  { color: var(--primary); }
.tab.active { color: var(--primary); border-bottom-color: var(--primary); }

/* ── PROGRESS BAR ────────────────────────────────────────── */
.progress-bar  { background: #E2E8F0; border-radius: 99px; height: 8px; overflow: hidden; }
.progress-fill { height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--primary), var(--accent)); transition: width .5s; }

/* ── EMPTY STATE ─────────────────────────────────────────── */
.empty-state       { text-align: center; padding: 4rem 2rem; color: var(--text-muted); }
.empty-state-icon  { font-size: 3.5rem; margin-bottom: 1rem; }
.empty-state h3    { font-size: 1.2rem; font-weight: 700; color: var(--text); margin-bottom: .5rem; }
.empty-state p     { font-size: .9rem; margin-bottom: 1.5rem; }

/* ── SCORE CARD ──────────────────────────────────────────── */
.score-card {
  background: linear-gradient(135deg, var(--primary) 0%, #7C3AED 100%);
  border-radius: var(--radius); padding: 2rem; color: #fff; text-align: center; margin-bottom: 1.5rem;
}
.score-part       { background: rgba(255,255,255,.15); border-radius: 8px; padding: 1rem; text-align: center; }
.score-part-val   { font-size: 1.5rem; font-weight: 800; }
.score-part-lbl   { font-size: .75rem; opacity: .7; margin-top: .2rem; }

/* ── COURSE CARDS ────────────────────────────────────────── */
.course-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.25rem; }
@media (max-width: 560px) { .course-cards { grid-template-columns: 1fr; } }
.course-card  {
  background: var(--card); border-radius: var(--radius); border: 1px solid var(--border);
  box-shadow: var(--shadow); overflow: hidden; transition: .2s; cursor: pointer;
}
.course-card:hover      { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.course-card-header     { padding: 1.25rem; border-bottom: 1px solid var(--border); }
.course-card-uni        { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: var(--primary); margin-bottom: .3rem; }
.course-card-name       { font-size: 1rem; font-weight: 700; line-height: 1.3; }
.course-card-body       { padding: 1.25rem; }
.course-meta            { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: .75rem; }
.course-cutoffs         { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.cutoff-item            { background: #F8FAFC; border-radius: 6px; padding: .5rem .75rem; }
.cutoff-item .lbl       { font-size: .7rem; color: var(--text-muted); font-weight: 600; text-transform: uppercase; }
.cutoff-item .val       { font-size: 1rem; font-weight: 700; margin-top: .1rem; }
.qualifies-banner       { background: linear-gradient(90deg, #10B981, #059669); color: #fff; padding: .5rem 1rem; font-size: .85rem; font-weight: 600; display: flex; align-items: center; gap: .5rem; }
.qualifies-banner.private { background: linear-gradient(90deg, #3B82F6, #2563EB); }
.qualifies-banner.none    { background: #F1F5F9; color: var(--text-muted); }

/* ── COURSE FEES BREAKDOWN (inside course cards) ─────────── */
.course-fees {
  margin-top: .75rem;
  background: #F8FAFC;
  border-radius: 8px;
  padding: .6rem .85rem;
  font-size: .82rem;
}
.course-fees-row {
  display: flex; justify-content: space-between; align-items: center;
  color: var(--text-muted); padding: .15rem 0;
}
.course-fees-total {
  display: flex; justify-content: space-between; align-items: center;
  font-weight: 700; color: var(--text);
  border-top: 1px solid var(--border);
  margin-top: .35rem; padding-top: .35rem;
}

/* ── UNIVERSITY CARDS ────────────────────────────────────── */
.uni-card      { background: var(--card); border-radius: var(--radius); border: 1px solid var(--border); overflow: hidden; transition: .2s; cursor: pointer; box-shadow: var(--shadow); }
.uni-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.uni-card-top  { height: 80px; display: flex; align-items: center; justify-content: center; font-size: 2rem; font-weight: 900; color: #fff; letter-spacing: -1px; }
.uni-card-body { padding: 1.25rem; }
.uni-card-name { font-weight: 700; font-size: 1rem; margin-bottom: .25rem; }
.uni-card-loc  { font-size: .82rem; color: var(--text-muted); display: flex; align-items: center; gap: .3rem; }

/* ── ADMIN CHART CONTAINER ───────────────────────────────── */
.chart-wrap { position: relative; height: 280px; }

/* ── ELIGIBLE COURSES — FILTER PANEL ────────────────────── */
.elig-filters { display: flex; flex-direction: column; gap: 1rem; }
.elig-filter-inputs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.elig-filter-footer {
  display: flex; align-items: center;
  justify-content: space-between;
  gap: .75rem; flex-wrap: wrap;
}
.elig-checkbox-label {
  display: flex; align-items: center; gap: .5rem;
  font-size: .92rem; cursor: pointer; font-weight: 500;
  -webkit-user-select: none;
  user-select: none;
}
.elig-checkbox-label input[type="checkbox"] {
  width: 17px; height: 17px;
  accent-color: var(--primary);
  cursor: pointer; flex-shrink: 0;
}
@media (max-width: 680px) {
  .elig-filter-inputs  { grid-template-columns: 1fr; }
  .elig-filter-footer  { flex-direction: column; align-items: stretch; }
  .elig-filter-footer .btn { width: 100%; justify-content: center; }
}

/* ── ELIGIBLE COURSES — SCORE SUMMARY ────────────────────── */
.score-parts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  text-align: center;
}
@media (max-width: 560px) {
  .score-parts-grid { grid-template-columns: repeat(2, 1fr); gap: .75rem; }
}

/* ── PAYMENT MODAL ───────────────────────────────────────── */
.pay-modal-header {
  background: linear-gradient(135deg, var(--primary) 0%, #7C3AED 100%);
  padding: 1.75rem 1.5rem 1.5rem;
  text-align: center; color: #fff;
  border-radius: var(--radius) var(--radius) 0 0;
}
.pay-modal-icon {
  font-size: 2.2rem; margin-bottom: .5rem; line-height: 1;
}
.pay-modal-title {
  font-size: 1.2rem; font-weight: 800; margin-bottom: .25rem;
}
.pay-modal-amount {
  font-size: 2rem; font-weight: 900; letter-spacing: -1px;
  margin: .4rem 0 .1rem;
}
.pay-modal-subtitle {
  font-size: .82rem; opacity: .8;
}
.pm-cards-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: .75rem;
  margin-bottom: 1.25rem;
}
.pm-card {
  border: 2px solid var(--border);
  border-radius: 12px; padding: 1rem .75rem;
  text-align: center; cursor: pointer;
  background: #fff; transition: border-color .18s, box-shadow .18s, background .18s;
  -webkit-tap-highlight-color: transparent;
}
.pm-card:active { transform: scale(.97); }
.pm-card.selected-mtn   { border-color: var(--primary); background: #FFFBEA; box-shadow: 0 0 0 3px rgba(79,70,229,.12); }
.pm-card.selected-airtel { border-color: #EF4444; background: #FFF5F5; box-shadow: 0 0 0 3px rgba(239,68,68,.12); }
.pm-card img { height: 48px; width: 100%; object-fit: contain; margin-bottom: .4rem; }
.pm-card-label { font-size: .78rem; font-weight: 700; color: #333; }
.pm-checkmark {
  display: none; width: 20px; height: 20px;
  background: var(--primary); border-radius: 50%;
  color: #fff; font-size: .7rem;
  align-items: center; justify-content: center;
  margin: .35rem auto 0;
}
.pm-card.selected-mtn .pm-checkmark,
.pm-card.selected-airtel .pm-checkmark { display: flex; }
.pm-card.selected-airtel .pm-checkmark { background: #EF4444; }
.pay-trust-row {
  display: flex; align-items: center; justify-content: center;
  gap: 1rem; flex-wrap: wrap;
  font-size: .78rem; color: var(--text-muted); margin-top: .85rem;
}
.pay-trust-item { display: flex; align-items: center; gap: .3rem; }
/* ══════════════════════════════════════════════════════════
   HOME / LANDING PAGE  — UniPath Uganda
   ══════════════════════════════════════════════════════════ */

/* ── Reset & base for landing ───────────────────────────── */
#landing-view {
  min-height: 100vh;
  background: #fff;
  font-family: 'Segoe UI', system-ui, sans-serif;
}

/* ── NAVBAR ─────────────────────────────────────────────── */
.lp-nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: .9rem 2.5rem;
  background: rgba(255,255,255,.92);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(79,70,229,.08);
  transition: box-shadow .2s;
}
.lp-nav.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,.09); }

.lp-logo {
  font-size: 1.5rem; font-weight: 900; letter-spacing: -0.5px;
  color: #1E1B4B; display: flex; align-items: center;
}
.lp-logo span { color: #F59E0B; }
.lp-logo-img  { height: 40px; width: auto; display: block; }

.lp-nav-links {
  display: flex; align-items: center; gap: 1rem;
}
.lp-nav-links a {
  font-size: .92rem; font-weight: 500; color: #475569;
  cursor: pointer; padding: .4rem .8rem; border-radius: 8px;
  transition: color .15s, background .15s;
}
.lp-nav-links a:hover { color: #4F46E5; background: #EEF2FF; }

.lp-btn-signin {
  padding: .5rem 1.2rem;
  border: 1.5px solid #4F46E5;
  border-radius: 8px;
  color: #4F46E5 !important;
  font-weight: 600 !important;
  background: transparent;
}
.lp-btn-signin:hover { background: #EEF2FF !important; }

.lp-btn-start {
  padding: .55rem 1.4rem;
  background: linear-gradient(135deg, #4F46E5, #7C3AED);
  border-radius: 8px;
  color: #fff !important;
  font-weight: 600 !important;
  box-shadow: 0 4px 14px rgba(79,70,229,.35);
  transition: transform .15s, box-shadow .15s;
}
.lp-btn-start:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(79,70,229,.45);
  background: linear-gradient(135deg, #4338CA, #6D28D9) !important;
}

/* ── HERO ───────────────────────────────────────────────── */
.lp-hero {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  padding: 8rem 2rem 5rem;
  background: linear-gradient(160deg, #f8faff 0%, #ede9ff 40%, #fdf6e3 100%);
  position: relative; overflow: hidden;
}

.lp-hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 30%, rgba(79,70,229,.12) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 80% 70%, rgba(124,58,237,.10) 0%, transparent 60%);
}

.lp-hero-badge {
  display: inline-flex; align-items: center; gap: .5rem;
  background: #EEF2FF; color: #4F46E5;
  font-size: .8rem; font-weight: 700; letter-spacing: .5px;
  text-transform: uppercase;
  padding: .4rem 1rem; border-radius: 100px;
  border: 1.5px solid rgba(79,70,229,.2);
  margin-bottom: 1.5rem;
}
.lp-hero-badge-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #4F46E5;
  animation: pulse-dot 1.8s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: .6; }
}

.lp-hero-content { position: relative; z-index: 1; max-width: 800px; margin: 0 auto; }

.lp-hero h1 {
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -1.5px;
  color: #0F0E2C;
  margin-bottom: 1.25rem;
}
.lp-hero h1 .highlight {
  background: linear-gradient(135deg, #4F46E5, #7C3AED, #EC4899);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.lp-hero-sub {
  font-size: 1.15rem;
  color: #475569;
  line-height: 1.7;
  max-width: 580px;
  margin: 0 auto 2.5rem;
}

.lp-hero-actions {
  display: flex; align-items: center; justify-content: center;
  flex-wrap: wrap; gap: 1rem;
  margin-bottom: 3rem;
}

.lp-cta-primary {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .9rem 2.2rem;
  background: linear-gradient(135deg, #4F46E5, #7C3AED);
  color: #fff; border-radius: 12px;
  font-size: 1rem; font-weight: 700;
  box-shadow: 0 8px 24px rgba(79,70,229,.4);
  border: none; cursor: pointer;
  transition: transform .2s, box-shadow .2s;
}
.lp-cta-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(79,70,229,.5);
}

.lp-cta-secondary {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .9rem 2rem;
  background: #fff;
  color: #1E293B; border-radius: 12px;
  font-size: 1rem; font-weight: 600;
  border: 1.5px solid #E2E8F0;
  box-shadow: 0 2px 10px rgba(0,0,0,.06);
  cursor: pointer;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.lp-cta-secondary:hover {
  transform: translateY(-2px);
  border-color: #4F46E5;
  box-shadow: 0 6px 20px rgba(0,0,0,.1);
}

.lp-hero-trust {
  display: flex; align-items: center; justify-content: center;
  gap: 1.5rem; flex-wrap: wrap;
  color: #94A3B8; font-size: .84rem;
}
.lp-hero-trust-item {
  display: flex; align-items: center; gap: .4rem;
}
.lp-hero-trust-item svg { flex-shrink: 0; }

/* ── STATS BAND ─────────────────────────────────────────── */
.lp-stats {
  background: linear-gradient(135deg, #1E1B4B 0%, #4F46E5 60%, #7C3AED 100%);
  padding: 3rem 2rem;
}
.lp-stats-inner {
  max-width: 900px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 2rem; text-align: center;
}
.lp-stat-item-num {
  font-size: 2.5rem; font-weight: 900;
  color: #F59E0B; line-height: 1;
  margin-bottom: .4rem;
}
.lp-stat-item-lbl {
  font-size: .82rem; color: rgba(255,255,255,.7);
  text-transform: uppercase; letter-spacing: .8px; font-weight: 500;
}

/* ── SECTIONS SHARED ────────────────────────────────────── */
.lp-section {
  padding: 5rem 2rem;
}
.lp-section-alt { background: #F8FAFC; }
.lp-section-inner { max-width: 1080px; margin: 0 auto; }

.lp-section-label {
  display: inline-block;
  font-size: .78rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1px;
  color: #4F46E5; background: #EEF2FF;
  padding: .3rem .9rem; border-radius: 100px;
  margin-bottom: .9rem;
}
.lp-section-title {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  font-weight: 800; letter-spacing: -0.5px;
  color: #0F0E2C; margin-bottom: .6rem;
}
.lp-section-sub {
  color: #64748B; font-size: 1.05rem; line-height: 1.6;
  max-width: 520px;
}
.lp-section-header {
  margin-bottom: 3rem;
}

/* ── HOW IT WORKS ───────────────────────────────────────── */
.lp-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  counter-reset: step-counter;
}
.lp-step {
  background: #fff;
  border-radius: 20px;
  padding: 2.2rem;
  border: 1.5px solid #E2E8F0;
  position: relative;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.lp-step:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(79,70,229,.1);
  border-color: rgba(79,70,229,.3);
}
.lp-step-num {
  width: 44px; height: 44px; border-radius: 12px;
  background: linear-gradient(135deg, #4F46E5, #7C3AED);
  color: #fff; font-size: 1.1rem; font-weight: 900;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.2rem;
  box-shadow: 0 6px 16px rgba(79,70,229,.3);
}
.lp-step h3 {
  font-size: 1.1rem; font-weight: 700; color: #0F0E2C;
  margin-bottom: .6rem;
}
.lp-step p {
  color: #64748B; font-size: .93rem; line-height: 1.6;
}
.lp-step-icon {
  font-size: 1.8rem; margin-bottom: .6rem;
}

/* connector arrows between steps */
.lp-step-arrow {
  position: absolute; top: 50%; right: -1.5rem;
  transform: translateY(-50%);
  font-size: 1.2rem; color: #CBD5E1; z-index: 2;
}

/* ── FEATURE CARDS ──────────────────────────────────────── */
.lp-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.lp-feature-card {
  border-radius: 20px;
  padding: 2rem;
  border: 1.5px solid #E2E8F0;
  background: #fff;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.lp-feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0,0,0,.08);
  border-color: rgba(79,70,229,.25);
}
.lp-feature-icon {
  width: 52px; height: 52px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; margin-bottom: 1.2rem;
}
.lp-feature-icon.purple  { background: #EEF2FF; }
.lp-feature-icon.amber   { background: #FEF3C7; }
.lp-feature-icon.green   { background: #D1FAE5; }
.lp-feature-icon.pink    { background: #FCE7F3; }
.lp-feature-icon.blue    { background: #DBEAFE; }
.lp-feature-icon.indigo  { background: #E0E7FF; }

.lp-feature-card h3 {
  font-size: 1.05rem; font-weight: 700; color: #0F0E2C;
  margin-bottom: .5rem;
}
.lp-feature-card p {
  color: #64748B; font-size: .9rem; line-height: 1.6;
}

/* ── UNIVERSITIES GRID ──────────────────────────────────── */
.lp-unis {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}
.lp-uni-card {
  background: #fff;
  border: 1.5px solid #E2E8F0;
  border-radius: 16px;
  padding: 1.4rem 1.2rem;
  text-align: center;
  transition: transform .2s, box-shadow .2s, border-color .2s;
  cursor: default;
}
.lp-uni-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0,0,0,.08);
  border-color: rgba(79,70,229,.3);
}
.lp-uni-logo {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: .7rem;
}
.lp-uni-logo img {
  max-height: 60px;
  max-width: 140px;
  object-fit: contain;
}
.lp-uni-short {
  font-size: .78rem; font-weight: 700;
  color: #4F46E5; text-transform: uppercase; letter-spacing: .5px;
  margin-bottom: .3rem;
}
.lp-uni-name {
  font-size: .8rem; color: #475569; line-height: 1.4;
}

/* ── TESTIMONIAL ────────────────────────────────────────── */
.lp-testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.lp-testi-card {
  background: #fff;
  border: 1.5px solid #E2E8F0;
  border-radius: 20px;
  padding: 1.8rem;
  transition: transform .2s, box-shadow .2s;
}
.lp-testi-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 36px rgba(0,0,0,.07);
}
.lp-testi-stars { color: #F59E0B; font-size: 1rem; margin-bottom: 1rem; }
.lp-testi-quote {
  color: #334155; font-size: .92rem; line-height: 1.65;
  font-style: italic; margin-bottom: 1.2rem;
}
.lp-testi-author {
  display: flex; align-items: center; gap: .75rem;
}
.lp-testi-avatar {
  width: 38px; height: 38px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .85rem; font-weight: 700; color: #fff;
  flex-shrink: 0;
}
.lp-testi-name { font-size: .88rem; font-weight: 700; color: #0F0E2C; }
.lp-testi-role { font-size: .78rem; color: #94A3B8; }

/* ── FINAL CTA BANNER ───────────────────────────────────── */
.lp-cta-banner {
  background: linear-gradient(135deg, #1E1B4B 0%, #4F46E5 55%, #7C3AED 100%);
  padding: 5rem 2rem;
  text-align: center;
  position: relative; overflow: hidden;
}
.lp-cta-banner::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.lp-cta-banner-inner { position: relative; z-index: 1; max-width: 620px; margin: 0 auto; }
.lp-cta-banner h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 900; color: #fff;
  margin-bottom: 1rem; letter-spacing: -.5px;
}
.lp-cta-banner p {
  color: rgba(255,255,255,.75);
  font-size: 1.05rem; line-height: 1.65;
  margin-bottom: 2.5rem;
}
.lp-cta-banner-btns {
  display: flex; align-items: center; justify-content: center;
  gap: 1rem; flex-wrap: wrap;
}
.lp-banner-primary {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .95rem 2.5rem;
  background: #F59E0B;
  color: #1E1B4B; border-radius: 12px;
  font-size: 1rem; font-weight: 800;
  border: none; cursor: pointer;
  box-shadow: 0 8px 24px rgba(245,158,11,.4);
  transition: transform .2s, box-shadow .2s;
}
.lp-banner-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(245,158,11,.55);
  background: #FBBF24;
}
.lp-banner-secondary {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .95rem 2rem;
  background: transparent;
  color: #fff; border-radius: 12px;
  font-size: 1rem; font-weight: 600;
  border: 1.5px solid rgba(255,255,255,.4);
  cursor: pointer;
  transition: background .2s, border-color .2s;
}
.lp-banner-secondary:hover {
  background: rgba(255,255,255,.1);
  border-color: rgba(255,255,255,.7);
}

/* ── FOOTER ─────────────────────────────────────────────── */
.lp-footer {
  background: #0F0E2C;
  padding: 2.5rem 2rem;
  text-align: center;
}
.lp-footer-logo { font-size: 1.3rem; font-weight: 900; color: #fff; margin-bottom: .5rem; }
.lp-footer-logo span { color: #F59E0B; }
.lp-footer p { color: rgba(255,255,255,.4); font-size: .82rem; }

/* ── TESTIMONIAL AVATAR COLOURS ─────────────────────────── */
.lp-avatar-purple { background: linear-gradient(135deg, #4F46E5, #7C3AED); }
.lp-avatar-amber  { background: linear-gradient(135deg, #F59E0B, #EF4444); }
.lp-avatar-green  { background: linear-gradient(135deg, #10B981, #3B82F6); }

/* ── AUTH HERO BACK BUTTON ──────────────────────────────── */
.auth-hero-back { margin-top: 2rem; }
.auth-back-btn {
  background: rgba(255,255,255,.15);
  border: 1.5px solid rgba(255,255,255,.3);
  color: #fff;
  padding: .5rem 1.2rem;
  border-radius: 8px;
  cursor: pointer;
  font-size: .88rem;
  font-weight: 500;
  transition: background .15s;
}
.auth-back-btn:hover { background: rgba(255,255,255,.25); }

/* ── SCROLL ANIMATIONS ──────────────────────────────────── */
.lp-reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity .6s ease, transform .6s ease;
}
.lp-reveal.visible {
  opacity: 1; transform: translateY(0);
}

/* ── RESPONSIVE ─────────────────────────────────────────── */

/* Tablet (≤ 900px) */
@media (max-width: 900px) {
  .lp-stats-inner      { grid-template-columns: repeat(2, 1fr); }
  .lp-steps            { grid-template-columns: 1fr; gap: 1.25rem; }
  .lp-step-arrow       { display: none; }
  .lp-features         { grid-template-columns: repeat(2, 1fr); }
  .lp-testimonial-grid { grid-template-columns: 1fr; }
  .lp-section          { padding: 3.5rem 1.5rem; }
}

/* Mobile (≤ 600px) */
@media (max-width: 600px) {
  /* Navbar */
  .lp-nav              { padding: .75rem 1rem; }
  .lp-nav-links        { gap: .5rem; }
  .lp-nav-links a.hidden-mobile { display: none; }
  .lp-btn-signin       { padding: .4rem .9rem; font-size: .85rem !important; }
  .lp-btn-start        { padding: .45rem 1rem; font-size: .85rem !important; }

  /* Hero */
  .lp-hero             { padding: 5.5rem 1.25rem 3rem; min-height: unset; }
  .lp-hero h1          { letter-spacing: -.5px; margin-bottom: 1rem; }
  .lp-hero-sub         { font-size: 1rem; margin-bottom: 2rem; }
  .lp-hero-badge       { font-size: .72rem; }
  .lp-hero-actions     { gap: .75rem; }
  .lp-cta-primary      { width: 100%; justify-content: center; padding: .85rem 1.5rem; font-size: .95rem; }
  .lp-cta-secondary    { width: 100%; justify-content: center; padding: .85rem 1.5rem; font-size: .92rem; }
  .lp-hero-trust       { gap: .85rem; font-size: .8rem; }

  /* Stats */
  .lp-stats            { padding: 2rem 1rem; }
  .lp-stats-inner      { grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
  .lp-stat-item-num    { font-size: 2rem; }

  /* Sections */
  .lp-section          { padding: 2.75rem 1rem; }
  .lp-section-header   { margin-bottom: 2rem; }
  .lp-section-sub      { font-size: .95rem; }

  /* Features */
  .lp-features         { grid-template-columns: 1fr; gap: 1rem; }
  .lp-feature-card     { padding: 1.5rem; border-radius: 14px; }

  /* Steps */
  .lp-step             { padding: 1.5rem; border-radius: 14px; }

  /* Universities */
  .lp-unis             { grid-template-columns: repeat(2, 1fr); gap: .75rem; }
  .lp-uni-card         { padding: 1rem .75rem; border-radius: 12px; }
  .lp-uni-logo         { height: 50px; }
  .lp-uni-logo img     { max-height: 46px; }

  /* Testimonials */
  .lp-testi-card       { padding: 1.4rem; border-radius: 14px; }

  /* CTA Banner */
  .lp-cta-banner       { padding: 3rem 1.25rem; }
  .lp-banner-primary,
  .lp-banner-secondary { width: 100%; justify-content: center; padding: .85rem 1.5rem; }

  /* Footer */
  .lp-footer           { padding: 2rem 1rem; }
}

/* Very small (≤ 380px) */
@media (max-width: 380px) {
  .lp-unis             { grid-template-columns: 1fr 1fr; }
  .lp-stats-inner      { gap: .9rem; }
  .lp-stat-item-num    { font-size: 1.75rem; }
  .lp-hero             { padding-top: 5rem; }
}
