/* ==========================================================
   Supreme Review Academy — Design System
   Premium · Minimal · Academic · Modern
   ========================================================== */

:root {
  /* Supreme Review Academy — black & gold crest theme */
  --navy-950: #050505;
  --navy-900: #0d0d10;
  --navy-800: #17171b;
  --navy-700: #202024;
  --navy-600: #2b2b30;
  --gold-600: #a9791f;
  --gold-500: #D4A537;
  --gold-400: #e6c064;
  --gold-100: rgba(212,165,55,0.16);
  --gold-50:  rgba(212,165,55,0.08);
  --success-600: #2fa86b;
  --success-500: #34c07a;
  --success-100: rgba(52,192,122,0.14);
  --danger-600: #e4576a;
  --danger-500: #ef6b7d;
  --danger-100: rgba(228,87,106,0.14);
  --purple-500: #9c86e0;
  --purple-100: rgba(156,134,224,0.16);
  --blue-500: #6fa8d6;
  --blue-100: rgba(111,168,214,0.16);
  --ink-900: #f6f3ea;
  --ink-700: #cdc8bb;
  --ink-500: #938f86;
  --ink-300: #45444a;
  --paper-0: #111114;
  --paper-50: #08080a;
  --paper-100: #1b1b1f;
  --border: rgba(255,255,255,0.09);
  --radius-lg: 18px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.35), 0 1px 1px rgba(0,0,0,0.25);
  --shadow-md: 0 8px 24px -8px rgba(0,0,0,0.55), 0 2px 10px -2px rgba(212,165,55,0.06);
  --shadow-lg: 0 24px 56px -16px rgba(0,0,0,0.7);
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Fraunces', 'Georgia', serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--paper-50);
  color: var(--ink-900);
  -webkit-font-smoothing: antialiased;
}
.font-display { font-family: var(--font-display); }

::selection { background: var(--gold-100); color: var(--navy-900); }

/* Scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #2c2c32; border-radius: 20px; }
::-webkit-scrollbar-thumb:hover { background: #3a3a42; }

/* ==========================================================
   App Shell
   ========================================================== */
.app-shell { display: flex; min-height: 100vh; }

