/* Laizer Innovations Academy — design system
   Brand: navy #0F2A4A · gold #F2A516 · white · cloud #F5F7FA
   Font: Tw Cen MT where installed, Jost (self-hosted) everywhere else. */

@font-face { font-family: "Jost"; src: url("../fonts/jost-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Jost"; src: url("../fonts/jost-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Jost"; src: url("../fonts/jost-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Jost"; src: url("../fonts/jost-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  --navy: #0F2A4A;
  --navy-700: #16365E;
  --navy-600: #1F4573;
  --navy-900: #0A1E36;
  --gold: #F2A516;
  --gold-600: #D98F07;
  --gold-text: #8A5A00;
  --gold-50: #FEF6E4;
  --cloud: #F5F7FA;
  --white: #FFFFFF;
  --ink: #13233A;
  --muted: #56667B;
  --line: #E2E8F0;
  --line-strong: #CBD5E1;
  --ok: #15803D; --ok-bg: #E8F6EC;
  --bad: #B42318; --bad-bg: #FDECEA;
  --info: #1D4ED8; --info-bg: #E8EFFD;
  --warn: #8A5A00; --warn-bg: #FEF3D7;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(15, 42, 74, .06), 0 6px 20px rgba(15, 42, 74, .06);
  --font: "Tw Cen MT", "Tw Cen MT Std", "Jost", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Consolas, "Courier New", monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); font-size: 20px; line-height: 1.6; color: var(--ink); background: var(--cloud); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy-600); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--navy); }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.2; font-weight: 600; color: var(--navy); letter-spacing: -0.01em; }
