/* IUB E-Portal v2 (Nov 2026). Used only by views under application/views/v2/. */
:root {
  --navy: #111D5E; --blue: #283880; --gold: #E3AD33; --gold-hi: #F3D27A;
  --ink: #1C2033; --muted: #545A70; --muted-2: #5A6077; --line: #E2E5EE; --field: #858BA3;
  --paper: #F4F5F9; --err: #B3261E; --err-bg: #FDF2F1; --ok: #1E6B3A; --ok-bg: #E3F3E8;
  --deep: #0D1647; --on-navy: #D5DAEE; --on-navy-2: #C9CFEA; --rule-navy: #2F3B80;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body.v2 { margin: 0; font-family: Poppins, system-ui, -apple-system, "Segoe UI", sans-serif; color: var(--ink); background: var(--navy); line-height: 1.5; }
.v2 a { color: var(--blue); }
.v2 a:hover { color: var(--navy); }
.v2 a:focus-visible, .v2 button:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 4px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* Gate shell: navy tile background, header, footer */
.g-shell { position: relative; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; overflow: hidden; background: var(--navy); }
.g-tiles { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.g-head { position: relative; max-width: 1320px; width: 100%; margin: 0 auto; padding: 18px 32px; display: flex; align-items: center; gap: 20px; flex-wrap: wrap; color: #fff; }
.v2 a.g-brand, .v2 a.g-brand:hover { color: #fff; }
.v2 .g-brand { display: flex; flex-direction: column; line-height: 1.3; color: #fff; text-decoration: none; }
.g-brand b { font-size: 15px; font-weight: 600; }
.g-brand span { font-size: 13px; color: var(--on-navy-2); }
.g-nav { margin-left: auto; display: flex; gap: 24px; flex-wrap: wrap; font-size: 14px; }
.v2 .g-nav a { color: #fff; text-decoration: none; padding: 6px 0; border-bottom: 2px solid transparent; }
.v2 .g-nav a:hover { color: var(--gold-hi); border-bottom-color: var(--gold); }
.g-main { position: relative; flex: 1; max-width: 1320px; width: 100%; margin: 0 auto; padding: 28px 32px 0; display: flex; gap: 48px; justify-content: center; align-items: flex-end; flex-wrap: wrap; }
.g-sill { position: relative; height: 0; border-top: 2px solid var(--gold); box-shadow: 0 6px 0 -4px var(--gold); }
.g-foot { position: relative; background: var(--deep); color: #A9B0D2; font-size: 13px; margin-top: 8px; }
.g-foot-in { max-width: 1320px; margin: 0 auto; padding: 20px 32px; display: flex; gap: 24px; flex-wrap: wrap; justify-content: space-between; }
.g-foot nav { display: flex; gap: 22px; flex-wrap: wrap; }
.v2 .g-foot a { color: #fff; }

/* Side columns next to the gate */
.g-side { flex: 1 1 300px; max-width: 340px; color: #fff; padding-bottom: 56px; }
.g-side-top { align-self: flex-start; padding-top: 120px; }
.v2 .g-side a { color: #fff; }
.g-urdu { margin: 0; font-family: "Noto Nastaliq Urdu", serif; font-weight: 600; font-size: 32px; line-height: 2.1; color: var(--gold); }
.g-h2 { margin: 8px 0 0; font-family: "Playfair Display", Georgia, serif; font-weight: 600; font-size: 32px; line-height: 1.2; }
.g-lead { margin: 16px 0 28px; font-size: 15px; line-height: 1.75; color: var(--on-navy); }
.g-fig { margin: 0; display: flex; gap: 16px; align-items: flex-end; }
.g-fig .arch-win { flex: none; width: 132px; height: 160px; border: 1.5px solid var(--gold); border-bottom: 0; border-radius: 66px 66px 0 0; padding: 6px 6px 0; }
.g-fig img { width: 100%; height: 100%; object-fit: cover; border-radius: 60px 60px 0 0; display: block; }
.g-fig figcaption { font-size: 13px; line-height: 1.6; color: #B9C0DE; }
.g-svc-h { margin: 0 0 6px; font-family: "Playfair Display", Georgia, serif; font-weight: 600; font-size: 22px; }
.g-svc-p { margin: 0 0 16px; font-size: 14px; color: var(--on-navy-2); }
.v2 .g-svc { display: flex; gap: 14px; align-items: flex-start; padding: 16px 0; border-top: 1px solid var(--rule-navy); text-decoration: none; color: #fff; }
.v2 .g-svc:last-child { border-bottom: 1px solid var(--rule-navy); }
.g-svc svg { flex: none; margin-top: 2px; }
.g-svc b { display: block; font-weight: 600; }
.g-svc small { display: block; font-size: 13.5px; color: var(--on-navy-2); margin-top: 2px; }
.v2 .g-svc:hover b { color: var(--gold-hi); text-decoration: underline; }
.g-ready-h { margin: 0 0 12px; font-size: 16px; font-weight: 600; color: #fff; }
.g-ready { list-style: none; margin: 0; padding: 0; }
.g-ready li { display: flex; gap: 12px; padding: 12px 0; border-top: 1px solid var(--rule-navy); font-size: 14px; line-height: 1.6; color: var(--on-navy); }
.g-ready li:last-child { border-bottom: 1px solid var(--rule-navy); }
.g-ready svg { flex: none; margin-top: 3px; }

/* The gate: logo arch with the white panel inside */
.gate { flex: 0 1 520px; width: 100%; max-width: 520px; display: flex; flex-direction: column; }
.gate-wide { flex-basis: 720px; max-width: 720px; }
.gate-cap { position: relative; }
.gate-cap svg { display: block; width: 100%; height: auto; }
.gate-crest { position: absolute; left: 50%; top: 22%; width: 15%; max-width: 80px; height: auto; transform: translateX(-50%); }
.gate-wide .gate-crest { width: 12%; }
.gate-posts { border-left: 2px solid var(--gold); border-right: 2px solid var(--gold); padding: 0 10px; margin-top: -1px; }
.gate-body { background: #fff; padding: 0 48px 40px; margin-top: -1px; }
.gate-wide .gate-body { padding: 0 56px 44px; }
.gate-title { margin: 0; text-align: center; font-family: "Playfair Display", Georgia, serif; font-weight: 600; font-size: 32px; line-height: 1.2; color: var(--navy); }
.gate-sub { margin: 6px 0 26px; text-align: center; font-size: 15px; color: var(--muted); }
.draw { stroke-dasharray: 1; stroke-dashoffset: 0; }
@media (prefers-reduced-motion: no-preference) {
  .draw { animation: g-draw 1.6s cubic-bezier(.6, 0, .2, 1) .2s both; }
}
@keyframes g-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }

/* Forms */
.form { display: flex; flex-direction: column; gap: 18px; }
.field { min-width: 0; }
.label { display: block; font-size: 15px; font-weight: 500; margin-bottom: 6px; color: var(--ink); }
.label .opt-note { font-weight: 400; color: var(--muted-2); }
.hint { margin: -2px 0 8px; font-size: 13px; color: var(--muted-2); }
.row-between { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 8px; }
.row-between .label { margin: 0; }
.input { display: block; width: 100%; height: 50px; padding: 0 14px; border: 1px solid var(--field); border-radius: 6px; font: inherit; font-size: 16px; color: var(--ink); background: #fff; }
.input:focus-visible { outline: 3px solid var(--gold); outline-offset: 1px; border-color: var(--blue); }
.input:user-invalid { border-color: var(--err); background: var(--err-bg); }
.input.is-invalid { border-color: var(--err); background: var(--err-bg); }
.err { display: none; color: var(--err); font-size: 14px; margin: 6px 0 0; }
.field:has(.input:user-invalid) .err { display: block; }
.field:has(.input.is-invalid) .err { display: block; }
.field:has(.input:user-invalid) .rules { color: var(--err); }
.pw { position: relative; }
.pw .input { padding-right: 84px; }
.pw-toggle { position: absolute; right: 5px; top: 5px; height: 40px; padding: 0 12px; border: 0; background: transparent; color: var(--blue); font: inherit; font-size: 14px; font-weight: 500; cursor: pointer; border-radius: 4px; }
.pw-toggle:hover { background: #EEF0F8; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 28px; border: 0; border-radius: 6px; font: inherit; font-size: 16px; font-weight: 600; cursor: pointer; text-decoration: none; }
.v2 .btn-primary { background: var(--blue); color: #fff; }
.v2 .btn-primary:hover { background: var(--navy); color: #fff; }
.btn:disabled { opacity: .7; cursor: progress; }
.btn-block { width: 100%; }
.or { display: flex; align-items: center; gap: 14px; margin: 22px 0; color: var(--muted-2); font-size: 14px; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: #D9DCE6; }
.gsi { display: flex; justify-content: center; min-height: 44px; }
.note { margin: 24px 0 0; text-align: center; font-size: 14px; line-height: 1.6; color: var(--muted); }
.captcha-img { display: block; margin-bottom: 8px; border-radius: 4px; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.legend { font-family: "Playfair Display", Georgia, serif; font-size: 21px; font-weight: 600; color: var(--navy); margin-bottom: 16px; padding: 0; display: flex; align-items: center; gap: 12px; width: 100%; }
.legend::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.legend-sm { display: block; font-size: 15px; font-weight: 500; margin-bottom: 6px; padding: 0; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 20px; align-items: start; }
.rad-row { display: flex; gap: 10px; }
.rad { flex: 1; display: flex; align-items: center; gap: 10px; height: 50px; padding: 0 14px; border: 1px solid var(--field); border-radius: 6px; cursor: pointer; font-size: 16px; background: #fff; }
.rad:has(input:checked) { border-color: var(--blue); box-shadow: inset 0 0 0 1px var(--blue); background: #F5F6FC; }
.rad input { width: 20px; height: 20px; margin: 0; accent-color: var(--blue); }
.rad:has(input:focus-visible) { outline: 3px solid var(--gold); outline-offset: 2px; }
.opts { display: flex; flex-direction: column; gap: 12px; }
.opt { display: flex; gap: 14px; align-items: flex-start; padding: 14px 16px; border: 1px solid #C3C7D6; border-radius: 8px; cursor: pointer; background: #fff; }
.opt:has(input:checked) { border-color: var(--blue); box-shadow: inset 0 0 0 1px var(--blue); background: #F5F6FC; }
.opt input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--blue); }
.opt:has(input:focus-visible) { outline: 3px solid var(--gold); outline-offset: 2px; }
.opt b { display: block; font-weight: 500; }
.opt small { display: block; font-size: 14px; color: var(--muted); margin-top: 2px; overflow-wrap: anywhere; }
.steps { list-style: none; margin: 0 0 24px; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; font-size: 13px; color: var(--muted-2); }
.steps li { display: flex; flex-direction: column; gap: 6px; }
.steps li::before { content: ""; height: 4px; border-radius: 2px; background: #D3D7E3; }
.steps .done { color: var(--blue); }
.steps .done::before { background: var(--blue); }
.steps .now { color: var(--navy); font-weight: 600; }
.steps .now::before { background: var(--gold); }
.form-end { display: flex; flex-direction: column; align-items: center; gap: 12px; padding-top: 4px; }
.form-end p { margin: 0; font-size: 13px; color: var(--muted); text-align: center; }

/* Messages from the server */
.alert { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 6px; font-size: 14px; line-height: 1.55; margin: 0 0 18px; }
.alert svg { flex: none; margin-top: 1px; }
.alert-err { background: var(--err-bg); color: #8C1D16; border: 1px solid #F1C9C5; }
.alert-ok { background: var(--ok-bg); color: var(--ok); border: 1px solid #BFE3CB; }

details.ready { border: 1px solid var(--line); border-radius: 8px; padding: 0 14px; margin-bottom: 22px; background: #F7F8FB; }
details.ready summary { min-height: 46px; display: flex; align-items: center; font-size: 14px; font-weight: 600; color: var(--navy); cursor: pointer; }
details.ready ul { margin: 0; padding: 0 0 14px 18px; font-size: 14px; line-height: 1.6; color: #3B4058; }
.only-narrow { display: none; }

/* Tablets and phones */
@media (max-width: 1100px) {
  .g-side { flex-basis: 100%; max-width: 560px; order: 2; padding-bottom: 40px; }
  .g-side-top { padding-top: 0; }
  .gate { order: 1; }
  .only-wide { display: none; }
  .only-narrow { display: block; }
}
@media (max-width: 760px) {
  .g-head { padding: 12px 16px; }
  .g-nav { width: 100%; margin-left: 0; flex-wrap: nowrap; overflow-x: auto; gap: 4px; }
  .v2 .g-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; white-space: nowrap; }
  .g-main { padding: 12px 12px 0; gap: 32px; }
  .g-urdu { font-size: 24px; }
  .g-h2 { font-size: 26px; }
  .gate-posts { padding: 0 7px; }
  .gate-body, .gate-wide .gate-body { padding: 0 16px 28px; }
  .gate-title { font-size: 26px; }
  .grid2 { grid-template-columns: minmax(0, 1fr); }
  .g-foot-in { padding: 16px; }
}

/* ---------- Signed-in pages (dashboard, vouchers) ---------- */
[hidden] { display: none !important; }
body.v2-app { background: var(--paper); }
.v2 .skip { position: absolute; left: -9999px; top: 8px; z-index: 10; background: #fff; color: var(--navy); padding: 10px 14px; border-radius: 6px; }
.v2 .skip:focus { left: 8px; }
.a-head { background: var(--navy); color: #fff; border-bottom: 3px solid var(--gold); }
.a-head-in { max-width: 1240px; margin: 0 auto; padding: 12px 32px; display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.v2 a.a-brand, .v2 a.a-brand:hover { color: #fff; }
.v2 .a-brand { display: flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; }
.a-brand img { width: 44px; height: auto; }
.a-brand b { display: block; font-size: 15px; font-weight: 600; }
.a-brand small { display: block; font-size: 13px; color: var(--on-navy-2); }
.a-nav { margin-left: auto; display: flex; gap: 20px; flex-wrap: wrap; font-size: 14px; }
.v2 .a-nav a { color: #E6E9F5; text-decoration: none; padding: 6px 0; border-bottom: 2px solid transparent; }
.v2 .a-nav a:hover, .v2 .a-nav a[aria-current] { color: #fff; border-bottom-color: var(--gold); }
.a-hero { position: relative; overflow: hidden; background: var(--navy); color: #fff; }
.a-hero-in { position: relative; max-width: 1240px; margin: 0 auto; padding: 28px 32px 32px; display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.a-avatar { flex: none; width: 72px; height: 88px; border: 1.5px solid var(--gold); border-bottom: 0; border-radius: 36px 36px 0 0; padding: 5px 5px 0; }
.a-avatar img, .a-avatar span { width: 100%; height: 100%; border-radius: 31px 31px 0 0; display: flex; align-items: center; justify-content: center; object-fit: cover; background: var(--blue); font-size: 22px; font-weight: 600; color: #fff; }
.a-hero-text { flex: 1 1 300px; min-width: 0; }
.a-salam { margin: 0 0 2px; font-size: 15px; font-weight: 500; color: var(--gold); }
.a-hero h1 { margin: 0; font-family: "Playfair Display", Georgia, serif; font-weight: 600; font-size: 32px; line-height: 1.2; }
.a-ident { margin: 6px 0 0; font-size: 14px; color: var(--on-navy-2); display: flex; gap: 8px; flex-wrap: wrap; }
.v2 .a-ident a, .v2 a.a-hero-link { color: #fff; }
.v2 .a-ident a:hover, .v2 a.a-hero-link:hover { color: var(--gold-hi); }
.v2 a.a-hero-link { display: inline-flex; align-items: center; min-height: 44px; font-size: 15px; font-weight: 500; }
.a-main { max-width: 1240px; margin: 0 auto; padding: 28px 32px 64px; }
.a-narrow { max-width: 1040px; }
.v2 .btn-gold { background: var(--gold); color: var(--navy); }
.v2 .btn-gold:hover { background: #F0BE45; color: var(--navy); }
.v2 .btn-outline { background: #fff; color: var(--ink); border: 1px solid var(--field); min-height: 46px; padding: 0 18px; font-weight: 500; font-size: 15px; }
.v2 .btn-outline:hover { background: #F2F4FA; color: var(--ink); }

.att { margin-bottom: 28px; }
.att-head, .side-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.att-head h2 { margin: 0; font-family: "Playfair Display", Georgia, serif; font-weight: 600; font-size: 24px; color: var(--navy); }
.att-list { list-style: none; margin: 0; padding: 0; background: #fff; border: 1px solid var(--line); border-radius: 8px; }
.att-item { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; padding: 16px 20px; border-top: 1px solid #EEF0F5; }
.att-item:first-child { border-top: 0; }
.att-text { flex: 1 1 300px; min-width: 0; }
.att-title { margin: 0; font-weight: 600; color: var(--navy); display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.att-meta { margin: 4px 0 0; font-size: 14px; line-height: 1.6; color: var(--muted); }
.att-acts { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.chip { font-size: 13px; font-weight: 600; padding: 2px 10px; border-radius: 12px; white-space: nowrap; }
.chip-warn { background: #FFF3DA; color: #8A4B00; }
.chip-calm { background: #E6E8F0; color: #3B4058; }
.chip-bad { background: #FDE7E5; color: #9B1C14; }

.a-cols { display: flex; gap: 28px; flex-wrap: wrap; align-items: flex-start; }
.a-col-main { flex: 999 1 600px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.a-col-side { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.svc-search { display: block; }
.svc-search-label { display: block; font-family: "Playfair Display", Georgia, serif; font-size: 22px; font-weight: 600; color: var(--navy); margin-bottom: 10px; }
.svc-search-box { position: relative; }
.svc-search-box svg { position: absolute; left: 16px; top: 17px; }
.svc-search-box .input { height: 54px; padding-left: 46px; border-radius: 8px; }
.svc-count { margin: 8px 0 0; font-size: 14px; color: var(--muted); min-height: 20px; }
.svc-card { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 8px 32px 20px; }
.svc-none { padding: 24px 0 8px; }
.svc-group { padding: 20px 0 6px; border-bottom: 1px solid var(--line); }
.svc-group:last-child { border-bottom: 0; }
.svc-group h2 { margin: 0 0 4px; font-family: "Playfair Display", Georgia, serif; font-weight: 600; font-size: 20px; color: var(--navy); }
.svc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); column-gap: 28px; }
.v2 .svc { display: flex; gap: 14px; align-items: flex-start; padding: 12px; margin: 0 -12px; border: 0; border-radius: 8px; background: none; font: inherit; text-align: left; color: var(--ink); text-decoration: none; cursor: pointer; }
.v2 .svc:hover { background: #F2F4FA; }
.v2 .svc:hover .svc-t { text-decoration: underline; }
.svc-ico { flex: none; width: 36px; height: 44px; border: 1.5px solid var(--blue); border-radius: 18px 18px 3px 3px; display: flex; align-items: center; justify-content: center; padding-top: 5px; }
.svc-txt { min-width: 0; }
.svc-t { display: block; font-weight: 600; font-size: 15px; color: var(--navy); }
.svc-d { display: block; margin-top: 2px; font-size: 13.5px; line-height: 1.55; color: var(--muted); }
.side-card { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 22px; }
.side-card h2 { margin: 0; font-family: "Playfair Display", Georgia, serif; font-weight: 600; font-size: 20px; color: var(--navy); }
.side-card > h2 { margin-bottom: 10px; }
.count-list, .link-list { list-style: none; margin: 0 0 16px; padding: 0; font-size: 15px; }
.count-list li { border-bottom: 1px solid var(--line); }
.v2 .count-list a { display: flex; justify-content: space-between; align-items: center; min-height: 46px; color: var(--ink); text-decoration: none; }
.count-list b { font-weight: 600; }
.link-list { margin: 0; display: flex; flex-direction: column; }
.v2 .link-list a { display: flex; align-items: center; min-height: 40px; }
.a-foot { background: var(--deep); color: #A9B0D2; font-size: 13px; }
.a-foot-in { max-width: 1240px; margin: 0 auto; padding: 18px 32px; display: flex; gap: 24px; flex-wrap: wrap; justify-content: space-between; }
.a-foot nav { display: flex; gap: 20px; }
.v2 .a-foot a { color: #fff; }

.dlg { width: min(760px, calc(100vw - 24px)); max-height: calc(100dvh - 48px); padding: 0; border: 0; border-radius: 10px; box-shadow: 0 20px 50px rgba(17, 29, 94, .3); }
.dlg::backdrop { background: rgba(13, 22, 71, .55); }
.dlg-head { position: sticky; top: 0; z-index: 1; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 10px 10px 22px; background: var(--navy); color: #fff; border-bottom: 3px solid var(--gold); }
.dlg-head h2 { margin: 0; font-size: 17px; font-weight: 600; }
.dlg-close { width: 44px; height: 44px; border: 0; background: transparent; color: #fff; display: flex; align-items: center; justify-content: center; border-radius: 6px; cursor: pointer; }
.dlg-body { padding: 20px 22px 24px; overflow-x: auto; }
.dlg-body table { width: 100%; border-collapse: collapse; font-size: 14px; margin: 0 0 20px; min-width: 520px; }
.dlg-body th, .dlg-body td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.dlg-body th { font-size: 13px; color: var(--muted); border-bottom: 2px solid var(--navy); }
.dlg-body h3 { font-size: 16px; color: var(--navy); margin: 4px 0 10px; text-align: left !important; }

.v2 .back { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; font-size: 14px; }
.page-h { margin: 0; font-family: "Playfair Display", Georgia, serif; font-weight: 600; font-size: 34px; color: var(--navy); }
.page-sub { margin: 6px 0 0; font-size: 15px; color: var(--muted); }
.v-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin: 8px 0 24px; }
.gen-wrap { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.gen-wrap span { font-size: 13px; color: var(--muted); }
.btn-gen { box-shadow: inset 0 -2px 0 rgba(17, 29, 94, .18); }
.v-bar { display: flex; gap: 16px; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; border-bottom: 1px solid #D9DCE6; margin-bottom: 20px; }
.tabs { display: flex; gap: 4px; margin-bottom: -1px; }
.tab { height: 48px; padding: 0 18px; border: 0; border-bottom: 3px solid transparent; background: transparent; font: inherit; font-size: 15px; font-weight: 500; color: var(--muted); cursor: pointer; display: flex; align-items: center; gap: 8px; }
.tab:hover { color: var(--navy); }
.tab[aria-selected="true"] { color: var(--navy); border-bottom-color: var(--gold); font-weight: 600; }
.count { min-width: 24px; height: 22px; padding: 0 7px; border-radius: 11px; background: #E6E8F0; color: #3B4058; font-size: 12.5px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; }
.tab[aria-selected="true"] .count { background: var(--navy); color: #fff; }
.v-find { position: relative; width: 260px; margin-bottom: 10px; }
.v-find svg { position: absolute; left: 12px; top: 15px; }
.v-find .input { height: 48px; padding-left: 40px; }
.v-note { margin: 0 0 14px; font-size: 14px; color: var(--muted); }
.v-list { display: flex; flex-direction: column; gap: 14px; }
.v-card { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 20px 24px; display: flex; gap: 16px 24px; flex-wrap: wrap; align-items: center; }
.v-main { flex: 1 1 300px; min-width: 0; }
.v-card h2 { margin: 0; font-size: 17px; font-weight: 600; color: var(--navy); display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.v-meta { margin: 6px 0 0; font-size: 14px; color: var(--muted); overflow-wrap: anywhere; }
.v-amt { flex: 0 0 auto; text-align: right; min-width: 130px; }
.v-amt b { display: block; font-size: 22px; font-weight: 600; }
.v-amt span { font-size: 13px; color: var(--muted); }
.v-acts { flex: 1 1 100%; display: flex; gap: 10px; flex-wrap: wrap; border-top: 1px solid #EEF0F5; padding-top: 16px; }
.v-msg { flex: 1 1 100%; margin: 0; padding: 10px 12px; border-radius: 6px; font-size: 14px; line-height: 1.5; }
.v-msg-bad { background: var(--err-bg); color: #9B1C14; }
.v-msg-info { background: #EEF0F8; color: #2A3366; }
.v-rows { gap: 0; background: #fff; border: 1px solid var(--line); border-radius: 8px; }
.v-row { display: flex; gap: 6px 20px; align-items: center; flex-wrap: wrap; padding: 14px 24px; border-top: 1px solid #EEF0F5; font-size: 14px; color: var(--muted); }
.v-row:first-child { border-top: 0; }
.v-row-t { flex: 1 1 260px; min-width: 0; color: var(--ink); font-weight: 500; font-size: 15px; }
.v-row-amt { min-width: 100px; text-align: right; font-weight: 600; color: var(--ink); }
.v-empty { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 22px 24px; color: var(--muted); font-size: 15px; }
.v-rows .v-empty { border: 0; }
.v-explain { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 16px 20px; display: flex; gap: 16px; align-items: center; flex-wrap: wrap; margin-bottom: 16px; }
.v-explain p { margin: 0; flex: 1 1 360px; font-size: 14px; line-height: 1.6; color: #3B4058; }
.input-file { height: auto; padding: 12px; }
.ch-card { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 28px 32px; margin-top: 24px; max-width: 640px; }
.ch-amount { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 6px; background: #FBF3E3; border: 1px solid #F1DDB0; }
.ch-amount span { font-size: 15px; color: var(--muted); }
.ch-amount b { font-size: 22px; font-weight: 600; color: var(--ink); }
.ch-num { max-width: 240px; }
.gen-done { margin-top: 20px; max-width: 640px; }
@media (max-width: 760px) {
  .ch-card { padding: 20px 16px; }
  .ch-num { max-width: none; }
}

@media (max-width: 760px) {
  .a-head-in { padding: 10px 16px; }
  .a-nav { width: 100%; margin-left: 0; flex-wrap: nowrap; overflow-x: auto; gap: 4px; }
  .v2 .a-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; white-space: nowrap; }
  .a-brand b { font-size: 14px; }
  .a-hero-in { padding: 20px 16px 24px; }
  .a-hero h1 { font-size: 24px; }
  .a-main { padding: 20px 16px 48px; }
  .svc-card { padding: 4px 16px 12px; }
  .att-item { padding: 14px 16px; }
  .att-item > .btn, .att-acts { width: 100%; }
  .att-acts .btn { flex: 1 1 100%; }
  .page-h { font-size: 28px; }
  .gen-wrap { align-items: stretch; width: 100%; }
  .btn-gen { width: 100%; }
  .tabs { width: 100%; }
  .tab { flex: 1; padding: 0 6px; font-size: 14px; justify-content: center; }
  .v-find { width: 100%; }
  .v-card { padding: 16px; }
  .v-amt { text-align: left; min-width: 0; }
  .v-acts .btn-primary { flex: 1 1 100%; }
  .v-acts .btn-outline { flex: 1 1 auto; }
  .v-row { padding: 12px 16px; }
  .v-row-amt { text-align: left; min-width: 0; }
}

.chip-ok { background: var(--ok-bg); color: var(--ok); }

/* ---------- Back to top (modern-web-guidance: scroll-position-aware-elements) ---------- */
.scroll-sentinel { position: absolute; top: 0; left: 0; width: 1px; height: 1px; visibility: hidden; }
.v2 .to-top {
  position: fixed; right: 16px; bottom: 16px; z-index: 30;
  width: 48px; height: 52px; display: flex; align-items: center; justify-content: center;
  border-radius: 24px 24px 6px 6px; background: var(--navy); color: #fff; border: 2px solid var(--gold);
  box-shadow: 0 6px 18px rgba(13, 22, 71, .25); text-decoration: none;
  visibility: hidden; opacity: 0; translate: 0 16px;
  transition: visibility .25s, opacity .25s ease, translate .25s ease;
}
.v2 .to-top:hover { background: var(--blue); color: #fff; }
.is-scrolled .v2 .to-top { visibility: visible; opacity: 1; translate: 0 0; }
@supports (container-type: scroll-state) {
  html { container-type: scroll-state; }
  @container scroll-state(scrollable: top) {
    .v2 .to-top { visibility: visible; opacity: 1; translate: 0 0; }
  }
}
@media (prefers-reduced-motion: reduce) { .v2 .to-top { transition: none; } }
.g-foot-in, .a-foot-in { padding-right: 80px; }

/* ---------- Edit profile ---------- */
.pf-check { background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--gold); border-radius: 8px; padding: 18px 20px; margin: 20px 0 24px; }
.pf-check h2 { margin: 0; font-size: 17px; font-weight: 600; color: var(--navy); }
.pf-check p { margin: 4px 0 10px; font-size: 14px; color: var(--muted); }
.pf-check ul { margin: 0; padding-left: 20px; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 4px 24px; font-size: 15px; }
.pf-card { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 28px 32px; margin-bottom: 20px; scroll-margin-top: 16px; }
.pf-uploads { display: flex; flex-direction: column; }
.pf-up { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; padding: 16px 0; border-top: 1px solid #EEF0F5; }
.pf-up:first-child { border-top: 0; }
.pf-thumb { flex: none; width: 64px; height: 64px; border-radius: 8px; background: var(--paper); border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.pf-thumb img { width: 100%; height: 100%; object-fit: cover; }
.pf-up-text { flex: 1 1 240px; min-width: 0; }
.pf-up-status { margin: 4px 0 0; font-size: 14px; color: var(--muted); }
.pf-up-status.is-error { color: var(--err); }
.pf-up-btn { cursor: pointer; }
.pf-up input[type=file]:focus-visible + .pf-up-btn, .pf-up:has(input[type=file]:focus-visible) .pf-up-btn { outline: 3px solid var(--gold); outline-offset: 2px; }
.pf-actions { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
@media (max-width: 760px) {
  .pf-card { padding: 20px 16px; }
  .pf-up-btn { width: 100%; }
  .pf-actions .btn { width: 100%; }
}

/* ---------- Sign-in page: one screen on laptops and desktops ---------- */
.quick { display: none; }
.page-login .g-head { padding-top: 12px; padding-bottom: 12px; }
.page-login .g-main { padding-top: 12px; }
.page-login .gate { flex-basis: 470px; max-width: 470px; }
.page-login .gate-body { padding: 0 40px 26px; }
.page-login .gate-title { font-size: 30px; }
.page-login .gate-sub { margin-bottom: 18px; }
.page-login .form { gap: 14px; }
.page-login .input { height: 48px; }
.page-login .or { margin: 14px 0; }
.page-login .note { margin-top: 14px; }
.page-login .g-side { padding-bottom: 28px; }
.page-login .g-foot-in { padding-top: 12px; padding-bottom: 12px; }
@media (min-width: 761px) and (max-height: 820px) {
  .page-login .gate { flex-basis: 420px; max-width: 420px; }
  .page-login .gate .hint, .page-login .note, .page-login .g-fig { display: none; }
  .page-login .gate-sub { margin-bottom: 12px; }
}
@media (max-width: 1100px) {
  .page-login .g-side { display: none; }
  .page-login .quick { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 16px; margin-top: 16px; font-size: 14px; }
  .page-login .quick p { width: 100%; margin: 0; text-align: center; color: var(--muted); }
  .v2 .page-login .quick a, .page-login .quick a { display: inline-flex; align-items: center; min-height: 40px; }
}

/* ---------- Header brand: crest + E-Portal (shared by public and signed-in headers) ---------- */
.v2 a.brand, .v2 a.brand:hover { display: flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; }
.brand img { flex: none; width: 46px; height: auto; }
.brand-text { display: flex; flex-direction: column; padding-left: 12px; border-left: 1px solid rgba(227, 173, 51, .55); line-height: 1.15; }
.brand-text small { font-size: 12.5px; font-weight: 500; color: var(--on-navy-2); }
.brand-text b { font-family: "Playfair Display", Georgia, serif; font-size: 25px; font-weight: 600; color: var(--gold); margin-top: 2px; }
.v2 a.brand:hover .brand-text b { color: var(--gold-hi); }
@media (max-width: 760px) {
  .brand img { width: 38px; }
  .brand-text { padding-left: 10px; }
  .brand-text small { font-size: 11.5px; }
  .brand-text b { font-size: 21px; }
}

/* ---------- Public look-up pages (merit, payments, degree status, test result) ---------- */
body.v2-pub { background: var(--paper); }
.p-head { position: relative; overflow: hidden; background: var(--navy); color: #fff; }
.p-bar { position: relative; max-width: 1180px; margin: 0 auto; padding: 14px 32px; display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.p-band { position: relative; max-width: 1180px; margin: 0 auto; padding: 24px 32px 96px; }
.p-crumb { font-size: 13px; color: #B9C0DE; margin-bottom: 8px; }
.v2 .p-crumb a { color: var(--on-navy-2); }
.p-band h1 { margin: 0; font-family: "Playfair Display", Georgia, serif; font-weight: 600; font-size: 40px; line-height: 1.15; }
.p-band p { margin: 10px 0 0; font-size: 16px; line-height: 1.7; color: var(--on-navy); max-width: 60ch; }
.p-main { position: relative; max-width: 1180px; margin: -72px auto 0; padding: 0 32px 72px; }
.p-card { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 24px 28px; box-shadow: 0 12px 30px rgba(17, 29, 94, .10); gap: 0; margin-bottom: 24px; }
.p-row { display: flex; gap: 16px; align-items: flex-end; }
.p-row .field { flex: 1 1 0; min-width: 0; }
.p-row .p-narrow { max-width: 480px; }
.p-or { margin: 0 0 14px; font-size: 14px; color: var(--muted); }
.p-hint { margin: 12px 0 0; }
.p-result-h { margin: 0 0 12px; font-size: 15px; font-weight: 600; color: var(--muted); }
.r-list { display: flex; flex-direction: column; gap: 16px; }
.r-card { background: #fff; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.r-head { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; padding: 22px 28px; border-bottom: 1px solid #EEF0F5; }
.r-head > div { flex: 1 1 320px; min-width: 0; }
.r-kicker { margin: 0; font-size: 14px; color: var(--muted); }
.r-title { margin: 2px 0 0; font-family: "Playfair Display", Georgia, serif; font-size: 26px; font-weight: 600; color: var(--navy); line-height: 1.25; }
.r-tags { margin: 8px 0 0; display: flex; gap: 10px; flex-wrap: wrap; align-items: center; font-size: 14px; color: var(--muted); }
.r-facts { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.r-facts > div { padding: 18px 28px; border-right: 1px solid #EEF0F5; border-top: 1px solid #EEF0F5; }
.r-facts dt { font-size: 13px; color: var(--muted); }
.r-facts dd { margin: 4px 0 0; font-size: 16px; font-weight: 600; overflow-wrap: anywhere; }
.r-facts .r-big { font-size: 26px; }
.r-facts .r-due { background: #FFF8E8; }
.r-facts .r-due dt, .r-facts .r-due dd { color: #8A4B00; }
.r-marks { text-align: right; }
.r-marks p { margin: 0; }
.r-marks .r-score { font-size: 34px; font-weight: 600; line-height: 1.1; }
.r-marks .r-score span { font-size: 18px; font-weight: 500; color: var(--muted); }
.r-band { padding: 14px 28px; font-size: 15px; font-weight: 500; }
.r-band-ok { background: var(--ok-bg); color: var(--ok); }
.r-band-info { background: #EEF0F8; color: #2A3366; }
.r-steps { list-style: none; margin: 0; padding: 22px 28px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; font-size: 14px; }
.r-steps li { display: flex; flex-direction: column; gap: 8px; color: var(--muted); }
.r-steps li::before { content: ""; height: 4px; border-radius: 2px; background: #D3D7E3; }
.r-steps b { display: block; color: var(--muted); font-weight: 600; }
.r-steps .done b { color: var(--ok); }
.r-steps .done::before { background: var(--ok); }
.r-steps .now b { color: var(--navy); }
.r-steps .now::before { background: var(--gold); }
.r-foot { padding: 20px 28px; border-top: 1px solid #EEF0F5; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.r-foot .hint { margin: 0; }
.r-foot-row { flex-direction: row; align-items: center; flex-wrap: wrap; gap: 14px; }
.r-foot-row p { margin: 0; flex: 1 1 320px; font-size: 14px; line-height: 1.6; color: #3B4058; }
.p-after { margin: 14px 0 0; font-size: 14px; line-height: 1.6; color: var(--muted); }
.p-pay { display: flex; gap: 24px; flex-wrap: wrap; align-items: flex-start; }
.p-pay-main { flex: 2 1 480px; min-width: 0; }
.p-how { flex: 1 1 280px; min-width: 0; padding: 22px 24px; }
.p-how h2 { margin: 0 0 12px; font-size: 17px; font-weight: 600; color: var(--navy); }
.p-how ol { margin: 0; padding-left: 20px; font-size: 14px; line-height: 1.7; color: #3B4058; display: flex; flex-direction: column; gap: 6px; }
.p-how p { margin: 14px 0 0; font-size: 14px; line-height: 1.6; color: var(--muted); }
.p-status { display: flex; gap: 14px; align-items: flex-start; padding: 18px 22px; border-radius: 10px; margin-bottom: 20px; }
.p-status p { margin: 0; font-size: 15px; line-height: 1.6; }
.p-status .p-status-h { font-size: 18px; font-weight: 600; margin-bottom: 2px; }
.p-status svg { flex: none; }
.p-status-ok { background: var(--ok-bg); color: var(--ok); border: 1px solid #BFE3CB; }
.p-status-err { background: var(--err-bg); color: #8C1D16; border: 1px solid #F1C9C5; }
@media (max-width: 760px) {
  .p-bar { padding: 12px 16px; }
  .p-band { padding: 16px 16px 84px; }
  .p-band h1 { font-size: 30px; }
  .p-main { padding: 0 16px 56px; }
  .p-card { padding: 20px 16px; }
  .p-row { flex-direction: column; align-items: stretch; gap: 12px; }
  .p-row .p-narrow { max-width: none; }
  .p-row .btn { width: 100%; }
  .p-or { margin: 0; text-align: center; }
  .r-head, .r-facts > div, .r-foot, .r-band { padding-left: 16px; padding-right: 16px; }
  .r-marks { text-align: left; }
  .r-steps { padding: 18px 16px; }
  .r-foot form, .r-foot .btn { width: 100%; }
}

/* ---------- Footer always at the bottom of the window on short pages ---------- */
body.v2-pub, body.v2-app { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
body.v2-pub > .p-main, body.v2-app > main { flex: 1 0 auto; width: 100%; }
body.v2-pub > .a-foot, body.v2-app > .a-foot, body.v2-pub > .p-head, body.v2-app > .a-head, body.v2-app > .a-hero { flex-shrink: 0; }
.v2-pub .a-foot-in { max-width: 1180px; }

/* ---------- Urdu university name: fade up + one gold light sweep (option B), everywhere it appears ---------- */
@supports ((background-clip: text) or (-webkit-background-clip: text)) {
  .ur-anim {
    background: linear-gradient(100deg, var(--gold) 40%, #FFF1C2 50%, var(--gold) 60%) 0 0 / 250% 100% no-repeat;
    -webkit-background-clip: text; background-clip: text; color: transparent;
  }
  .name-anim {
    background: linear-gradient(100deg, #fff 40%, var(--gold-hi) 50%, #fff 60%) 0 0 / 250% 100% no-repeat;
    -webkit-background-clip: text; background-clip: text; color: transparent;
  }
}
@media (prefers-reduced-motion: no-preference) {
  .ur-anim { opacity: 0; transform: translateY(12px); animation: urIn 1s ease-out .9s forwards, urSweep 1.6s ease-in-out 2.1s forwards; }
  .name-anim { opacity: 0; transform: translateY(10px); animation: urIn .9s ease-out .3s forwards, urSweep 1.6s ease-in-out 1.3s forwards; }
  .ur-rule { transform: scaleX(0); animation: urRule .7s ease-out 1.7s forwards; }
}
@keyframes urIn { to { opacity: 1; transform: none; } }
@keyframes urSweep { from { background-position: 100% 0; } to { background-position: 0 0; } }
@keyframes urRule { to { transform: scaleX(1); } }

/* Sign-in: the name centred in the space above the gate */
.page-login .g-main { align-content: space-between; }
.page-login .g-plate { display: flex; flex-direction: column; align-items: center; flex: 1 1 100%; text-align: center; padding-top: 4px; }
.page-login .g-plate .g-urdu { margin: 0; font-size: 60px; line-height: 2; }
.ur-rule { display: block; width: 160px; height: 2px; margin-top: 0; background: var(--gold); box-shadow: 0 6px 0 -0.5px rgba(227, 173, 51, .45); }
@media (min-width: 761px) and (max-height: 900px) {
  .page-login .g-plate .g-urdu { font-size: 44px; line-height: 1.9; }
}
@media (min-width: 761px) and (max-height: 760px) {
  .page-login .g-plate .g-urdu { font-size: 34px; line-height: 1.8; }
  .ur-rule { width: 120px; }
}
@media (max-width: 760px) {
  .page-login .g-plate { padding-top: 0; }
  .page-login .g-plate .g-urdu { font-size: 30px; line-height: 1.9; }
  .ur-rule { width: 110px; }
}

/* My vouchers: the challan that was just generated */
.v-new { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; background: var(--ok-bg); border: 1px solid #BFE3CB; color: var(--ok); border-radius: 10px; padding: 18px 22px; margin-bottom: 20px; }
.v-new:focus { outline: 3px solid var(--gold); outline-offset: 3px; }
.v-new svg { flex: none; }
.v-new-text { flex: 1 1 320px; min-width: 0; }
.v-new-text h2 { margin: 0; font-size: 18px; font-weight: 600; }
.v-new-text p { margin: 4px 0 0; font-size: 15px; line-height: 1.6; color: var(--ink); }
.v-new-acts { display: flex; gap: 10px; flex-wrap: wrap; }
.v-card-new { box-shadow: 0 0 0 2px var(--ok); }
@media (max-width: 760px) {
  .v-new { padding: 16px; }
  .v-new-acts, .v-new-acts .btn { width: 100%; }
}

/* ---------- Change password (signed in) ---------- */
.cp-cols { display: flex; gap: 24px; align-items: flex-start; margin-top: 24px; }
.cp-card { flex: 3 1 0; min-width: 0; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 28px 32px; }
.cp-rules { list-style: none; margin: 0; padding: 14px 16px; border-radius: 8px; background: #F7F8FB; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 16px; font-size: 14px; color: var(--muted); }
.cp-rules li { display: flex; gap: 10px; align-items: center; }
.cp-ico { flex: none; width: 16px; height: 16px; border-radius: 50%; border: 2px solid #B9BED0; box-sizing: border-box; }
.cp-rules li.ok { color: var(--ok); }
.cp-rules li.ok .cp-ico { border: 0; background: var(--ok) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12l4 4 8-9'/%3E%3C/svg%3E") center / 12px no-repeat; }
.cp-tips { flex: 2 1 0; min-width: 0; background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--gold); border-radius: 10px; padding: 24px; }
.cp-tips h2 { margin: 0 0 12px; font-size: 17px; font-weight: 600; color: var(--navy); }
.cp-tips ul { margin: 0; padding-left: 18px; font-size: 14px; line-height: 1.7; color: #3B4058; display: flex; flex-direction: column; gap: 8px; }
@media (max-width: 760px) {
  .cp-cols { flex-direction: column; align-items: stretch; }
  .cp-card { padding: 20px 16px; }
  .cp-rules { grid-template-columns: minmax(0, 1fr); }
}

/* Searchable picker (city, fee, fee type) */
.cb { position: relative; }
.cb .input { padding-right: 42px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23545A70' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-3.5-3.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; }
.cb-list { position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 40; margin: 0; padding: 4px; list-style: none; background: #fff; border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 10px 28px rgba(17, 29, 94, .16); overflow-y: auto; overscroll-behavior: contain; }
.cb-list[hidden] { display: none; }
.cb-opt { display: flex; align-items: center; min-height: 44px; padding: 8px 12px; border-radius: 6px; font-size: 16px; color: var(--ink); cursor: pointer; overflow-wrap: anywhere; }
.cb-opt:hover { background: var(--paper); }
.cb-opt[aria-selected="true"] { background: #E7EAF6; color: var(--navy); box-shadow: inset 3px 0 0 var(--gold); }
.cb-opt mark { background: none; color: var(--navy); font-weight: 600; text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 3px; }
.cb-pin { margin-top: 4px; border-top: 1px solid var(--line); border-radius: 0 0 6px 6px; font-weight: 500; color: var(--blue); }
.cb-note { padding: 8px 12px; font-size: 13px; color: var(--muted-2); }
@media (max-width: 760px) { .cb-list { scroll-padding: 4px; } }
.input::placeholder { color: #6B7189; opacity: 1; }

/* Activate MY IUB */
.mi-user { display: flex; align-items: center; gap: 14px; padding: 14px 16px; margin-bottom: 18px; border-radius: 8px; background: #F7F8FB; border: 1px solid var(--line); color: var(--blue); }
.mi-user svg { flex: none; }
.mi-user-l { margin: 0; font-size: 13px; color: var(--muted); }
.mi-user-v { margin: 2px 0 0; font-size: 18px; font-weight: 600; color: var(--navy); overflow-wrap: anywhere; }
#mi-rules { margin-bottom: 14px; }
.mi-err[hidden] { display: none; }
.mi-err { display: block; margin: 0 0 14px; }
.mi-done { max-width: 640px; margin-top: 8px; background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--gold); border-radius: 10px; padding: 32px; }
.mi-done-h { display: flex; align-items: center; gap: 12px; color: var(--ok); }
.mi-done .page-sub { margin: 14px 0 20px; }
.mi-facts { margin: 0 0 24px; display: grid; gap: 12px; }
.mi-fact { padding: 14px 16px; border-radius: 8px; background: #F7F8FB; border: 1px solid var(--line); }
.mi-fact-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.mi-fact-row > div { flex: 1; min-width: 0; }
.mi-fact dt { font-size: 13px; color: var(--muted); }
.mi-fact dd { margin: 2px 0 0; font-size: 15px; }
.mi-uname { font-size: 24px !important; font-weight: 600; color: var(--navy); overflow-wrap: anywhere; }

/* Online test */
.ot-main { max-width: 640px; padding-top: 40px; }
.ot-card { background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--gold); border-radius: 10px; padding: 36px 32px; }
.ot-center { text-align: center; }
.ot-h { font-size: 30px; }
.ot-ico { color: var(--blue); margin-bottom: 8px; }
.ot-ring { width: 72px; height: 72px; margin: 0 auto 22px; border-radius: 50%; border: 5px solid #E7EAF6; border-top-color: var(--gold); animation: ot-spin 1s linear infinite; }
@keyframes ot-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .ot-ring { animation-duration: 3s; } }
.ot-facts { margin: 22px 0 24px; padding: 14px 16px; border-radius: 8px; background: #F7F8FB; border: 1px solid var(--line); display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; text-align: left; }
.ot-facts dt { font-size: 13px; color: var(--muted); }
.ot-facts dd { margin: 2px 0 0; font-size: 16px; font-weight: 600; color: var(--navy); overflow-wrap: anywhere; }
.ot-slow { margin: 0 0 12px; font-size: 14px; color: var(--muted); }
.ot-tips { margin: 28px 0 0; padding: 16px 0 0 18px; border-top: 1px solid var(--line); text-align: left; font-size: 14px; line-height: 1.7; color: #3B4058; }
.ot-box { margin: 20px 0 24px; padding: 14px 16px; border-radius: 8px; background: #F7F8FB; border: 1px solid var(--line); }
.ot-box p { margin: 0; font-size: 14px; color: #3B4058; }
.ot-box .ot-box-h { margin-bottom: 4px; font-size: 15px; font-weight: 600; color: var(--navy); }
.ot-acts { display: flex; gap: 12px; flex-wrap: wrap; }
.ot-help { margin: 22px 0 0; font-size: 14px; color: var(--muted); }

/* Job results dialog */
.jr { display: flex; flex-direction: column; gap: 26px; }
.jr-h { display: flex; align-items: center; gap: 10px; }
.jr-count { font-size: 13px; font-weight: 500; color: var(--muted); background: #EEF0F6; border-radius: 999px; padding: 2px 10px; }
.jr-item { display: flex; gap: 16px; align-items: center; padding: 16px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.jr-item + .jr-item { margin-top: 10px; }
.jr-key { border-left: 4px solid var(--gold); }
.jr-text { flex: 1; min-width: 0; }
.jr-t { margin: 0; font-size: 16px; font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }
.jr-m { margin: 4px 0 0; font-size: 14px; color: var(--muted); overflow-wrap: anywhere; }
.v2 .jr-btn { min-height: 44px; padding: 0 18px; font-size: 15px; white-space: nowrap; }
.jr-score { flex: none; min-width: 92px; text-align: center; padding: 8px 10px; border-radius: 8px; background: #F7F8FB; border: 1px solid var(--line); }
.jr-score b { display: block; font-size: 20px; color: var(--navy); }
.jr-score span { font-size: 12px; color: var(--muted); }
.jr-note { margin: 12px 0 0; padding: 12px 14px; font-size: 14px; color: #3B4058; border-radius: 8px; background: #fff; border: 1px dashed #C9CEDF; }

@media (max-width: 760px) {
  .mi-done, .ot-card { padding: 24px 16px; }
  .ot-main { padding-top: 24px; }
  .ot-acts .btn, .ot-card .btn, .mi-done .pf-actions .btn { width: 100%; }
  .jr-item { flex-wrap: wrap; }
  .jr-item .jr-btn { width: 100%; }
}
