:root {
  /* Near-black (headings, nav, neutral buttons) — replaces the old pine ramp */
  --navy-950: #0a0d0c;
  --navy-900: #14181a;
  --navy-800: #262b2d;
  --navy-700: #3a4042;
  --navy-600: #565c5e;

  /* Teal (the one accent color — links, primary CTAs, correct-answer state) — replaces the old amber ramp */
  --gold-600: #175447;
  --gold-500: #1f6f5c;
  --gold-400: #3f8a76;
  --gold-300: #7bb0a1;
  --gold-100: #e3efec;

  --paper: #ffffff;
  --surface: #ffffff;
  --surface-2: #f0eee9;
  --border: #e3e1da;

  --ink: #14181a;
  --ink-soft: #55595c;
  --ink-faint: #8b8f8d;

  --green: #1f6f5c;
  --green-bg: #e3efec;
  --amber: #a3812f;
  --amber-bg: #f2ecd9;
  --red: #af4234;
  --red-bg: #f5e6e2;

  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(20, 24, 26, 0.06), 0 8px 24px rgba(20, 24, 26, 0.06);
  --shadow-lift: 0 4px 10px rgba(20, 24, 26, 0.08), 0 16px 36px rgba(20, 24, 26, 0.1);
}

* { box-sizing: border-box; }
.hidden { display: none !important; }

html, body { height: 100%; }

body {
  margin: 0;
  font-family: "IBM Plex Sans", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  background: var(--paper);
  color: var(--ink);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
}

h1, h2, h3, .brand-word {
  font-family: "Source Serif 4", Georgia, "Times New Roman", serif;
  line-height: 1.2;
  color: var(--navy-900);
  margin: 0 0 0.4em;
}

a { color: var(--navy-700); text-decoration: none; }
a:hover { color: var(--gold-600); }

.container {
  max-width: none;
  margin: 0 auto;
  padding: 0 32px;
}

.container.wide {
  max-width: none;
  padding: 0 40px;
}

/* ---------- Nav ---------- */

nav.topnav {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 24px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 0 rgba(22, 33, 31, 0.03);
}

nav.topnav .brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy-900);
  letter-spacing: 0.01em;
}

nav.topnav .brand img.logo-mark {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 2px var(--gold-400);
}

nav.topnav .nav-links {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  gap: 22px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

nav.topnav .nav-user {
  display: flex;
  gap: 22px;
  align-items: center;
  flex-wrap: wrap;
  margin-left: auto;
}

nav.topnav .nav-links a,
nav.topnav .nav-user a {
  color: var(--ink-soft);
  font-weight: 600;
  font-size: 0.92rem;
}
nav.topnav .nav-links a:hover,
nav.topnav .nav-user a:hover { color: var(--navy-900); }

nav.topnav .nav-user span.email {
  color: var(--ink-faint);
  font-size: 0.85rem;
}

/* .nav-menu just groups nav-links + nav-user for the mobile toggle;
   on desktop it stays out of the way of their existing layout. */
nav.topnav .nav-menu { display: contents; }

nav.topnav .nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--navy-900);
  cursor: pointer;
}
nav.topnav .nav-toggle svg { width: 20px; height: 20px; }

@media (max-width: 720px) {
  nav.topnav {
    flex-wrap: wrap;
  }
  nav.topnav .nav-toggle {
    display: flex;
    margin-left: auto;
  }
  nav.topnav .nav-menu {
    display: none;
    width: 100%;
    order: 3;
    flex-direction: column;
    gap: 14px;
    padding-top: 14px;
    margin-top: 10px;
    border-top: 1px solid var(--border);
  }
  nav.topnav .nav-menu.open { display: flex; }
  nav.topnav .nav-links {
    position: static;
    left: auto;
    top: auto;
    transform: none;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
  nav.topnav .nav-user {
    margin-left: 0;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
}

main { padding: 40px 0 72px; flex: 1 0 auto; width: 100%; }

/* ---------- Hero ---------- */

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
  padding: 56px 40px 64px;
  border-radius: 24px;
  position: relative;
  overflow: hidden;
  background-color: var(--surface-2);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='120' viewBox='0 0 240 120'%3E%3Cpath d='M0 66 L70 66 L82 30 L96 96 L108 46 L118 66 L240 66' fill='none' stroke='%231f6f5c' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round' opacity='0.10'/%3E%3Ccircle cx='30' cy='20' r='2' fill='%231f6f5c' opacity='0.12'/%3E%3Ccircle cx='190' cy='95' r='2' fill='%231f6f5c' opacity='0.12'/%3E%3Ccircle cx='160' cy='18' r='1.4' fill='%231f6f5c' opacity='0.12'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 240px 120px;
  animation: hero-ekg-scroll 9s linear infinite;
}

.hero-grid::before,
.hero-grid::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  border-radius: inherit;
}
.hero-grid::before {
  background: radial-gradient(circle at 88% 12%, rgba(31, 111, 92, 0.16) 0%, transparent 45%);
  animation: hero-pulse-glow 3.6s ease-in-out infinite;
}
.hero-grid::after {
  background: radial-gradient(circle at 6% 92%, rgba(31, 111, 92, 0.13) 0%, transparent 40%);
  animation: hero-pulse-glow 3.6s ease-in-out infinite;
  animation-delay: 0.4s;
}
.hero-grid > * { position: relative; z-index: 1; }

