/* =====================================================
   UpSkills Academy — Design System v2.0
   Couleurs : Navy #1B2B5E · Orange #F04E23 · White
   Signature : Flèche orange du logo
   ===================================================== */

/* ── RESET & BASE ─────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; -webkit-text-size-adjust: 100%; }
body { font-family: 'Inter', system-ui, sans-serif; color: var(--text); background: var(--white); line-height: 1.6; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; }
input, textarea, select { font-family: inherit; }

/* ── DESIGN TOKENS ────────────────────────────────── */
:root {
  /* Palette */
  --navy:          #1B2B5E;
  --navy-dark:     #111D42;
  --navy-mid:      #243572;
  --navy-light:    #E8ECF8;
  --orange:        #F04E23;
  --orange-dark:   #C93E1A;
  --orange-mid:    #F47355;
  --orange-light:  #FFF1ED;
  --teal:          #00A99D;
  --teal-light:    #E0F7F5;
  --gold:          #E8A020;
  --gold-light:    #FDF3E0;
  --white:         #FFFFFF;
  --surface:       #F5F7FA;
  --surface-2:     #EEF1F7;
  --border:        #E2E8F0;
  --border-dark:   #CBD5E1;
  --text:          #1A202C;
  --text-mid:      #334155;
  --muted:         #64748B;
  --muted-light:   #94A3B8;

  /* Semantic */
  --success:       #10B981;
  --success-light: #D1FAE5;
  --warning:       #F59E0B;
  --warning-light: #FEF3C7;
  --danger:        #EF4444;
  --danger-light:  #FEE2E2;
  --info:          #3B82F6;
  --info-light:    #DBEAFE;

  /* Spacing */
  --space-1: 4px;  --space-2: 8px;   --space-3: 12px;
  --space-4: 16px; --space-5: 20px;  --space-6: 24px;
  --space-8: 32px; --space-10: 40px; --space-12: 48px;
  --space-16: 64px;--space-20: 80px;

  /* Radius */
  --r-sm:   6px;
  --r-md:   10px;
  --r-lg:   16px;
  --r-xl:   24px;
  --r-full: 9999px;

  /* Shadows */
  --shadow-sm:  0 1px 3px rgba(27,43,94,.06), 0 1px 2px rgba(27,43,94,.04);
  --shadow-md:  0 4px 16px rgba(27,43,94,.08), 0 2px 6px rgba(27,43,94,.05);
  --shadow-lg:  0 12px 40px rgba(27,43,94,.12), 0 4px 12px rgba(27,43,94,.06);
  --shadow-xl:  0 24px 64px rgba(27,43,94,.16);
  --shadow-orange: 0 8px 24px rgba(240,78,35,.25);

  /* Transitions */
  --t-fast:   150ms ease;
  --t-base:   250ms ease;
  --t-slow:   400ms ease;

  /* Layout */
  --max-w: 1240px;
  --nav-h: 72px;
}

/* ── TYPOGRAPHY SCALE ─────────────────────────────── */
.text-xs   { font-size: .72rem;  line-height: 1.4; }
.text-sm   { font-size: .82rem;  line-height: 1.5; }
.text-base { font-size: .9rem;   line-height: 1.6; }
.text-md   { font-size: 1rem;    line-height: 1.6; }
.text-lg   { font-size: 1.125rem;line-height: 1.5; }
.text-xl   { font-size: 1.25rem; line-height: 1.4; }
.text-2xl  { font-size: 1.5rem;  line-height: 1.3; }
.text-3xl  { font-size: 1.875rem;line-height: 1.25;}
.text-4xl  { font-size: 2.25rem; line-height: 1.2; }
.text-5xl  { font-size: 3rem;    line-height: 1.1; }

.font-display { font-family: 'Sora', system-ui, sans-serif; }
.font-mono    { font-family: 'JetBrains Mono', 'Courier New', monospace; }
.fw-400 { font-weight: 400; } .fw-500 { font-weight: 500; }
.fw-600 { font-weight: 600; } .fw-700 { font-weight: 700; }
.fw-800 { font-weight: 800; }

