/* =====================================================================
   MRCP Portal - stylesheet
   Brand: navy + orange from the MRCP JAMB/SSCE class flyer
   Fonts load from Google Fonts when online; system fonts are used offline.
   ===================================================================== */
:root {
  --navy: #0f2a6b;
  --navy-deep: #0a1c4a;
  --navy-soft: #e8edf9;
  --orange: #f26a1d;
  --orange-deep: #d4560f;
  --gold: #e9a920;
  --paper: #f4f6fb;
  --card: #ffffff;
  --line: #dde2ee;
  --ink: #14203d;
  --muted: #5a6786;
  --ok: #157347;   --ok-bg: #e2f4ea;
  --warn: #8a5300; --warn-bg: #fff1d6;
  --bad: #b3261e;  --bad-bg: #fde7e5;
  --info: #1e47b8; --info-bg: #e5ecff;
  --f-display: 'Barlow Condensed', 'Arial Narrow', 'Roboto Condensed', 'Segoe UI', sans-serif;
  --f-body: 'Public Sans', 'Segoe UI', system-ui, -apple-system, Roboto, Arial, sans-serif;
  --r: 10px;
  --shadow: 0 1px 2px rgba(15, 42, 107, .06), 0 6px 20px rgba(15, 42, 107, .07);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--f-body); font-size: 16px; line-height: 1.55; color: var(--ink); background: var(--paper); }