h1 { font-size: clamp(32px, 4.6vw, 49px); }
h2 { font-size: clamp(26px, 3.2vw, 35px); }
h3 { font-size: 24.5px; }
h4 { font-size: 20px; }
p { margin: 0 0 1em; }
small, .small { font-size: 18px; }
.muted { color: var(--muted); }
.mono { font-family: var(--mono); font-size: .92em; }
.icon { width: 18px; height: 18px; flex: none; }
.icon-lg { width: 26px; height: 26px; flex: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.container { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.container-narrow { max-width: 820px; }
.stack > * + * { margin-top: 16px; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.row-between { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--gold); color: var(--navy); padding: 8px 14px; border-radius: 8px; z-index: 100; font-weight: 600; }
.skip-link:focus { left: 12px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 20px; border-radius: 10px; border: 1.5px solid transparent; font: inherit; font-weight: 600; font-size: 20px; line-height: 1.2; cursor: pointer; text-decoration: none; transition: background .15s, border-color .15s, color .15s, transform .05s; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--gold); color: var(--navy); }
.btn-primary:hover { background: var(--gold-600); color: var(--navy); }
.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: var(--navy-700); color: var(--white); }
.btn-outline { background: transparent; border-color: var(--line-strong); color: var(--navy); }
.btn-outline:hover { border-color: var(--navy); color: var(--navy); }
.btn-ghost-light { background: transparent; border-color: rgba(255,255,255,.35); color: var(--white); }
.btn-ghost-light:hover { border-color: var(--white); color: var(--white); }
.btn-danger { background: var(--white); border-color: #F3B4AE; color: var(--bad); }
.btn-danger:hover { background: var(--bad-bg); color: var(--bad); }
.btn-ok { background: var(--ok); color: var(--white); }
.btn-ok:hover { background: #116B33; color: var(--white); }
.btn-sm { min-height: 36px; padding: 6px 14px; font-size: 19px; border-radius: 8px; }
.btn-block { width: 100%; }
.btn-link { background: none; border: 0; padding: 0; font: inherit; color: var(--navy-600); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

/* Badges */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 17.5px; font-weight: 600; white-space: nowrap; }
.badge-ok { background: var(--ok-bg); color: var(--ok); }
.badge-bad { background: var(--bad-bg); color: var(--bad); }
.badge-info { background: var(--info-bg); color: var(--info); }
.badge-warn { background: var(--warn-bg); color: var(--warn); }
.badge-muted { background: #EEF1F5; color: var(--muted); }
.badge-gold { background: var(--gold); color: var(--navy); }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 17.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-text); }
.on-navy .eyebrow { color: var(--gold); }

/* Cards */
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px; }
.card-flat { box-shadow: none; }
.card h3 { margin-bottom: 6px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.card-head h2, .card-head h3 { margin: 0; }
.divider { height: 1px; background: var(--line); margin: 18px 0; border: 0; }

/* Alerts */
.alert { display: flex; gap: 10px; align-items: flex-start; padding: 12px 16px; border-radius: var(--radius-sm); font-size: 19.5px; margin-bottom: 16px; border: 1px solid transparent; }
.alert .icon { margin-top: 2px; }
.alert-success { background: var(--ok-bg); color: #0F5A2B; border-color: #BFE5CB; }
.alert-error { background: var(--bad-bg); color: #8C1C13; border-color: #F6C5C0; }
.alert-info { background: var(--info-bg); color: #1E3A8A; border-color: #C7D6FA; }
.alert-warn { background: var(--warn-bg); color: #6B4500; border-color: #F5DDA1; }
.alert p:last-child { margin-bottom: 0; }

/* Forms */
.form-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.form-grid .full { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label, .label { font-weight: 600; font-size: 19px; color: var(--navy); }
.field .hint { font-size: 18px; color: var(--muted); margin: 0; }
.input, select.input, textarea.input { width: 100%; min-height: 44px; padding: 10px 13px; font: inherit; font-size: 20px; color: var(--ink); background: var(--white); border: 1.5px solid var(--line-strong); border-radius: 10px; transition: border-color .15s, box-shadow .15s; }
textarea.input { min-height: 110px; resize: vertical; }
.input:focus { outline: none; border-color: var(--navy-600); box-shadow: 0 0 0 3px rgba(242, 165, 22, .35); }
.input.is-invalid { border-color: var(--bad); }
.field-error { margin: 0; color: var(--bad); font-size: 18px; font-weight: 500; }
.input-group { position: relative; }
.input-group .input { padding-right: 76px; }
.input-group .toggle-pw { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); background: none; border: 0; color: var(--navy-600); font: inherit; font-size: 18px; font-weight: 600; padding: 8px 10px; cursor: pointer; }
.choice-row { display: flex; gap: 10px; flex-wrap: wrap; }
.choice { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border: 1.5px solid var(--line-strong); border-radius: 10px; background: var(--white); cursor: pointer; font-weight: 500; min-height: 44px; }
.choice input { accent-color: var(--navy); width: 18px; height: 18px; margin: 0; }
.choice:has(input:checked) { border-color: var(--navy); background: #F2F6FB; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 19px; }
.check input { accent-color: var(--navy); width: 18px; height: 18px; margin-top: 2px; flex: none; }
.hp { position: absolute; left: -5000px; width: 1px; height: 1px; overflow: hidden; }
.file-input { padding: 9px; }

/* Slot picker */
.slot-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.slot { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; border: 1.5px solid var(--line-strong); border-radius: 12px; background: var(--white); cursor: pointer; transition: border-color .15s, background .15s; }
.slot input { position: absolute; opacity: 0; pointer-events: none; }
.slot .slot-top { display: flex; align-items: center; justify-content: space-between; color: var(--gold-text); font-size: 17.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.slot .slot-time { font-size: 31.5px; font-weight: 600; color: var(--navy); line-height: 1.1; }
.slot .slot-meta { font-size: 18px; color: var(--muted); }
.slot:hover { border-color: var(--navy-600); }
.slot:has(input:checked) { border-color: var(--navy); background: #F2F6FB; box-shadow: inset 0 0 0 1.5px var(--navy); }
.slot:has(input:focus-visible) { outline: 3px solid var(--gold); outline-offset: 2px; }
.slot.is-full { opacity: .55; cursor: not-allowed; }
.slot-chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); color: var(--white); font-size: 19px; font-weight: 500; }
.slot-chip .icon { color: var(--gold); width: 16px; height: 16px; }
.slot-chip-light { background: #F2F6FB; border-color: var(--line); color: var(--navy); }
.slot-chip-light .icon { color: var(--gold-600); }

/* Tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
table.table { width: 100%; border-collapse: collapse; font-size: 19px; }
.table th { text-align: left; font-weight: 600; font-size: 17.5px; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); background: #F8FAFC; padding: 11px 14px; 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: #FAFBFD; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }
.table a.row-link { font-weight: 600; text-decoration: none; color: var(--navy); }
.table a.row-link:hover { text-decoration: underline; }
.empty { text-align: center; padding: 36px 16px; color: var(--muted); }
.empty .icon-lg { margin: 0 auto 8px; color: var(--line-strong); }

dl.details { display: grid; grid-template-columns: minmax(120px, max-content) 1fr; gap: 8px 18px; margin: 0; font-size: 19.5px; align-content: start; align-self: start; }
dl.details dt { color: var(--muted); }
dl.details dd { margin: 0; font-weight: 500; word-break: break-word; }

/* ===== Public site ===== */
.site-header { background: var(--navy); color: var(--white); position: sticky; top: 0; z-index: 40; border-bottom: 1px solid rgba(255,255,255,.06); }
.site-header .bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand img { height: 38px; width: auto; }
.nav-toggle { display: none; background: none; border: 1px solid rgba(255,255,255,.25); color: var(--white); border-radius: 10px; width: 44px; height: 44px; align-items: center; justify-content: center; cursor: pointer; }
.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a.nav-link { color: rgba(255,255,255,.82); text-decoration: none; font-weight: 500; padding: 8px 12px; border-radius: 8px; position: relative; }
.main-nav a.nav-link:hover { color: var(--white); background: rgba(255,255,255,.06); }
.main-nav a.nav-link.active { color: var(--white); }
.main-nav a.nav-link.active::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 2px; border-radius: 2px; background: var(--gold); }
.nav-actions { display: flex; align-items: center; gap: 8px; margin-left: 12px; }
.nav-actions form { margin: 0; }

.hero { background: var(--navy); color: var(--white); padding: 56px 0 72px; position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.07) 1.4px, transparent 1.4px); background-size: 26px 26px; pointer-events: none; }
.hero .container { position: relative; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 48px; align-items: center; }
.hero h1 { color: var(--white); font-size: clamp(32px, 5vw, 51px); margin: 14px 0 16px; }
.hero h1 .accent { color: var(--gold); }
.hero .lead { font-size: 22.5px; color: rgba(255,255,255,.82); max-width: 540px; margin-bottom: 26px; }
.hero .row { gap: 12px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 28px; font-size: 19px; color: rgba(255,255,255,.78); }
.hero-points span { display: inline-flex; align-items: center; gap: 8px; }
.hero-points .icon { color: var(--gold); width: 16px; height: 16px; }
.feature-card { background: var(--navy-700); border: 1px solid rgba(255,255,255,.12); border-radius: 18px; padding: 24px; box-shadow: 0 24px 60px rgba(0,0,0,.25); }
.feature-card h2 { color: var(--white); font-size: 29px; margin: 10px 0 6px; }
.feature-card p { color: rgba(255,255,255,.78); }
.feature-card .facts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 18px 0; }
.feature-card .fact { background: rgba(255,255,255,.06); border-radius: 10px; padding: 10px 12px; }
.feature-card .fact span { display: block; font-size: 15.5px; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.6); }
.feature-card .fact strong { font-size: 21.5px; color: var(--white); font-weight: 600; }
.feature-card .fact.price strong { color: var(--gold); }
.feature-card .slots { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.code-snippet { font-family: var(--mono); font-size: 18px; background: var(--navy-900); border-radius: 10px; padding: 12px 14px; color: #D7E2F0; overflow-x: auto; white-space: pre; margin: 0 0 4px; }
.code-snippet .k { color: #F2A516; } .code-snippet .s { color: #8FD3A8; }

.section { padding: 64px 0; }
.section-white { background: var(--white); }
.section-head { max-width: 640px; margin-bottom: 32px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { color: var(--muted); font-size: 21.5px; }

.steps { counter-reset: step; }
.step { position: relative; padding-top: 6px; }
.step .num { width: 40px; height: 40px; border-radius: 12px; background: var(--navy); color: var(--gold); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 22.5px; margin-bottom: 14px; }
.step p { color: var(--muted); margin: 0; }

.course-card { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .15s, box-shadow .15s; }
.course-card:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(15,42,74,.1); }
.course-card .cover { background: var(--navy); color: var(--white); padding: 22px; position: relative; min-height: 132px; display: flex; flex-direction: column; justify-content: space-between; }
.course-card .cover .code { font-family: var(--mono); font-size: 18px; color: var(--gold); letter-spacing: .08em; }
.course-card .cover h3 { color: var(--white); font-size: 28px; margin: 8px 0 0; }
.course-card .body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.meta { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 18.5px; color: var(--muted); }
.meta span { display: inline-flex; align-items: center; gap: 6px; }
.meta .icon { width: 15px; height: 15px; color: var(--gold-600); }
.course-card .foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 6px; }
.price { font-size: 26px; font-weight: 600; color: var(--navy); }

.feature { display: flex; gap: 14px; align-items: flex-start; }
.feature .ico { width: 46px; height: 46px; border-radius: 12px; background: var(--gold-50); color: var(--gold-text); display: flex; align-items: center; justify-content: center; flex: none; }
.feature h3 { margin-bottom: 4px; font-size: 22px; }
.feature p { margin: 0; color: var(--muted); font-size: 19.5px; }

.pay-strip { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; }
.pay-logo { background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 10px 16px; display: flex; align-items: center; justify-content: center; height: 64px; }
.pay-logo img { max-height: 44px; width: auto; }
.pay-logo.mixx { background: var(--navy); border-color: var(--navy); }

.cta-band { background: var(--navy); border-radius: 20px; color: var(--white); padding: 36px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta-band h2 { color: var(--white); margin-bottom: 6px; }
.cta-band p { color: rgba(255,255,255,.8); margin: 0; }

.page-head { background: var(--navy); color: var(--white); padding: 40px 0 44px; }
.page-head h1 { color: var(--white); margin: 8px 0 8px; }
.page-head p { color: rgba(255,255,255,.8); margin: 0; max-width: 680px; font-size: 21.5px; }
.breadcrumb { font-size: 18.5px; color: rgba(255,255,255,.7); }
.breadcrumb a { color: rgba(255,255,255,.85); }

.course-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 28px; align-items: start; }
.sticky-side { position: sticky; top: 92px; }
.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.check-list li { display: flex; gap: 10px; align-items: flex-start; }
.check-list .icon { color: var(--ok); margin-top: 3px; width: 17px; height: 17px; }
.prose p { color: #2A3B52; }

.faq { border: 1px solid var(--line); border-radius: 12px; background: var(--white); margin-bottom: 10px; }
.faq summary { list-style: none; cursor: pointer; padding: 16px 18px; font-weight: 600; color: var(--navy); display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 29px; color: var(--gold-600); line-height: 1; transition: transform .2s; }
.faq[open] summary::after { transform: rotate(45deg); }
.faq .answer { padding: 0 18px 16px; color: #2A3B52; }

.contact-item { display: flex; gap: 14px; align-items: flex-start; }
.contact-item .ico { width: 44px; height: 44px; border-radius: 12px; background: var(--navy); color: var(--gold); display: flex; align-items: center; justify-content: center; flex: none; }
.contact-item strong { display: block; color: var(--navy); }

.site-footer { background: var(--navy-900); color: rgba(255,255,255,.75); padding: 48px 0 28px; font-size: 19px; }
.site-footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.site-footer h4 { color: var(--white); font-size: 18px; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 12px; }
.site-footer a { color: rgba(255,255,255,.8); text-decoration: none; }
.site-footer a:hover { color: var(--gold); }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer .legal { border-top: 1px solid rgba(255,255,255,.1); margin-top: 32px; padding-top: 18px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 18px; color: rgba(255,255,255,.55); }
.footer-logo { height: 40px; width: auto; margin-bottom: 14px; }

/* ===== Auth pages ===== */
.auth-shell { min-height: 100vh; display: grid; grid-template-columns: minmax(320px, 0.9fr) minmax(0, 1.1fr); }
.auth-aside { background: var(--navy); color: var(--white); padding: 40px; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.auth-aside::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.06) 1.4px, transparent 1.4px); background-size: 26px 26px; }
.auth-aside > * { position: relative; }
.auth-aside .stacked { width: 260px; max-width: 70%; margin: 40px auto 24px; }
.auth-aside h2 { color: var(--white); text-align: center; font-size: 29px; }
.auth-aside p { color: rgba(255,255,255,.75); text-align: center; }
.auth-aside .back { color: rgba(255,255,255,.8); text-decoration: none; font-size: 19px; display: inline-flex; align-items: center; gap: 6px; }
.auth-aside .back:hover { color: var(--gold); }
.auth-aside .small-print { font-size: 17.5px; color: rgba(255,255,255,.5); text-align: center; }
.auth-main { display: flex; align-items: flex-start; justify-content: center; padding: 48px 24px; }
.auth-card { width: 100%; max-width: 560px; }
.auth-card.narrow { max-width: 420px; margin-top: 6vh; }
.auth-mobile-bar { display: none; }
.auth-switch { text-align: center; margin-top: 18px; font-size: 19.5px; color: var(--muted); }
.auth-switch a { font-weight: 600; }

/* ===== Student area ===== */
.app-header { background: var(--navy); color: var(--white); }
.app-header .bar { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: 16px; }
.app-header .brand img { height: 34px; }
.app-tabs { background: var(--white); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 30; }
.app-tabs nav { display: flex; gap: 4px; overflow-x: auto; }
.app-tabs a, .app-tabs button { display: inline-flex; align-items: center; gap: 8px; padding: 14px 14px; color: var(--muted); text-decoration: none; font-weight: 500; border-bottom: 2px solid transparent; white-space: nowrap; background: none; border-top: 0; border-left: 0; border-right: 0; font: inherit; cursor: pointer; }
.app-tabs a:hover, .app-tabs button:hover { color: var(--navy); }
.app-tabs a.active { color: var(--navy); border-bottom-color: var(--gold); font-weight: 600; }
.app-tabs form { margin: 0 0 0 auto; }
.user-chip { display: flex; align-items: center; gap: 10px; font-size: 19px; color: rgba(255,255,255,.85); }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--gold); color: var(--navy); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 19px; flex: none; }
.app-main { padding: 28px 0 56px; }
.welcome h1 { font-size: clamp(24px, 3vw, 33px); margin-bottom: 4px; }

.enroll-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; align-items: center; }
.enroll-card h3 { margin: 6px 0 4px; }
.status-steps { display: flex; gap: 6px; margin-top: 12px; flex-wrap: wrap; }
.status-steps span { font-size: 17.5px; padding: 4px 10px; border-radius: 999px; background: #EEF1F5; color: var(--muted); font-weight: 500; }
.status-steps span.done { background: var(--ok-bg); color: var(--ok); }
.status-steps span.now { background: var(--gold); color: var(--navy); }

.join-card { background: var(--navy); color: var(--white); border-radius: var(--radius); padding: 24px; display: flex; justify-content: space-between; align-items: center; gap: 18px; flex-wrap: wrap; }
.join-card h2 { color: var(--white); margin: 6px 0 4px; }
.join-card p { color: rgba(255,255,255,.8); margin: 0; }
.join-card .time { font-size: 30px; font-weight: 600; color: var(--gold); line-height: 1.1; }

.pay-methods { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.pay-method { border: 1px solid var(--line); border-radius: 12px; padding: 16px; display: flex; gap: 14px; align-items: center; background: var(--white); }
.pay-method .logo { width: 92px; height: 56px; border-radius: 10px; border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; padding: 6px; flex: none; background: var(--white); }
.pay-method .logo.mixx { background: var(--navy); border-color: var(--navy); }
.pay-method .logo img { max-height: 44px; width: auto; }
.pay-method .acct { font-family: var(--mono); font-size: 22.5px; font-weight: 600; color: var(--navy); letter-spacing: .02em; }
.copy-btn { background: none; border: 1px solid var(--line-strong); border-radius: 8px; padding: 4px 10px; font: inherit; font-size: 17.5px; font-weight: 600; color: var(--navy); cursor: pointer; display: inline-flex; align-items: center; gap: 5px; margin-top: 6px; }
.copy-btn:hover { border-color: var(--navy); }
.copy-btn .icon { width: 14px; height: 14px; }
.amount-box { display: flex; gap: 12px; flex-wrap: wrap; }
.amount-box > div { flex: 1 1 200px; background: var(--gold-50); border: 1px solid #F5DDA1; border-radius: 12px; padding: 14px 16px; }
.amount-box span { display: block; font-size: 17.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--gold-text); font-weight: 600; }
.amount-box strong { font-size: 29px; color: var(--navy); font-weight: 600; }
ol.howto { margin: 0; padding-left: 20px; display: grid; gap: 6px; color: #2A3B52; }

.resource { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.resource:last-child { border-bottom: 0; }
.resource .ico { width: 40px; height: 40px; border-radius: 10px; background: #F2F6FB; color: var(--navy); display: flex; align-items: center; justify-content: center; flex: none; }
.resource .grow { flex: 1; min-width: 0; }
.resource strong { display: block; color: var(--navy); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.announcement { padding: 14px 0; border-bottom: 1px solid var(--line); }
.announcement:last-child { border-bottom: 0; }
.announcement h4 { margin: 0 0 4px; }
.announcement p { margin: 0; color: #2A3B52; font-size: 19.5px; white-space: pre-line; }

/* ===== Admin ===== */
.admin-shell { display: grid; grid-template-columns: 248px minmax(0, 1fr); min-height: 100vh; }
.admin-side { background: var(--navy); color: var(--white); padding: 22px 14px; position: sticky; top: 0; height: 100vh; overflow-y: auto; display: flex; flex-direction: column; }
.admin-side .brand { padding: 0 8px 18px; display: block; }
.admin-side .brand img { height: 34px; }
.admin-side .tag { font-size: 14.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin: 0 10px 14px; }
.admin-nav { display: grid; gap: 2px; }
.admin-nav a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; color: rgba(255,255,255,.78); text-decoration: none; font-weight: 500; font-size: 19.5px; }
.admin-nav a:hover { background: rgba(255,255,255,.06); color: var(--white); }
.admin-nav a.active { background: rgba(242,165,22,.14); color: var(--white); box-shadow: inset 3px 0 0 var(--gold); }
.admin-nav a .icon { color: rgba(255,255,255,.6); }
.admin-nav a.active .icon { color: var(--gold); }
.admin-nav .count { margin-left: auto; background: var(--gold); color: var(--navy); border-radius: 999px; font-size: 15.5px; font-weight: 700; padding: 1px 8px; }
.admin-nav .sep { height: 1px; background: rgba(255,255,255,.1); margin: 10px 8px; }
.admin-side .bottom { margin-top: auto; padding-top: 16px; }
.admin-side .bottom form { margin: 0; }
.admin-side .bottom button { width: 100%; justify-content: flex-start; }
.admin-main { min-width: 0; }
.admin-top { background: var(--white); border-bottom: 1px solid var(--line); padding: 14px 28px; display: flex; align-items: center; justify-content: space-between; gap: 16px; position: sticky; top: 0; z-index: 20; }
.admin-top h1 { font-size: 28px; margin: 0; }
.admin-content { padding: 24px 28px 56px; }
.admin-burger { display: none; background: none; border: 1px solid var(--line-strong); border-radius: 10px; width: 42px; height: 42px; align-items: center; justify-content: center; color: var(--navy); cursor: pointer; }
.stat { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; display: flex; gap: 14px; align-items: center; }
.stat .ico { width: 46px; height: 46px; border-radius: 12px; display: flex; align-items: center; justify-content: center; flex: none; background: #F2F6FB; color: var(--navy); }
.stat .ico.gold { background: var(--gold-50); color: var(--gold-text); }
.stat .value { font-size: 29px; font-weight: 600; color: var(--navy); line-height: 1.1; }
.stat .label { font-size: 18px; color: var(--muted); }
a.stat { text-decoration: none; color: inherit; }
a.stat:hover { border-color: var(--line-strong); }
.filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; margin-bottom: 16px; }
.filters .input { min-height: 40px; padding: 7px 12px; width: auto; }
.filters .grow { flex: 1 1 220px; }
.tabs-pills { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; }
.tabs-pills a { padding: 6px 14px; border-radius: 999px; background: var(--white); border: 1px solid var(--line); color: var(--muted); text-decoration: none; font-size: 19px; font-weight: 500; }
.tabs-pills a.active { background: var(--navy); color: var(--white); border-color: var(--navy); }
.proof-img { max-height: 520px; width: auto; border: 1px solid var(--line); border-radius: 10px; background: #F8FAFC; }
.temp-pw { font-family: var(--mono); font-size: 29px; font-weight: 700; color: var(--navy); background: var(--gold-50); border: 1px dashed var(--gold-600); padding: 10px 16px; border-radius: 10px; display: inline-block; letter-spacing: .06em; }
.inline-form { display: inline; margin: 0; }
.slot-edit { display: grid; gap: 10px; grid-template-columns: 1fr 1fr 2fr 100px 80px auto; align-items: end; padding: 14px 0; border-bottom: 1px solid var(--line); }
.slot-edit:last-of-type { border-bottom: 0; }
.slot-edit .field label { font-size: 17.5px; }
.slot-edit .input { min-height: 40px; padding: 7px 10px; }

/* Error + bare pages */
.bare { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 32px 18px; }
.bare .card { max-width: 640px; width: 100%; }
.error-page { text-align: center; padding: 80px 20px; }
.error-page .code { font-size: 64px; font-weight: 700; color: var(--gold); line-height: 1; }
.req-list { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 6px; font-size: 19px; }
.req-list li { display: flex; align-items: center; gap: 8px; }
.req-ok { color: var(--ok); } .req-bad { color: var(--bad); }

/* ===== Responsive ===== */
@media (max-width: 960px) {
  .hero .container, .course-layout { grid-template-columns: 1fr; }
  .sticky-side { position: static; }
  .site-footer .cols { grid-template-columns: 1fr 1fr; }
  .slot-edit { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .main-nav { display: none; position: absolute; left: 0; right: 0; top: 68px; background: var(--navy); flex-direction: column; align-items: stretch; padding: 8px 20px 20px; border-top: 1px solid rgba(255,255,255,.08); box-shadow: 0 20px 40px rgba(0,0,0,.25); }
  .main-nav.open, .no-js .main-nav { display: flex; }
  .no-js .nav-toggle { display: none; }
  .main-nav a.nav-link { padding: 12px 8px; }
  .main-nav a.nav-link.active::after { left: 8px; right: auto; width: 24px; }
  .nav-actions { margin: 10px 0 0; flex-direction: column; align-items: stretch; }
  .nav-actions .btn { width: 100%; }
  .auth-shell { grid-template-columns: 1fr; }
  .auth-aside { display: none; }
  .auth-mobile-bar { display: flex; align-items: center; justify-content: space-between; background: var(--navy); padding: 14px 20px; }
  .auth-mobile-bar img { height: 32px; width: auto; }
  .auth-mobile-bar a { color: rgba(255,255,255,.85); font-size: 19px; text-decoration: none; }
  .auth-main { padding: 28px 18px 48px; }
  .auth-card.narrow { margin-top: 0; }
  .admin-shell { grid-template-columns: 1fr; }
  .admin-side { position: fixed; inset: 0 auto 0 0; width: 270px; z-index: 60; transform: translateX(-100%); transition: transform .2s; }
  .admin-side.open { transform: none; box-shadow: 0 0 0 100vmax rgba(10,30,54,.45); }
  .no-js .admin-side { position: static; transform: none; width: auto; height: auto; }
  .admin-burger { display: inline-flex; }
  .no-js .admin-burger { display: none; }
  .admin-top { padding: 12px 16px; }
  .admin-content { padding: 18px 16px 48px; }
}
@media (max-width: 600px) {
  body { font-size: 20px; }
  .container { padding: 0 16px; }
  .section { padding: 44px 0; }
  .hero { padding: 36px 0 48px; }
  .card { padding: 18px; }
  .site-footer .cols { grid-template-columns: 1fr; }
  .enroll-card { grid-template-columns: 1fr; }
  .cta-band { padding: 26px; }
  .user-chip .name { display: none; }
  .slot-edit { grid-template-columns: 1fr; }
  dl.details { grid-template-columns: 1fr; gap: 2px 0; }
  dl.details dd { margin-bottom: 8px; }
  .feature-card .facts { grid-template-columns: 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
@media print {
  .site-header, .site-footer, .app-header, .app-tabs, .admin-side, .admin-top, .btn { display: none !important; }
  body { background: #fff; }
}
.flash-container { padding-top: 20px; }
.flash-container .alert:last-child { margin-bottom: 0; }

/* Utilities */
.spaced-top { margin-top: 20px; }
.no-mb { margin-bottom: 0; }
.spacer { height: 18px; }
.center-text { text-align: center; margin-top: 10px; }
.muted-light { color: rgba(255,255,255,.65); }
.nowrap { flex-wrap: nowrap; }
.pre-line { white-space: pre-line; }
.align-start { align-items: flex-start; }
.grow-form { flex: 1 1 320px; display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.grow-form .input { flex: 1 1 220px; width: auto; }
.hidden-form { display: none; }
.plain-fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.no-pad { padding: 0; }
.container-narrow.no-pad, .no-pad-card { max-width: 820px; }
.section-head-row { align-items: flex-end; margin-bottom: 0; }
.section-head-row .section-head { margin-bottom: 24px; }
.install-logo { height: 52px; width: auto; margin-bottom: 18px; }
.payment-review { padding: 18px 0; border-bottom: 1px solid var(--line); }
.payment-review:first-of-type { padding-top: 4px; }
.payment-review:last-child { border-bottom: 0; }
.slot-delete { margin: -6px 0 6px; }
.welcome { margin-bottom: 20px; }
.enroll-card + .enroll-card { margin-top: 14px; }
.enroll-card .meta { margin-top: 4px; }
.nowrap-cell { white-space: nowrap; }
@media (max-width: 600px) { .app-tabs a, .app-tabs button { padding: 12px 10px; } }
.stats-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 165px), 1fr)); gap: 14px; }
@media (max-width: 600px) { .stat { padding: 14px; gap: 10px; flex-direction: column; align-items: flex-start; } .stat .value { font-size: 27px; } }
.field label.check { font-weight: 400; color: var(--ink); font-size: 19px; }
.auth-aside .stacked { width: 170px; max-width: 60%; margin: 32px auto 24px; }
.cta-band { margin-top: 36px; }

/* ===== Round 2 ===== */
.form-section { font-size: 20.5px; margin: 22px 0 12px; padding-top: 16px; border-top: 1px solid var(--line); }
form > .form-section:first-of-type, .card > .form-section:first-of-type { border-top: 0; padding-top: 0; margin-top: 4px; }
.form-grid.three { grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr)); }
.otp-input { font-family: var(--mono); font-size: 29px; letter-spacing: .5em; text-align: center; padding-left: .5em; }
.check-inline { align-items: center; white-space: nowrap; }
select.input option[hidden] { display: none; }

/* SweetAlert2 brand theme */
:root { --swal2-confirm-button-background-color: #0F2A4A; }
.swal2-popup.li-swal { font-family: var(--font); border-radius: 16px; color: var(--ink); }
.li-swal .swal2-title { color: var(--navy); font-size: 29px; font-weight: 600; }
.li-swal .swal2-html-container { font-size: 20px; color: #2A3B52; }
.li-swal .swal2-confirm { background: var(--navy) !important; border-radius: 10px !important; font-weight: 600; font-size: 19.5px; padding: 10px 22px; }
.li-swal .swal2-cancel { border-radius: 10px !important; font-weight: 600; font-size: 19.5px; }
.li-swal .swal2-timer-progress-bar { background: var(--gold); }
.li-swal.swal2-toast .swal2-title { font-size: 19.5px; }
.swal-rules { text-align: left; margin: 0; padding-left: 20px; display: grid; gap: 8px; font-size: 19.5px; }

/* Course filters */
.section-tight { padding-top: 28px; }
.course-filters { margin-bottom: 18px; }
.search-row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.search-box { position: relative; flex: 1 1 320px; }
.search-box .icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.search-box .input { padding-left: 42px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; border: 1.5px solid var(--line-strong); background: var(--white); color: var(--navy); text-decoration: none; font-weight: 500; font-size: 18.5px; }
.chip:hover { border-color: var(--navy); color: var(--navy); }
.chip.active { background: var(--navy); border-color: var(--navy); color: var(--white); }
.chip-count { background: rgba(15,42,74,.08); border-radius: 999px; padding: 0 8px; font-size: 15.5px; }
.chip.active .chip-count { background: var(--gold); color: var(--navy); }
.results-line { margin: 0 0 14px; }
.cat-tag { align-self: flex-start; font-size: 16px; font-weight: 600; color: var(--gold-text); background: var(--gold-50); border-radius: 999px; padding: 3px 12px; text-decoration: none; }
.cat-tag:hover { color: var(--navy); }
.course-card .cover-poster { padding: 0; min-height: 0; display: block; background: var(--navy-900); }
.course-card .cover-poster img { width: 100%; height: 190px; object-fit: cover; object-position: top; }
.course-card .cover.cover-slim { min-height: 0; padding: 16px 22px; }
.course-card .foot { justify-content: flex-start; }
.course-card .foot .btn-primary { margin-left: auto; }
.poster-card { padding: 10px; }
.poster-card img { width: 100%; border-radius: 10px; }
.poster-thumb img { border-radius: 6px; border: 1px solid var(--line); width: 80px; height: auto; }

/* Share */
.share-card h3 { display: flex; align-items: center; gap: 8px; }
.share-row { display: flex; flex-wrap: wrap; gap: 8px; }
.share-btn { display: inline-flex; align-items: center; gap: 7px; padding: 9px 14px; min-height: 42px; border-radius: 10px; border: 1.5px solid var(--line-strong); background: var(--white); color: var(--navy); text-decoration: none; font: inherit; font-weight: 600; font-size: 18.5px; cursor: pointer; }
.share-btn:hover { border-color: var(--navy); color: var(--navy); }
.share-btn.share-wa { background: #1F8F4E; border-color: #1F8F4E; color: #fff; }
.share-btn.share-wa:hover { background: #18773F; color: #fff; }
.share-btn.share-native { background: var(--gold); border-color: var(--gold); color: var(--navy); }

/* Admin small forms */
.cat-edit { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; padding: 12px 0; border-bottom: 1px solid var(--line); }
.cat-edit .grow { flex: 1 1 200px; }
.cat-edit .narrow { width: 90px; }
.q-edit { padding: 18px 0; border-bottom: 1px solid var(--line); }
.q-edit .form-grid { margin-top: 10px; }
.q-new { border-bottom: 0; background: #F8FAFC; margin: 12px -22px -22px; padding: 22px; border-radius: 0 0 var(--radius) var(--radius); }
.mcq-box { gap: 6px; }
.narrow-input { max-width: 120px; }
.mark-grid { grid-template-columns: 160px 1fr; margin-top: 10px; }

/* Student assessments */
.assess-row { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.assess-row .grow { flex: 1 1 280px; }
.assess-row h3 { margin: 6px 0 4px; }
.assess-ico { width: 52px; height: 52px; border-radius: 14px; background: var(--gold-50); color: var(--gold-text); display: flex; align-items: center; justify-content: center; flex: none; }
.assess-action { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.score-pill { font-weight: 700; font-size: 22px; color: var(--navy); background: var(--ok-bg); border-radius: 999px; padding: 4px 14px; }
.facts-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; margin: 16px 0 20px; }
.facts-row > div { background: #F2F6FB; border-radius: 12px; padding: 12px 14px; }
.facts-row span { display: block; font-size: 15.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 600; }
.facts-row strong { font-size: 27px; color: var(--navy); }
.rules-box { border: 1.5px solid #F5DDA1; background: var(--gold-50); border-radius: 14px; padding: 18px 20px; margin: 18px 0; }
.rules-box h3 { display: flex; align-items: center; gap: 8px; color: var(--warn); }
.result-score { display: flex; align-items: baseline; gap: 10px; margin: 8px 0 16px; color: var(--muted); font-size: 24.5px; }
.result-score .big { font-size: 56px; font-weight: 700; color: var(--navy); line-height: 1; }
.result-score .pct { margin-left: auto; background: var(--gold); color: var(--navy); font-weight: 700; padding: 4px 14px; border-radius: 999px; font-size: 22px; }
.small-score { margin: 0; }
.small-score .big { font-size: 36px; }
.review-q { padding: 16px 0; border-bottom: 1px solid var(--line); }
.review-q:last-child { border-bottom: 0; }
.answer-view { white-space: pre-wrap; word-break: break-word; background: #F8FAFC; border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; font-family: var(--font); font-size: 19px; margin: 0; }
.answer-view.code { font-family: var(--mono); font-size: 18px; background: var(--navy-900); color: #E3EAF3; border-color: var(--navy-900); }
.feedback { display: flex; gap: 8px; align-items: flex-start; color: var(--info); background: var(--info-bg); border-radius: 10px; padding: 10px 12px; margin: 10px 0 0; }

/* Exam screen */
.exam-body { background: var(--cloud); }
.exam-bar { position: sticky; top: 0; z-index: 50; background: var(--navy); color: var(--white); box-shadow: 0 4px 16px rgba(10,30,54,.25); }
.exam-bar .bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.exam-title img { border-radius: 8px; }
.exam-title strong { display: block; font-size: 20.5px; }
.exam-title .small { color: rgba(255,255,255,.7); }
.exam-timer { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 29px; font-weight: 700; background: rgba(255,255,255,.08); border: 1.5px solid rgba(255,255,255,.18); padding: 6px 14px; border-radius: 12px; color: var(--gold); min-width: 130px; justify-content: center; }
.exam-timer.is-low { color: #FFD27A; border-color: var(--gold); }
.exam-timer.is-critical { color: #fff; background: #B42318; border-color: #B42318; animation: pulse 1s infinite; }
@keyframes pulse { 50% { opacity: .75; } }
.exam-progress { height: 4px; background: rgba(255,255,255,.12); }
.exam-progress-bar { height: 4px; width: 100%; background: var(--gold); transition: width 1s linear; }
.exam-main { padding-top: 22px; padding-bottom: 60px; max-width: 860px; }
.exam-rules { font-size: 18.5px; }
.question .q-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.q-num { font-weight: 700; color: var(--gold-text); text-transform: uppercase; letter-spacing: .08em; font-size: 17.5px; }
.q-prompt { font-size: 22px; color: var(--navy); font-weight: 500; margin-bottom: 14px; line-height: 1.5; }
.no-copy { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.mcq-list { display: grid; gap: 10px; }
.mcq-option { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1.5px solid var(--line-strong); border-radius: 12px; cursor: pointer; background: var(--white); font-size: 20px; }
.mcq-option input { position: absolute; opacity: 0; pointer-events: none; }
.mcq-letter { width: 32px; height: 32px; flex: none; border-radius: 50%; border: 1.5px solid var(--line-strong); display: inline-flex; align-items: center; justify-content: center; font-weight: 700; color: var(--muted); }
.mcq-option:hover { border-color: var(--navy-600); }
.mcq-option:has(input:checked) { border-color: var(--navy); background: #F2F6FB; box-shadow: inset 0 0 0 1.5px var(--navy); }
.mcq-option:has(input:checked) .mcq-letter { background: var(--navy); border-color: var(--navy); color: var(--gold); }
.mcq-option:has(input:focus-visible) { outline: 3px solid var(--gold); outline-offset: 2px; }
textarea.input.code-input { font-family: var(--mono); font-size: 18.5px; background: var(--navy-900); color: #E3EAF3; border-color: var(--navy-900); tab-size: 4; line-height: 1.55; }
textarea.input.code-input:focus { border-color: var(--gold); }
textarea.input.code-input::placeholder { color: #8FA3BF; }
.exam-submit { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; box-shadow: 0 10px 30px rgba(15,42,74,.12); border-color: var(--gold); }
@media (max-width: 600px) {
  .exam-timer { font-size: 24.5px; min-width: 104px; padding: 5px 10px; }
  .exam-title .small { display: none; }
  .mark-grid { grid-template-columns: 1fr; }
  .search-row .btn { width: 100%; }
}

@media (max-width: 600px) {
  .chips { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px; margin-right: -18px; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .chips::-webkit-scrollbar { display: none; }
  .chip { flex: none; }
}

/* ===== Round 3 ===== */
[data-net] { position: relative; overflow: hidden; }
.net-canvas { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.hero .container, .page-head .container { position: relative; z-index: 1; }
.hero::before { opacity: .45; }
.course-slider { position: relative; }
.slides { display: grid; }
.slides .slide { grid-area: 1 / 1; visibility: hidden; opacity: 0; transition: opacity .35s, visibility 0s .35s; }
.slides .slide.is-active { visibility: visible; opacity: 1; transition: opacity .35s; }
.slide-poster { width: 100%; height: 170px; object-fit: cover; object-position: top; border-radius: 12px; margin: 14px 0 4px; }
.slide-actions { margin-top: 4px; }
.slide-actions .btn { flex: 1 1 140px; }
.slider-nav { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 16px; }
.slider-arrow { width: 42px; height: 42px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.3); background: rgba(255,255,255,.06); color: #fff; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.slider-arrow:hover { border-color: var(--gold); color: var(--gold); }
.slider-dots { display: flex; gap: 8px; }
.slider-dot { width: 10px; height: 10px; border-radius: 999px; border: 0; background: rgba(255,255,255,.35); cursor: pointer; padding: 0; transition: width .25s, background .25s; }
.slider-dot.is-active { width: 28px; background: var(--gold); }
@keyframes a-slide { from { transform: translateX(60px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes a-slide-back { from { transform: translateX(-60px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes a-zoom { from { transform: scale(.86); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes a-flip { from { transform: perspective(900px) rotateY(-55deg); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes a-rise { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes a-fade { from { opacity: 0; filter: blur(6px); } to { opacity: 1; filter: none; } }
.slide.anim-slide { animation: a-slide .6s cubic-bezier(.2,.8,.2,1); }
.slide.anim-slide.dir-back { animation-name: a-slide-back; }
.slide.anim-zoom { animation: a-zoom .6s cubic-bezier(.2,.8,.2,1); }
.slide.anim-flip { animation: a-flip .7s cubic-bezier(.2,.8,.2,1); transform-origin: left center; }
.slide.anim-rise { animation: a-rise .6s cubic-bezier(.2,.8,.2,1); }
.slide.anim-fade { animation: a-fade .7s ease; }

.rewards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 16px; }
.reward { display: flex; gap: 14px; align-items: flex-start; background: #F8FAFC; border: 1px solid var(--line); border-radius: 14px; padding: 16px; }
.reward .ico { width: 50px; height: 50px; border-radius: 14px; background: #F2F6FB; color: var(--navy); display: flex; align-items: center; justify-content: center; flex: none; }
.reward .ico.gold { background: var(--gold-50); color: var(--gold-text); }
.reward p { margin: 0; color: var(--muted); }
.rewards-card h2 { display: flex; align-items: center; gap: 10px; }
.rewards-card h2 .icon { color: var(--gold-600); }

img.avatar { object-fit: cover; padding: 0; background: var(--white); border: 2px solid rgba(255,255,255,.6); }
.avatar-sm { width: 32px !important; height: 32px !important; font-size: 14.5px !important; }
.avatar-lg { width: 64px !important; height: 64px !important; font-size: 24.5px !important; }
.avatar-card { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.avatar-card .grow { flex: 1 1 260px; }
.avatar-preview { width: 112px; height: 112px; border-radius: 50%; overflow: hidden; background: var(--navy); color: var(--gold); display: flex; align-items: center; justify-content: center; font-size: 38px; font-weight: 700; flex: none; border: 4px solid var(--gold-50); }
.avatar-preview img { width: 100%; height: 100%; object-fit: cover; }
.av-input { flex: 1 1 220px; width: auto; }
.reminder-card { border-color: #F5DDA1; background: linear-gradient(0deg, #fff, #fff), var(--gold-50); }
.reminder-card h2 { display: flex; align-items: center; gap: 8px; }

.receipt-card { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; border-color: #BFE5CB; }
.receipt-card .grow { flex: 1 1 260px; }
.receipt-ico { width: 54px; height: 54px; border-radius: 14px; background: var(--ok-bg); color: var(--ok); display: flex; align-items: center; justify-content: center; flex: none; }
a.btn.is-done { pointer-events: none; opacity: .7; }
.verify-card { text-align: left; }
.verify-icon { width: 64px; height: 64px; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin-bottom: 10px; }
.verify-ok { border-color: #BFE5CB; } .verify-ok .verify-icon { background: var(--ok-bg); color: var(--ok); }
.verify-bad { border-color: #F6C5C0; } .verify-bad .verify-icon { background: var(--bad-bg); color: var(--bad); }
.verify-warn { border-color: #F5DDA1; } .verify-warn .verify-icon { background: var(--warn-bg); color: var(--warn); }
.features-grid .feature h3 { font-size: 21.5px; }

.slides .slide { display: flex; flex-direction: column; }
.slides .slide .slide-actions { margin-top: auto; padding-top: 6px; }
.slide-poster-blank { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; background: var(--navy-900); border: 1px dashed rgba(242,165,22,.35); color: var(--gold); }
.slide-poster-blank .code { font-family: var(--mono); font-size: 40px; font-weight: 700; letter-spacing: .04em; }
.slide-poster-blank .sub { color: rgba(255,255,255,.7); font-size: 17px; letter-spacing: .08em; text-transform: uppercase; }

/* ---------- Founder / about ---------- */
.founder { display: grid; grid-template-columns: 360px 1fr; gap: 56px; align-items: center; }
.founder-photo { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.founder-ring { position: relative; width: 320px; aspect-ratio: 1; border-radius: 50%; padding: 8px;
  background: conic-gradient(from 210deg, var(--gold), #FFD27A, var(--navy-600), var(--navy), var(--gold));
  box-shadow: 0 18px 50px rgba(15, 42, 74, .22); }
.founder-ring::after { content: ""; position: absolute; inset: -14px; border-radius: 50%; border: 2px dashed rgba(242, 165, 22, .45); }
.founder-ring img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 6px solid var(--white); background: var(--cloud); }
.founder-name { text-align: center; line-height: 1.3; }
.founder-name strong { display: block; font-size: 29px; color: var(--navy); letter-spacing: .01em; }
.founder-name span { color: var(--gold-text); font-weight: 600; font-size: 18px; letter-spacing: .08em; text-transform: uppercase; }
.founder-text h2 { margin: 8px 0 14px; }
.founder-text p { color: #2A3B52; }
.founder-lead { font-size: 23.5px; color: var(--navy) !important; font-weight: 500; border-left: 4px solid var(--gold); padding-left: 16px; }
.founder-tags { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.founder-tags li { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: var(--gold-50); color: var(--navy); font-weight: 600; font-size: 18.5px; border: 1px solid #F6DDA6; }
.founder-tags .icon { color: var(--gold-600); }
@media (max-width: 860px) {
  .founder { grid-template-columns: 1fr; gap: 32px; }
  .founder-ring { width: 260px; }
  .founder-text { text-align: left; }
}


/* ---------- Moving network background on login pages and footer ---------- */
[data-net] > .net-canvas { position: absolute; inset: 0; z-index: 0; }
.auth-aside > :not(.net-canvas), .site-footer > :not(.net-canvas), .auth-mobile-bar > :not(.net-canvas) { position: relative; z-index: 1; }
.auth-aside::before { opacity: .45; }
.auth-aside .net-canvas { opacity: .95; }
.site-footer .net-canvas { opacity: .7; }

/* ---------- Home hero: wider on big screens, slider fills its side ---------- */
@media (min-width: 1200px) {
  .site-header .container, .hero .container { max-width: 1560px; padding: 0 48px; }
  .hero .container { grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); gap: 56px; }
  .hero .feature-card { display: grid; grid-template-columns: minmax(220px, 40%) minmax(0, 1fr); column-gap: 28px; align-content: start; padding: 26px; }
  .hero .feature-card > * { grid-column: 2; }
  .hero .feature-card > .slide-poster { grid-column: 1; grid-row: 1 / span 7; width: 100%; height: auto; aspect-ratio: 1240 / 1754; margin: 0; object-fit: cover; object-position: top; align-self: start; box-shadow: 0 14px 34px rgba(0,0,0,.35); }
  .hero .feature-card > .slide-poster-blank { height: auto; }
  .hero .feature-card h2 { font-size: 30px; margin-top: 18px; }
  .hero .feature-card .slide-actions { align-self: end; }
}

/* ---------- Grades, appeals, exam papers ---------- */
.result-grid { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; margin: 6px 0 8px; }
.grade-box { display: flex; align-items: center; gap: 14px; padding: 10px 18px 10px 10px; border-radius: 16px; border: 1px solid var(--line); background: #fff; }
.grade-box strong { display: block; font-size: 22.5px; color: var(--navy); margin-bottom: 4px; }
.grade-letter { width: 62px; height: 62px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 32px; font-weight: 700; }
.grade-box.is-pass .grade-letter { background: var(--ok-bg); color: var(--ok); border: 3px solid #9ED5B0; }
.grade-box.is-supp .grade-letter { background: var(--warn-bg); color: var(--warn); border: 3px solid #F2CD7A; }
.paper-card .row, .appeal-card .row { align-items: flex-start; gap: 14px; }
.paper-card h2, .appeal-card h2 { margin: 0 0 4px; font-size: 23.5px; }
.paper-ico { width: 52px; height: 52px; border-radius: 14px; background: var(--gold-50); color: var(--gold-text); display: flex; align-items: center; justify-content: center; flex: none; }
.paper-ico.warn { background: var(--warn-bg); color: var(--warn); }
.appeal-card { border-left: 4px solid var(--gold); }
.appeal-card .btn { margin-top: 12px; }
ul.tight { margin: 6px 0 0; padding-left: 20px; display: grid; gap: 4px; }
.pay-box { display: flex; gap: 14px; align-items: center; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.pay-box img { width: 96px; height: auto; border-radius: 8px; }
.pay-box p { margin: 0; }
tr.is-current td { background: var(--gold-50); }
.was-price { display: inline-block; text-decoration: line-through; color: var(--muted); font-size: 18px; margin: 0 8px 0 4px; }
.discount-note { display: inline-flex; align-items: center; gap: 8px; background: var(--ok-bg); color: var(--ok); border-radius: 999px; padding: 6px 14px; font-size: 18.5px; }

/* ---------- Countdowns ---------- */
.countdown-box { display: inline-flex; flex-direction: column; gap: 2px; padding: 8px 14px; border-radius: 12px; background: var(--navy); color: #fff; min-width: 150px; margin: 8px 0; }
.countdown-box span { font-size: 15px; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.7); }
.countdown-box .cd-value { font-family: var(--mono); font-size: 24.5px; color: var(--gold); letter-spacing: .02em; }
.countdown-box.small { padding: 6px 12px; min-width: 0; margin: 0; }
.countdown-box.small .cd-value { font-size: 19px; }
.countdown-box.is-soon { background: #7A4D00; }
.countdown-box.is-urgent { background: var(--bad); animation: cd-pulse 1.6s ease-in-out infinite; }
.countdown-box.is-urgent .cd-value { color: #fff; }
.countdown-box.is-done { background: #EEF1F5; color: var(--muted); animation: none; }
.countdown-box.is-done span, .countdown-box.is-done .cd-value { color: var(--muted); }
@keyframes cd-pulse { 50% { box-shadow: 0 0 0 6px rgba(180,35,24,.18); } }
.swal-countdown { font-family: var(--mono); font-size: 29px; color: var(--bad); margin-top: 8px; }
.deadline-list { display: grid; gap: 10px; }
.deadline { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; }
.deadline strong { display: block; color: var(--navy); font-size: 20.5px; margin: 4px 0 2px; }
.deadline .countdown-box { margin: 0; }
@media (prefers-reduced-motion: reduce) { .countdown-box.is-urgent { animation: none; } }

/* ---------- Inbox & bell ---------- */
.bell { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 50%; color: #fff; border: 1.5px solid rgba(255,255,255,.25); }
.bell:hover, .bell.active { border-color: var(--gold); color: var(--gold); }
.bell-count { position: absolute; top: -5px; right: -6px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--gold); color: var(--navy); font-size: 14.5px; font-weight: 700; display: flex; align-items: center; justify-content: center; border: 2px solid var(--navy); }
.app-tabs .count { background: var(--gold); color: var(--navy); border-radius: 999px; font-size: 14.5px; font-weight: 700; padding: 0 7px; margin-left: 6px; }
.notice { display: flex; gap: 16px; align-items: flex-start; }
.notice.is-new { border-left: 4px solid var(--gold); background: #FFFDF7; }
.notice h3 { margin: 6px 0 6px; font-size: 22.5px; }
.notice-ico { width: 48px; height: 48px; border-radius: 14px; background: var(--gold-50); color: var(--gold-text); display: flex; align-items: center; justify-content: center; flex: none; }
.notice.is-auto .notice-ico { background: #E8EEF7; color: var(--navy); }
.notice-actions { gap: 12px; margin-top: 10px; align-items: center; }

/* ---------- Admin: send updates ---------- */
.grid-2-1 { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.radio-row { display: flex; flex-wrap: wrap; gap: 10px; }
.radio-card { display: inline-flex; align-items: center; gap: 8px; border: 1.5px solid var(--line); border-radius: 10px; padding: 8px 14px; font-weight: 500 !important; cursor: pointer; }
.radio-card:has(input:checked) { border-color: var(--gold); background: var(--gold-50); }
[data-show-for][hidden] { display: none; }
@media (max-width: 960px) { .grid-2-1 { grid-template-columns: 1fr; } }
.deadline > .grow { flex: 1 1 260px; min-width: 0; }
.notice > .grow { flex: 1; min-width: 0; }
.notice h3, .notice p { overflow-wrap: anywhere; }
.notice-actions .btn { white-space: normal; text-align: left; }
@media (max-width: 600px) {
  .notice-ico { display: none; }
  .deadline .countdown-box { width: 100%; }
  .grade-box { width: 100%; }
}

/* ---------- Attendance ---------- */
.att-rules h3 { display: flex; align-items: center; gap: 8px; margin-top: 0; }
.att-legend { display: grid; gap: 8px; margin: 10px 0; font-size: 19px; }
.att-legend span { display: flex; gap: 10px; align-items: baseline; }
.att-dot { display: inline-block; width: 14px; height: 14px; border-radius: 4px; flex: none; transform: translateY(2px); }
.att-present { background: #15803D; color: #fff; }
.att-studied { background: #4CAF7A; color: #fff; }
.att-login { background: #F5DDA1; color: #6B4500; }
.att-absent { background: #F3B4AE; color: #8A1C12; }
.att-upcoming { background: #EEF1F5; color: var(--muted); }
.att-today { background: #fff; color: var(--navy); border: 2px dashed var(--gold); }
.att-top { display: flex; flex-wrap: wrap; gap: 16px; align-items: stretch; margin-bottom: 16px; }
.att-score { background: var(--navy); color: #fff; border-radius: 14px; padding: 14px 20px; min-width: 190px; display: flex; flex-direction: column; }
.att-score span { font-size: 15.5px; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.7); }
.att-score strong { font-size: 40px; line-height: 1.1; color: var(--gold); }
.att-score small { color: rgba(255,255,255,.75); font-size: 17px; }
.att-score.is-good strong { color: #7FE0A3; }
.att-score.is-low strong { color: #FFB4A9; }
.att-tally { display: grid; grid-template-columns: repeat(4, minmax(90px, 1fr)); gap: 10px; flex: 1; }
.att-tally div { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.att-tally strong { display: block; font-size: 29px; color: var(--navy); }
.att-tally span { font-size: 17px; color: var(--muted); }
.att-days { display: flex; flex-wrap: wrap; gap: 8px; }
.att-day { width: 62px; border-radius: 10px; padding: 6px 0; text-align: center; display: flex; flex-direction: column; line-height: 1.15; }
.att-day .dow, .att-day .dmon { font-size: 14px; text-transform: uppercase; letter-spacing: .06em; opacity: .85; }
.att-day .dnum { font-size: 22.5px; font-weight: 700; }
.small-days .att-day { width: 34px; padding: 4px 0; }
.small-days .att-day .dnum { font-size: 15.5px; }
.activity-list { list-style: none; margin: 0; padding: 0; display: grid; }
.activity-list li { display: flex; gap: 16px; flex-wrap: wrap; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 18.5px; }
.activity-list li:last-child { border-bottom: 0; }
.act-time { color: var(--muted); min-width: 190px; font-size: 17.5px; }

/* ---------- Certificates & prizes ---------- */
.stat-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 14px 0; }
.stat-tiles > div { border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; display: flex; flex-direction: column; gap: 3px; }
.stat-tiles span { font-size: 15px; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.stat-tiles strong { font-size: 29px; color: var(--navy); }
.stat-tiles small { color: var(--muted); font-size: 16px; }
.stat-tiles .overall { background: var(--navy); border-color: var(--navy); }
.stat-tiles .overall span, .stat-tiles .overall small { color: rgba(255,255,255,.75); }
.stat-tiles .overall strong { color: var(--gold); }
.stat-tiles .badge { align-self: flex-start; }
.stat-tiles.compact strong { font-size: 24.5px; }
.cert-checks { list-style: none; padding: 0; margin: 8px 0; display: grid; gap: 6px; }
.cert-checks li { display: flex; align-items: center; gap: 10px; font-size: 19px; }
.cert-checks li.ok .icon { color: var(--ok); }
.cert-checks li.no { color: var(--muted); }
.cert-checks li.no .icon { color: var(--bad); }
.cert-outlook { display: flex; gap: 14px; align-items: center; border-radius: 14px; padding: 14px 18px; margin: 6px 0 4px; }
.cert-outlook h3 { margin: 2px 0; font-size: 23.5px; }
.cert-outlook p { margin: 0; }
.cert-outlook.outcome-completion { background: var(--ok-bg); color: #0F5A2B; }
.cert-outlook.outcome-participation { background: #E8EEF7; color: var(--navy); }
.cert-outlook.outcome-none { background: #F4F4F5; color: var(--muted); }
.cert-ready { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; border: 2px solid var(--gold); background: var(--gold-50); border-radius: 16px; padding: 16px 18px; }
.cert-ready h3 { margin: 2px 0; }
.cert-ready .grow { flex: 1 1 220px; }
.cert-badge { width: 64px; height: 64px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--navy); color: var(--gold); flex: none; }
.prize-card { display: flex; gap: 16px; align-items: center; margin-top: 12px; padding: 14px 18px; border-radius: 16px; background: linear-gradient(120deg, #0F2A4A, #1B3F69); color: #fff; }
.prize-card h3 { color: #fff; margin: 2px 0; }
.prize-card .eyebrow { color: var(--gold); }
.prize-medal { width: 64px; height: 64px; border-radius: 50%; background: var(--gold); color: var(--navy); font-weight: 700; font-size: 24.5px; display: flex; align-items: center; justify-content: center; flex: none; box-shadow: 0 0 0 5px rgba(242,165,22,.3); }
tr.is-prize td { background: #FFFBEF; }
.medal { display: inline-block; background: var(--gold); color: var(--navy); font-weight: 700; border-radius: 999px; padding: 2px 9px; font-size: 15.5px; }
details summary { cursor: pointer; font-weight: 600; color: var(--navy); }
@media (max-width: 600px) { .att-tally { grid-template-columns: repeat(2, 1fr); } .act-time { min-width: 0; } }
.cert-card p, .cert-card .mono, .details dd { overflow-wrap: anywhere; }

/* ---------- Student sidebar layout ---------- */
.side-user { display: flex; align-items: center; gap: 12px; margin: 0 8px 16px; padding: 12px; border-radius: 12px; background: rgba(255,255,255,.06); }
.side-user .avatar { width: 44px; height: 44px; font-size: 18px; flex: none; }
.side-user strong { display: block; color: #fff; font-size: 19px; line-height: 1.2; }
.side-user span { color: rgba(255,255,255,.65); font-size: 16px; }
.student-content { max-width: 1180px; }
.top-logo { display: none; }
.top-logo img { height: 30px; width: auto; }
.top-user { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy); font-weight: 600; }
.bell-light { color: var(--navy); border-color: var(--line-strong); }
.bell-light .bell-count { border-color: #fff; }
@media (max-width: 960px) {
  .top-logo { display: inline-flex; }
  .top-user .name { display: none; }
}

/* ---------- Live attendance ---------- */
.side-meter { display: grid; gap: 6px; margin: 16px 8px 0; padding: 12px; border-radius: 12px; background: rgba(255,255,255,.06); color: #fff; text-decoration: none; }
.side-meter:hover { background: rgba(255,255,255,.1); }
.side-meter .lbl { display: flex; align-items: center; gap: 8px; font-size: 15.5px; letter-spacing: .06em; text-transform: uppercase; color: rgba(255,255,255,.75); }
.side-meter .lbl .icon { color: var(--gold); width: 16px; height: 16px; }
.side-meter .val { font-size: 15px; color: rgba(255,255,255,.7); }
.side-meter .val strong { color: var(--gold); font-size: 19px; }
.live-bar { -webkit-appearance: none; appearance: none; width: 100%; height: 10px; border: 0; border-radius: 999px; background: rgba(255,255,255,.15); overflow: hidden; }
.live-bar::-webkit-progress-bar { background: rgba(255,255,255,.15); border-radius: 999px; }
.live-bar::-webkit-progress-value { background: linear-gradient(90deg, var(--gold), #FFD27A); border-radius: 999px; transition: width .6s; }
.live-bar::-moz-progress-bar { background: linear-gradient(90deg, var(--gold), #FFD27A); border-radius: 999px; }
.live-bar.bump { animation: bar-bump .8s ease; }
@keyframes bar-bump { 40% { box-shadow: 0 0 0 4px rgba(242,165,22,.35); } }
.att-points { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 6px 18px; margin: 10px 0 12px; font-size: 18px; }
.att-points strong { display: inline-block; min-width: 48px; color: var(--ok); }
.att-legend { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.att-legend span { align-items: center; }
.att-today-tile { background: var(--gold-50); border-color: #F5DDA1 !important; }
.att-tally { grid-template-columns: repeat(4, minmax(100px, 1fr)); }

/* ---------- Question sets & import ---------- */
.set-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 22px 0 6px; padding-top: 14px; border-top: 2px solid var(--line); }
.set-head h3 { margin: 0; font-size: 22.5px; }
.import-box { border: 2px dashed #F5DDA1 !important; background: #FFFCF4; }
.import-q.needs-answer { border-left: 4px solid var(--gold); }
.import-bar { position: sticky; top: 76px; z-index: 5; flex-wrap: wrap; gap: 12px; }
.no-mb { margin-bottom: 0; }
select.is-invalid { border-color: var(--gold-600); box-shadow: 0 0 0 3px rgba(242,165,22,.25); }

/* ---------- Ringing bell & compact countdowns ---------- */
.bell.ringing .icon { color: var(--gold-600); animation: bell-ring 2.4s ease-in-out infinite; transform-origin: 50% 4px; }
.bell.ringing { border-color: var(--gold); background: var(--gold-50); }
@keyframes bell-ring {
  0%, 55%, 100% { transform: rotate(0); }
  5% { transform: rotate(16deg); } 10% { transform: rotate(-14deg); } 15% { transform: rotate(12deg); }
  20% { transform: rotate(-10deg); } 25% { transform: rotate(7deg); } 30% { transform: rotate(-4deg); } 35% { transform: rotate(2deg); }
}
.bell.ringing .bell-count { animation: badge-pop 2.4s ease-in-out infinite; }
@keyframes badge-pop { 0%, 55%, 100% { transform: scale(1); } 10% { transform: scale(1.18); } }
@media (prefers-reduced-motion: reduce) { .bell.ringing .icon, .bell.ringing .bell-count { animation: none; } }

.countdown-box { flex-direction: row; align-items: baseline; gap: 8px; padding: 5px 11px; min-width: 0; border-radius: 9px; margin: 4px 0; }
.countdown-box span { font-size: 13px; letter-spacing: .06em; }
.countdown-box .cd-value { font-size: 17px; }
.countdown-box.small { padding: 4px 10px; }
.countdown-box.small .cd-value { font-size: 15.5px; }
.countdown-box.is-urgent { animation: none; box-shadow: 0 0 0 3px rgba(180,35,24,.15); }
.deadline { padding: 10px 14px; }

/* ---------- Registration wizard ---------- */
.auth-card.wide { max-width: 860px; }
.field.span-2 { grid-column: span 2; }
.field.span-3 { grid-column: 1 / -1; }
.wizard-step { border: 0; padding: 0; margin: 0; min-width: 0; }
.wizard-step legend { padding: 0; margin-bottom: 10px; }
.js .wizard .wizard-step { display: none; }
.js .wizard .wizard-step.is-current { display: block; animation: step-in .25s ease; }
@keyframes step-in { from { opacity: 0; transform: translateX(14px); } to { opacity: 1; transform: none; } }
.no-js .wizard .wizard-step + .wizard-step { margin-top: 22px; }
.wizard-steps { display: none; list-style: none; padding: 0; margin: 0 0 18px; gap: 8px; }
.js .wizard-steps { display: flex; }
.wizard-steps li { flex: 1; display: flex; align-items: center; gap: 8px; font-size: 17.5px; color: var(--muted); padding: 8px 10px; border-radius: 10px; background: #F4F6F9; }
.wizard-steps li span { width: 26px; height: 26px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: #fff; border: 1.5px solid var(--line-strong); font-weight: 700; font-size: 15.5px; flex: none; }
.wizard-steps li.is-current { background: var(--gold-50); color: var(--navy); font-weight: 600; }
.wizard-steps li.is-current span { background: var(--gold); border-color: var(--gold); color: var(--navy); }
.wizard-steps li.is-done { color: var(--ok); }
.wizard-steps li.is-done span { background: var(--ok); border-color: var(--ok); color: #fff; }
.wizard-nav { display: flex; gap: 10px; justify-content: flex-end; margin-top: 18px; flex-wrap: wrap; }
.wizard-nav [data-wizard-back] { margin-right: auto; }
.js .wizard:not(.on-last) [data-wizard-submit] { display: none; }
.wizard .auth-switch { margin-top: 12px; }
@media (max-width: 720px) {
  .field.span-2 { grid-column: 1 / -1; }
  .wizard-steps li { font-size: 0; gap: 0; justify-content: center; }
  .wizard-steps li span { font-size: 15.5px; }
}
@media (prefers-reduced-motion: reduce) { .js .wizard .wizard-step.is-current { animation: none; } }
.wizard .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.wizard .form-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 720px) { .wizard .form-grid, .wizard .form-grid.three { grid-template-columns: 1fr; } }
.js .wizard .wizard-step legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.wizard .choice-row { flex-wrap: nowrap; gap: 8px; }
.wizard .choice-row.wrap { flex-wrap: wrap; }
.wizard .choice { padding: 9px 12px; font-size: 18px; white-space: nowrap; }
.wizard .form-grid { gap: 12px 16px; }
.wizard .field .hint { margin-top: 4px; }
.auth-card.wide h1 { margin: 4px 0 6px; font-size: clamp(30px, 3.4vw, 41px); }
.auth-card.wide > p.muted { margin-bottom: 14px; }
.auth-main:has(.auth-card.wide) { padding-top: 28px; }
@media (max-width: 1100px) { .wizard .choice-row { flex-wrap: wrap; } }
.wizard [hidden] { display: none !important; }
.wizard .choice-row { display: grid; grid-template-columns: 1fr 1fr; flex-wrap: initial; }
.wizard .choice { white-space: normal; min-width: 0; line-height: 1.25; }
@media (max-width: 520px) { .wizard .choice-row { grid-template-columns: 1fr; } }
.wizard .choice small { color: var(--muted, #5b6b7f); font-weight: 400; font-size: 15.5px; }
.auth-card.wide .wizard-steps li { white-space: nowrap; }