/* ── LAYOUT UTILITIES ─────────────────────────────── */
.container   { max-width: var(--max-w); margin: 0 auto; padding: 0 var(--space-6); }
.container-sm{ max-width: 720px; margin: 0 auto; padding: 0 var(--space-6); }
.flex        { display: flex; }
.flex-col    { display: flex; flex-direction: column; }
.items-center{ align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center  { justify-content: center; }
.gap-2  { gap: var(--space-2);  } .gap-3  { gap: var(--space-3);  }
.gap-4  { gap: var(--space-4);  } .gap-6  { gap: var(--space-6);  }
.gap-8  { gap: var(--space-8);  } .gap-12 { gap: var(--space-12); }
.grid   { display: grid; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); }

/* ── NAVBAR ───────────────────────────────────────── */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--nav-h);
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--t-base);
}
.navbar.scrolled { box-shadow: var(--shadow-md); }
.navbar-inner {
  max-width: var(--max-w); margin: 0 auto;
  padding: 0 var(--space-6);
  height: 100%; display: flex; align-items: center; justify-content: space-between;
}
.navbar-logo {
  display: flex; align-items: center; gap: var(--space-3);
  font-family: 'Sora', sans-serif; font-weight: 800;
  font-size: 1.15rem; color: var(--navy); text-decoration: none;
}
.logo-arrow {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
}
.logo-arrow svg { width: 36px; height: 36px; }
.navbar-nav { display: flex; align-items: center; gap: var(--space-1); list-style: none; }
.navbar-nav a {
  font-size: .875rem; font-weight: 500; color: var(--muted);
  padding: var(--space-2) var(--space-3); border-radius: var(--r-md);
  transition: color var(--t-fast), background var(--t-fast);
}
.navbar-nav a:hover { color: var(--navy); background: var(--surface); }
.navbar-nav a.active { color: var(--navy); font-weight: 600; }
.navbar-actions { display: flex; align-items: center; gap: var(--space-3); }
.burger { display: none; flex-direction: column; gap: 5px; padding: var(--space-2); background: none; border: none; }
.burger span { display: block; width: 22px; height: 2px; background: var(--navy); border-radius: 2px; transition: var(--t-base); }

/* ── BUTTONS ──────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: var(--space-2);
  padding: 11px 22px; border-radius: var(--r-md);
  font-size: .875rem; font-weight: 600;
  border: 2px solid transparent;
  transition: all var(--t-base); cursor: pointer;
  white-space: nowrap; text-decoration: none;
  font-family: 'Inter', sans-serif;
  line-height: 1;
}
.btn-sm   { padding: 8px 16px; font-size: .8rem; }
.btn-lg   { padding: 14px 28px; font-size: .95rem; }
.btn-xl   { padding: 16px 36px; font-size: 1rem; }
.btn-full { width: 100%; justify-content: center; }

.btn-primary {
  background: var(--orange); color: #fff; border-color: var(--orange);
  box-shadow: var(--shadow-orange);
}
.btn-primary:hover {
  background: var(--orange-dark); border-color: var(--orange-dark);
  transform: translateY(-1px); box-shadow: 0 12px 28px rgba(240,78,35,.32);
}
.btn-primary:active { transform: translateY(0); }

.btn-navy {
  background: var(--navy); color: #fff; border-color: var(--navy);
}
.btn-navy:hover { background: var(--navy-dark); transform: translateY(-1px); }

.btn-outline {
  background: transparent; color: var(--navy); border-color: var(--border-dark);
}
.btn-outline:hover { border-color: var(--navy); background: var(--surface); }

.btn-outline-white {
  background: transparent; color: #fff; border-color: rgba(255,255,255,.4);
}
.btn-outline-white:hover { background: rgba(255,255,255,.1); border-color: #fff; }

.btn-ghost {
  background: transparent; color: var(--muted); border-color: transparent;
}
.btn-ghost:hover { background: var(--surface); color: var(--text); }

.btn-danger { background: var(--danger); color: #fff; border-color: var(--danger); }
.btn-success{ background: var(--success); color: #fff; border-color: var(--success); }

/* Icône flèche dans les boutons CTA */
.btn-arrow::after {
  content: '↑';
  font-size: .9em;
  transform: rotate(45deg);
  display: inline-block;
  transition: transform var(--t-base);
}
.btn-arrow:hover::after { transform: rotate(45deg) translate(2px, -2px); }