@keyframes hero-ekg-scroll {
  from { background-position: 0 0; }
  to { background-position: -240px 0; }
}

@keyframes hero-pulse-glow {
  0% { opacity: 0.4; transform: scale(1); }
  8% { opacity: 0.95; transform: scale(1.08); }
  16% { opacity: 0.5; transform: scale(1); }
  26% { opacity: 0.8; transform: scale(1.04); }
  38% { opacity: 0.4; transform: scale(1); }
  100% { opacity: 0.4; transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-grid, .hero-grid::before, .hero-grid::after { animation: none; }
  .hero-panel { transition: none; }
}

.eyebrow-plain {
  color: var(--navy-800);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 14px;
}
.hero-copy h1 { font-size: 2.5rem; max-width: 560px; margin-bottom: 16px; }
.hero-copy .lede { font-size: 1.1rem; color: var(--ink-soft); max-width: 480px; margin-bottom: 28px; }

.hero-ctas { display: flex; gap: 14px; margin-bottom: 34px; flex-wrap: wrap; }

.hero-stats { display: flex; gap: 32px; flex-wrap: wrap; }
.hero-stat b {
  display: block;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 1.6rem;
  color: var(--navy-900);
}
.hero-stat span { font-size: 0.85rem; color: var(--ink-soft); }

.hero-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 4px solid var(--gold-500);
  border-radius: 16px;
  box-shadow: var(--shadow-lift);
  padding: 26px;
  transition: transform 0.2s ease-out;
  will-change: transform;
}
.hero-panel .quiz-stem { font-size: 1.05rem; }
.hero-panel .quiz-choices { gap: 8px; }
.hero-panel .quiz-choice { cursor: default; padding: 11px 14px; }
.hero-panel .quiz-choice:hover { border-color: var(--border); background: var(--surface); }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; padding: 32px 22px 40px; border-radius: 18px; }
}

/* ---------- Auth split screen ---------- */

.auth-shell {
  flex: 1 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  min-height: 0;
}

.auth-brand-panel {
  background: linear-gradient(160deg, var(--navy-950), var(--navy-800) 55%, var(--navy-700));
  color: var(--gold-100);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 64px;
  position: relative;
  overflow: hidden;
}
.auth-brand-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 15%, rgba(31, 111, 92, 0.28), transparent 55%),
              radial-gradient(circle at 10% 90%, rgba(31, 111, 92, 0.16), transparent 45%);
  pointer-events: none;
}
.auth-brand-panel .auth-logo {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 3px var(--gold-400), 0 0 0 8px rgba(31, 111, 92, 0.15);
  margin-bottom: 28px;
  position: relative;
}
.auth-brand-panel h1 {
  color: #fff;
  font-size: 2.1rem;
  margin-bottom: 14px;
  position: relative;
}
.auth-brand-panel p.lead {
  color: var(--gold-100);
  opacity: 0.85;
  max-width: 380px;
  margin: 0 0 32px;
  position: relative;
  font-size: 1rem;
}
.auth-perks {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
}
.auth-perks li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.92rem;
  color: var(--gold-100);
}
.auth-perks li .dot {
  width: 22px;
  height: 22px;
  min-width: 22px;
  border-radius: 50%;
  background: rgba(31, 111, 92, 0.18);
  border: 1px solid var(--gold-400);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  color: var(--gold-300);
}