.sra-sidebar {
  width: 264px;
  flex-shrink: 0;
  background: linear-gradient(180deg, var(--navy-900) 0%, var(--navy-950) 100%);
  color: #dfe6f0;
  position: fixed;
  top: 0; left: 0; bottom: 0;
  display: flex;
  flex-direction: column;
  z-index: 40;
  transition: transform .25s ease;
}
.sra-sidebar-brand {
  display: flex; align-items: center; gap: 10px;
  padding: 22px 20px 18px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.sra-mark {
  width: 38px; height: 38px; border-radius: 10px;
  background: linear-gradient(135deg, var(--gold-400), var(--gold-600));
  display: flex; align-items: center; justify-content: center;
  color: var(--navy-950); font-family: var(--font-display); font-weight: 700; font-size: 18px;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(212,165,55,0.35);
}
:where(img[src="/assets/img/logo.png"]) { width: 2.25rem; height: 2.25rem; }
.sra-wordmark { line-height: 1.15; }
.sra-wordmark strong { display: block; font-size: 14.5px; color: #fff; letter-spacing: .2px; }
.sra-wordmark span { display: block; font-size: 10.5px; color: var(--gold-400); letter-spacing: .8px; text-transform: uppercase; }

.sra-nav { flex: 1; overflow-y: auto; padding: 14px 12px; }
.sra-nav-section { font-size: 10.5px; text-transform: uppercase; letter-spacing: .9px; color: #6f81a0; padding: 14px 10px 6px; }
.sra-nav-link {
  display: flex; align-items: center; gap: 11px;
  padding: 9.5px 12px; border-radius: 10px;
  color: #c3cee2; font-size: 13.6px; font-weight: 500;
  text-decoration: none; margin-bottom: 2px;
  transition: background .15s, color .15s;
}
.sra-nav-link svg { width: 18px; height: 18px; flex-shrink: 0; opacity: .85; }
.sra-nav-link:hover { background: rgba(255,255,255,0.06); color: #fff; }
.sra-nav-link.active { background: rgba(212,165,55,0.16); color: #fff; }
.sra-nav-link.active svg { opacity: 1; color: var(--gold-400); }
.sra-nav-link .badge-count {
  margin-left: auto; background: var(--gold-500); color: #1a1305;
  font-size: 10.5px; font-weight: 700; padding: 1px 6px; border-radius: 20px;
}

.sra-sidebar-foot { padding: 14px; border-top: 1px solid rgba(255,255,255,0.08); }
.sra-plan-pill {
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px; padding: 10px 12px; font-size: 12px; color: #b9c5da;
}
.sra-plan-pill strong { color: var(--gold-400); }

.sra-main { margin-left: 264px; flex: 1; min-width: 0; display: flex; flex-direction: column; }

.sra-topbar {
  height: 68px; flex-shrink: 0;
  background: rgba(8,8,10,0.82); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 26px; position: sticky; top: 0; z-index: 30;
}
.sra-page-content { padding: 26px 30px 60px; max-width: 1440px; width: 100%; margin: 0 auto; }

/* ==========================================================
   Buttons
   ========================================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 600; font-size: 13.5px; border-radius: 11px; padding: 10px 18px;
  border: 1px solid transparent; cursor: pointer; text-decoration: none;
  transition: all .15s ease; line-height: 1.3; white-space: nowrap;
}
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-gold { background: linear-gradient(135deg, var(--gold-400), var(--gold-500)); color: #241b04; box-shadow: 0 4px 14px -4px rgba(212,165,55,0.55); }
.btn-gold:hover { filter: brightness(1.06); transform: translateY(-1px); box-shadow: 0 8px 20px -6px rgba(212,165,55,0.6); }
.btn-navy { background: var(--navy-600); color: #fff; border: 1px solid var(--border); }
.btn-navy:hover { background: var(--navy-700); }
.btn-outline { background: transparent; color: var(--ink-900); border-color: var(--border); }
.btn-outline:hover { border-color: var(--gold-500); background: var(--gold-50); color: var(--gold-400); }
.btn-ghost { background: transparent; color: var(--ink-700); }
.btn-ghost:hover { background: var(--paper-100); }
.btn-danger { background: var(--danger-600); color: #fff; }
.btn-danger:hover { background: #791a26; }
.btn-success { background: var(--success-600); color: #fff; }
.btn-sm { padding: 7px 13px; font-size: 12.5px; border-radius: 9px; }
.btn-lg { padding: 13px 26px; font-size: 15px; border-radius: 13px; }
.btn-block { width: 100%; }
.btn-icon { padding: 9px; border-radius: 10px; }

/* ==========================================================
   Cards / Surfaces
   ========================================================== */
.card {
  background: var(--paper-0); border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.card-pad { padding: 22px 24px; }
.card-hover { transition: box-shadow .2s ease, transform .2s ease; }
.card-hover:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }

.stat-card {
  background: var(--paper-0); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 20px 22px; position: relative; overflow: hidden;
}
.stat-card .stat-label { font-size: 12.5px; color: var(--ink-500); font-weight: 600; letter-spacing: .2px; }
.stat-card .stat-value { font-family: var(--font-display); font-size: 32px; font-weight: 600; color: var(--ink-900); margin: 6px 0 2px; line-height: 1; }
.stat-card .stat-delta { font-size: 12px; font-weight: 600; }
.stat-card .stat-icon {
  position: absolute; top: 18px; right: 18px; width: 40px; height: 40px; border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
}

/* ==========================================================
   Badges / Pills / Progress
   ========================================================== */
.pill { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 700; padding: 3px 10px; border-radius: 20px; border: 1px solid transparent; letter-spacing: .2px; }
.pill-gold { background: var(--gold-100); color: var(--gold-400); border-color: rgba(212,165,55,0.3); }
.pill-navy { background: rgba(255,255,255,0.06); color: var(--ink-700); border-color: var(--border); }
.pill-success { background: var(--success-100); color: var(--success-500); border-color: rgba(52,192,122,0.3); }
.pill-danger { background: var(--danger-100); color: var(--danger-500); border-color: rgba(228,87,106,0.3); }
.pill-purple { background: var(--purple-100); color: var(--purple-500); border-color: rgba(156,134,224,0.3); }
.pill-blue { background: var(--blue-100); color: var(--blue-500); border-color: rgba(111,168,214,0.3); }
.pill-gray { background: var(--paper-100); color: var(--ink-500); border-color: var(--border); }

.progress-track { width: 100%; height: 9px; background: var(--paper-100); border-radius: 20px; overflow: hidden; }
.progress-fill { height: 100%; border-radius: 20px; background: linear-gradient(90deg, var(--gold-500), var(--gold-400)); transition: width .5s ease; }
.progress-fill.navy { background: linear-gradient(90deg, var(--navy-800), var(--navy-600)); }
.progress-fill.success { background: linear-gradient(90deg, var(--success-600), #46a374); }
.progress-fill.danger { background: linear-gradient(90deg, var(--danger-600), #c14f5f); }
.progress-track.thin { height: 6px; }

.radial {
  --pct: 0;
  --ring: var(--gold-500);
  width: 100px; height: 100px; border-radius: 50%;
  background: conic-gradient(var(--ring) calc(var(--pct) * 1%), var(--paper-100) 0);
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.radial::before { content: ''; position: absolute; inset: 9px; background: var(--paper-0); border-radius: 50%; box-shadow: inset 0 0 0 1px var(--border); }
.radial .radial-inner { position: relative; z-index: 1; text-align: center; }
.radial .radial-inner b { display: block; font-family: var(--font-display); font-size: 22px; color: var(--gold-400); }
.radial .radial-inner small { font-size: 9.5px; color: var(--ink-500); text-transform: uppercase; letter-spacing: .4px; }

/* ==========================================================
   Tables
   ========================================================== */
.sra-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.sra-table th { text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: .5px; color: var(--ink-500); padding: 10px 14px; border-bottom: 1px solid var(--border); font-weight: 700; }
.sra-table td { padding: 13px 14px; border-bottom: 1px solid var(--border); color: var(--ink-900); }
.sra-table tr:last-child td { border-bottom: none; }
.sra-table tbody tr { transition: background .12s; }
.sra-table tbody tr:hover { background: var(--paper-50); }

/* ==========================================================
   Forms
   ========================================================== */
.field-label { display: block; font-size: 12.5px; font-weight: 600; color: var(--ink-700); margin-bottom: 6px; }
.field-input, .field-select, .field-textarea {
  width: 100%; padding: 10px 13px; border-radius: 10px; border: 1px solid var(--border);
  font-size: 13.8px; font-family: var(--font-body); color: var(--ink-900); background: var(--paper-100);
  transition: border-color .15s, box-shadow .15s;
}
.field-input::placeholder, .field-textarea::placeholder { color: var(--ink-500); }
.field-input:focus, .field-select:focus, .field-textarea:focus {
  outline: none; border-color: var(--gold-500); box-shadow: 0 0 0 3px rgba(212,165,55,0.18);
}
.field-select option { background: var(--paper-0); color: var(--ink-900); }
.choice-card {
  border: 1.5px solid var(--border); border-radius: 12px; padding: 10px 14px; cursor: pointer;
  font-size: 13.5px; font-weight: 600; color: var(--ink-700); transition: all .15s; text-align: center;
}
.choice-card:hover { border-color: var(--gold-400); }
.choice-card.selected { border-color: var(--gold-500); background: var(--gold-50); color: var(--gold-600); box-shadow: 0 0 0 3px rgba(212,165,55,0.12); }

/* ==========================================================
   Modal
   ========================================================== */
.modal-backdrop {
  position: fixed; inset: 0; background: rgba(6,15,32,0.55); backdrop-filter: blur(2px);
  display: flex; align-items: center; justify-content: center; z-index: 100; padding: 20px;
}
.modal-box { background: var(--paper-0); border: 1px solid var(--border); border-radius: 20px; max-width: 480px; width: 100%; box-shadow: var(--shadow-lg); overflow: hidden; }

/* ==========================================================
   Exam interface
   ========================================================== */
.exam-shell { height: 100vh; background: var(--paper-50); color: var(--ink-900); display: flex; flex-direction: column; overflow: hidden; }
@media (max-width: 1023px) { .exam-shell { height: auto; min-height: 100vh; overflow: visible; } }

/* ==========================================================
   NCLEX / Pearson VUE-style blue & white — scoped to the live
   exam screens only (question view + Review & Submit). Every
   component below already reads the same custom properties as
   the rest of the app, so re-declaring them here recolors the
   whole exam UI without touching the black/gold dashboard.
   ========================================================== */
.exam-shell {
  --navy-950: #06264d;
  --navy-900: #0B3D91;
  --navy-800: #14488f;
  --navy-700: #1c56ab;
  --navy-600: #2563eb;
  --gold-600: #1d4ed8;
  --gold-500: #2563eb;
  --gold-400: #4f8ef0;
  --gold-100: rgba(37,99,235,0.12);
  --gold-50:  rgba(37,99,235,0.06);
  --ink-900: #101a2c;
  --ink-700: #3d4b5e;
  --ink-500: #74808f;
  --ink-300: #d7e0ea;
  --paper-0: #ffffff;
  --paper-50: #eef3fb;
  --paper-100: #f5f8fc;
  --border: #d7e2ef;
  --shadow-sm: 0 1px 2px rgba(16,32,64,0.08), 0 1px 1px rgba(16,32,64,0.05);
  --shadow-md: 0 8px 24px -8px rgba(16,32,64,0.18), 0 2px 10px -2px rgba(37,99,235,0.08);
  --shadow-lg: 0 24px 56px -16px rgba(16,32,64,0.25);
}
/* Tailwind's navy-* text utilities are static hex (light-on-dark) — repoint them
   to the new dark-on-white ink color while inside the exam shell. */
.exam-shell .text-navy-900, .exam-shell .text-navy-800, .exam-shell .text-navy-700 { color: var(--ink-900); }
/* A few components use the gold hex directly in a shadow instead of the var. */
.exam-shell .btn-gold { color: #fff; box-shadow: 0 4px 14px -4px rgba(37,99,235,0.45); }
.exam-shell .btn-gold:hover { box-shadow: 0 8px 20px -6px rgba(37,99,235,0.5); }
.exam-shell .pill-gold { border-color: rgba(37,99,235,0.35); }
.exam-shell .exam-option.selected,
.exam-shell .exam-option:has(input:checked):not(.correct):not(.incorrect) { box-shadow: 0 0 0 3px rgba(37,99,235,0.16); }
.exam-shell .exam-option.selected .exam-option-letter,
.exam-shell .exam-option:has(input:checked):not(.correct):not(.incorrect) .exam-option-letter { color: #fff; }
.exam-shell .exam-bottombar-btn.primary { color: #fff; }
.exam-shell .pill-navy { background: rgba(11,61,145,0.06); }
.exam-header {
  background: var(--navy-900); color: #fff; padding: 14px 28px; display: flex; align-items: center; justify-content: space-between;
  position: sticky; top: 0; z-index: 20;
}
.exam-timer { font-family: var(--font-display); font-size: 20px; font-weight: 600; letter-spacing: .5px; }
.exam-toolbar {
  background: var(--gold-50); border-bottom: 1px solid var(--border);
  padding: 9px 24px; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  flex-wrap: wrap; flex-shrink: 0;
}
.exam-toolbar-btn {
  display: inline-flex; align-items: center; gap: 6px; border: none; background: transparent;
  color: var(--navy-800); font-size: 12.5px; font-weight: 700; padding: 6px 10px; border-radius: 8px;
  cursor: pointer; transition: background .15s;
}
.exam-toolbar-btn:hover { background: rgba(255,255,255,0.6); }
.exam-toolbar-btn.active { background: var(--gold-500); color: #fff; }
.exam-option {
  display: flex; align-items: flex-start; gap: 11px; border: 1.5px solid var(--border); border-radius: 8px;
  padding: 13px 16px; cursor: pointer; transition: all .15s; background: var(--paper-100);
}
.exam-option:hover { border-color: var(--gold-400); background: var(--gold-50); }
.exam-option.selected,
.exam-option:has(input:checked):not(.correct):not(.incorrect) { border-color: var(--gold-500); background: var(--gold-50); box-shadow: 0 0 0 3px rgba(212,165,55,0.14); }
.exam-option.correct { border-color: var(--success-600); background: var(--success-100); }
.exam-option.incorrect { border-color: var(--danger-600); background: var(--danger-100); }
.exam-option-letter {
  width: 28px; height: 28px; border-radius: 8px; background: var(--paper-100); color: var(--ink-700);
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 12.5px; flex-shrink: 0;
}
.exam-option.selected .exam-option-letter,
.exam-option:has(input:checked):not(.correct):not(.incorrect) .exam-option-letter { background: var(--gold-500); color: #241b04; }
.exam-option.correct .exam-option-letter { background: var(--success-600); color: #fff; }
.exam-option.incorrect .exam-option-letter { background: var(--danger-600); color: #fff; }

/* ==========================================================
   Exam interface — Archer/NCLEX-style split review layout
   ========================================================== */
.exam-option-tag {
  margin-left: auto; flex-shrink: 0; display: inline-flex; align-items: center; gap: 4px;
  font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 20px; white-space: nowrap;
}
.exam-option.correct .exam-option-tag { background: var(--success-100); color: var(--success-500); }
.exam-option.incorrect .exam-option-tag { background: var(--danger-100); color: var(--danger-500); }

.exam-body {
  flex: 1; display: grid; grid-template-columns: 1fr; min-height: 0;
  padding-bottom: 76px; /* clears the fixed bottom bar */
}
.exam-body.has-panel { grid-template-columns: 1fr; }
@media (min-width: 1024px) {
  .exam-body.has-panel { grid-template-columns: minmax(0,1fr) 420px; }
}
.exam-question-col { padding: 28px 24px; overflow-y: auto; }
.exam-explain-col {
  border-left: 1px solid var(--border); background: var(--paper-0);
  padding: 28px 24px; overflow-y: auto;
}
@media (max-width: 1023px) {
  .exam-explain-col { border-left: none; border-top: 1px solid var(--border); }
}

.exam-result-banner {
  border-radius: 14px; padding: 16px 18px; margin-bottom: 18px;
}
.exam-result-banner.is-correct { background: var(--success-100); }
.exam-result-banner.is-incorrect { background: var(--danger-100); }

.exam-result-banner-inline {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px;
  border-radius: 10px; padding: 11px 16px; margin-bottom: 14px;
}
.exam-result-banner-inline.is-correct { background: var(--success-100); }
.exam-result-banner-inline.is-incorrect { background: var(--danger-100); }

.exam-explain-heading {
  font-size: 11px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; color: var(--gold-500);
  display: flex; align-items: center; gap: 6px; margin-bottom: 8px;
}

.exam-bottombar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 25;
  display: flex; background: var(--navy-900); border-top: 1px solid rgba(255,255,255,0.08);
}
.exam-bottombar-btn {
  flex: 1; border: none; background: transparent; color: #dfe6f0; font-weight: 600; font-size: 13.5px;
  padding: 15px 10px; cursor: pointer; text-align: center; transition: background .15s;
  border-right: 1px solid rgba(255,255,255,0.08); text-decoration: none; display: block;
}
.exam-bottombar-btn:last-child { border-right: none; }
.exam-bottombar-btn:hover:not(:disabled) { background: rgba(255,255,255,0.06); }
.exam-bottombar-btn.primary { background: var(--gold-500); color: #241b04; }
.exam-bottombar-btn.primary:hover { background: var(--gold-400); }
.exam-bottombar-btn:disabled { opacity: .35; cursor: not-allowed; }
.exam-bottombar-btn.close { flex: 0 0 auto; padding: 15px 26px; }
.exam-bottombar-group { display: flex; margin-left: auto; }

.exam-navigator-backdrop {
  position: fixed; inset: 0; background: rgba(0,0,0,0.55); z-index: 60; display: none;
}
.exam-navigator-backdrop.open { display: block; }
.exam-navigator-drawer {
  position: fixed; right: 0; top: 0; bottom: 0; width: 320px; max-width: 88vw;
  background: var(--paper-0); border-left: 1px solid var(--border); z-index: 61;
  transform: translateX(100%); transition: transform .25s ease; display: flex; flex-direction: column;
}
.exam-navigator-drawer.open { transform: translateX(0); }

/* ==========================================================
   Landing page
   ========================================================== */
.hero-bg {
  background:
    radial-gradient(1200px 500px at 15% -10%, rgba(212,165,55,0.16), transparent 60%),
    radial-gradient(900px 500px at 100% 0%, rgba(156,134,224,0.10), transparent 55%),
    var(--navy-950);
}
/* Photo hero: classroom image on the right, fading into black behind the copy */
.hero-photo { position: relative; overflow: hidden; background: var(--navy-950); min-height: 640px; }
.hero-photo-img {
  position: absolute; inset: 0 0 0 auto; width: 62%;
  background: url('/assets/img/hero-students.jpg') center right / cover no-repeat;
}
.hero-photo::before { /* left-to-right fade so the headline stays readable */
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(90deg, var(--navy-950) 0%, var(--navy-950) 39%, rgba(5,5,5,.82) 50%, rgba(5,5,5,.25) 66%, rgba(5,5,5,0) 80%),
    linear-gradient(0deg, rgba(5,5,5,.55) 0%, rgba(5,5,5,0) 22%);
}
.hero-photo > .relative { z-index: 3; }
.hero-outline-btn { background: transparent; color: var(--gold-400); border: 1.5px solid var(--gold-400); }
.hero-outline-btn:hover { background: rgba(230,192,100,.1); color: #fff; }
@media (max-width: 1023px) {
  .hero-photo { min-height: 0; }
  .hero-photo-img { width: 100%; opacity: .35; }
  .hero-photo::before { background: linear-gradient(180deg, rgba(5,5,5,.6) 0%, rgba(5,5,5,.85) 100%); }
}

.section-eyebrow { font-size: 12.5px; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase; color: var(--gold-600); }

/* ==========================================================
   Misc utilities
   ========================================================== */
.text-navy { color: var(--navy-900); }
.text-gold { color: var(--gold-600); }
.text-muted { color: var(--ink-500); }
/* "ink" isn't a Tailwind color scale — these are real utility rules (not Tailwind-
   generated) so text-ink-* re-resolves the CSS var locally wherever it's used,
   instead of silently doing nothing and inheriting a stale color from <body>. */
.text-ink-900 { color: var(--ink-900); }
.text-ink-700 { color: var(--ink-700); }
.text-ink-500 { color: var(--ink-500); }
.bg-brand-navy { background: var(--navy-900); }
.divider { height: 1px; background: var(--border); }
.fade-in { animation: fadeIn .35s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 1024px) {
  .sra-sidebar { transform: translateX(-100%); }
  .sra-sidebar.open { transform: translateX(0); box-shadow: var(--shadow-lg); }
  .sra-main { margin-left: 0; }
  .sra-page-content { padding: 18px 16px 90px; }
}

.sra-mobile-tabbar {
  display: none;
  position: fixed; bottom: 0; left: 0; right: 0; background: var(--paper-0); border-top: 1px solid var(--border);
  z-index: 50; padding: 8px 4px calc(8px + env(safe-area-inset-bottom));
  box-shadow: 0 -6px 20px rgba(0,0,0,0.4);
}
.sra-mobile-tabbar a {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px;
  font-size: 10px; color: var(--ink-500); text-decoration: none; font-weight: 600; padding: 4px 0;
}
.sra-mobile-tabbar a.active { color: var(--gold-600); }
.sra-mobile-tabbar a svg { width: 20px; height: 20px; }
@media (max-width: 1024px) {
  .sra-mobile-tabbar { display: flex; }
}

.sidebar-overlay { display: none; position: fixed; inset: 0; background: rgba(6,15,32,0.5); z-index: 39; }
.sidebar-overlay.open { display: block; }

/* ===== CATalyst pricing block (includes/pricing_cards.php) ===== */
.cp { --cp-gold: #e9c46a; --cp-gold-deep: #b8862b; max-width: 1200px; margin: 0 auto; color: #f3efe4; }
.cp-head { text-align: center; margin-bottom: 44px; }
.cp-title { font-family: var(--font-display); font-weight: 700; font-size: clamp(28px, 4.4vw, 50px); line-height: 1.1; color: #fff; }
.cp-title span, .cp-toolkit-title span { background: linear-gradient(180deg, #f6dc94, #c9952f); -webkit-background-clip: text; background-clip: text; color: transparent; }
.cp-sub { font-family: var(--font-display); font-size: clamp(15px, 1.8vw, 20px); color: rgba(255,255,255,.82); margin-top: 10px; }

.cp-grid { display: grid; gap: 22px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .cp-grid { grid-template-columns: repeat(3, 1fr); align-items: stretch; } }

.cp-card { position: relative; border-radius: 18px; border: 1px solid rgba(233,196,106,.28); background-color: #0b0b0d;
  background-repeat: no-repeat; background-size: 100% 100%; box-shadow: 0 24px 50px -24px rgba(0,0,0,.9); }
.cp-card.is-featured { border: 2px solid var(--cp-gold); box-shadow: 0 0 0 1px rgba(233,196,106,.25), 0 0 40px -6px rgba(233,196,106,.35), 0 30px 60px -24px rgba(0,0,0,.9); }
.cp-card-inner { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 40px 28px 30px; height: 100%; }
.cp-badge { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); z-index: 2; white-space: nowrap;
  background: linear-gradient(180deg, #f6dc94, #d4a537); color: #1a1305; font-size: 11.5px; font-weight: 800; letter-spacing: 2px; text-transform: uppercase; padding: 6px 18px; border-radius: 999px; box-shadow: 0 6px 18px -6px rgba(233,196,106,.7); }

/* Scenes: dark mountain silhouettes painted behind each card */
.cp-scene-road { background-image:
  linear-gradient(180deg, rgba(10,10,12,.35) 0%, rgba(10,10,12,.82) 42%, #0b0b0d 70%),
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 600' preserveAspectRatio='none'%3E%3Cdefs%3E%3ClinearGradient id='s' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%23352a17'/%3E%3Cstop offset='1' stop-color='%230b0b0d'/%3E%3C/linearGradient%3E%3C/defs%3E%3Crect width='400' height='600' fill='url(%23s)'/%3E%3Cpath d='M0 140 L60 90 L120 130 L190 70 L260 125 L330 85 L400 120 L400 600 L0 600Z' fill='%231e1913'/%3E%3Cpath d='M0 200 L80 150 L150 190 L230 140 L310 185 L400 160 L400 600 L0 600Z' fill='%23141210'/%3E%3Cpath d='M-10 600 C40 520 120 520 70 440 C30 380 140 360 110 300 C90 260 150 240 140 200' stroke='%23d4a537' stroke-opacity='.55' stroke-width='5' fill='none'/%3E%3Cpath d='M-10 600 C40 520 120 520 70 440 C30 380 140 360 110 300 C90 260 150 240 140 200' stroke='%23f6dc94' stroke-opacity='.5' stroke-width='1.4' fill='none'/%3E%3C/svg%3E"); }
.cp-scene-sunrise { background-image:
  linear-gradient(180deg, rgba(10,10,12,.15) 0%, rgba(10,10,12,.78) 42%, #0b0b0d 70%),
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 600' preserveAspectRatio='none'%3E%3Cdefs%3E%3CradialGradient id='g' cx='.72' cy='.14' r='.5'%3E%3Cstop offset='0' stop-color='%23ffe7a8'/%3E%3Cstop offset='.12' stop-color='%23e3a94a' stop-opacity='.85'/%3E%3Cstop offset='.55' stop-color='%23553a17' stop-opacity='.6'/%3E%3Cstop offset='1' stop-color='%230b0b0d' stop-opacity='0'/%3E%3C/radialGradient%3E%3C/defs%3E%3Crect width='400' height='600' fill='%2318130c'/%3E%3Crect width='400' height='600' fill='url(%23g)'/%3E%3Cpath d='M0 120 L70 70 L140 110 L210 60 L290 100 L360 75 L400 95 L400 600 L0 600Z' fill='%23251c11' fill-opacity='.9'/%3E%3Cpath d='M0 180 L90 130 L170 170 L250 125 L330 165 L400 140 L400 600 L0 600Z' fill='%23110f0c'/%3E%3C/svg%3E"); }
.cp-scene-peak { background-image:
  linear-gradient(180deg, rgba(10,10,12,.2) 0%, rgba(10,10,12,.8) 44%, #0b0b0d 70%),
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 600' preserveAspectRatio='none'%3E%3Crect width='400' height='600' fill='%2316140f'/%3E%3Cpath d='M0 170 L60 120 L120 150 L200 90 L250 130 L330 20 L400 70 L400 600 L0 600Z' fill='%232a2722'/%3E%3Cpath d='M330 20 L400 70 L400 230 L360 160 L345 110Z' fill='%23c48a3a' fill-opacity='.7'/%3E%3Cpath d='M330 20 L345 110 L300 150 L280 120Z' fill='%23e8c27a' fill-opacity='.45'/%3E%3Cpath d='M0 200 L70 150 L150 190 L220 140 L300 185 L400 150 L400 600 L0 600Z' fill='%23121110'/%3E%3C/svg%3E"); }

.cp-icon { color: var(--cp-gold); margin-bottom: 14px; filter: drop-shadow(0 0 10px rgba(233,196,106,.35)); }
.cp-icon svg { stroke-width: 1.4; }
.cp-name { font-family: var(--font-display); font-weight: 700; font-size: clamp(26px, 2.6vw, 34px); color: #fff; line-height: 1.1; }
.cp-name em { font-style: italic; color: var(--cp-gold); }
.cp-tagline { font-family: var(--font-display); font-size: 18px; color: rgba(255,255,255,.88); margin-top: 6px; }
.cp-access { margin: 16px 0 12px; padding: 6px 30px; border: 1.5px solid var(--cp-gold); border-radius: 999px; font-size: 14px; font-weight: 500; color: #fff; background: rgba(0,0,0,.45); }
.cp-price { font-family: var(--font-display); font-weight: 700; font-size: clamp(42px, 4.6vw, 58px); line-height: 1; background: linear-gradient(180deg, #fbe6a6 10%, #d29d3a 90%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.cp-usd { font-family: var(--font-display); font-weight: 700; font-size: 20px; color: var(--cp-gold); margin-top: 6px; }
.cp-once { font-size: 13.5px; font-weight: 500; letter-spacing: .3px; color: rgba(255,255,255,.9); margin-top: 4px; }
.cp-desc { font-family: var(--font-display); font-size: 17px; line-height: 1.45; color: rgba(255,255,255,.85); margin: 12px 0 18px; max-width: 300px; }
.cp-steps { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 6px; padding-top: 16px; margin-top: auto; border-top: 1px solid rgba(233,196,106,.45);
  font-family: var(--font-display); font-size: 16px; color: var(--cp-gold); }
.cp-arrow { color: var(--cp-gold); opacity: .8; }
.cp-btn { margin-top: 20px; width: 80%; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 20px; border-radius: 999px;
  border: 1.5px solid var(--cp-gold); color: #fff; font-family: var(--font-display); font-size: 19px; font-weight: 600; background: rgba(0,0,0,.4); transition: all .2s ease; }
.cp-btn:hover { background: rgba(233,196,106,.12); box-shadow: 0 0 22px -6px rgba(233,196,106,.6); }
.cp-card.is-featured .cp-btn { border-color: transparent; color: #1a1305; background: linear-gradient(180deg, #f6dc94, #d4a537); box-shadow: 0 10px 24px -10px rgba(233,196,106,.8); }
.cp-card.is-featured .cp-btn:hover { filter: brightness(1.06); }
.cp-btn[disabled] { opacity: .6; cursor: default; }

.cp-toolkit { margin-top: 26px; padding: 26px 22px; border-radius: 18px; border: 1px solid rgba(233,196,106,.28); background: linear-gradient(180deg, #121214, #0b0b0d); }
.cp-toolkit-title { text-align: center; font-family: var(--font-display); font-weight: 700; font-size: clamp(20px, 2.6vw, 32px); color: #fff; margin-bottom: 22px; }
.cp-toolkit-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px 8px; }
@media (min-width: 640px) { .cp-toolkit-row { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1024px) { .cp-toolkit-row { grid-template-columns: repeat(7, 1fr); }
  .cp-tool + .cp-tool { border-left: 1px solid rgba(233,196,106,.22); } }
.cp-tool { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; color: var(--cp-gold); }
.cp-tool svg { stroke-width: 1.4; }
.cp-tool span { font-family: var(--font-display); font-size: 16px; line-height: 1.3; color: rgba(255,255,255,.88); }

.cp-foot { text-align: center; margin-top: 36px; }
.cp-foot-mark { position: relative; display: inline-block; font-family: var(--font-display); font-weight: 700; font-size: clamp(40px, 5vw, 64px); line-height: 1;
  background: linear-gradient(180deg, #fff3cf 0%, #e9c46a 55%, #b8862b 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.cp-foot-mark::before, .cp-foot-mark::after { content: ''; position: absolute; top: 55%; width: min(140px, 18vw); height: 1px; }
.cp-foot-mark::before { right: calc(100% + 18px); background: linear-gradient(90deg, transparent, var(--cp-gold)); }
.cp-foot-mark::after { left: calc(100% + 18px); background: linear-gradient(90deg, var(--cp-gold), transparent); }
.cp-foot-line { font-family: var(--font-display); font-size: 22px; color: #fff; margin-top: 8px; }
.cp-foot-small { font-size: 13px; letter-spacing: .8px; color: rgba(255,255,255,.75); margin-top: 6px; }
.cp-foot-motto { font-family: var(--font-display); font-weight: 600; font-size: clamp(17px, 2.2vw, 24px); color: var(--cp-gold); margin-top: 8px; }

/* ---------- Explanation panel (includes/explanation.php) ---------- */
.xp-section { margin-bottom: 20px; }
.xp-text { font-size: 13.5px; line-height: 1.65; color: var(--ink-700); white-space: pre-line; margin: 0; }

.xp-card {
  border-radius: 14px; padding: 14px 16px 15px; position: relative; overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.xp-correct {
  background: linear-gradient(135deg, rgba(52,192,122,0.13), rgba(52,192,122,0.04));
  border: 1px solid rgba(47,168,107,0.30);
}
.xp-correct::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--success-500);
}
.xp-card-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 9px; }
.xp-head-icon {
  width: 22px; height: 22px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center;
  background: var(--success-500); color: #fff;
}
.xp-head-title { font-size: 13px; font-weight: 700; color: var(--success-600); letter-spacing: .2px; }
.xp-badges { display: flex; gap: 5px; margin-left: auto; flex-wrap: wrap; }

.xp-badge {
  width: 26px; height: 26px; border-radius: 8px; flex: 0 0 auto;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 12.5px; font-weight: 800; color: var(--success-600);
  background: var(--paper-0); border: 1.5px solid rgba(47,168,107,0.45);
}
.xp-badge.is-picked { background: var(--success-500); border-color: var(--success-500); color: #fff; }
.xp-badge-wrong { color: var(--danger-600); border-color: rgba(228,87,106,0.40); background: var(--paper-0); }

.xp-subhead {
  font-size: 11px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; color: var(--ink-500);
  margin: 20px 0 10px; display: flex; align-items: center; gap: 10px;
}
.xp-subhead::after { content: ""; flex: 1; height: 1px; background: var(--border); }

.xp-list { display: flex; flex-direction: column; gap: 8px; }
.xp-row {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 12px 14px; border-radius: 12px;
  background: var(--paper-100); border: 1px solid var(--border);
  transition: border-color .15s, transform .15s;
}
.xp-row:hover { border-color: rgba(228,87,106,0.35); transform: translateX(2px); }
.xp-row.is-picked { background: var(--danger-100); border-color: rgba(228,87,106,0.45); }
.xp-row.is-picked .xp-badge-wrong { background: var(--danger-500); border-color: var(--danger-500); color: #fff; }
.xp-row .xp-text { font-size: 13px; }
.xp-tag {
  display: inline-block; font-size: 10px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase;
  color: var(--danger-600); margin-bottom: 3px;
}

.xp-pearl {
  position: relative; border-radius: 16px; padding: 16px 18px 17px; overflow: hidden;
  background: linear-gradient(140deg, var(--gold-100), var(--gold-50) 55%, var(--purple-100));
  border: 1px solid rgba(37,99,235,0.22); box-shadow: var(--shadow-md);
}
.xp-pearl::after {
  content: ""; position: absolute; right: -40px; top: -40px; width: 120px; height: 120px; border-radius: 999px;
  background: radial-gradient(circle, var(--gold-100), transparent 70%); pointer-events: none;
}
.xp-pearl-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.xp-pearl-icon {
  width: 32px; height: 32px; border-radius: 10px; flex: 0 0 auto;
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--gold-500), var(--purple-500)); color: #fff;
  box-shadow: 0 4px 12px -4px var(--gold-500);
}
.xp-pearl-kicker { font-size: 10px; font-weight: 700; letter-spacing: .7px; text-transform: uppercase; color: var(--ink-500); }
.xp-pearl-title { font-size: 14px; font-weight: 800; color: var(--gold-600); }
.xp-pearl-text { color: var(--ink-900); font-weight: 500; position: relative; }

/* ==========================================================
   CATalyst product page (catalyst.php)
   ========================================================== */
.cx-hero {
  background:
    radial-gradient(900px 480px at 85% 30%, rgba(212,165,55,0.13), transparent 60%),
    radial-gradient(700px 400px at 0% 0%, rgba(212,165,55,0.08), transparent 60%),
    var(--navy-950);
}
.cx-band { background: linear-gradient(180deg, #0e0d0a 0%, #0a0a0c 100%); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.cx-dark { background: var(--navy-950); }
.cx-wordmark { font-family: var(--font-display); font-weight: 600; font-size: clamp(56px, 8vw, 92px); line-height: 1; color: #fff; margin-top: 14px; letter-spacing: -1px; }
.cx-wordmark sup { font-size: .28em; top: -1.9em; margin-left: 4px; color: var(--gold-400); }
.cx-h2 { font-family: var(--font-display); font-weight: 600; font-size: clamp(26px, 3.4vw, 36px); line-height: 1.15; color: #fff; }

/* Toolkit columns */
.cx-toolkit { gap: 0; }
.cx-tool-col { padding: 8px 36px; }
.cx-tool-col + .cx-tool-col { border-left: 1px solid rgba(230,192,100,.22); }
.cx-tool-col li svg { color: var(--gold-400); }
.cx-tool-icon { width: 56px; height: 56px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: var(--gold-50); color: var(--gold-400); border: 1px solid rgba(230,192,100,.3); }
@media (max-width: 767px) {
  .cx-tool-col { padding: 22px 4px; }
  .cx-tool-col + .cx-tool-col { border-left: 0; border-top: 1px solid rgba(230,192,100,.22); }
}

/* Laptop frame around the hero screen */
.cx-laptop { position: relative; padding: 14px 14px 0; background: #1c1c20; border-radius: 18px 18px 0 0; border: 1px solid rgba(255,255,255,.12); box-shadow: 0 40px 80px -30px rgba(212,165,55,.25), var(--shadow-lg); }
.cx-laptop-base { position: absolute; left: -6%; right: -6%; bottom: -14px; height: 14px; border-radius: 0 0 14px 14px; background: linear-gradient(180deg, #3a3a40, #1a1a1d); }

/* Callouts with gold rule */
.cx-callout { border-left: 3px solid var(--gold-400); padding-left: 24px; }

/* FAQ list */
.cx-faq { border: 1px solid var(--border); border-radius: 14px; overflow: hidden; background: #111114; }
.cx-faq-item + .cx-faq-item { border-top: 1px solid var(--border); }
.cx-faq-item summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 17px 22px; font-size: 15px; font-weight: 500; color: #fff; }
.cx-faq-item summary::-webkit-details-marker { display: none; }
.cx-faq-item summary svg { color: var(--ink-500); flex-shrink: 0; }
.cx-faq-item p { padding: 0 22px 18px; font-size: 14px; line-height: 1.6; color: var(--ink-700); }
.cx-laptop-shot { display: block; width: 100%; height: auto; border-radius: 8px 8px 0 0; }

/* Mini replicas of the real app screens (catalyst.php). Colors mirror .exam-shell (blue NCLEX
   theme) and the black/gold dashboard so the previews look like the actual application. */
.cxa-exam { --b9:#0B3D91; --b5:#2563eb; --line:#d7e2ef; --ink:#101a2c; --ink7:#3d4b5e;
  border-radius: 12px; overflow: hidden; background: #eef3fb; color: var(--ink7); font-size: 11.5px; box-shadow: var(--shadow-lg); border: 1px solid rgba(255,255,255,.12); }
.cxa-exam-head { display: flex; align-items: center; gap: 10px; background: var(--b9); color: #fff; padding: 10px 14px; }
.cxa-exam-head img { width: 22px; height: 22px; border-radius: 50%; }
.cxa-exam-title { display: flex; flex-direction: column; line-height: 1.25; }
.cxa-exam-title b { font-size: 10.5px; letter-spacing: .4px; }
.cxa-exam-title span { font-size: 9.5px; color: rgba(255,255,255,.55); }
.cxa-exam-prog { flex: 1; height: 4px; border-radius: 4px; background: rgba(255,255,255,.15); margin: 0 10px; }
.cxa-exam-prog i { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, var(--b5), #4f8ef0); }
.cxa-pill { font-size: 9.5px; font-weight: 600; color: #4f8ef0; border: 1px solid rgba(79,142,240,.45); border-radius: 20px; padding: 2px 9px; }
.cxa-exam-tools { display: flex; gap: 16px; padding: 7px 14px; background: rgba(37,99,235,.06); border-bottom: 1px solid var(--line); font-weight: 700; color: #14488f; font-size: 10.5px; }
.cxa-exam-tools span { display: inline-flex; align-items: center; gap: 5px; }
.cxa-exam-body { display: grid; grid-template-columns: 1.45fr 1fr; }
.cxa-exam-q { padding: 14px 16px 16px; }
.cxa-qnum { font-weight: 700; color: var(--ink); font-size: 11px; margin-bottom: 6px; }
.cxa-stem { color: var(--ink); font-size: 12.5px; line-height: 1.5; margin-bottom: 10px; }
.cxa-opt { display: flex; align-items: center; gap: 7px; padding: 7px 10px; margin-bottom: 6px; border: 1.5px solid var(--line); border-radius: 7px; background: #f5f8fc; color: var(--ink); line-height: 1.35; }
.cxa-opt b { font-weight: 700; }
.cxa-box { width: 11px; height: 11px; border-radius: 3px; border: 1.5px solid #b7c3d3; background: #fff; flex-shrink: 0; }
.cxa-opt.correct { border-color: #2fa86b; background: rgba(52,192,122,.14); }
.cxa-opt.correct .cxa-box { background: #b7c3d3; border-color: #b7c3d3; }
.cxa-opt em { margin-left: auto; flex-shrink: 0; font-style: normal; font-size: 9.5px; font-weight: 700; color: #2fa86b; background: rgba(52,192,122,.16); border-radius: 20px; padding: 2px 7px; display: inline-flex; align-items: center; gap: 3px; }
.cxa-exam-explain { background: #fff; border-left: 1px solid var(--line); padding: 14px; }
.cxa-explain-h { font-family: var(--font-display); font-size: 15px; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.cxa-explain-tag { display: flex; align-items: center; gap: 5px; font-size: 9.5px; font-weight: 700; letter-spacing: .5px; color: var(--b5); margin-bottom: 8px; }
.cxa-explain-box { border: 1px solid rgba(47,168,107,.3); border-left: 3px solid #34c07a; border-radius: 8px; background: rgba(52,192,122,.07); padding: 9px 10px; }
.cxa-explain-ok { display: flex; align-items: center; gap: 6px; font-weight: 700; color: #2fa86b; font-size: 11px; margin-bottom: 6px; }
.cxa-explain-ok > span { width: 15px; height: 15px; border-radius: 50%; background: #34c07a; color: #fff; display: flex; align-items: center; justify-content: center; }
.cxa-explain-ok i { margin-left: auto; font-style: normal; width: 18px; height: 18px; border-radius: 5px; background: #34c07a; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 10px; }
.cxa-explain-box p { color: var(--ink7); line-height: 1.55; font-size: 10.5px; }
.cxa-exam-foot { display: flex; align-items: center; background: var(--b9); color: #dfe6f0; font-weight: 600; font-size: 10.5px; }
.cxa-exam-foot span { padding: 9px 14px; display: inline-flex; align-items: center; gap: 5px; }
.cxa-exam-foot span:first-child { border-right: 1px solid rgba(255,255,255,.08); }
.cxa-exam-foot .is-next { background: var(--b5); color: #fff; }

.cxa-dash { display: grid; grid-template-columns: 128px 1fr; border-radius: 12px; overflow: hidden; border: 1px solid rgba(255,255,255,.1); box-shadow: var(--shadow-lg); background: var(--paper-50); font-size: 10.5px; }
.cxa-dash-side { background: linear-gradient(180deg, var(--navy-900) 0%, var(--navy-950) 100%); border-right: 1px solid var(--border); padding: 12px 7px; display: flex; flex-direction: column; gap: 2px; }
.cxa-dash-side > span { display: flex; align-items: center; gap: 6px; padding: 6px 8px; border-radius: 7px; color: var(--ink-700); }
.cxa-dash-side > span.is-on { background: rgba(212,165,55,.16); color: #fff; }
.cxa-dash-side > span.is-on svg { color: var(--gold-400); }
.cxa-dash-brand { display: flex; align-items: center; gap: 6px; padding: 0 4px 8px; }
.cxa-dash-brand img { width: 20px; height: 20px; border-radius: 50%; }
.cxa-dash-brand span { color: #fff; font-weight: 700; font-size: 10px; line-height: 1.15; }
.cxa-dash-brand small { display: block; color: var(--gold-400); font-weight: 600; font-size: 8px; letter-spacing: .6px; text-transform: uppercase; }
.cxa-dash-sec { font-size: 8.5px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; color: var(--ink-500); padding: 8px 8px 3px; }
.cxa-dash-main { padding: 14px 16px; }
.cxa-dash-title { font-family: var(--font-display); font-size: 16px; font-weight: 600; color: #fff; margin-bottom: 10px; }
.cxa-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 10px; }
.cxa-stats div { background: var(--paper-0); border: 1px solid var(--border); border-radius: 10px; padding: 9px 10px; }
.cxa-stats small { display: block; color: var(--ink-500); font-weight: 600; font-size: 9px; }
.cxa-stats b { display: block; font-family: var(--font-display); font-size: 18px; color: var(--ink-900); margin-top: 3px; }
.cxa-stats b.gold { color: var(--gold-600); }
.cxa-table { background: var(--paper-0); border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.cxa-table-h { font-family: var(--font-display); font-size: 12.5px; color: #fff; padding: 8px 11px; border-bottom: 1px solid var(--border); }
.cxa-tr { display: grid; grid-template-columns: 1.6fr .8fr .8fr .7fr; padding: 6px 11px; border-bottom: 1px solid var(--border); color: var(--ink-700); align-items: center; }
.cxa-tr:last-child { border-bottom: 0; }
.cxa-tr span:first-child { color: #fff; font-weight: 600; }
.cxa-tr span:not(:first-child) { text-align: right; }
.cxa-th { font-size: 8.5px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; color: var(--ink-500); }
.cxa-th span:first-child { color: var(--ink-500) !important; }
.cxa-acc { font-style: normal; font-weight: 700; font-size: 9.5px; border-radius: 20px; padding: 1px 7px; }
.cxa-acc.ok { color: var(--success-500); background: var(--success-100); }
.cxa-acc.mid { color: var(--gold-400); background: var(--gold-100); }
.cxa-acc.low { color: var(--danger-500); background: var(--danger-100); }
@media (max-width: 560px) {
  .cxa-exam-body { grid-template-columns: 1fr; } .cxa-exam-explain { border-left: 0; border-top: 1px solid #d7e2ef; }
  .cxa-dash { grid-template-columns: 1fr; } .cxa-dash-side { display: none; }
}
.cx-caption { font-size: 12px; color: var(--ink-500); margin-top: 10px; }

/* ==========================================================
   My Notes (notes.php)
   ========================================================== */
.nb { max-width: 1280px; }
.nb-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.nb-grid { display: grid; grid-template-columns: 1fr; gap: 18px; }
@media (min-width: 1024px) { .nb-grid { grid-template-columns: 380px minmax(0, 1fr); } }
.nb-list, .nb-editor { background: var(--paper-0); border: 1px solid var(--border); border-radius: var(--radius-lg); }
.nb-list { padding: 16px; display: flex; flex-direction: column; min-height: 560px; }
.nb-search { display: flex; align-items: center; gap: 10px; border: 1px solid var(--border); border-radius: 12px; padding: 0 14px; background: var(--paper-50); color: var(--ink-500); }
.nb-search input { flex: 1; background: transparent; border: 0; outline: 0; color: var(--ink-900); padding: 12px 0; font-size: 14px; }
.nb-search:focus-within { border-color: var(--gold-500); }
.nb-filters { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 10px 0 14px; }
.nb-filters .field-input { font-size: 13px; padding-top: 10px; padding-bottom: 10px; }
.nb-items { display: flex; flex-direction: column; gap: 10px; flex: 1; overflow-y: auto; max-height: 620px; }
.nb-item { text-align: left; border: 1px solid var(--border); border-radius: 14px; padding: 14px 16px; background: var(--paper-50); display: flex; flex-direction: column; gap: 8px; transition: border-color .15s, background .15s; }
.nb-item:hover { border-color: rgba(230,192,100,.4); }
.nb-item.is-on { border: 2px solid var(--gold-400); background: linear-gradient(180deg, rgba(212,165,55,.12), rgba(212,165,55,.03)); padding: 13px 15px; }
.nb-item-top { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.nb-item-top b { font-family: var(--font-display); font-weight: 600; font-size: 17px; color: #fff; line-height: 1.25; }
.nb-item-top small { color: var(--ink-500); font-size: 12px; white-space: nowrap; }
.nb-item-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.nb-item-tags:empty { display: none; }
.nb-item-tags i, .nb-chip { font-style: normal; font-size: 12px; font-weight: 500; padding: 4px 11px; border-radius: 20px; background: rgba(255,255,255,.07); color: var(--ink-700); }
.nb-item-tags i.gold, .nb-chip-gold { background: var(--gold-100); color: var(--gold-400); }
.nb-item-snip { color: var(--ink-700); font-size: 13px; line-height: 1.45; }
.nb-item-snip em { color: var(--ink-500); }
.nb-none { color: var(--ink-500); font-size: 13.5px; text-align: center; padding: 30px 10px; }
.nb-count { border-top: 1px solid var(--border); margin-top: 12px; padding-top: 12px; font-size: 12.5px; color: var(--ink-500); }

.nb-editor { min-height: 560px; display: flex; flex-direction: column; overflow: hidden; }
.nb-empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; color: var(--ink-500); padding: 40px; }
.nb-ed-top { display: flex; align-items: center; gap: 14px; padding: 22px 26px 8px; }
.nb-title { flex: 1; min-width: 0; background: transparent; border: 0; outline: 0; font-family: var(--font-display); font-weight: 600; font-size: clamp(22px, 2.6vw, 32px); color: #fff; }
.nb-title::placeholder { color: var(--ink-500); }
.nb-saved { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--ink-500); white-space: nowrap; }
.nb-saved svg { color: var(--success-500); }
.nb-saved[data-state="saving"] svg, .nb-saved[data-state="pending"] svg { color: var(--ink-500); }
.nb-saved[data-state="error"] { color: var(--danger-500); }
.nb-saved[data-state="error"] svg { color: var(--danger-500); }
.nb-more { color: var(--ink-700); padding: 6px; border-radius: 8px; }
.nb-more:hover { background: rgba(255,255,255,.06); color: #fff; }
.nb-menu { position: absolute; right: 0; top: 36px; z-index: 30; background: var(--paper-100); border: 1px solid var(--border); border-radius: 10px; padding: 5px; min-width: 160px; box-shadow: var(--shadow-lg); }
.nb-menu button { display: flex; align-items: center; gap: 8px; width: 100%; padding: 8px 10px; border-radius: 7px; font-size: 13px; color: var(--danger-500); }
.nb-menu button:hover { background: var(--danger-100); }
.nb-tags { display: flex; flex-wrap: wrap; gap: 8px; padding: 4px 26px 16px; border-bottom: 1px solid var(--border); }
.nb-chip { border: 0; outline: 0; cursor: pointer; appearance: none; -webkit-appearance: none; padding-right: 12px; font-size: 12.5px; field-sizing: content; max-width: 100%; }
.nb-chip option { background: var(--paper-0); color: var(--ink-900); }
.nb-toolbar { display: flex; align-items: center; gap: 4px; padding: 8px 20px; border-bottom: 1px solid var(--border); }
.nb-toolbar button { width: 36px; height: 34px; border-radius: 8px; color: var(--ink-700); display: inline-flex; align-items: center; justify-content: center; font-size: 16px; }
.nb-toolbar button:hover { background: rgba(255,255,255,.07); color: #fff; }
.nb-toolbar span { width: 1px; height: 20px; background: var(--border); margin: 0 6px; }
.nb-body { flex: 1; min-height: 320px; padding: 22px 28px; outline: 0; color: var(--ink-900); font-size: 15.5px; line-height: 1.7; overflow-y: auto; }
.nb-body:empty::before { content: attr(data-placeholder); color: var(--ink-500); }
.nb-body h3 { font-family: var(--font-display); font-weight: 600; font-size: 22px; color: #fff; margin: 16px 0 8px; }
.nb-body h3:first-child { margin-top: 0; }
.nb-body ul { list-style: disc; padding-left: 24px; margin: 6px 0 12px; }
.nb-body ol { list-style: decimal; padding-left: 24px; margin: 6px 0 12px; }
.nb-body li { margin: 4px 0; }
.nb-body a { color: var(--gold-400); text-decoration: underline; }
.nb-ed-foot { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; border-top: 1px solid var(--border); padding: 14px 26px; font-size: 13px; color: var(--ink-700); }
.nb-ed-foot em { font-style: normal; color: var(--ink-500); padding-left: 12px; border-left: 1px solid var(--border); }
.nb-ed-foot a { margin-left: auto; color: var(--gold-400); font-weight: 600; }
.nb-hint { display: flex; align-items: center; justify-content: center; gap: 8px; color: var(--ink-500); font-size: 12.5px; margin-top: 16px; text-align: center; }

/* ==========================================================
   Performance (performance.php)
   ========================================================== */
.pf { max-width: 1280px; }
.pf-bar { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-bottom: 1px solid var(--border); margin: 26px 0 22px; }
.pf-tabs { display: flex; gap: 6px; }
.pf-tabs a { padding: 10px 18px 12px; font-size: 15px; font-weight: 500; color: var(--ink-700); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.pf-tabs a:hover { color: #fff; }
.pf-tabs a.is-on { color: var(--gold-400); border-color: var(--gold-400); }
.pf-range { margin-bottom: 10px; }
.pf-range .field-input { min-width: 180px; font-size: 13.5px; padding-top: 9px; padding-bottom: 9px; }
.pf-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; margin-bottom: 18px; }
.pf-kpi { display: flex; gap: 16px; align-items: center; background: var(--paper-0); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 20px; }
.pf-kpi small { display: block; font-size: 13px; color: var(--ink-700); }
.pf-kpi b { display: block; font-family: var(--font-display); font-size: 30px; font-weight: 600; color: #fff; line-height: 1.15; margin: 4px 0 2px; }
.pf-kpi em { font-style: normal; font-size: 12.5px; color: var(--ink-500); }
.pf-ic { width: 52px; height: 52px; border-radius: 50%; flex-shrink: 0; display: flex; align-items: center; justify-content: center; background: var(--gold-50); border: 1px solid rgba(230,192,100,.22); color: var(--gold-400); }
.pf-ic-lg { width: 60px; height: 60px; }
.pf-mid { display: grid; grid-template-columns: 1fr; gap: 18px; margin-bottom: 18px; }
@media (min-width: 1024px) { .pf-mid { grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); } }
.pf-card { background: var(--paper-0); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 22px 24px; }
.pf-card-h { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding-bottom: 14px; margin-bottom: 4px; border-bottom: 1px solid var(--border); }
.pf-card-h h2 { font-family: var(--font-display); font-size: 22px; font-weight: 600; color: #fff; }
.pf-tag { font-size: 12px; color: var(--ink-700); background: rgba(255,255,255,.06); border-radius: 20px; padding: 4px 11px; }
.pf-table { font-size: 14.5px; }
.pf-tr { display: grid; grid-template-columns: 1.6fr 1fr .6fr; gap: 12px; padding: 11px 4px; border-bottom: 1px solid var(--border); color: #fff; align-items: center; }
.pf-tr:last-child { border-bottom: 0; }
.pf-tr4 { grid-template-columns: 1.6fr 1fr .8fr .6fr; }
.pf-th { color: var(--ink-700); font-size: 13px; padding-top: 14px; }
.pf-link { display: inline-flex; align-items: center; gap: 4px; color: var(--gold-400); font-weight: 500; }
.pf-link:hover { color: #fff; }
.pf-empty { color: var(--ink-500); font-size: 14px; padding: 22px 4px; }
.pf-focus .pf-card-h { margin-bottom: 18px; }
@media (max-width: 640px) {
  .pf-tr, .pf-tr4 { grid-template-columns: 1.4fr 1fr .7fr; font-size: 13px; }
  .pf-tr4 > span:nth-child(2) { display: none; }
}