/* ── BADGES ───────────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px; border-radius: var(--r-full);
  font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .5px;
}
.badge-navy    { background: var(--navy-light); color: var(--navy); }
.badge-orange  { background: var(--orange-light); color: var(--orange-dark); }
.badge-teal    { background: var(--teal-light); color: var(--teal); }
.badge-success { background: var(--success-light); color: var(--success); }
.badge-warning { background: var(--warning-light); color: var(--warning); }
.badge-danger  { background: var(--danger-light); color: var(--danger); }
.badge-muted   { background: var(--surface-2); color: var(--muted); }
.badge-gold    { background: var(--gold-light); color: var(--gold); }

/* ── CARDS ────────────────────────────────────────── */
.card {
  background: var(--white); border: 1.5px solid var(--border);
  border-radius: var(--r-lg); overflow: hidden;
  transition: box-shadow var(--t-base), transform var(--t-base);
}
.card:hover { box-shadow: var(--shadow-lg); }
.card-hover:hover { transform: translateY(-3px); }

.card-header {
  padding: var(--space-5) var(--space-6);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
}
.card-title { font-family: 'Sora', sans-serif; font-size: .95rem; font-weight: 700; color: var(--navy); }
.card-body   { padding: var(--space-6); }
.card-footer { padding: var(--space-4) var(--space-6); border-top: 1px solid var(--border); background: var(--surface); }

/* ── FORMS ────────────────────────────────────────── */
.form-group { margin-bottom: var(--space-5); }
.form-label {
  display: block; font-size: .8rem; font-weight: 600;
  color: var(--text-mid); margin-bottom: var(--space-2);
  text-transform: uppercase; letter-spacing: .4px;
}
.form-label .req { color: var(--orange); margin-left: 2px; }
.form-control {
  width: 100%; padding: 12px 16px;
  border: 1.5px solid var(--border); border-radius: var(--r-md);
  font-size: .9rem; color: var(--text); background: var(--white);
  font-family: 'Inter', sans-serif;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
  outline: none;
}
.form-control:focus {
  border-color: var(--orange); outline: none;
  box-shadow: 0 0 0 3px rgba(240,78,35,.12);
}
.form-control::placeholder { color: var(--muted-light); }
.form-control.error { border-color: var(--danger); box-shadow: 0 0 0 3px rgba(239,68,68,.1); }
textarea.form-control { resize: vertical; min-height: 100px; }
select.form-control { appearance: none; cursor: pointer; }

.input-group { position: relative; }
.input-group .form-control { padding-left: 44px; }
.input-group .input-icon {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  color: var(--muted); font-size: 1.1rem; pointer-events: none;
}
.form-hint { font-size: .75rem; color: var(--muted); margin-top: var(--space-1); }
.form-error { font-size: .75rem; color: var(--danger); margin-top: var(--space-1); }

/* Checkbox / Radio custom */
.check-group { display: flex; align-items: center; gap: var(--space-3); cursor: pointer; }
.check-group input[type="checkbox"],
.check-group input[type="radio"] { width: 18px; height: 18px; accent-color: var(--orange); cursor: pointer; }