.auth-form-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
  background: var(--paper);
}
.auth-form-panel .auth-card {
  width: 100%;
  max-width: 380px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 4px solid var(--gold-500);
  border-radius: var(--radius);
  padding: 36px 32px;
  box-shadow: var(--shadow-lift);
}
.auth-form-panel .auth-card h2 { margin-bottom: 22px; }
.auth-form-panel form.stacked { max-width: none; }

@media (max-width: 860px) {
  .auth-shell { grid-template-columns: 1fr; }
  .auth-brand-panel { padding: 40px 28px; text-align: center; align-items: center; }
  .auth-brand-panel p.lead { margin-left: auto; margin-right: auto; }
  .auth-perks { display: none; }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  border: none;
  background: var(--navy-900);
  color: #fff;
  font-size: 0.92rem;
  cursor: pointer;
  font-weight: 600;
  font-family: inherit;
  transition: background 0.15s ease, transform 0.05s ease;
}
.btn:hover { background: var(--navy-700); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn.secondary { background: var(--surface); color: var(--navy-800); border: 1px solid var(--border); }
.btn.secondary:hover { background: var(--surface-2); }
.btn.danger { background: var(--red); }
.btn.danger:hover { background: #9c3a32; }
.btn.gold { background: var(--gold-500); color: var(--navy-950); }
.btn.gold:hover { background: var(--gold-400); }
.btn.small { padding: 7px 14px; font-size: 0.84rem; }
.btn.block { display: block; width: 100%; text-align: center; }

/* ---------- Cards ---------- */

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
}

/* A table wider than its card (common on narrow screens) scrolls within
   the card instead of overflowing past its rounded border or the page. */
.card:has(table) {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 22px;
}

.bank-card {
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
  border-top: 3px solid var(--gold-500);
  transition: box-shadow 0.18s ease, transform 0.18s ease;
}
.bank-card:hover { box-shadow: var(--shadow-lift); transform: translateY(-3px); }

.bank-card .cover-wrap {
  position: relative;
  background: var(--surface-2);
}

.bank-card .cover {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
  background: var(--surface-2);
}

.bank-card .cover-wrap .badge {
  position: absolute;
  top: 10px;
  right: 10px;
  box-shadow: 0 2px 8px rgba(10, 13, 12, 0.25);
}

.bank-card .body {
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.bank-card h3 { margin-bottom: 6px; font-size: 1.15rem; }
.bank-card p.hint { flex: 1; }

.bank-card .price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 10px 0 14px;
}

.bank-card .price-tag {
  display: inline-flex;
  align-items: baseline;
  gap: 3px;
  background: var(--gold-100);
  color: var(--navy-900);
  padding: 5px 12px;
  border-radius: 999px;
  font-family: "Source Serif 4", Georgia, serif;
  font-weight: 700;
  font-size: 1.05rem;
}

@media (max-width: 560px) {
  .grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .bank-card .cover { height: 90px; }
  .bank-card .body { padding: 10px 12px 12px; }
  .bank-card h3 { font-size: 0.9rem; margin-bottom: 3px; }
  .bank-card p.hint { font-size: 0.76rem; }
  .bank-card .price-tag { font-size: 0.82rem; padding: 3px 9px; }
}

/* ---------- Badges ---------- */

.badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.badge.pending { background: var(--amber-bg); color: var(--amber); }
.badge.approved { background: var(--green-bg); color: var(--green); }
.badge.rejected { background: var(--red-bg); color: var(--red); }
.badge.revoked { background: var(--surface-2); color: var(--ink-soft); }
.switch-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  margin: 14px 0;
}
@media (max-width: 560px) {
  .switch-grid { grid-template-columns: 1fr; gap: 12px; }
}
.badge.expired { background: var(--amber-bg); color: var(--amber); }
.badge.none { background: var(--surface-2); color: var(--ink-faint); }

/* ---------- Forms ---------- */

form.stacked { display: flex; flex-direction: column; gap: 14px; max-width: 420px; }
form.stacked label { font-size: 0.85rem; color: var(--ink-soft); margin-bottom: 4px; display: block; font-weight: 600; }
form.stacked input, form.stacked textarea, form.stacked select {
  width: 100%;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--ink);
  font-size: 0.95rem;
  font-family: inherit;
}
form.stacked input:focus, form.stacked textarea:focus, form.stacked select:focus {
  outline: none;
  border-color: var(--gold-500);
  background: var(--surface);
  box-shadow: 0 0 0 3px rgba(31, 111, 92, 0.2);
}
form.stacked textarea { resize: vertical; min-height: 80px; }