img { max-width: 100%; height: auto; }
a { color: var(--navy); }
a:hover { color: var(--orange-deep); }
h1, h2, h3, h4 { font-family: var(--f-display); line-height: 1.1; margin: 0 0 .5em; color: var(--navy); letter-spacing: .005em; }
h1 { font-size: 2.2rem; font-weight: 800; }
h2 { font-size: 1.9rem; font-weight: 700; }
h3 { font-size: 1.35rem; font-weight: 700; }
h4 { font-size: 1.1rem; font-weight: 700; }
p { margin: 0 0 1em; }
.small { font-size: .875rem; }
.muted { color: var(--muted); }
.right { text-align: right; }
.center { text-align: center; }
.nowrap { white-space: nowrap; }
.wrap { width: min(1160px, 100% - 2rem); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 0; background: var(--orange); color: #fff; padding: .6rem 1rem; z-index: 99; }
.skip:focus { left: 0; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; border-radius: 4px; }
.no-print { }
ul.plain { list-style: none; padding: 0; margin: 0; }

/* ---------------------------------------------------------------- buttons, badges, alerts */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; padding: .7rem 1.2rem; border: 2px solid var(--navy); border-radius: 8px;
  background: var(--navy); color: #fff; font: 600 .95rem var(--f-body); text-decoration: none; cursor: pointer; line-height: 1.2; transition: background .15s, border-color .15s; }
.btn:hover { background: var(--navy-deep); border-color: var(--navy-deep); color: #fff; }
.btn-orange { background: var(--orange); border-color: var(--orange); }
.btn-orange:hover { background: var(--orange-deep); border-color: var(--orange-deep); }
.btn-ghost { background: transparent; color: var(--navy); }
.btn-ghost:hover { background: var(--navy-soft); color: var(--navy); border-color: var(--navy); }
.btn-danger { background: var(--bad); border-color: var(--bad); }
.btn-danger:hover { background: #8f1d17; border-color: #8f1d17; }
.btn-ok { background: var(--ok); border-color: var(--ok); }
.btn-ok:hover { background: #0f5a37; border-color: #0f5a37; }
.btn-sm { padding: .4rem .8rem; font-size: .85rem; }
.btn-block { width: 100%; }
.btn[disabled], .btn.disabled { opacity: .5; pointer-events: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }
.link-btn { background: none; border: 0; padding: 0; color: var(--navy); text-decoration: underline; cursor: pointer; font: inherit; }

.badge { display: inline-block; padding: .18rem .6rem; border-radius: 999px; font-size: .78rem; font-weight: 600; white-space: nowrap; }
.badge-ok { background: var(--ok-bg); color: var(--ok); }
.badge-warn { background: var(--warn-bg); color: var(--warn); }
.badge-bad { background: var(--bad-bg); color: var(--bad); }
.badge-info { background: var(--info-bg); color: var(--info); }
.badge-muted { background: #eceff5; color: var(--muted); }
.role-pill { font-size: .72rem; font-weight: 700; padding: .12rem .55rem; border-radius: 4px; background: var(--navy-soft); color: var(--navy); }
.role-superadmin { background: var(--orange); color: #fff; }

.alert { padding: .8rem 1rem; border-radius: 8px; margin: 0 0 1rem; border-left: 5px solid; font-size: .95rem; }
.alert-success { background: var(--ok-bg); border-color: var(--ok); color: #0d4a2c; }
.alert-error { background: var(--bad-bg); border-color: var(--bad); color: #7a1611; }
.alert-warning { background: var(--warn-bg); border-color: var(--gold); color: #5c3800; }
.alert-info { background: var(--info-bg); border-color: var(--info); color: #16358a; }
.alert code, .secret { font-family: ui-monospace, Consolas, monospace; background: rgba(0,0,0,.07); padding: .1rem .4rem; border-radius: 4px; font-size: 1.05em; }

/* ---------------------------------------------------------------- forms */
.field { margin: 0 0 1rem; min-width: 0; }
.field label, .field > .lbl { display: block; font-weight: 600; font-size: .9rem; margin-bottom: .3rem; color: var(--ink); }
.req { color: var(--orange-deep); }
input[type=text], input[type=email], input[type=password], input[type=tel], input[type=date], input[type=number], input[type=search], input[type=file], select, textarea {
  width: 100%; padding: .65rem .8rem; border: 1.5px solid #c5cde0; border-radius: 8px; background: #fff; color: var(--ink); font: inherit; }
input:focus, select:focus, textarea:focus { border-color: var(--navy); outline: 3px solid rgba(242, 106, 29, .35); outline-offset: 0; }
input[readonly] { background: #f0f2f8; }
.has-error input, .has-error select, .has-error textarea { border-color: var(--bad); background: #fff8f7; }
.hint { display: block; color: var(--muted); font-size: .82rem; margin-top: .25rem; }
.err { display: block; color: var(--bad); font-size: .85rem; margin-top: .25rem; font-weight: 600; }
.grid { display: grid; gap: 0 1rem; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
.span2 { grid-column: span 2; }
.checks { display: flex; flex-wrap: wrap; gap: .5rem; }
.check { display: inline-flex; align-items: center; gap: .5rem; padding: .5rem .8rem; border: 1.5px solid #c5cde0; border-radius: 8px; background: #fff; cursor: pointer; font-weight: 500 !important; margin: 0 !important; }
.check:has(input:checked) { border-color: var(--navy); background: var(--navy-soft); }
.check input { width: 1.05rem; height: 1.05rem; accent-color: var(--navy); }
.check em { font-style: normal; color: var(--muted); font-size: .8rem; }
.subjects .check { min-width: 12rem; }
.counter { font-size: .9rem; font-weight: 600; color: var(--muted); margin: .6rem 0 0; }
.counter.good { color: var(--ok); }
.track-pick { display: grid; grid-template-columns: repeat(2, 1fr); gap: .8rem; }
.track-card { display: flex !important; gap: .7rem; align-items: flex-start; padding: .9rem 1rem; border: 2px solid #c5cde0; border-radius: 10px; background: #fff; cursor: pointer; margin: 0 !important; }
.track-card:has(input:checked) { border-color: var(--orange); background: #fff6f0; box-shadow: 0 0 0 3px rgba(242, 106, 29, .18); }
.track-card input { margin-top: .35rem; accent-color: var(--orange); }
.track-card strong { display: block; font: 700 1.25rem var(--f-display); color: var(--navy); }
.track-card small { color: var(--muted); font-weight: 400; }
.photo-row { display: flex; gap: 1rem; align-items: flex-start; }
.photo-row img { width: 90px; height: 120px; object-fit: cover; border-radius: 6px; border: 2px solid var(--line); background: #fff; }
.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 4.2rem; }
.pw-toggle { position: absolute; right: .35rem; top: 50%; transform: translateY(-50%); border: 0; background: var(--navy-soft); color: var(--navy); padding: .3rem .6rem; border-radius: 6px; font: 600 .78rem var(--f-body); cursor: pointer; }
h3.sub { margin: 1.4rem 0 .8rem; padding-top: 1rem; border-top: 1px solid var(--line); font-size: 1.2rem; }
h3.sub:first-child { margin-top: 0; border: 0; padding-top: 0; }
fieldset { border: 0; padding: 0; margin: 0; }
.form-actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.4rem; padding-top: 1.2rem; border-top: 1px solid var(--line); }
.inline-form { display: inline; }
.filters { display: flex; flex-wrap: wrap; gap: .6rem; align-items: end; margin-bottom: 1rem; }
.filters .field { margin: 0; min-width: 9rem; }
.filters .grow { flex: 1 1 14rem; }

/* ---------------------------------------------------------------- cards, tables */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 1.3rem; box-shadow: var(--shadow); margin-bottom: 1.2rem; }
.card > h2:first-child, .card > h3:first-child { margin-top: 0; }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: .8rem; }
.card-head h2, .card-head h3 { margin: 0; }
.cols { display: grid; grid-template-columns: 2fr 1fr; gap: 1.2rem; align-items: start; }
.cols-even { grid-template-columns: 1fr 1fr; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 1rem; margin-bottom: 1.2rem; }
.stat { background: #fff; border: 1px solid var(--line); border-left: 5px solid var(--navy); border-radius: var(--r); padding: .9rem 1rem; text-decoration: none; color: var(--ink); display: block; }
a.stat:hover { border-left-color: var(--orange); background: #fffaf6; color: var(--ink); }
.stat b { display: block; font: 800 2rem var(--f-display); color: var(--navy); line-height: 1.05; }
.stat span { font-size: .85rem; color: var(--muted); }
.stat.warn { border-left-color: var(--orange); }
.stat.ok { border-left-color: var(--ok); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: #fff; }
table.tbl { width: 100%; border-collapse: collapse; font-size: .92rem; }
.tbl th, .tbl td { padding: .65rem .8rem; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl th { background: var(--navy-soft); color: var(--navy); font-weight: 700; font-size: .8rem; white-space: nowrap; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tbody tr:hover { background: #fafbff; }
.tbl .num { text-align: right; font-variant-numeric: tabular-nums; }
.tbl .actions { white-space: nowrap; text-align: right; }
.tbl .thumb { width: 34px; height: 44px; object-fit: cover; border-radius: 4px; border: 1px solid var(--line); }
.empty { text-align: center; padding: 2.5rem 1rem; background: #fff; border: 1px dashed #b9c3dc; border-radius: var(--r); }
.empty h2 { font-size: 1.5rem; }
.empty p { color: var(--muted); max-width: 34rem; margin-inline: auto; }
.pager { display: flex; flex-wrap: wrap; gap: .3rem; align-items: center; margin-top: 1rem; }
.pager a { padding: .35rem .7rem; border: 1px solid var(--line); border-radius: 6px; background: #fff; text-decoration: none; font-size: .9rem; }
.pager a.current { background: var(--navy); color: #fff; border-color: var(--navy); }
.pager-info { margin-left: auto; color: var(--muted); font-size: .85rem; }
dl.kv { margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: .1rem 1.4rem; }
dl.kv > div { padding: .5rem 0; border-bottom: 1px solid var(--line); min-width: 0; }
dl.kv dt { font-size: .78rem; color: var(--muted); font-weight: 600; }
dl.kv dd { margin: 0; font-weight: 500; overflow-wrap: anywhere; }
.tabs { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1rem; }
.tabs a { padding: .45rem .9rem; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; text-decoration: none; font-weight: 600; font-size: .9rem; }
.tabs a.on { background: var(--navy); border-color: var(--navy); color: #fff; }
.tabs a small { opacity: .75; margin-left: .3rem; }
.perm-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1rem; }
.perm-group { border: 1px solid var(--line); border-radius: 8px; padding: .8rem 1rem; background: #fbfcff; }
.perm-group h4 { margin: 0 0 .4rem; }
.perm-group label { display: flex; gap: .5rem; align-items: flex-start; font-weight: 500; font-size: .92rem; margin: .35rem 0; }
.perm-group input { margin-top: .25rem; accent-color: var(--navy); }
.progress-bar { background: #e3e8f4; border-radius: 999px; height: .55rem; overflow: hidden; }
.progress-bar > span { display: block; height: 100%; background: var(--ok); border-radius: 999px 0 0 999px; }
.progress-bar.warn > span { background: var(--orange); }
.timetable { width: 100%; border-collapse: collapse; font-size: .85rem; }
.timetable th, .timetable td { border: 1px solid var(--line); padding: .4rem .5rem; vertical-align: top; }
.timetable th { background: var(--navy-soft); color: var(--navy); }
.tt-slot { display: block; background: var(--navy-soft); border-radius: 6px; padding: .25rem .45rem; margin-bottom: .25rem; font-size: .78rem; }
.tt-slot b { display: block; color: var(--navy); }

/* ---------------------------------------------------------------- progress tracker */
.track { list-style: none; margin: 1rem 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: .5rem; counter-reset: step; }
.track li { position: relative; padding-top: 2.1rem; font-size: .8rem; font-weight: 600; color: var(--muted); text-align: center; }
.track li::before { counter-increment: step; content: counter(step); position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 1.7rem; height: 1.7rem; line-height: 1.7rem;
  border-radius: 50%; background: #e3e8f4; color: var(--muted); font-weight: 700; z-index: 1; }
.track li::after { content: ""; position: absolute; top: .82rem; left: calc(-50% + .9rem); right: calc(50% + .9rem); height: 3px; background: #e3e8f4; }
.track li:first-child::after { display: none; }
.track li.done { color: var(--ok); }
.track li.done::before { content: "\2713"; background: var(--ok); color: #fff; }
.track li.done::after, .track li.now::after { background: var(--ok); }
.track li.now { color: var(--navy); }
.track li.now::before { background: var(--orange); color: #fff; box-shadow: 0 0 0 4px rgba(242, 106, 29, .2); }
.stepper { display: flex; gap: .4rem; margin: 0 0 1.4rem; padding: 0; list-style: none; flex-wrap: wrap; }
.stepper li a, .stepper li span { display: block; padding: .5rem .9rem; border-radius: 8px; background: #fff; border: 1.5px solid var(--line); font-weight: 600; font-size: .9rem; text-decoration: none; color: var(--muted); }
.stepper li.current a, .stepper li.current span { background: var(--navy); border-color: var(--navy); color: #fff; }
.stepper li.done a { border-color: var(--ok); color: var(--ok); }

/* ---------------------------------------------------------------- public site */
.site-head { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 40; }
.head-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .55rem 0; }
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--navy); }
.brand strong { display: block; font: 800 1.35rem var(--f-display); line-height: 1; }
.brand small { display: block; font-size: .78rem; color: var(--orange-deep); font-weight: 600; }
.brand-sm strong { font-size: 1.15rem; }
.site-nav { display: flex; align-items: center; gap: 1.2rem; }
.site-nav a:not(.btn) { text-decoration: none; font-weight: 600; font-size: .92rem; color: var(--ink); }
.site-nav a:not(.btn):hover { color: var(--orange-deep); }
.nav-toggle, .menu-btn { display: none; border: 1.5px solid var(--navy); background: #fff; color: var(--navy); border-radius: 8px; padding: .4rem .8rem; font: 600 .9rem var(--f-body); cursor: pointer; }

.hero { background: var(--navy); color: #fff; position: relative; overflow: hidden;
  background-image: radial-gradient(circle at center, rgba(255, 255, 255, .075) 5px, transparent 6px), linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%);
  background-size: 30px 30px, 100% 100%; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 3rem; align-items: center; padding: 4rem 0 4.5rem; }
.hero h1 { color: #fff; font-size: clamp(3.2rem, 8vw, 6rem); font-weight: 800; line-height: .92; text-transform: uppercase; margin: 1rem 0 .6rem; }
.hero .session { display: inline-block; font: 700 1.3rem var(--f-display); background: #fff; color: var(--navy); padding: .3rem 1rem; border-radius: 6px; letter-spacing: .03em; }
.hero p.lead { font-size: 1.15rem; max-width: 34rem; color: #dbe3f7; margin: 1.3rem 0 1.6rem; }
.impact { display: inline-flex; align-items: center; gap: .6rem; border: 2px solid var(--gold); color: var(--gold); padding: .3rem .9rem; border-radius: 999px; font-weight: 700; font-size: .85rem; }
.hero .btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .6); }
.hero .btn-ghost:hover { background: rgba(255, 255, 255, .12); border-color: #fff; color: #fff; }

.ticket { background: #fff; color: var(--ink); border-radius: 14px; position: relative; padding: 1.6rem 1.7rem 1.4rem; box-shadow: 0 20px 50px rgba(0, 0, 0, .35); }
.ticket::before, .ticket::after { content: ""; position: absolute; top: 58%; width: 26px; height: 26px; border-radius: 50%; background: var(--navy-deep); }
.ticket::before { left: -13px; }
.ticket::after { right: -13px; }
.ticket .tk-label { font-size: .8rem; font-weight: 700; color: var(--orange-deep); }
.ticket h2 { font-size: 1.8rem; margin: .2rem 0 .1rem; }
.ticket .price { font: 800 3.6rem var(--f-display); color: var(--orange); line-height: 1; margin: .4rem 0 1.3rem; }
.ticket .price small { display: block; font: 500 .85rem var(--f-body); color: var(--muted); }
.ticket .tear { border-top: 2px dashed #c9d1e6; margin: 0 -1.7rem 1.1rem; }
.ticket dl { margin: 0 0 1.2rem; display: grid; gap: .5rem; }
.ticket dl div { display: grid; grid-template-columns: 5.2rem 1fr; gap: .6rem; font-size: .93rem; }
.ticket dt { color: var(--muted); }
.ticket dd { margin: 0; font-weight: 600; }
.ticket-closed { text-align: center; }
.ticket-closed .price { font-size: 2rem; color: var(--navy); }

.section { padding: 4rem 0; }
.section.alt { background: #fff; }
.section-head { max-width: 40rem; margin-bottom: 2rem; }
.section-head p { color: var(--muted); font-size: 1.05rem; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: start; }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
.ticks li { position: relative; padding-left: 2rem; font-weight: 500; }
.ticks li::before { content: "\2713"; position: absolute; left: 0; top: .05rem; width: 1.35rem; height: 1.35rem; line-height: 1.35rem; text-align: center; border-radius: 50%; background: var(--navy); color: #fff; font-size: .8rem; font-weight: 700; }
.panel-navy { background: var(--navy); color: #fff; border-radius: 14px; padding: 1.6rem; }
.panel-navy h3 { color: #fff; }
.panel-navy .ticks li::before { background: var(--orange); }
.subject-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.subject-card { background: #fff; border: 1px solid var(--line); border-top: 5px solid var(--navy); border-radius: var(--r); padding: 1.3rem 1.5rem; }
.subject-card.arts { border-top-color: var(--orange); }
.subject-card ul { list-style: none; padding: 0; margin: 0; columns: 2; }
.subject-card li { padding: .3rem 0; font-weight: 500; break-inside: avoid; }
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.fact { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 1.1rem 1.2rem; }
.fact small { color: var(--muted); font-weight: 600; display: block; }
.fact b { font: 700 1.5rem var(--f-display); color: var(--navy); }
.steps { list-style: none; counter-reset: s; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; }
.steps li { counter-increment: s; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 1rem 1.1rem; }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; background: var(--orange); color: #fff; font: 800 1.1rem var(--f-display); margin-bottom: .6rem; }
.steps b { display: block; font: 700 1.15rem var(--f-display); color: var(--navy); }
.steps span { font-size: .9rem; color: var(--muted); }
.notice { border-left: 5px solid var(--orange); background: #fff; padding: 1rem 1.2rem; margin-bottom: .8rem; border-radius: 0 var(--r) var(--r) 0; }
.notice b { color: var(--navy); }
.site-foot { background: var(--navy-deep); color: #c9d3ee; padding-top: 2.5rem; }
.site-foot h3, .site-foot h4 { color: #fff; }
.site-foot a { color: #fff; }
.foot-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 2rem; padding-bottom: 2rem; }
.phones { list-style: none; padding: 0; margin: 0; font: 700 1.25rem var(--f-display); }
.foot-base { border-top: 1px solid rgba(255, 255, 255, .15); padding: 1rem 0; font-size: .85rem; }

/* ---------------------------------------------------------------- auth pages */
.auth { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.auth-side { background: var(--navy); color: #fff; padding: 3rem; display: flex; flex-direction: column; justify-content: center;
  background-image: radial-gradient(circle at center, rgba(255, 255, 255, .075) 5px, transparent 6px); background-size: 30px 30px; }
.auth-side img { width: 96px; height: 96px; margin-bottom: 1.2rem; }
.auth-side h1 { color: #fff; font-size: 2.6rem; text-transform: uppercase; }
.auth-side p { color: #dbe3f7; max-width: 26rem; }
.auth-main { display: grid; place-items: center; padding: 2rem 1.2rem; }
.auth-box { width: min(440px, 100%); }
.auth-box h2 { font-size: 2rem; }
.auth-box .alt-link { margin-top: 1.2rem; text-align: center; font-size: .95rem; }

/* ---------------------------------------------------------------- signed-in shell */
.app-top { background: #fff; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 1rem; padding: .5rem 1.2rem; position: sticky; top: 0; z-index: 40; }
.app-top .who { margin-left: auto; display: flex; align-items: center; gap: .7rem; }
.bell { position: relative; text-decoration: none; font-size: 1.25rem; line-height: 1; padding: .3rem; border-radius: 8px; }
.bell:hover { background: var(--navy-soft); }
.bell-badge { position: absolute; top: -.2rem; right: -.2rem; background: var(--orange); color: #fff; font: 800 .62rem var(--f-body); min-width: 1.1rem; height: 1.1rem; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; padding: 0 .2rem; }
.notif-list { display: grid; gap: .5rem; }
.notif { display: block; padding: .8rem 1rem; border: 1px solid var(--line); border-radius: 8px; background: #fff; text-decoration: none; color: inherit; }
.notif.unread { border-left: 4px solid var(--orange); background: #fffaf6; }
.notif b { color: var(--navy); display: block; }
.notif span { display: block; color: var(--ink); margin: .15rem 0; }
.notif time { color: var(--muted); font-size: .78rem; }
.who-name { font-weight: 600; font-size: .92rem; }
.app-body { display: grid; grid-template-columns: 240px 1fr; min-height: calc(100vh - 57px); }
.sidebar { background: var(--navy); padding: 1rem .8rem; }
.sidebar nav { display: grid; gap: .2rem; position: sticky; top: 70px; }
.sidebar a { display: flex; justify-content: space-between; align-items: center; color: #d5def5; text-decoration: none; padding: .6rem .9rem; border-radius: 8px; font-weight: 500; font-size: .93rem; }
.sidebar a:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.sidebar a.active { background: var(--orange); color: #fff; font-weight: 700; }
.nav-badge { background: #fff; color: var(--orange-deep); border-radius: 999px; font-size: .75rem; font-weight: 800; padding: .05rem .5rem; }
.app-main { padding: 1.6rem clamp(1rem, 3vw, 2.4rem) 3rem; min-width: 0; }
.page-head { margin-bottom: 1.3rem; }
.page-head h1 { margin-bottom: .2rem; }
.page-head .lead { color: var(--muted); margin: 0; }
.form-card { max-width: 860px; }
.sale-card { display: grid; grid-template-columns: 1fr auto; gap: 1rem; align-items: center; }
.sale-card h3 { margin-bottom: .2rem; }
.sale-meta { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; font-size: .9rem; color: var(--muted); }
.price-tag { font: 800 2.2rem var(--f-display); color: var(--orange-deep); }

/* ---------------------------------------------------------------- print sheets */
.printpage { background: #e9ecf4; }
.print-bar { display: flex; gap: .8rem; align-items: center; flex-wrap: wrap; padding: .8rem 1rem; background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
.print-tip { color: var(--muted); font-size: .85rem; }
.sheet { width: 210mm; min-height: 297mm; margin: 1rem auto; padding: 12mm 14mm; background: #fff; box-shadow: var(--shadow); color: #111; font-size: 10.5pt; line-height: 1.4; position: relative; }
.sheet-head { display: flex; gap: 5mm; align-items: center; border-bottom: 3px solid var(--navy); padding-bottom: 4mm; }
.sheet-head img { width: 24mm; height: 24mm; }
.sheet-head h1 { font-size: 21pt; margin: 0; text-transform: uppercase; }
.sheet-head p { margin: 0; font-size: 9.5pt; color: #333; }
.sheet-title { background: var(--navy); color: #fff; text-align: center; font: 700 15pt var(--f-display); letter-spacing: .08em; padding: 2mm; margin: 4mm 0; text-transform: uppercase; }
.sheet-top { display: grid; grid-template-columns: 1fr 32mm; gap: 6mm; align-items: start; }
.sheet-photo { width: 32mm; height: 42mm; object-fit: cover; border: 1.5px solid #333; }
.sheet h4 { background: #e8edf9; padding: 1mm 2.5mm; margin: 4mm 0 1.5mm; font-size: 11pt; border-left: 4px solid var(--orange); }
.sheet dl.kv { grid-template-columns: repeat(2, 1fr); gap: 0 6mm; }
.sheet dl.kv > div { padding: 1.2mm 0; }
.sheet dl.kv dt { font-size: 8pt; }
.sheet dl.kv dd { font-size: 10pt; }
.sheet .note { font-size: 8.5pt; border: 1px dashed #777; padding: 2.5mm; margin-top: 4mm; }
.sig-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10mm; margin-top: 14mm; text-align: center; font-size: 9pt; }
.sig-row div { border-top: 1px solid #222; padding-top: 1.5mm; }
.verify-box { display: flex; justify-content: space-between; gap: 6mm; align-items: center; margin-top: 4mm; padding: 2.5mm 3mm; background: #f3f5fb; border: 1px solid #b9c3dc; font-size: 9pt; }
.verify-box .code { font: 800 16pt ui-monospace, Consolas, monospace; letter-spacing: .12em; color: var(--navy); }
.watermark { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; }
.watermark img { width: 110mm; opacity: .06; }

.idcards { display: flex; flex-wrap: wrap; gap: 8mm; justify-content: center; padding: 1.5rem; }
.idpair { display: grid; gap: 5mm; break-inside: avoid; }
.idcard { width: 85.6mm; height: 54mm; border-radius: 3.2mm; background: #fff; border: .3mm solid #9aa5c4; position: relative; overflow: hidden; font-size: 7pt; color: #111; box-shadow: var(--shadow); break-inside: avoid; }
.idcard .band { background: var(--navy); color: #fff; display: flex; align-items: center; gap: 2mm; padding: 1.6mm 3mm; height: 12mm; }
.idcard .band img { width: 9mm; height: 9mm; }
.idcard .band b { display: block; font: 800 10.5pt var(--f-display); line-height: 1; text-transform: uppercase; letter-spacing: .02em; }
.idcard .band span { font-size: 6.2pt; color: #ffd9c2; letter-spacing: .03em; }
.idcard .body { display: grid; grid-template-columns: 22mm 1fr; gap: 3mm; padding: 2.4mm 3mm 0; }
.idcard .body img { width: 22mm; height: 29mm; object-fit: cover; border: .3mm solid #333; }
.idcard .nm { font: 800 10pt var(--f-display); color: var(--navy); line-height: 1.05; text-transform: uppercase; margin-bottom: 1mm; }
.idcard .row { display: grid; grid-template-columns: 11mm 1fr; margin-bottom: .5mm; }
.idcard .row i { font-style: normal; color: #555; }
.idcard .row b { overflow-wrap: anywhere; }
.idcard .foot { position: absolute; left: 0; right: 0; bottom: 0; height: 5.2mm; background: var(--orange); color: #fff; display: flex; justify-content: space-between; align-items: center; padding: 0 3mm; font-weight: 700; font-size: 6.4pt; }
.idcard.back { padding: 3.5mm 4mm; font-size: 6.6pt; }
.idcard.back h5 { margin: 0 0 1mm; font: 800 9.5pt var(--f-display); color: var(--navy); text-transform: uppercase; }
.idcard.back ul { margin: 0 0 1.5mm; padding-left: 3.5mm; }
.idcard.back .code { font: 800 9pt ui-monospace, Consolas, monospace; letter-spacing: .1em; color: var(--navy); }
.idcard.back .sig { position: absolute; right: 4mm; bottom: 8mm; width: 24mm; border-top: .2mm solid #222; text-align: center; font-size: 5.6pt; padding-top: .5mm; }
@media screen { .idcards .idcard { zoom: 1.45; } }
@page landscape { size: A4 landscape; margin: 0; }
.list-sheet { width: 297mm; min-height: 210mm; page: landscape; }
.register-tbl th, .register-tbl td { border: 1px solid #555; padding: 1.6mm 1.4mm; font-size: 9pt; }
.register-tbl th { background: #e8edf9; }
.register-tbl td.blank { width: 9mm; }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 980px) {
  .hero-grid, .two-col, .cols, .cols-even, .foot-grid, .auth { grid-template-columns: 1fr; }
  .hero-grid { gap: 2rem; padding: 2.5rem 0 3rem; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .auth-side { padding: 1.6rem; }
  .auth-side h1 { font-size: 2rem; }
}
@media (max-width: 860px) {
  .nav-toggle, .menu-btn { display: inline-block; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line); padding: 1rem; flex-direction: column; align-items: stretch; gap: .8rem; }
  .site-nav.open { display: flex; }
  .site-head .wrap { position: relative; }
  .app-body { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .sidebar.open { display: block; position: fixed; inset: 57px 0 0 0; z-index: 30; overflow-y: auto; }
  .who-name { display: none; }
  .g3, .g4 { grid-template-columns: 1fr 1fr; }
  .span2 { grid-column: span 2; }
}
@media (max-width: 620px) {
  h1 { font-size: 1.9rem; }
  .g2, .g3, .g4, .subject-cols, .track-pick, dl.kv, .facts, .steps { grid-template-columns: 1fr; }
  .span2 { grid-column: auto; }
  .track { grid-template-columns: 1fr; text-align: left; }
  .track li { padding: .1rem 0 .1rem 2.3rem; text-align: left; }
  .track li::before { left: 0; transform: none; top: 0; }
  .track li::after { display: none; }
  .sale-card { grid-template-columns: 1fr; }
  .subject-card ul { columns: 1; }
  .section { padding: 2.6rem 0; }
  .subjects .check { min-width: 100%; }
  .app-top { padding: .5rem .8rem; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

@media print {
  @page { size: A4; margin: 0; }
  body, .printpage { background: #fff !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .no-print, .print-bar, .site-head, .app-top, .sidebar { display: none !important; }
  .sheet { box-shadow: none; margin: 0; width: 210mm; }
  .list-sheet { width: 297mm; }
  .idcards { padding: 6mm; gap: 6mm; justify-content: flex-start; }
  .idcard { box-shadow: none; }
  .idcards .idcard { zoom: 1; }
}
.print-landscape { }