/* ── ALERTS ───────────────────────────────────────── */
.alert {
  display: flex; align-items: flex-start; gap: var(--space-3);
  padding: var(--space-4) var(--space-5); border-radius: var(--r-md);
  font-size: .875rem; margin-bottom: var(--space-5); border: 1px solid transparent;
}
.alert-success { background: var(--success-light); border-color: #A7F3D0; color: #065F46; }
.alert-danger  { background: var(--danger-light);  border-color: #FECACA; color: #991B1B; }
.alert-warning { background: var(--warning-light); border-color: #FDE68A; color: #92400E; }
.alert-info    { background: var(--info-light);    border-color: #BFDBFE; color: #1E40AF; }
.alert-orange  { background: var(--orange-light);  border-color: #FCA89B; color: #9B2910; }

/* ── TABLES ───────────────────────────────────────── */
.table-wrap { overflow-x: auto; border-radius: var(--r-lg); border: 1.5px solid var(--border); }
table { width: 100%; border-collapse: collapse; font-size: .875rem; }
thead { background: var(--surface); }
thead th {
  padding: 12px 16px; text-align: left;
  font-size: .72rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .8px; color: var(--muted);
  border-bottom: 1px solid var(--border); white-space: nowrap;
}
tbody tr { border-bottom: 1px solid var(--border); transition: background var(--t-fast); }
tbody tr:last-child { border-bottom: none; }
tbody tr:hover { background: var(--surface); }
tbody td { padding: 14px 16px; color: var(--text-mid); vertical-align: middle; }
.table-empty { padding: 48px; text-align: center; color: var(--muted); }

/* ── PROGRESS ─────────────────────────────────────── */
.progress { height: 8px; background: var(--border); border-radius: var(--r-full); overflow: hidden; }
.progress-bar { height: 100%; background: var(--orange); border-radius: var(--r-full); transition: width var(--t-slow); }
.progress-bar.teal { background: var(--teal); }
.progress-bar.navy { background: var(--navy); }
.progress-bar.success { background: var(--success); }

/* ── AVATAR ───────────────────────────────────────── */
.avatar {
  width: 40px; height: 40px; border-radius: var(--r-full);
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: .9rem; color: #fff;
  background: var(--navy); flex-shrink: 0; text-transform: uppercase;
}
.avatar-sm { width: 32px; height: 32px; font-size: .75rem; }
.avatar-lg { width: 52px; height: 52px; font-size: 1.1rem; }
.avatar-xl { width: 72px; height: 72px; font-size: 1.4rem; }
.avatar-orange { background: var(--orange); }
.avatar-teal   { background: var(--teal); }

/* ── SECTION LAYOUT ───────────────────────────────── */
.section { padding: var(--space-20) 0; }
.section-sm { padding: var(--space-12) 0; }
.section-lg { padding: 100px 0; }
.section-navy    { background: var(--navy); color: #fff; }
.section-surface { background: var(--surface); }
.section-orange  { background: var(--orange-light); }

.section-eyebrow {
  display: inline-flex; align-items: center; gap: var(--space-2);
  font-size: .72rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 1.5px; color: var(--orange);
  margin-bottom: var(--space-4);
}
.section-eyebrow::before {
  content: '';
  display: block; width: 18px; height: 3px;
  background: var(--orange); border-radius: 2px;
}
.section-title {
  font-family: 'Sora', sans-serif; font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 800; color: var(--navy); line-height: 1.2;
  margin-bottom: var(--space-4);
}
.section-title em { font-style: normal; color: var(--orange); }
.section-desc {
  font-size: 1rem; color: var(--muted); max-width: 560px;
  line-height: 1.7;
}
.section-navy .section-title { color: #fff; }
.section-navy .section-desc  { color: rgba(255,255,255,.7); }

/* ── ARROW DECORATIONS (signature) ───────────────────*/
.arrow-deco {
  position: absolute; opacity: .06; pointer-events: none;
}
.arrow-deco svg { width: 100%; height: 100%; }

/* Ligne orange décorative */
.orange-line {
  display: inline-block; height: 4px; width: 48px;
  background: linear-gradient(90deg, var(--orange), var(--orange-mid));
  border-radius: var(--r-full); margin-bottom: var(--space-4);
}

/* ── STATS ROW ────────────────────────────────────── */
.stat-item { text-align: center; }
.stat-value {
  font-family: 'Sora', sans-serif; font-size: 2.5rem;
  font-weight: 800; color: var(--navy); line-height: 1;
  margin-bottom: var(--space-1);
}
.stat-value span { color: var(--orange); }
.stat-label { font-size: .82rem; color: var(--muted); font-weight: 500; }
.section-navy .stat-value { color: #fff; }
.section-navy .stat-label { color: rgba(255,255,255,.6); }

/* ── PROGRAM CARD ─────────────────────────────────── */
.prog-card {
  background: var(--white); border: 1.5px solid var(--border);
  border-radius: var(--r-xl); overflow: hidden;
  transition: all var(--t-base); position: relative;
}
.prog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-xl); border-color: rgba(240,78,35,.2); }
.prog-card-thumb {
  height: 180px; background: var(--navy);
  position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.prog-card-thumb img { width: 100%; height: 100%; object-fit: cover; }
.prog-card-cat {
  position: absolute; top: 14px; left: 14px;
}
.prog-card-body { padding: var(--space-5); }
.prog-card-title {
  font-family: 'Sora', sans-serif; font-size: 1rem;
  font-weight: 700; color: var(--navy); margin-bottom: var(--space-2);
  line-height: 1.35; display: -webkit-box;
  -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.prog-card-meta { display: flex; flex-wrap: wrap; gap: var(--space-3); font-size: .78rem; color: var(--muted); margin-bottom: var(--space-4); }
.prog-card-meta span { display: flex; align-items: center; gap: 4px; }
.prog-card-footer {
  padding: var(--space-4) var(--space-5);
  border-top: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  background: var(--surface);
}
.prog-price { font-family: 'Sora', sans-serif; font-size: 1.3rem; font-weight: 800; color: var(--orange); }
.prog-price .currency { font-size: .7em; font-weight: 600; }
.prog-rating { display: flex; align-items: center; gap: 4px; font-size: .8rem; color: var(--gold); }

/* ── NOTIFICATION BELL (topbar) ───────────────────── */
.notif-wrap { position: relative; }
.notif-btn {
  width: 40px; height: 40px; border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center;
  background: none; border: 1.5px solid var(--border);
  color: var(--muted); transition: all var(--t-fast); cursor: pointer;
  position: relative; font-size: 1rem;
}
.notif-btn:hover { border-color: var(--orange); color: var(--orange); background: var(--orange-light); }
.notif-badge {
  position: absolute; top: -5px; right: -5px;
  background: var(--orange); color: #fff;
  font-size: .6rem; font-weight: 800;
  min-width: 18px; height: 18px; border-radius: var(--r-full);
  display: flex; align-items: center; justify-content: center;
  padding: 0 4px; border: 2px solid var(--white);
}

/* ── VIDEO PLAYER ─────────────────────────────────── */
.video-container {
  position: relative; width: 100%; padding-bottom: 56.25%;
  background: #000; border-radius: var(--r-lg); overflow: hidden;
}
.video-container iframe {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: none;
}
.video-overlay {
  position: absolute; inset: 0; background: transparent;
  /* Bloque le clic droit et le téléchargement */
}
.video-overlay::before { content: ''; position: absolute; inset: 0; z-index: 1; }

/* ── EXAM ANTI-TRICHE ─────────────────────────────── */
.exam-wrap {
  max-width: 760px; margin: 0 auto; padding: var(--space-6);
  min-height: 100vh; background: var(--surface);
}
.exam-header {
  background: var(--navy); border-radius: var(--r-xl);
  padding: var(--space-6) var(--space-8); color: #fff;
  margin-bottom: var(--space-6); position: relative; overflow: hidden;
}
.exam-timer {
  display: flex; align-items: center; gap: var(--space-2);
  font-family: 'JetBrains Mono', monospace; font-size: 1.5rem;
  font-weight: 700; color: var(--orange);
}
.exam-timer.urgent { color: var(--danger); animation: blink 1s infinite; }
@keyframes blink { 0%,100% { opacity: 1; } 50% { opacity: .4; } }

.q-option {
  display: flex; align-items: center; gap: var(--space-4);
  padding: var(--space-4) var(--space-5);
  border: 2px solid var(--border); border-radius: var(--r-lg);
  margin-bottom: var(--space-3); cursor: pointer;
  transition: all var(--t-fast); user-select: none;
  background: var(--white);
}
.q-option:hover   { border-color: var(--orange); background: var(--orange-light); }
.q-option.selected{ border-color: var(--orange); background: var(--orange-light); }
.q-option.correct { border-color: var(--success); background: var(--success-light); }
.q-option.wrong   { border-color: var(--danger);  background: var(--danger-light); }

/* ── PROGRESS RING SVG ────────────────────────────── */
.progress-ring { transform: rotate(-90deg); }
.progress-ring-track { fill: none; stroke: var(--border); }
.progress-ring-fill  { fill: none; stroke: var(--orange); stroke-linecap: round; transition: stroke-dashoffset 1.2s ease; }

/* ── MODAL ────────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(27,43,94,.6);
  backdrop-filter: blur(4px); z-index: 2000;
  display: none; align-items: center; justify-content: center;
  padding: var(--space-6);
}
.modal-overlay.open { display: flex; animation: fadeIn .2s ease; }
.modal {
  background: var(--white); border-radius: var(--r-xl);
  width: 100%; max-width: 580px;
  box-shadow: var(--shadow-xl); animation: slideUp .3s ease;
  overflow: hidden;
}
.modal-header {
  padding: var(--space-6) var(--space-8); border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
}
.modal-title { font-family: 'Sora', sans-serif; font-size: 1.1rem; font-weight: 800; color: var(--navy); }
.modal-close {
  width: 32px; height: 32px; border-radius: var(--r-sm);
  background: var(--surface); border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: var(--muted); font-size: 1.1rem; transition: all var(--t-fast);
}
.modal-close:hover { background: var(--danger-light); color: var(--danger); }
.modal-body   { padding: var(--space-8); }
.modal-footer { padding: var(--space-5) var(--space-8); border-top: 1px solid var(--border); background: var(--surface); display: flex; gap: var(--space-3); justify-content: flex-end; }

/* ── ANIMATIONS ───────────────────────────────────── */
@keyframes fadeIn   { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp  { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@keyframes slideIn  { from { transform: translateX(100%); } to { transform: translateX(0); } }
@keyframes arrowUp  {
  0%, 100% { transform: translateY(0) rotate(45deg); }
  50%       { transform: translateY(-6px) rotate(45deg); }
}
@keyframes pulse-orange {
  0%, 100% { box-shadow: 0 0 0 0 rgba(240,78,35,.4); }
  50%       { box-shadow: 0 0 0 10px rgba(240,78,35,0); }
}

/* ── TOAST ────────────────────────────────────────── */
.toast-container {
  position: fixed; bottom: var(--space-6); right: var(--space-6);
  z-index: 9999; display: flex; flex-direction: column; gap: var(--space-3);
}
.toast {
  display: flex; align-items: center; gap: var(--space-3);
  padding: var(--space-4) var(--space-5); border-radius: var(--r-lg);
  background: var(--navy); color: #fff;
  box-shadow: var(--shadow-xl); min-width: 280px; max-width: 380px;
  animation: slideIn .3s ease;
  border-left: 4px solid var(--orange);
}
.toast-success { border-left-color: var(--success); }
.toast-danger  { border-left-color: var(--danger); }
.toast-warning { border-left-color: var(--warning); }

/* ── SKELETON LOADING ─────────────────────────────── */
.skeleton {
  background: linear-gradient(90deg, var(--surface) 25%, var(--border) 50%, var(--surface) 75%);
  background-size: 400% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--r-md);
}
@keyframes shimmer { 0% { background-position: 100% 0; } 100% { background-position: -100% 0; } }

/* ── ADMIN SIDEBAR ────────────────────────────────── */
.admin-layout { display: flex; min-height: 100vh; }
.sidebar {
  width: 256px; min-height: 100vh; flex-shrink: 0;
  background: var(--navy); display: flex; flex-direction: column;
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
}
.sidebar::-webkit-scrollbar { width: 4px; }
.sidebar::-webkit-scrollbar-thumb { background: rgba(255,255,255,.1); border-radius: 4px; }
.sidebar-logo {
  padding: var(--space-6) var(--space-5);
  border-bottom: 1px solid rgba(255,255,255,.08);
  display: flex; align-items: center; gap: var(--space-3);
}
.sidebar-logo-text { font-family: 'Sora', sans-serif; font-size: 1rem; font-weight: 800; color: #fff; }
.sidebar-logo-sub  { font-size: .65rem; color: rgba(255,255,255,.4); text-transform: uppercase; letter-spacing: 1px; }
.sidebar-section { padding: var(--space-2) var(--space-5) var(--space-1); }
.sidebar-section-label {
  font-size: .6rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 1.5px; color: rgba(255,255,255,.25); margin-top: var(--space-3);
}
.sidebar-link {
  display: flex; align-items: center; gap: var(--space-3);
  padding: 10px var(--space-5); color: rgba(255,255,255,.6);
  font-size: .875rem; font-weight: 500; text-decoration: none;
  transition: all var(--t-fast); border-left: 3px solid transparent;
  position: relative;
}
.sidebar-link:hover { background: rgba(255,255,255,.05); color: #fff; border-left-color: rgba(240,78,35,.5); }
.sidebar-link.active { background: rgba(240,78,35,.12); color: #fff; border-left-color: var(--orange); }
.sidebar-link .ic { font-size: 1.05rem; width: 20px; text-align: center; flex-shrink: 0; }
.sidebar-badge {
  margin-left: auto; background: var(--orange); color: #fff;
  font-size: .6rem; font-weight: 800; padding: 2px 7px;
  border-radius: var(--r-full); min-width: 18px; text-align: center;
}
.sidebar-footer {
  margin-top: auto; padding: var(--space-5);
  border-top: 1px solid rgba(255,255,255,.08);
}
.sidebar-user { display: flex; align-items: center; gap: var(--space-3); }
.sidebar-user-name { font-size: .82rem; font-weight: 600; color: #fff; }
.sidebar-user-role { font-size: .68rem; color: rgba(255,255,255,.4); text-transform: uppercase; letter-spacing: .5px; }

/* Admin main */
.admin-main { flex: 1; min-width: 0; display: flex; flex-direction: column; background: var(--surface); }
.admin-topbar {
  background: var(--white); border-bottom: 1px solid var(--border);
  padding: 0 var(--space-8); height: 64px;
  display: flex; align-items: center; justify-content: space-between;
  flex-shrink: 0; position: sticky; top: 0; z-index: 100;
}
.admin-topbar-title { font-family: 'Sora', sans-serif; font-size: 1.05rem; font-weight: 800; color: var(--navy); }
.admin-content { padding: var(--space-8); flex: 1; }

/* KPI Cards */
.kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: var(--space-5); margin-bottom: var(--space-8); }
.kpi-card {
  background: var(--white); border: 1.5px solid var(--border);
  border-radius: var(--r-xl); padding: var(--space-6);
  position: relative; overflow: hidden;
  transition: all var(--t-base);
}
.kpi-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.kpi-card::after {
  content: ''; position: absolute;
  bottom: 0; left: 0; right: 0; height: 3px;
  background: var(--orange); transform: scaleX(0);
  transform-origin: left; transition: transform var(--t-base);
}
.kpi-card:hover::after { transform: scaleX(1); }
.kpi-icon { font-size: 1.8rem; margin-bottom: var(--space-3); }
.kpi-value { font-family: 'Sora', sans-serif; font-size: 2rem; font-weight: 800; color: var(--navy); line-height: 1; margin-bottom: var(--space-1); }
.kpi-label { font-size: .78rem; color: var(--muted); font-weight: 500; text-transform: uppercase; letter-spacing: .5px; }
.kpi-trend { font-size: .75rem; font-weight: 600; margin-top: var(--space-2); }
.kpi-trend.up { color: var(--success); }
.kpi-trend.down { color: var(--danger); }

/* ── PAYMENT CARDS ────────────────────────────────── */
.pay-method {
  border: 2px solid var(--border); border-radius: var(--r-xl);
  padding: var(--space-5) var(--space-6); cursor: pointer;
  transition: all var(--t-base); background: var(--white);
  display: flex; align-items: center; gap: var(--space-4);
  position: relative;
}
.pay-method:hover { border-color: var(--orange); background: var(--orange-light); }
.pay-method.selected { border-color: var(--orange); background: var(--orange-light); box-shadow: 0 0 0 4px rgba(240,78,35,.1); }
.pay-method .pay-check {
  position: absolute; top: 14px; right: 14px;
  width: 22px; height: 22px; border-radius: var(--r-full);
  border: 2px solid var(--border); background: var(--white);
  display: flex; align-items: center; justify-content: center;
  transition: all var(--t-fast);
}
.pay-method.selected .pay-check { background: var(--orange); border-color: var(--orange); color: #fff; }
.pay-icon { font-size: 2rem; flex-shrink: 0; }
.pay-name { font-weight: 700; font-size: .9rem; color: var(--navy); }
.pay-desc { font-size: .75rem; color: var(--muted); margin-top: 2px; }

/* ── CERTIFICATE ──────────────────────────────────── */
.cert-paper {
  background: #fff; border: 3px solid var(--navy);
  border-radius: var(--r-xl); padding: 48px;
  position: relative; overflow: hidden;
  box-shadow: var(--shadow-xl);
}
.cert-paper::before {
  content: ''; position: absolute;
  top: 8px; left: 8px; right: 8px; bottom: 8px;
  border: 1px solid var(--border); border-radius: calc(var(--r-xl) - 4px);
  pointer-events: none;
}
.cert-watermark {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%) rotate(-20deg);
  font-family: 'Sora', sans-serif; font-size: 7rem; font-weight: 800;
  color: rgba(27,43,94,.03); white-space: nowrap; pointer-events: none;
}

/* ── RESPONSIVE ───────────────────────────────────── */
@media (max-width: 1024px) {
  .sidebar { width: 220px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  :root { --nav-h: 64px; }
  .container { padding: 0 var(--space-5); }
  .burger { display: flex; }
  .navbar-nav, .navbar-actions { display: none; }
  .navbar-nav.open, .navbar-actions.open { display: flex; }
  .navbar-nav.open {
    position: fixed; top: var(--nav-h); left: 0; right: 0;
    background: var(--white); flex-direction: column; gap: 0;
    padding: var(--space-4); border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
  }
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .section { padding: var(--space-12) 0; }
  .admin-layout { flex-direction: column; }
  .sidebar { width: 100%; height: auto; min-height: auto; position: relative; }
  .kpi-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .kpi-grid { grid-template-columns: 1fr; }
  .cert-paper { padding: var(--space-8); }
}

/* ── UTILITIES ────────────────────────────────────── */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.text-orange { color: var(--orange); }
.text-navy   { color: var(--navy); }
.text-muted  { color: var(--muted); }
.text-success{ color: var(--success); }
.text-danger { color: var(--danger); }
.bg-navy   { background: var(--navy); }
.bg-orange { background: var(--orange); }
.bg-surface{ background: var(--surface); }
.mt-auto { margin-top: auto; }
.ml-auto { margin-left: auto; }
.w-full  { width: 100%; }
.rounded-full { border-radius: var(--r-full); }
.hidden { display: none !important; }
.relative { position: relative; }
.text-center { text-align: center; }

/* ── SCROLLBAR ────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--surface); }
::-webkit-scrollbar-thumb { background: var(--border-dark); border-radius: 6px; }
::-webkit-scrollbar-thumb:hover { background: var(--muted-light); }

/* ── PRINT ────────────────────────────────────────── */
@media print {
  .navbar, .sidebar, .admin-topbar, .btn, .no-print { display: none !important; }
  .admin-content { padding: 0 !important; }
  body { background: #fff !important; }
}