.error-msg { color: var(--red); font-size: 0.88rem; }
.success-msg { color: var(--green); font-size: 0.88rem; }
.hint { color: var(--ink-faint); font-size: 0.85rem; }

/* ---------- Tables ---------- */

table { width: 100%; border-collapse: collapse; }
table th, table td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}
table th {
  color: var(--ink-faint);
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
table tr:last-child td { border-bottom: none; }
table tr:hover td { background: var(--surface-2); }

/* ---------- Modal ---------- */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 13, 12, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 20px;
}
.modal-overlay.hidden { display: none; }
.modal-box {
  background: var(--surface);
  border-top: 4px solid var(--gold-500);
  border-radius: var(--radius);
  padding: 26px;
  max-width: 460px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lift);
}
.modal-box .close-x {
  float: right;
  cursor: pointer;
  color: var(--ink-faint);
  font-size: 1.3rem;
  line-height: 1;
}
.modal-box .close-x:hover { color: var(--navy-900); }

.qliq-callout {
  background: var(--gold-100);
  border: 1.5px solid var(--gold-500);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  margin: 14px 0;
}
.qliq-callout-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gold-500);
  margin-bottom: 4px;
}
.qliq-callout-value {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy-900);
  word-break: break-word;
}
.qliq-callout-phone {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--gold-500);
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.finish-modal-box { text-align: center; }
.finish-score {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--gold-600);
  margin: 10px 0 6px;
}
.finish-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 18px;
}

/* ---------- Tabs ---------- */

.tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 20px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
}
.tabs button {
  flex: 0 0 auto;
  white-space: nowrap;
  background: none; border: none; color: var(--ink-faint);
  padding: 10px 16px; cursor: pointer; font-size: 0.95rem; font-weight: 600;
  border-bottom: 2px solid transparent;
  font-family: inherit;
}
.tabs button.active { color: var(--navy-900); border-bottom-color: var(--gold-500); }
.tabs button:hover { color: var(--navy-800); }

.thumb {
  max-width: 160px;
  max-height: 160px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  cursor: pointer;
}

/* ---------- PDF viewer ---------- */

#pdf-container { display: flex; flex-direction: column; align-items: center; gap: 10px; user-select: none; }
#pdf-container canvas { max-width: 100%; border: 1px solid var(--border); box-shadow: var(--shadow-lift); border-radius: 4px; }
.viewer-toolbar {
  position: sticky; top: 0;
  background: var(--navy-900);
  padding: 12px 20px;
  display: flex; align-items: center; gap: 12px;
  z-index: 10;
}
.viewer-toolbar #page-info { color: var(--gold-100); }
.viewer-watermark {
  color: var(--gold-300);
  font-size: 0.8rem;
  margin-left: auto;
}

/* ---------- How it works ---------- */

.how-it-works {
  margin-bottom: 44px;
}
.how-it-works h2 { margin-bottom: 20px; }

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.step-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 20px;
  box-shadow: var(--shadow);
  position: relative;
}
.step-card .step-num {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--navy-900);
  color: var(--gold-300);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Source Serif 4", Georgia, serif;
  font-weight: 700;
  margin-bottom: 14px;
}
.step-card h3 { font-size: 1.02rem; margin-bottom: 6px; }
.step-card p { color: var(--ink-soft); font-size: 0.88rem; margin: 0; }

@media (max-width: 560px) {
  .steps { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .step-card { padding: 10px 8px; }
  .step-card .step-num { width: 24px; height: 24px; font-size: 0.8rem; margin-bottom: 8px; }
  .step-card h3 { font-size: 0.74rem; margin-bottom: 4px; line-height: 1.25; }
  .step-card p { font-size: 0.66rem; line-height: 1.35; }
}

/* ---------- Coming soon tile ---------- */

.coming-soon-tile {
  border: 1.5px dashed var(--border);
  border-radius: var(--radius);
  background: transparent;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 34px 24px;
  min-height: 220px;
  color: var(--ink-faint);
}
.coming-soon-tile .icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px dashed var(--gold-400);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-500);
  font-size: 1.2rem;
  margin-bottom: 12px;
}
.coming-soon-tile strong { color: var(--ink-soft); font-size: 0.95rem; display: block; margin-bottom: 4px; }
.coming-soon-tile span { font-size: 0.82rem; }

