/* =====================================================================
   TrainAI Academy · NSCT 2027 design system
   Tokens taken from trainaiacademy.com (:root palette, Montserrat / Anton /
   Kaushan Script, 10px buttons with a yellow offset shadow, 18px cards).
   Three shells share it: public (navy), app/admin (light dashboard), exam.
   ===================================================================== */

:root {
  /* Brand (exact values from trainaiacademy.com) */
  --navy: #0B2478;
  --navy-deep: #061650;
  --navy-nav: rgba(9, 29, 100, .92);
  --blue: #1641B0;
  --royal: #1E4FC4;
  --bright: #2E62DE;
  --yellow: #FFC727;
  --yellow-2: #FFE08A;
  --ink: #0A1A4A;
  --soft: #CFDCFF;
  --glass: rgba(255, 255, 255, .07);
  --glass-line: rgba(255, 255, 255, .16);
  --green: #25B04B;

  /* Light surfaces for dashboards (from the site's enrol form) */
  --page: #EEF3FF;
  --surface: #FFFFFF;
  --surface-2: #F7F9FF;
  --line: #DCE4F7;
  --field-line: #C9D6F5;
  --muted: #5B6B93;
  --text: var(--ink);

  /* Status */
  --ok: #1E8E3E;  --ok-bg: #E6F6EA;
  --bad: #C62828; --bad-bg: #FDECEC;
  --warn: #8A5A00; --warn-bg: #FFF6D6;
  --info: var(--blue); --info-bg: #EAF0FF;

  /* Type */
  --font: Montserrat, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: Anton, Impact, "Arial Narrow Bold", sans-serif;
  --script: "Kaushan Script", cursive;

  /* Shape */
  --r-sm: 8px;
  --r: 10px;
  --r-card: 18px;
  --r-lg: 22px;
  --shadow: 0 6px 24px rgba(11, 36, 120, .08);
  --shadow-lift: 0 10px 30px rgba(11, 36, 120, .14);
  --wrap: 1200px;
  --gutter: 24px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); line-height: 1.55; color: var(--text); background: var(--page); font-size: 16px; }
img, svg { max-width: 100%; }
img { height: auto; }
a { color: var(--blue); }
a:hover { color: var(--navy); }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; }
p { margin: 0 0 1em; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
[hidden] { display: none !important; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.anton { font-family: var(--display); font-weight: 400; letter-spacing: 1px; }
.script { font-family: var(--script); }
.y { color: var(--yellow); }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.xs { font-size: 12px; }
.nowrap { white-space: nowrap; }
.right { text-align: right; }
.center { text-align: center; }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 40px; }
.mb-1 { margin-bottom: 8px; } .mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.row.end { justify-content: flex-end; }
.stack > * + * { margin-top: 12px; }
.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-auto { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
@media (max-width: 1000px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } :root { --gutter: 16px; } }

/* ------------------------------------------------------------ buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 12px 22px; border-radius: var(--r);
  font-weight: 800; font-size: 15px; text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: transform .15s ease, background .15s, color .15s, box-shadow .15s;
  line-height: 1.2; white-space: nowrap; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; transform: none; }
.btn-lg { padding: 14px 28px; font-size: 17px; }
.btn-sm { padding: 8px 14px; font-size: 13px; border-radius: var(--r-sm); }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--navy); color: #fff; }
.btn-yellow { background: var(--yellow); color: var(--ink); }
.btn-yellow:hover { background: var(--yellow-2); color: var(--ink); }
.btn-white { background: #fff; color: var(--blue); box-shadow: 0 6px 0 var(--yellow); }
.btn-white:hover { color: var(--navy); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .7); }
.btn-ghost:hover { color: #fff; border-color: #fff; }
.btn-outline { background: transparent; color: var(--blue); border-color: var(--field-line); }
.btn-outline:hover { border-color: var(--blue); color: var(--navy); }
.btn-danger { background: var(--bad); color: #fff; }
.btn-danger:hover { background: #A31F1F; color: #fff; }
.btn-success { background: var(--ok); color: #fff; }
.btn-success:hover { background: #176F30; color: #fff; }
.btn-link { background: none; border: 0; color: var(--blue); padding: 4px 0; font-weight: 700; cursor: pointer; }
.btn-link:hover { text-decoration: underline; transform: none; }
.btn .ic, .ic { width: 18px; height: 18px; flex: none; }
.btn.is-loading { position: relative; color: transparent !important; }
.btn.is-loading::after { content: ""; position: absolute; width: 18px; height: 18px; border: 3px solid rgba(255,255,255,.5); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }
.btn-outline.is-loading::after, .btn-yellow.is-loading::after, .btn-white.is-loading::after { border-color: rgba(11,36,120,.25); border-top-color: var(--navy); }
@keyframes spin { to { transform: rotate(360deg); } }

/* ------------------------------------------------------------ badges, pills, alerts */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 800; letter-spacing: .3px; white-space: nowrap; }
.badge-ok { background: var(--ok-bg); color: var(--ok); }
.badge-bad { background: var(--bad-bg); color: var(--bad); }
.badge-warn { background: var(--warn-bg); color: var(--warn); }
.badge-info { background: var(--info-bg); color: var(--info); }
.badge-muted { background: #EEF1F8; color: var(--muted); }
.badge-yellow { background: var(--yellow); color: var(--ink); }
.badge .dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }

.alert { display: flex; gap: 14px; align-items: flex-start; padding: 14px 18px; border-radius: 14px; border: 1px solid; margin-bottom: 16px; }
.alert > .ic { width: 22px; height: 22px; margin-top: 1px; }
.alert h4 { margin: 0 0 4px; font-size: 16px; }
.alert p:last-child { margin-bottom: 0; }
.alert-info { background: var(--info-bg); border-color: #C9D6F5; color: var(--ink); }
.alert-warn { background: var(--warn-bg); border-color: #F5DC8C; color: #5A3D00; }
.alert-bad { background: var(--bad-bg); border-color: #F3C2C2; color: #7A1616; }
.alert-ok { background: var(--ok-bg); border-color: #BFE5C9; color: #11532A; }

/* ------------------------------------------------------------ cards */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: 22px; box-shadow: var(--shadow); }
.card-flat { box-shadow: none; }
.card h3 { font-size: 18px; font-weight: 800; color: var(--navy); }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.card-head h2, .card-head h3 { margin: 0; }
.card-yellow { box-shadow: 0 10px 0 var(--yellow); border-radius: var(--r-lg); }
.card-link { text-decoration: none; color: inherit; display: block; transition: transform .15s, box-shadow .15s; }
.card-link:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); color: inherit; }

/* KPI / stat tiles */
.stat-tile { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; }
.stat-tile .label { font-size: 12px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); }
.stat-tile .value { font-family: var(--display); font-size: 34px; letter-spacing: 1px; color: var(--navy); line-height: 1.1; margin-top: 4px; }
.stat-tile .sub { font-size: 13px; color: var(--muted); }