/* ---------- Footer ---------- */

footer.site-footer {
  background: var(--navy-950);
  color: var(--gold-100);
  margin-top: auto;
  padding: 28px 24px;
}
footer.site-footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}
footer.site-footer .brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "Source Serif 4", Georgia, serif;
  font-weight: 700;
  color: #fff;
}
footer.site-footer .brand img { width: 26px; height: 26px; border-radius: 50%; box-shadow: 0 0 0 2px var(--gold-400); }
footer.site-footer .tagline { color: var(--gold-300); opacity: 0.8; font-size: 0.82rem; }

/* ---------- Bank detail ---------- */

.breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ink-soft);
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 22px;
}
.breadcrumb:hover { color: var(--navy-900); }

.bank-detail-grid {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 40px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 3px solid var(--gold-500);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow);
}

.bank-detail-cover-wrap {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface-2);
  height: fit-content;
}
.bank-detail-cover-wrap .cover {
  width: 100%;
  height: 320px;
  object-fit: cover;
  display: block;
}
.bank-detail-cover-wrap .badge {
  position: absolute;
  top: 14px;
  right: 14px;
  box-shadow: 0 2px 8px rgba(10, 13, 12, 0.25);
}

.bank-detail-panel {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.bank-detail-panel h1 { font-size: 1.9rem; margin-bottom: 12px; }
.bank-detail-desc {
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.65;
  margin: 0 0 22px;
}

.price-tag.large {
  font-size: 1.35rem;
  padding: 9px 20px;
  align-self: flex-start;
  margin-bottom: 22px;
}

.trust-line {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  color: var(--ink-faint);
  font-size: 0.82rem;
  margin-bottom: 26px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--border);
}
.trust-line span { display: flex; align-items: center; gap: 6px; }
.trust-line .glyph { color: var(--gold-500); font-weight: 700; }

#action-area { margin-top: auto; }
#action-area .badge { margin-bottom: 8px; }

.btn.large { padding: 14px 30px; font-size: 1rem; }

@media (max-width: 760px) {
  .bank-detail-grid { grid-template-columns: 1fr; padding: 24px; gap: 24px; }
  .bank-detail-cover-wrap .cover { height: 240px; }
}

/* ---------- Dashboard stat cards ---------- */

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 18px;
  margin-bottom: 30px;
}

.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px;
  box-shadow: var(--shadow);
  border-top: 3px solid var(--navy-700);
  position: relative;
}
.stat-card .stat-value {
  font-family: "Source Serif 4", Georgia, serif;
  font-weight: 700;
  font-size: 2rem;
  color: var(--navy-900);
  line-height: 1;
  margin-bottom: 8px;
}
.stat-card .stat-label {
  color: var(--ink-soft);
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.stat-card.pending { border-top-color: var(--amber); }
.stat-card.pending .stat-value { color: var(--amber); }
.stat-card.approved { border-top-color: var(--green); }
.stat-card.approved .stat-value { color: var(--green); }
.stat-card.rejected { border-top-color: var(--red); }
.stat-card.rejected .stat-value { color: var(--red); }
.stat-card.revenue { border-top-color: var(--gold-500); background: linear-gradient(160deg, var(--navy-950), var(--navy-800)); }
.stat-card.revenue .stat-value { color: var(--gold-300); }
.stat-card.revenue .stat-label { color: var(--gold-100); opacity: 0.75; }

.dashboard-section-title {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-faint);
  font-weight: 700;
  margin: 0 0 14px;
}

/* ---------- Charts ---------- */

.chart-grid {
  display: grid;
  grid-template-columns: minmax(260px, 340px) 1fr;
  gap: 20px;
  margin-bottom: 30px;
}

.chart-card h3 {
  font-size: 1rem;
  margin-bottom: 16px;
}

.donut-wrap {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}
.donut-wrap svg { flex: none; }

.donut-legend { display: flex; flex-direction: column; gap: 10px; }
.donut-legend .row { display: flex; align-items: center; gap: 8px; font-size: 0.86rem; color: var(--ink-soft); }
.donut-legend .swatch { width: 11px; height: 11px; border-radius: 3px; flex: none; }
.donut-legend .count { font-weight: 700; color: var(--navy-900); margin-left: auto; padding-left: 14px; }