/* progress */
.progress { height: 8px; background: #E3E9F7; border-radius: 99px; overflow: hidden; }
.progress > i { display: block; height: 100%; background: var(--blue); border-radius: 99px; transition: width .3s; }
.progress.yellow > i { background: var(--yellow); }
.progress.ok > i { background: var(--ok); }

/* ------------------------------------------------------------ forms */
.form { display: flex; flex-direction: column; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label, .label { font-weight: 700; font-size: 14px; color: var(--ink); }
.field .hint { font-size: 13px; color: var(--muted); }
.field .err { font-size: 13px; color: var(--bad); font-weight: 600; }
.input, .field input:not([type=checkbox]):not([type=radio]):not([type=file]), .field select, .field textarea, select.input {
  width: 100%; font-size: 16px; padding: 11px 14px; border-radius: var(--r); border: 2px solid var(--field-line); color: var(--ink); background: var(--surface-2); transition: border-color .15s; }
.input:focus, .field input:focus, .field select:focus, .field textarea:focus { border-color: var(--blue); outline: none; background: #fff; }
.field textarea { min-height: 96px; resize: vertical; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--bad); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 640px) { .row2 { grid-template-columns: 1fr; } }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; cursor: pointer; }
.check input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--blue); }
.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 70px !important; }
.pw-toggle { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); background: none; border: 0; color: var(--blue); font-weight: 700; font-size: 13px; cursor: pointer; padding: 6px; }
.dropzone { border: 2px dashed var(--field-line); border-radius: 14px; padding: 22px; text-align: center; background: var(--surface-2); cursor: pointer; transition: border-color .15s, background .15s; }
.dropzone.drag, .dropzone:hover { border-color: var(--blue); background: #fff; }
.dropzone input { display: none; }
.dropzone .preview { max-height: 220px; border-radius: 10px; margin-top: 10px; }

/* ------------------------------------------------------------ tables */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
table.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .8px; color: var(--muted); font-weight: 800; padding: 12px 14px; background: var(--surface-2); border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: #FAFBFF; }
.table tr.clickable { cursor: pointer; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }
.pager { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 4px 0; flex-wrap: wrap; font-size: 14px; color: var(--muted); }

/* tabs / segmented */
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.tab { background: var(--surface); border: 2px solid var(--line); color: var(--ink); padding: 8px 16px; border-radius: 999px; font-weight: 700; font-size: 14px; cursor: pointer; }
.tab[aria-selected="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.tab .count { background: var(--yellow); color: var(--ink); border-radius: 99px; padding: 0 7px; margin-left: 6px; font-size: 12px; }

/* empty + loading */
.empty { text-align: center; padding: 36px 16px; color: var(--muted); }
.empty .ic { width: 40px; height: 40px; color: var(--field-line); margin-bottom: 8px; }
.skeleton { background: linear-gradient(90deg, #E9EEF9 25%, #F4F7FE 50%, #E9EEF9 75%); background-size: 200% 100%; animation: shimmer 1.2s infinite; border-radius: 10px; min-height: 18px; }
@keyframes shimmer { to { background-position: -200% 0; } }
.spinner { width: 28px; height: 28px; border: 3px solid var(--line); border-top-color: var(--blue); border-radius: 50%; animation: spin .7s linear infinite; margin: 24px auto; }

/* toasts, modal, lightbox */
.toasts { position: fixed; right: 16px; bottom: 16px; z-index: 200; display: flex; flex-direction: column; gap: 10px; max-width: min(420px, calc(100vw - 32px)); }
.toast { background: var(--navy); color: #fff; padding: 12px 16px; border-radius: 12px; box-shadow: var(--shadow-lift); font-weight: 600; font-size: 14px; border-left: 5px solid var(--yellow); animation: rise .2s ease; }
.toast.ok { border-left-color: #3DDC6F; } .toast.bad { border-left-color: #FF6B6B; }
@keyframes rise { from { transform: translateY(10px); opacity: 0; } }
.modal-backdrop { position: fixed; inset: 0; background: rgba(6, 22, 80, .6); z-index: 150; display: flex; align-items: center; justify-content: center; padding: 16px; animation: fade .15s; }
@keyframes fade { from { opacity: 0; } }
.modal { background: #fff; color: var(--ink); border-radius: var(--r-lg); width: min(560px, 100%); max-height: calc(100vh - 32px); overflow: auto; box-shadow: 0 10px 0 var(--yellow), var(--shadow-lift); }
.modal.wide { width: min(980px, 100%); }
.modal-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 18px 22px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: #fff; z-index: 1; }
.modal-head h3 { margin: 0; font-size: 19px; color: var(--navy); }
.modal-body { padding: 20px 22px; }
.modal-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 14px 22px 20px; flex-wrap: wrap; }
.icon-btn { background: none; border: 0; width: 38px; height: 38px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; color: var(--muted); }
.icon-btn:hover { background: var(--surface-2); color: var(--ink); }
.lightbox { position: fixed; inset: 0; background: rgba(3, 10, 40, .92); z-index: 300; display: flex; align-items: center; justify-content: center; padding: 16px; cursor: zoom-out; animation: fade .15s; }
.lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 8px; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.lightbox .close { position: absolute; top: 14px; right: 14px; color: #fff; background: rgba(255,255,255,.12); }

/* =====================================================================
   PUBLIC SHELL (navy, as on trainaiacademy.com)
   ===================================================================== */
body.shell-public { background: var(--navy); color: #fff; }
body.shell-public a { color: var(--yellow); }
body.shell-public a:hover { color: var(--yellow-2); }
/* Link-styled buttons keep their own colours on the navy shell. */
body.shell-public a.btn-primary, body.shell-public a.btn-primary:hover { color: #fff; }
body.shell-public a.btn-yellow, body.shell-public a.btn-yellow:hover { color: var(--ink); }
body.shell-public a.btn-white { color: var(--blue); }
body.shell-public a.btn-white:hover { color: var(--navy); }
body.shell-public a.btn-ghost, body.shell-public a.btn-ghost:hover { color: #fff; }
body.shell-public a.btn-outline, body.shell-public a.btn-outline:hover { color: var(--blue); }
body.shell-public .card a.btn-link, body.shell-public .price-card a.btn-link { color: var(--blue); }
.announce { background: var(--yellow); color: var(--ink); font-weight: 700; font-size: 14px; text-align: center; padding: 9px 16px; }
.announce a { color: var(--navy) !important; text-decoration: underline; font-weight: 800; margin-left: 6px; }
.announce .ic { width: 16px; height: 16px; vertical-align: -3px; margin-right: 6px; }
header.nav { position: sticky; top: 0; z-index: 50; background: var(--navy-nav); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-bottom: 1px solid var(--glass-line); }
.nav-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.nav-in.wrap { max-width: 1480px; }
.nav-in .brand { flex: none; }
.nav-in .brand-name, .nav-in .brand-tag { white-space: nowrap; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: #fff !important; }
.brand img { width: 44px; height: 44px; }
.brand-name { font-weight: 800; font-size: 19px; letter-spacing: .5px; line-height: 1; display: block; }
.brand-tag { font-size: 11px; font-weight: 600; letter-spacing: 1.4px; color: var(--soft); }
.links { display: flex; align-items: center; gap: 20px; }
.links a { color: #fff !important; text-decoration: none; font-weight: 600; font-size: 15px; white-space: nowrap; }
.links a:hover, .links a[aria-current="page"] { color: var(--yellow) !important; }
.links .btn { color: var(--ink) !important; }
.links .btn-ghost { color: #fff !important; }
.auth-links { display: inline-flex; align-items: center; gap: 14px; }
.user-chip { display: inline-flex; align-items: center; gap: 8px; }
.user-chip .avatar { width: 32px; height: 32px; font-size: 13px; background: var(--yellow); color: var(--navy); flex: none; }
.user-chip .user-name { max-width: 170px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* no dropdown menu: the bar tightens on smaller screens, then becomes a second, swipeable row */
@media (max-width: 1480px) {
  .links { gap: 14px; }
  .links a { font-size: 14px; }
  .links .btn-sm { padding: 7px 14px; }
  .auth-links { gap: 10px; }
  .user-chip .user-name { display: none; }
}
@media (max-width: 1240px) {
  .nav-in { flex-wrap: wrap; row-gap: 0; padding-top: 10px; }
  .links { order: 3; width: 100%; overflow-x: auto; scrollbar-width: none; padding: 10px 0 12px; margin-top: 8px; border-top: 1px solid var(--glass-line); }
  .links::-webkit-scrollbar { display: none; }
  .links > * { flex: none; }
}

section.band { padding: 88px 0; position: relative; }
section.band.tight { padding: 56px 0; }
@media (max-width: 640px) { section.band { padding: 56px 0; } }
.band-navy { background: var(--navy); }
.band-grad { background: linear-gradient(180deg, var(--navy), #0E2C8E); }
.band-blue { background: var(--blue); }
.band-light { background: var(--page); color: var(--ink); }
.band-light a { color: var(--blue) !important; }
.band-light a.btn-primary, .band-light a.btn-primary:hover { color: #fff !important; }
.eyebrow { font-weight: 800; letter-spacing: 2px; font-size: 14px; color: var(--yellow); text-transform: uppercase; margin: 0 0 10px; }
.band-light .eyebrow { color: var(--blue); }
h2.title { font-family: var(--display); font-weight: 400; letter-spacing: 1px; font-size: clamp(36px, 5.4vw, 60px); line-height: 1.04; margin: 0 0 14px; }
.lead { font-size: 18px; color: var(--soft); max-width: 760px; margin: 0; }
.band-light .lead { color: var(--muted); }

.hero { background: radial-gradient(circle at 72% 40%, var(--bright) 0%, var(--blue) 42%, var(--navy) 100%); overflow: hidden; padding: 56px 0 0; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 32px; align-items: center; position: relative; }
.hero .script-line { font-family: var(--script); font-size: clamp(32px, 4.4vw, 54px); transform: rotate(-5deg); display: inline-block; margin: 0 0 -14px 40px; text-shadow: 0 3px 10px rgba(0,0,0,.35); position: relative; z-index: 1; }
.hero h1 { margin: 0; font-family: var(--display); font-weight: 400; letter-spacing: 1px; color: var(--yellow); font-size: clamp(72px, 12vw, 160px); line-height: 1; }
.with-row { display: flex; align-items: flex-end; gap: 12px; margin: 6px 0 18px; }
.with-row .rule { flex: 1; height: 5px; border-radius: 3px; background: var(--yellow); margin-bottom: 10px; }
.with-row .script { font-size: 36px; color: var(--yellow); line-height: 1; }
.hero .ai-text { font-size: clamp(24px, 3vw, 36px); font-weight: 300; line-height: 1.15; margin: 0 0 10px; }
.hero p.sub { font-size: 18px; color: var(--soft); max-width: 560px; margin: 0 0 26px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.bokeh { position: absolute; border-radius: 50%; background: #fff; pointer-events: none; opacity: .08; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } .hero .script-line { margin-left: 16px; } }

.strip { background: rgba(5, 16, 64, .6); border-top: 1px solid var(--glass-line); border-bottom: 1px solid var(--glass-line); padding: 24px 0; margin-top: 48px; }
.strip-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.strip .stat { display: flex; flex-direction: column; line-height: 1.1; }
.strip .stat b { font-family: var(--display); font-weight: 400; font-size: 38px; color: var(--yellow); letter-spacing: 1px; }
.strip .stat span { font-size: 12px; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase; }
@media (max-width: 800px) { .strip-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.gcard { background: var(--glass); border: 1px solid var(--glass-line); border-radius: var(--r-card); padding: 24px; }
.gcard h3 { margin: 0 0 8px; font-size: 19px; font-weight: 800; color: #fff; }
.gcard p { margin: 0; color: var(--soft); font-size: 15px; }
.gcard .ic-ring { width: 52px; height: 52px; border-radius: 50%; display: flex; align-items: center; justify-content: center; border: 3px solid #fff; margin-bottom: 16px; }
.gcard .ic-ring .ic { width: 24px; height: 24px; color: var(--yellow); }
.gcard .big-n { font-family: var(--display); font-size: 48px; color: var(--yellow); line-height: 1; }

/* Mandatory notice */
.notice-mandatory { display: grid; grid-template-columns: auto 1fr auto; gap: 22px; align-items: center; background: #fff; color: var(--ink); border-radius: var(--r-lg); padding: 24px 28px; box-shadow: 0 10px 0 var(--yellow); }
.notice-mandatory .seal { width: 84px; height: 84px; border-radius: 50%; background: var(--yellow); display: flex; align-items: center; justify-content: center; border: 5px solid #fff; box-shadow: 0 0 0 3px var(--yellow); }
.notice-mandatory .seal .ic { width: 40px; height: 40px; color: var(--navy); }
.notice-mandatory h3 { font-family: var(--display); font-weight: 400; letter-spacing: 1px; font-size: clamp(22px, 3vw, 32px); color: var(--navy); margin: 0 0 6px; }
.notice-mandatory p { margin: 0; color: #33406B; }
@media (max-width: 800px) { .notice-mandatory { grid-template-columns: 1fr; text-align: center; } .notice-mandatory .seal { margin: 0 auto; } }

/* Poster */
.poster { display: block; border: 0; padding: 0; background: none; cursor: zoom-in; border-radius: 18px; overflow: hidden; box-shadow: 0 18px 50px rgba(0,0,0,.35); width: 100%; position: relative; }
.poster img { display: block; width: 100%; height: auto; aspect-ratio: 1290 / 1243; }
.poster .zoom { position: absolute; right: 12px; bottom: 12px; background: rgba(6,22,80,.85); color: #fff; font-size: 13px; font-weight: 700; padding: 6px 12px; border-radius: 99px; display: inline-flex; gap: 6px; align-items: center; }
.poster .zoom .ic { width: 15px; height: 15px; }
.facts { width: 100%; border-collapse: collapse; }
.facts th, .facts td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--glass-line); vertical-align: top; }
.facts th { color: var(--soft); font-weight: 600; font-size: 14px; width: 42%; }
.facts td { font-weight: 800; }
.band-light .facts th, .card .facts th, .modal .facts th, body.shell-app .facts th { color: var(--muted); }
.band-light .facts th, .band-light .facts td, .card .facts th, .card .facts td, .modal .facts th, .modal .facts td, body.shell-app .facts th, body.shell-app .facts td { border-color: var(--line); }
.source-note { font-size: 13px; color: var(--soft); margin-top: 10px; }
.card .source-note, .band-light .source-note { color: var(--muted); }

/* Pricing */
.price-card { background: #fff; color: var(--ink); border-radius: var(--r-lg); padding: 32px; box-shadow: 0 10px 0 var(--yellow); }
.price-card .amount { font-family: var(--display); font-size: 64px; color: var(--navy); line-height: 1; letter-spacing: 1px; }
.price-card .per { color: var(--muted); font-weight: 700; }
/* Early-bird offer: hidden automatically by UI.applyPrice when the offer has ended */
.eb-badge { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 8px 10px; background: var(--yellow); color: var(--ink) !important; text-decoration: none !important; font-weight: 700; font-size: 16px; line-height: 1.3; border-radius: 14px; padding: 10px 16px; margin: 0 0 20px; box-shadow: 0 8px 22px rgba(0, 0, 0, .25); }
.eb-badge .eb-tag { background: var(--navy); color: #fff; font-size: 12px; font-weight: 800; letter-spacing: 1.5px; padding: 4px 9px; border-radius: 7px; }
.eb-badge b { font-size: 19px; }
.eb-badge s { opacity: .65; font-weight: 600; }
.price-card .eb-line { display: inline-block; background: var(--yellow); color: var(--ink); font-weight: 800; font-size: 13px; letter-spacing: 1.5px; text-transform: uppercase; border-radius: 8px; padding: 5px 10px; margin: 6px 0 10px; }
.price-card .was { color: var(--muted); font-weight: 700; margin-top: 6px; }
.ticks { list-style: none; padding: 0; margin: 18px 0; display: flex; flex-direction: column; gap: 10px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; font-weight: 600; }
.ticks .ic { width: 20px; height: 20px; color: var(--ok); margin-top: 2px; }
.ticks li.no { color: var(--muted); font-weight: 500; }
.ticks li.no .ic { color: #B7C0D8; }
.compare th, .compare td { text-align: center; }
.compare th:first-child, .compare td:first-child { text-align: left; }

/* Steps */
.steps { counter-reset: step; display: grid; gap: 16px; }
.step { display: grid; grid-template-columns: 56px 1fr; gap: 16px; align-items: start; }
.step .n { font-family: var(--display); font-size: 22px; background: var(--yellow); color: var(--ink); border-radius: 12px; text-align: center; padding: 10px 0; }
.step h4 { margin: 2px 0 4px; font-size: 17px; font-weight: 800; }
.step p { margin: 0; color: var(--soft); }
.band-light .step p, .card .step p { color: var(--muted); }

/* FAQ */
details.faq { background: var(--glass); border: 1px solid var(--glass-line); border-radius: 14px; padding: 0 22px; }
details.faq + details.faq { margin-top: 12px; }
details.faq summary { cursor: pointer; list-style: none; padding: 18px 0; font-weight: 800; font-size: 17px; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary .pm { font-family: var(--display); color: var(--yellow); font-size: 26px; line-height: 1; transition: transform .2s; }
details.faq[open] summary .pm { transform: rotate(45deg); }
details.faq p { margin: 0 0 18px; color: var(--soft); }

/* Exam mock (hero art) */
.exam-mock { background: #fff; color: var(--ink); border-radius: 20px; box-shadow: 0 30px 60px rgba(0,0,0,.35); overflow: hidden; transform: rotate(2deg); }
.exam-mock .top { background: var(--navy); color: #fff; display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; font-weight: 700; font-size: 14px; }
.exam-mock .timer { background: var(--yellow); color: var(--ink); border-radius: 8px; padding: 3px 10px; font-family: ui-monospace, Consolas, monospace; font-weight: 800; }
.exam-mock .body { padding: 18px; }
.exam-mock .q { font-weight: 700; margin-bottom: 12px; }
.exam-mock .o { border: 2px solid var(--line); border-radius: 10px; padding: 9px 12px; margin-bottom: 8px; font-size: 14px; display: flex; gap: 10px; }
.exam-mock .o b { color: var(--muted); }
.exam-mock .o.sel { border-color: var(--blue); background: var(--info-bg); }
.exam-mock .navdots { display: grid; grid-template-columns: repeat(10, 1fr); gap: 5px; margin-top: 14px; }
.exam-mock .navdots i { height: 18px; border-radius: 4px; background: #E3E9F7; }
.exam-mock .navdots i.a { background: var(--blue); } .exam-mock .navdots i.f { background: var(--yellow); }

/* CTA band */
.cta-band { background: radial-gradient(circle at 25% 30%, var(--bright) 0%, var(--blue) 45%, var(--navy) 100%); }

footer.site { background: var(--navy-deep); padding: 48px 0 32px; border-top: 1px solid var(--glass-line); color: #fff; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 28px; }
.foot-grid h4 { font-size: 13px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--yellow); margin: 0 0 12px; }
.foot-grid ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.foot-grid a { color: #fff !important; text-decoration: none; font-weight: 600; font-size: 15px; }
.foot-grid a:hover { color: var(--yellow) !important; }
.foot-grid p { color: var(--soft); font-size: 14px; }
.copy { color: var(--soft); font-size: 13px; margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--glass-line); line-height: 1.7; }
@media (max-width: 900px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .foot-grid { grid-template-columns: 1fr; } }

/* Auth pages */
.auth-wrap { min-height: calc(100vh - 72px); display: grid; grid-template-columns: 1fr 1fr; background: radial-gradient(circle at 25% 30%, var(--bright) 0%, var(--blue) 45%, var(--navy) 100%); }
.auth-side { padding: 64px 48px; display: flex; flex-direction: column; justify-content: center; gap: 18px; }
.auth-main { display: flex; align-items: center; justify-content: center; padding: 40px 20px; }
.auth-card { background: #fff; color: var(--ink); border-radius: var(--r-lg); padding: 32px; width: min(480px, 100%); box-shadow: 0 10px 0 var(--yellow); }
.auth-card h1 { font-size: 26px; font-weight: 800; color: var(--navy); margin-bottom: 4px; }
.auth-card a:not(.btn) { color: var(--blue) !important; font-weight: 700; }
@media (max-width: 900px) { .auth-wrap { grid-template-columns: 1fr; } .auth-side { padding: 40px var(--gutter) 0; } }

/* =====================================================================
   APP / ADMIN SHELL (light dashboard with navy sidebar)
   ===================================================================== */
body.shell-app { background: var(--page); }
.app { display: grid; grid-template-columns: 264px 1fr; min-height: 100vh; background: linear-gradient(90deg, var(--navy) 264px, var(--page) 264px); }
.side { background: var(--navy); color: #fff; padding: 18px 14px; position: sticky; top: 0; height: 100vh; overflow-y: auto; display: flex; flex-direction: column; }
.side .brand { padding: 4px 8px 18px; border-bottom: 1px solid var(--glass-line); margin-bottom: 12px; }
.side .brand img { width: 40px; height: 40px; }
.side .brand-name { font-size: 16px; }
.side nav { display: flex; flex-direction: column; gap: 2px; }
.exam-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; margin: 0 4px 12px; border-radius: 12px; background: rgba(255,255,255,.08); }
.exam-switch a { text-align: center; padding: 8px 6px; border-radius: 9px; color: #DCE5FF; text-decoration: none; font-weight: 800; font-size: 13px; letter-spacing: .4px; }
.exam-switch a:hover { color: #fff; background: rgba(255,255,255,.08); }
.exam-switch a[aria-current="true"] { background: #fff; color: var(--ink); }
.side nav a, .side nav button { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 10px; color: #DCE5FF; text-decoration: none; font-weight: 600; font-size: 15px; background: none; border: 0; cursor: pointer; text-align: left; width: 100%; }
.side nav a:hover, .side nav button:hover { background: rgba(255,255,255,.08); color: #fff; }
.side nav a[aria-current="page"] { background: var(--yellow); color: var(--ink); }
.side nav .ic { width: 20px; height: 20px; }
.side .nav-label { font-size: 11px; letter-spacing: 1.6px; text-transform: uppercase; color: #8FA6E8; font-weight: 800; padding: 14px 12px 6px; }
.side .side-foot { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--glass-line); font-size: 13px; color: var(--soft); }
.side .side-foot b { color: #fff; display: block; font-size: 14px; }
.main { min-width: 0; display: flex; flex-direction: column; }
.topbar { background: #fff; border-bottom: 1px solid var(--line); padding: 12px var(--gutter); display: flex; align-items: center; justify-content: space-between; gap: 12px; position: sticky; top: 0; z-index: 40; }
.topbar h1 { font-size: 20px; margin: 0; font-weight: 800; color: var(--navy); }
.topbar .who { display: flex; gap: 10px; align-items: center; font-size: 14px; }
.who-link { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy); font-weight: 700; }
.who-link:hover { color: var(--blue); }
.who-name { max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 600px) { .who-name { display: none; } }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--navy); color: var(--yellow); display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 14px; }
.content { padding: 24px var(--gutter) 64px; max-width: 1280px; width: 100%; }
.side-toggle { display: none; }
.app-banner { background: linear-gradient(90deg, var(--navy), var(--blue)); color: #fff; border-radius: 14px; padding: 12px 18px; display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin-bottom: 20px; font-size: 14px; }
.app-banner b { color: var(--yellow); }
.app-banner a { color: var(--yellow); font-weight: 700; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.page-head h2 { font-size: 26px; font-weight: 800; color: var(--navy); margin: 0; }
.page-head p { margin: 4px 0 0; color: var(--muted); }
@media (max-width: 960px) {
  .app { grid-template-columns: 1fr; background: var(--page); }
  .side { position: fixed; left: 0; top: 0; bottom: 0; width: 280px; z-index: 120; transform: translateX(-100%); transition: transform .2s; }
  .side.open { transform: none; box-shadow: 0 0 0 100vmax rgba(6,22,80,.5); }
  .side-toggle { display: inline-flex; }
}

/* topic cards */
.topic-card { display: flex; flex-direction: column; gap: 10px; }
.topic-card h3 { margin: 0; font-size: 17px; }
.topic-card .meta { font-size: 13px; color: var(--muted); }

/* =====================================================================
   EXAM SHELL (distraction-free)
   ===================================================================== */
body.shell-exam { background: #F4F7FE; }
.exam-top { background: var(--navy); color: #fff; position: sticky; top: 0; z-index: 30; }
.exam-top-in { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px var(--gutter); max-width: 1280px; margin: 0 auto; flex-wrap: wrap; }
.exam-title { font-weight: 800; font-size: 16px; line-height: 1.2; }
.exam-title small { display: block; font-weight: 600; color: var(--soft); font-size: 13px; }
.timer { display: inline-flex; align-items: center; gap: 8px; background: #fff; color: var(--navy); font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-weight: 800; font-size: 20px; padding: 6px 14px; border-radius: 10px; min-width: 120px; justify-content: center; }
.timer .ic { width: 18px; height: 18px; }
.timer.low { background: var(--yellow); }
.timer.critical { background: #FF6B6B; color: #fff; animation: pulse 1s infinite; }
@keyframes pulse { 50% { opacity: .75; } }
.exam-progress { height: 5px; background: rgba(255,255,255,.15); }
.exam-progress i { display: block; height: 100%; background: var(--yellow); transition: width .25s; }
.exam-body { display: grid; grid-template-columns: 1fr 300px; gap: 20px; padding: 20px var(--gutter) 48px; max-width: 1280px; margin: 0 auto; align-items: start; }
@media (max-width: 960px) { .exam-body { grid-template-columns: 1fr; } }
.q-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 24px; box-shadow: var(--shadow); }
.q-meta { display: flex; justify-content: space-between; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; }
.q-num { font-weight: 800; color: var(--blue); font-size: 14px; letter-spacing: .5px; }
.q-text { font-size: 19px; line-height: 1.6; font-weight: 600; margin: 4px 0 20px; white-space: pre-wrap; overflow-wrap: anywhere; }
.q-text code, .opt code, .expl code { font-family: ui-monospace, Consolas, monospace; font-size: .92em; background: #EEF2FB; padding: 1px 6px; border-radius: 5px; }
.opt { display: flex; gap: 14px; width: 100%; text-align: left; background: #fff; border: 2px solid var(--line); border-radius: 12px; padding: 13px 16px; margin: 0 0 10px; cursor: pointer; align-items: flex-start; font-size: 16px; transition: border-color .12s, background .12s; overflow-wrap: anywhere; }
.opt:hover:not(:disabled) { border-color: var(--bright); }
.opt .letter { flex: none; width: 30px; height: 30px; border-radius: 8px; background: var(--surface-2); border: 2px solid var(--field-line); display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 14px; color: var(--muted); }
.opt.sel { border-color: var(--blue); background: var(--info-bg); }
.opt.sel .letter { background: var(--blue); border-color: var(--blue); color: #fff; }
.opt.correct { border-color: var(--ok); background: var(--ok-bg); }
.opt.correct .letter { background: var(--ok); border-color: var(--ok); color: #fff; }
.opt.wrong { border-color: var(--bad); background: var(--bad-bg); }
.opt.wrong .letter { background: var(--bad); border-color: var(--bad); color: #fff; }
.opt:disabled { cursor: default; }
.opt .tag-r { margin-left: auto; font-size: 12px; font-weight: 800; white-space: nowrap; }
.q-actions { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.expl { border-left: 4px solid var(--blue); background: var(--surface-2); padding: 12px 16px; margin: 14px 0 0; border-radius: 0 12px 12px 0; font-size: 15px; }
.expl b { color: var(--navy); }
.save-state { font-size: 13px; color: var(--muted); display: inline-flex; gap: 6px; align-items: center; }
.save-state.bad { color: var(--bad); font-weight: 700; }
.qnav { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 18px; position: sticky; top: 90px; }
.qnav h3 { font-size: 15px; margin: 0 0 10px; color: var(--navy); }
.legend { display: flex; flex-wrap: wrap; gap: 10px 14px; font-size: 12px; color: var(--muted); margin-bottom: 12px; }
.legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }
.qgrid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; max-height: 360px; overflow-y: auto; padding: 2px; }
.qgrid button { height: 36px; border-radius: 8px; border: 2px solid var(--line); background: #F1F4FB; font-weight: 700; font-size: 13px; cursor: pointer; color: var(--ink); position: relative; }
.qgrid button.ans { background: var(--blue); border-color: var(--blue); color: #fff; }
.qgrid button.flag::after { content: ""; position: absolute; top: -3px; right: -3px; width: 10px; height: 10px; background: var(--yellow); border: 2px solid #fff; border-radius: 50%; }
.qgrid button.cur { outline: 3px solid var(--yellow); outline-offset: 1px; }
.qgrid button.ok { background: var(--ok); border-color: var(--ok); color: #fff; }
.qgrid button.no { background: var(--bad); border-color: var(--bad); color: #fff; }
.counts { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; font-size: 14px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.counts b { text-align: right; }
@media (max-width: 960px) { .qnav { position: static; } .qgrid { grid-template-columns: repeat(8, 1fr); max-height: 200px; } }
@media (max-width: 480px) { .qgrid { grid-template-columns: repeat(6, 1fr); } .q-text { font-size: 17px; } .q-card { padding: 18px; } }

/* results */
.score-hero { background: radial-gradient(circle at 80% 20%, var(--bright), var(--blue) 45%, var(--navy)); color: #fff; border-radius: 22px; padding: 28px; display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: center; box-shadow: 0 10px 0 var(--yellow); }
.score-ring { width: 150px; height: 150px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-direction: column; background: conic-gradient(var(--yellow) calc(var(--p) * 1%), rgba(255,255,255,.15) 0); position: relative; }
.score-ring::before { content: ""; position: absolute; inset: 12px; border-radius: 50%; background: var(--navy); }
.score-ring b, .score-ring span { position: relative; }
.score-ring b { font-family: var(--display); font-size: 44px; color: var(--yellow); line-height: 1; letter-spacing: 1px; }
.score-ring span { font-size: 12px; color: var(--soft); font-weight: 700; letter-spacing: 1px; text-transform: uppercase; }
.score-hero h2 { font-size: 26px; font-weight: 800; margin: 0 0 6px; }
.score-facts { display: flex; flex-wrap: wrap; gap: 10px 22px; color: var(--soft); font-size: 14px; }
.score-facts b { color: #fff; }
@media (max-width: 640px) { .score-hero { grid-template-columns: 1fr; text-align: center; } .score-ring { margin: 0 auto; } .score-facts { justify-content: center; } }
.review-item { border: 1px solid var(--line); border-radius: 16px; padding: 18px; background: #fff; }
.review-item + .review-item { margin-top: 12px; }
.review-item .q-text { font-size: 16px; margin-bottom: 12px; }
.review-item .opt { cursor: default; font-size: 15px; padding: 10px 14px; }
.bar-row { display: grid; grid-template-columns: minmax(140px, 1.4fr) 2fr 70px; gap: 12px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.bar-row:last-child { border-bottom: 0; }
@media (max-width: 560px) { .bar-row { grid-template-columns: 1fr 70px; } .bar-row .progress { grid-column: 1 / -1; } }

/* charts */
.chart-box { position: relative; height: 300px; }
.chart-box.short { height: 240px; }

/* notes */
.notes ul { padding-left: 20px; margin: 8px 0 14px; }
.notes li { margin-bottom: 6px; }
details.sub { border: 1px solid var(--line); border-radius: 12px; padding: 0 16px; background: #fff; }
details.sub + details.sub { margin-top: 10px; }
details.sub summary { padding: 14px 0; font-weight: 700; cursor: pointer; }

/* print */
@media print {
  .side, .topbar, .announce, header.nav, footer.site, .no-print { display: none !important; }
  .app { display: block; }
  body { background: #fff; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }

/* social links (footer, contact) */
.social{display:flex;gap:10px;align-items:center}.soc{width:40px;height:40px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;text-decoration:none;transition:transform .15s ease,box-shadow .15s ease;box-shadow:0 4px 12px rgba(0,0,0,.25)}.soc:hover{transform:translateY(-2px);box-shadow:0 8px 18px rgba(0,0,0,.35)}.soc:focus-visible{outline:3px solid var(--yellow);outline-offset:3px}.soc-ig{background:radial-gradient(circle at 30% 107%,#fdf497 0%,#fd5949 45%,#d6249f 60%,#285AEB 90%)}.soc-li{background:#0A66C2}.soc-fb{background:#1877F2}