.donut-segment.pending { stroke: var(--amber); }
.donut-segment.approved { stroke: var(--green); }
.donut-segment.rejected { stroke: var(--red); }
.donut-segment.empty { stroke: var(--border); }
.donut-center-value { fill: var(--navy-900); }
.donut-center-label { fill: var(--ink-faint); }
.donut-legend .swatch.pending { background: var(--amber); }
.donut-legend .swatch.approved { background: var(--green); }
.donut-legend .swatch.rejected { background: var(--red); }

.bar-chart-wrap svg { width: 100%; height: auto; display: block; }
.bar-chart-wrap .bar { fill: var(--navy-700); }
.bar-chart-wrap .bar:hover { fill: var(--gold-500); }
.bar-chart-wrap .bar-label { fill: var(--ink-faint); font-size: 8px; font-family: "IBM Plex Sans", sans-serif; }
.bar-chart-wrap .bar-value { fill: var(--ink-soft); font-size: 8px; font-family: "IBM Plex Sans", sans-serif; }

@media (max-width: 900px) {
  .chart-grid { grid-template-columns: 1fr; }
}

/* ---------- Quiz ---------- */

.quiz-toolbar {
  width: 100%;
  position: sticky;
  top: 0;
  background: var(--navy-900);
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  z-index: 10;
}
.quiz-toolbar .progress { color: var(--gold-100); font-weight: 600; font-size: 0.9rem; }
.quiz-toolbar select {
  background: var(--navy-800);
  color: #fff;
  border: 1px solid var(--navy-600);
  border-radius: var(--radius-sm);
  padding: 7px 10px;
  font-size: 0.85rem;
  font-family: inherit;
}
.quiz-toolbar .spacer { flex: 1; }

.quiz-wrap {
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
  padding: 32px 20px 60px;
}

.quiz-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 4px solid var(--gold-500);
  border-radius: var(--radius);
  padding: 28px 26px;
  box-shadow: var(--shadow);
}

.category-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  background: var(--green-bg);
  color: var(--green);
  margin-bottom: 14px;
}

.quiz-stem {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 1.2rem;
  color: var(--navy-900);
  line-height: 1.45;
  margin: 0 0 22px;
  user-select: none;
  -webkit-user-select: none;
}
.quiz-number {
  font-weight: 700;
  color: var(--gold-600);
}

.quiz-choices { display: flex; flex-direction: column; gap: 10px; }

.quiz-choice {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 13px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--ink);
  transition: border-color 0.12s ease, background 0.12s ease;
  user-select: none;
  -webkit-user-select: none;
}
.quiz-choice:hover:not(:disabled) { border-color: var(--gold-500); background: var(--surface-2); }
.quiz-choice:disabled { cursor: default; }

.quiz-choice .letter {
  width: 26px;
  height: 26px;
  min-width: 26px;
  border-radius: 50%;
  background: var(--surface-2);
  border: 1.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.82rem;
  color: var(--ink-soft);
}

.quiz-choice.correct {
  background: var(--green-bg);
  border-color: var(--green);
}
.quiz-choice.correct .letter { background: var(--green); border-color: var(--green); color: #fff; }

.quiz-choice.incorrect {
  background: var(--red-bg);
  border-color: var(--red);
}
.quiz-choice.incorrect .letter { background: var(--red); border-color: var(--red); color: #fff; }

.quiz-explanation {
  margin-top: 20px;
  background: var(--surface-2);
  border-left: 4px solid var(--gold-500);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 14px 16px;
  font-size: 0.9rem;
  color: var(--ink-soft);
  line-height: 1.55;
}
.quiz-explanation strong { color: var(--navy-900); }

.quiz-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 24px;
}
.quiz-nav .hint { text-align: center; flex: 1; }

/* ---------- Quiz setup (category + amount picker) ---------- */

.setup-wrap { width: 100%; max-width: 920px; margin: 0 auto; padding: 40px 20px 60px; }
.setup-wrap h1 { margin-bottom: 6px; }
.setup-wrap .subtitle { color: var(--ink-soft); margin-bottom: 28px; }

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ink-soft);
  font-weight: 600;
  font-size: 0.88rem;
  margin-bottom: 20px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  font-family: inherit;
}
.back-link:hover { color: var(--navy-900); }

.setup-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 16px;
}

.setup-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.setup-card:hover { border-color: var(--gold-500); transform: translateY(-2px); box-shadow: var(--shadow); }

.setup-card.all-card {
  border-color: var(--gold-500);
  background: linear-gradient(160deg, var(--navy-950), var(--navy-800));
}
.setup-card.all-card h3 { color: #fff; }
.setup-card.all-card .setup-count { color: var(--gold-100); opacity: 0.85; }
.setup-card.all-card .setup-icon { background: rgba(31, 111, 92, 0.25); color: var(--gold-300); }
.setup-card.all-card .setup-go { color: var(--gold-300); }

.setup-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--gold-100);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "IBM Plex Sans", sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--gold-600);
  margin-bottom: 14px;
}

.setup-card h3 { font-size: 1.02rem; margin-bottom: 4px; }
.setup-count { font-size: 0.85rem; color: var(--ink-soft); }
.setup-go { margin-top: 12px; font-size: 0.85rem; font-weight: 600; color: var(--gold-600); }

@media (max-width: 560px) {
  .setup-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .setup-card { padding: 14px; }
  .setup-icon { width: 34px; height: 34px; margin-bottom: 10px; font-size: 0.64rem; }
  .setup-card h3 { font-size: 0.9rem; }
  .setup-count { font-size: 0.76rem; }
  .setup-go { margin-top: 8px; font-size: 0.78rem; }
}

.amount-picker-card {
  max-width: 480px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 4px solid var(--gold-500);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}
.amount-picker-card h2 { margin-bottom: 4px; }

.amount-chips { display: flex; gap: 10px; flex-wrap: wrap; margin: 20px 0 22px; }
.amount-chip {
  padding: 10px 20px;
  border-radius: 999px;
  border: 1.5px solid var(--border);
  background: var(--surface);
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
  font-family: inherit;
  color: var(--ink);
}
.amount-chip:hover { border-color: var(--gold-500); }
.amount-chip.selected { background: var(--navy-900); border-color: var(--navy-900); color: #fff; }

.amount-custom { display: flex; align-items: center; gap: 10px; margin-bottom: 24px; }
.amount-custom input {
  width: 90px;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  background: var(--surface-2);
  font-size: 0.92rem;
  font-family: inherit;
}

/* ---------- Study by subspecialty ---------- */

.subspecialty-section { margin: 8px 0 56px; }
.subspecialty-section h2 { margin-bottom: 8px; }
.subspecialty-section .subtitle { color: var(--ink-soft); max-width: 620px; margin-bottom: 28px; }

.subspecialty-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 18px;
}

.subspecialty-card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  text-decoration: none;
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.subspecialty-card:hover {
  border-color: var(--gold-500);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.subspecialty-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--surface-2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  margin-bottom: 16px;
  overflow: hidden;
}
.subspecialty-icon svg { width: 18px; height: 18px; }

.subspecialty-card h3 { font-size: 1.05rem; margin-bottom: 4px; }
.subspecialty-count { font-size: 0.85rem; color: var(--ink-soft); margin-bottom: 14px; }
.subspecialty-link { font-size: 0.88rem; font-weight: 600; color: var(--gold-500); }
.subspecialty-card:hover .subspecialty-link { color: var(--gold-600); }

@media (max-width: 560px) {
  .subspecialty-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .subspecialty-card { padding: 14px; }
  .subspecialty-icon { width: 32px; height: 32px; margin-bottom: 10px; }
  .subspecialty-icon svg { width: 15px; height: 15px; }
  .subspecialty-card h3 { font-size: 0.92rem; }
  .subspecialty-count, .subspecialty-link { font-size: 0.78rem; }
}
.amount-custom input:focus { outline: none; border-color: var(--gold-500); }

/* ---------- Progress bars ---------- */

.progress-track {
  width: 100%;
  height: 10px;
  background: var(--surface-2);
  border-radius: 999px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: var(--gold-500);
  border-radius: 999px;
  transition: width 0.3s ease;
}
.progress-fill.complete { background: var(--green); }

.chapter-progress-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
}
.chapter-progress-card .row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 8px;
}
.chapter-progress-card .row strong { font-size: 0.98rem; color: var(--ink); }
.chapter-progress-card .row span { font-size: 0.85rem; color: var(--ink-soft); font-weight: 600; }

/* ---------- Question media (student-facing) ---------- */

.quiz-media { margin: 18px 0; }
.quiz-media img { max-width: 100%; border-radius: var(--radius-sm); border: 1px solid var(--border); display: block; }
.quiz-media video { max-width: 100%; border-radius: var(--radius-sm); display: block; background: #000; }
.quiz-media iframe { width: 100%; aspect-ratio: 16/9; border: none; border-radius: var(--radius-sm); display: block; }

/* ---------- Lectures ---------- */

.lecture-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}
.lecture-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  display: block;
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.lecture-card:hover { border-color: var(--gold-500); transform: translateY(-2px); box-shadow: var(--shadow); }
.lecture-thumb-wrap { position: relative; background: var(--surface-2); }
.lecture-thumb-wrap img { width: 100%; height: 150px; object-fit: cover; display: block; }
.lecture-thumb-wrap .no-thumb { width: 100%; height: 150px; display: flex; align-items: center; justify-content: center; color: var(--ink-faint); font-size: 2rem; }
.lecture-duration-badge {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(10, 13, 12, 0.75);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 4px;
}
.lecture-card .body { padding: 16px 18px; }
.lecture-card h3 { font-size: 1.02rem; margin-bottom: 6px; }
.lecture-card .lecture-desc { font-size: 0.88rem; color: var(--ink-soft); margin-bottom: 10px; }
.lecture-card .lecture-meta { display: flex; justify-content: space-between; align-items: center; }

.lecture-player-wrap { max-width: 900px; margin: 0 auto; }
.lecture-player-wrap video, .lecture-player-wrap iframe { width: 100%; aspect-ratio: 16/9; border: none; border-radius: var(--radius); background: #000; display: block; }

/* ---------- Pricing packages ---------- */

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}
.pricing-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 22px;
  text-align: center;
}
.pricing-card .pricing-name { font-size: 0.85rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--ink-soft); margin-bottom: 14px; }
.pricing-card .pricing-original { color: var(--ink-faint); text-decoration: line-through; font-size: 0.95rem; margin-right: 6px; }
.pricing-card .pricing-price { font-family: "Source Serif 4", Georgia, serif; font-size: 2rem; color: var(--ink); }
.pricing-card .pricing-duration { color: var(--ink-soft); font-size: 0.85rem; margin-bottom: 16px; }
.pricing-card .pricing-desc { color: var(--ink-soft); font-size: 0.85rem; margin-bottom: 18px; min-height: 40px; }
.pricing-card.selectable { transition: border-color 0.15s ease, box-shadow 0.15s ease; }

@media (max-width: 560px) {
  .pricing-grid { grid-template-columns: repeat(auto-fit, minmax(135px, 1fr)); gap: 10px; }
  .pricing-card { padding: 16px 12px; }
  .pricing-card .pricing-name { font-size: 0.72rem; margin-bottom: 8px; }
  .pricing-card .pricing-price { font-size: 1.3rem; }
  .pricing-card .pricing-original { font-size: 0.75rem; }
  .pricing-card .pricing-duration { font-size: 0.76rem; margin-bottom: 10px; }
  .pricing-card .pricing-desc { font-size: 0.76rem; margin-bottom: 12px; min-height: 0; }
}
.pricing-card.selectable:hover { border-color: var(--gold-500); }
.pricing-card.selectable.selected { border-color: var(--gold-500); box-shadow: 0 0 0 2px var(--gold-500) inset; }

/* ---------- Admin: category images ---------- */

.category-image-card { padding: 14px; }
.category-image-preview {
  width: 100%;
  height: 90px;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-bottom: 10px;
}
.category-image-preview img { width: 100%; height: 100%; object-fit: cover; }
.category-image-card h4 { font-size: 0.9rem; margin-bottom: 8px; }
.category-image-card input[type="file"] { font-size: 0.8rem; width: 100%; }

.lecture-category-cover-icon {
  width: 100%;
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-soft);
}
.lecture-category-cover-icon svg { width: 44px; height: 44px; }

/* ---------- Contact page ---------- */

.link-btn {
  background: none;
  border: none;
  padding: 0;
  color: var(--gold-500);
  font-weight: 600;
  font-size: inherit;
  cursor: pointer;
}
.link-btn:hover { color: var(--gold-600); }
.link-btn:disabled { color: var(--ink-faint); cursor: default; }

.contact-card {
  max-width: 480px;
  margin: 20px auto 0;
}

.contact-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
}
.contact-row:last-child { border-bottom: none; }
.contact-label { color: var(--ink-soft); font-weight: 600; }
.contact-row a { color: var(--ink); font-weight: 600; }
.contact-row a:hover { color: var(--gold-500); }
