/* Online Recruitment Management System — institutional theme on Bootstrap 5.3.
   Colours come from Settings → Branding as :root variables (--brand, --brand-rgb, --sidebar). */
:root {
  --brand: #0b5394; --brand-rgb: 11, 83, 148; --sidebar: #0f1f33;
  --surface: #f4f6f9; --border: #e3e8ef; --muted: #6b7785; --sidebar-w: 248px;
  --bs-body-font-family: "Inter", "Hind Siliguri", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --bs-border-color: var(--border);
}
body { background: var(--surface); color: #1f2933; font-size: .9375rem; }
.min-w-0 { min-width: 0; }
a { text-decoration-thickness: 1px; text-underline-offset: 2px; }
code { color: #8a3b62; }

/* Bootstrap primary → brand colour */
.btn-primary { --bs-btn-bg: var(--brand); --bs-btn-border-color: var(--brand);
  --bs-btn-hover-bg: color-mix(in srgb, var(--brand) 85%, #000); --bs-btn-hover-border-color: color-mix(in srgb, var(--brand) 85%, #000);
  --bs-btn-active-bg: color-mix(in srgb, var(--brand) 75%, #000); --bs-btn-active-border-color: color-mix(in srgb, var(--brand) 75%, #000);
  --bs-btn-disabled-bg: var(--brand); --bs-btn-disabled-border-color: var(--brand); }
.btn-outline-primary { --bs-btn-color: var(--brand); --bs-btn-border-color: var(--brand); --bs-btn-hover-bg: var(--brand);
  --bs-btn-hover-border-color: var(--brand); --bs-btn-active-bg: var(--brand); --bs-btn-active-border-color: var(--brand); }
.text-primary { color: var(--brand) !important; }
.progress-bar, .bg-primary { background-color: var(--brand) !important; }
.form-control:focus, .form-select:focus, .form-check-input:focus { border-color: rgba(var(--brand-rgb), .5); box-shadow: 0 0 0 .2rem rgba(var(--brand-rgb), .15); }
.form-check-input:checked { background-color: var(--brand); border-color: var(--brand); }
.nav-tabs .nav-link.active { color: var(--brand); font-weight: 600; }
.page-link { color: var(--brand); } .active > .page-link { background: var(--brand); border-color: var(--brand); }
.card { border-color: var(--border); border-radius: .75rem; }
.card-header { background: #fff; font-weight: 600; font-size: .9rem; border-bottom-color: var(--border); padding: .85rem 1rem; }
.card > .list-group:last-child, .card > .table-responsive:last-child { border-bottom-left-radius: .75rem; border-bottom-right-radius: .75rem; }
.table > thead th { font-size: .75rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 600; background: #fafbfc; white-space: nowrap; }
.badge-status { font-weight: 500; }
.skip-link { position: absolute; left: 1rem; top: 1rem; z-index: 2000; background: #fff; padding: .5rem 1rem; border-radius: .5rem; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

/* ---------------------------------------------------------- admin shell */
.app { display: flex; min-height: 100vh; }
.sidebar { width: var(--sidebar-w); background: var(--sidebar); color: #c9d3df; position: fixed; inset: 0 auto 0 0; z-index: 1040;
  display: flex; flex-direction: column; transition: transform .2s ease; }
.sidebar-brand { display: flex; align-items: center; gap: .65rem; padding: 1.1rem 1.1rem 1rem; color: #fff; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.07); }
.sidebar-brand-text { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.sidebar-brand-text small { color: #8fa1b5; font-size: .75rem; }
.brand-mark { width: 38px; height: 38px; border-radius: 10px; background: var(--brand); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 1.2rem; flex: none; }
.brand-logo { width: 38px; height: 38px; object-fit: contain; border-radius: 8px; background: #fff; flex: none; }
.sidebar-nav { padding: .75rem .6rem; overflow-y: auto; flex: 1; }
.sidebar-heading { font-size: .68rem; text-transform: uppercase; letter-spacing: .08em; color: #70839a; margin: 1.1rem .7rem .35rem; }
.sidebar .nav-link { display: flex; align-items: center; gap: .7rem; color: #c9d3df; padding: .55rem .75rem; border-radius: .5rem; font-size: .9rem; }
.sidebar .nav-link i { font-size: 1.05rem; opacity: .85; }
.sidebar .nav-link:hover { background: rgba(255,255,255,.06); color: #fff; }
.sidebar .nav-link.active { background: rgba(var(--brand-rgb), .9); color: #fff; }
.sidebar-foot { font-size: .72rem; color: #70839a; padding: .8rem 1.1rem; border-top: 1px solid rgba(255,255,255,.07); }
.sidebar-backdrop { display: none; }
.main { flex: 1; margin-left: var(--sidebar-w); min-width: 0; display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: 1030; background: rgba(255,255,255,.92); backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: .75rem; padding: .65rem 1.5rem; }
.breadcrumb { font-size: .75rem; --bs-breadcrumb-divider-color: #9aa5b1; } .breadcrumb-item.active { color: var(--muted); }
.page-title { font-size: 1.2rem; font-weight: 600; margin: 0; }
.content { padding: 1.5rem; flex: 1; }
.btn-icon { width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; background: transparent; border: 1px solid transparent; font-size: 1.15rem; }
.btn-icon:hover { background: var(--surface); }
.btn-user { display: inline-flex; align-items: center; gap: .5rem; border: 1px solid var(--border); border-radius: 999px; padding: .2rem .7rem .2rem .25rem; background: #fff; }
.avatar { width: 30px; height: 30px; border-radius: 50%; background: rgba(var(--brand-rgb), .12); color: var(--brand); display: inline-flex; align-items: center; justify-content: center; font-size: .75rem; font-weight: 600; flex: none; }
.avatar-sm { width: 34px; height: 34px; } .avatar-lg { width: 52px; height: 52px; font-size: 1.05rem; } .avatar-xl { width: 76px; height: 76px; font-size: 1.5rem; display: flex; }
.bell-dot { position: absolute; top: 3px; right: 2px; min-width: 18px; height: 18px; border-radius: 9px; background: #d64545; color: #fff; font-size: .65rem; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; padding: 0 4px; }
.bell-menu { width: 340px; max-width: calc(100vw - 2rem); padding: 0; }
.bell-list { max-height: 360px; overflow-y: auto; }
.bell-item { display: block; padding: .65rem 1rem; border-bottom: 1px solid var(--border); text-decoration: none; color: inherit; font-size: .85rem; }
.bell-item:hover { background: var(--surface); } .bell-item.unread { background: rgba(var(--brand-rgb), .05); } .bell-item.unread strong::before { content: "● "; color: var(--brand); }
.list-group-item.unread { background: rgba(var(--brand-rgb), .05); }

@media (max-width: 991.98px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: none; box-shadow: 0 0 40px rgba(0,0,0,.3); }
  .sidebar.open + .sidebar-backdrop { display: block; position: fixed; inset: 0; background: rgba(15,31,51,.45); z-index: 1035; }
  .main { margin-left: 0; }
  .topbar, .content { padding-left: 1rem; padding-right: 1rem; }
}

/* ---------------------------------------------------------- dashboard */
.kpi { color: inherit; transition: box-shadow .15s, transform .15s; }
a.kpi:hover { box-shadow: 0 6px 18px rgba(15,31,51,.08); transform: translateY(-1px); }
.kpi-icon { width: 38px; height: 38px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; font-size: 1.1rem; margin-bottom: .6rem; }
.kpi-value { font-size: 1.6rem; font-weight: 700; line-height: 1.1; font-variant-numeric: tabular-nums; }
.kpi-label { font-size: .8rem; color: var(--muted); }
.chart-box { position: relative; height: 260px; }
.welcome { background: linear-gradient(120deg, rgba(var(--brand-rgb), .09), #fff 60%); }
.phase-dot { width: 24px; height: 24px; border-radius: 50%; flex: none; display: inline-flex; align-items: center; justify-content: center; font-size: .72rem; font-weight: 600; background: #eef1f5; color: var(--muted); }
.phase-dot.done { background: #1f9254; color: #fff; }
.empty-state { text-align: center; color: var(--muted); }
.empty-state i { font-size: 2rem; display: block; margin-bottom: .4rem; opacity: .6; }

/* ---------------------------------------------------------- applicant */
.applicant-nav { background: #fff; border-bottom: 1px solid var(--border); }
.applicant-nav .nav-link.active { color: var(--brand); font-weight: 600; }
.tracker { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: .6rem; }
.tracker-step { display: flex; align-items: center; gap: .55rem; padding: .55rem .65rem; border: 1px solid var(--border); border-radius: .6rem; background: #fff; font-size: .8rem; color: var(--muted); }
.tracker-icon { width: 28px; height: 28px; flex: none; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: #eef1f5; }
.tracker-step.done { color: #1d6b41; border-color: #bfe3cd; background: #f3fbf6; } .tracker-step.done .tracker-icon { background: #1f9254; color: #fff; }
.tracker-step.current { color: var(--brand); border-color: rgba(var(--brand-rgb), .45); box-shadow: 0 0 0 3px rgba(var(--brand-rgb), .1); font-weight: 600; }
.tracker-step.current .tracker-icon { background: var(--brand); color: #fff; }

/* ---------------------------------------------------------- auth & public */
.layout-auth { background: radial-gradient(circle at 20% 0%, rgba(var(--brand-rgb), .12), transparent 45%), var(--surface); }
.auth-wrap { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 2rem 1rem; }
.auth-card { width: 100%; max-width: 440px; border-radius: 1rem; }
.auth-brand { display: flex; align-items: center; gap: .75rem; color: inherit; margin-bottom: 1.5rem; }
.auth-brand span { display: flex; flex-direction: column; line-height: 1.2; } .auth-brand small { color: var(--muted); font-size: .78rem; }
.otp-input { font-size: 1.4rem; letter-spacing: .5em; text-align: center; font-variant-numeric: tabular-nums; }
.demo-accounts summary { cursor: pointer; }
.public-header { background: #fff; border-bottom: 1px solid var(--border); }
.hero { background: linear-gradient(135deg, rgba(var(--brand-rgb), .1), transparent 60%); border-bottom: 1px solid var(--border); }
.step-card { position: relative; } .step-num { position: absolute; top: .75rem; right: 1rem; font-weight: 700; color: rgba(var(--brand-rgb), .25); font-size: 1.5rem; }
.public-footer { border-top: 1px solid var(--border); background: #fff; }

/* ---------------------------------------------------------- admin pages */
.role-option { display: flex; gap: .6rem; align-items: flex-start; border: 1px solid var(--border); border-radius: .6rem; padding: .6rem .75rem; cursor: pointer; height: 100%; }
.role-option:has(input:checked) { border-color: rgba(var(--brand-rgb), .5); background: rgba(var(--brand-rgb), .04); }
.role-option input { margin-top: .2rem; flex: none; }
.role-icon { width: 36px; height: 36px; border-radius: 10px; background: rgba(var(--brand-rgb), .1); color: var(--brand); display: inline-flex; align-items: center; justify-content: center; flex: none; }
/* position:relative keeps visually-hidden (absolute) cell labels inside the scroll box, so they cannot widen the page */
.table-responsive { position: relative; }
.matrix-wrap { max-height: 70vh; }
.matrix { font-size: .8rem; } .matrix thead th { position: sticky; top: 0; z-index: 2; }
.matrix .matrix-perm { position: sticky; left: 0; background: #fff; z-index: 1; white-space: nowrap; }
.matrix thead .matrix-perm { z-index: 3; background: #fafbfc; }
.matrix .matrix-role { min-width: 92px; text-align: center; white-space: normal; text-transform: none; letter-spacing: 0; font-size: .75rem; }
.matrix td.on { background: rgba(31,146,84,.08); color: #1f9254; }
.perm-group[disabled] { opacity: .6; }
.perm-group legend { float: none; width: auto; }   /* Bootstrap floats legends full-width */
.perm-group [data-toggle-group] { white-space: nowrap; }
.sticky-actions { position: sticky; bottom: 0; background: rgba(244,246,249,.95); backdrop-filter: blur(4px); padding: .9rem 0; margin-top: 1rem; display: flex; justify-content: flex-end; gap: .5rem; border-top: 1px solid var(--border); }
.settings-tabs { border-bottom: 0; } .settings-tabs .nav-link { background: transparent; }
.settings-tabs .nav-link.active { background: #fff; border-color: var(--border) var(--border) #fff; }
.logo-preview { width: 72px; height: 72px; border: 1px dashed var(--border); border-radius: .75rem; display: flex; align-items: center; justify-content: center; background: #fff; }
.logo-preview img { max-width: 64px; max-height: 64px; }
.brand-preview { display: flex; height: 170px; border: 1px solid var(--border); border-radius: .75rem; overflow: hidden; background: var(--surface); }
.bp-side { width: 70px; background: var(--sidebar); padding: 12px 8px; display: flex; flex-direction: column; gap: 8px; }
.bp-side span { height: 10px; border-radius: 4px; background: rgba(255,255,255,.15); } .bp-side span.on { background: var(--brand); }
.bp-main { flex: 1; padding: 0; } .bp-bar { height: 26px; background: #fff; border-bottom: 1px solid var(--border); }
.bp-card { margin: 14px; padding: 12px; background: #fff; border: 1px solid var(--border); border-radius: 8px; font-size: .8rem; }
.bp-card a { color: var(--brand); }
.bp-btn { display: inline-block; background: var(--brand); color: #fff; border-radius: 6px; padding: 4px 10px; font-size: .78rem; }
.diff-old { background: #fff4f4; } .diff-new { background: #f1fbf4; } .diff-table td { word-break: break-word; }
.email-frame { width: 100%; height: 640px; border: 0; border-bottom-left-radius: .75rem; border-bottom-right-radius: .75rem; background: #f3f5f8; }

/* ---------------------------------------------------------- Phase 2: shared bits */
.req { color: #c0392b; }
.form-control[readonly], .form-control:disabled, .form-select:disabled { background-color: #f1f3f6; color: #5b6673; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .92em; }
.bn { font-family: "Hind Siliguri", "Inter", sans-serif; }
.section-title { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 600; margin: .25rem 0 .75rem; }
.form-actions { display: flex; justify-content: flex-end; gap: .5rem; margin-top: 1.25rem; padding-top: 1rem; border-top: 1px solid var(--border); }
.contact-note { background: var(--surface); border-radius: .5rem; padding: .5rem .75rem; color: var(--muted); }
.address-block { border: 1px solid var(--border); border-radius: .75rem; padding: 1rem; }
.address-block legend { float: none; width: auto; padding: 0 .35rem; margin-bottom: .5rem; font-size: .95rem; }
.records-table td, .records-table th { white-space: normal; }
.record-form { background: var(--surface); border: 1px solid var(--border); border-radius: .75rem; padding: 1rem 1.1rem; }
.record-form .form-actions { border-top-color: #e6eaf0; }
.step-continue { display: flex; align-items: center; gap: 1rem; justify-content: flex-end; margin-top: 1.25rem; padding-top: 1rem; border-top: 1px solid var(--border); flex-wrap: wrap; }
.req-hint { background: rgba(var(--brand-rgb), .05); border: 1px solid rgba(var(--brand-rgb), .15); border-radius: .6rem; padding: .65rem .85rem; }
.req-list { list-style: none; padding: 0; margin: 0 0 .25rem; }
.req-list li { display: flex; gap: .5rem; align-items: baseline; padding: .2rem 0; font-size: .9rem; }
.req-list li i { color: var(--brand); flex: none; }
.kv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: .65rem 1.25rem; margin: 0; }
.kv-compact { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.kv dt { font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 600; }
.kv dd { margin: 0; word-break: break-word; }

/* circulars */
.circular-card { transition: box-shadow .15s, transform .15s; }
.circular-card:hover { box-shadow: 0 6px 18px rgba(15,31,51,.08); transform: translateY(-1px); }
.circular-text { white-space: normal; line-height: 1.65; }
.position-card .kv-grid { margin-top: .5rem; }
.status-flow { display: flex; flex-wrap: wrap; gap: .35rem; }
.sf-step { font-size: .75rem; padding: .3rem .6rem; border-radius: 999px; background: #eef1f5; color: var(--muted); }
.sf-step.current { background: var(--brand); color: #fff; font-weight: 600; }
.history-list li { padding: .35rem 0; border-bottom: 1px dashed var(--border); }
.exam-config td, .exam-config th { vertical-align: middle; }
.exam-config .form-control-sm { max-width: 7rem; }

/* wizard */
.wizard-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .35rem; }
.wizard-step a { display: flex; align-items: center; gap: .65rem; padding: .5rem .6rem; border-radius: .6rem; text-decoration: none; color: inherit; border: 1px solid transparent; }
.wizard-step a:hover { background: #fff; border-color: var(--border); }
.wizard-step .ws-no { width: 28px; height: 28px; flex: none; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: .75rem; font-weight: 600; background: #eef1f5; color: var(--muted); }
.wizard-step .ws-title { font-size: .86rem; line-height: 1.2; }
.wizard-step .ws-title small { color: var(--muted); font-size: .72rem; }
.wizard-step.done .ws-no { background: #1f9254; color: #fff; }
.wizard-step.todo .ws-no { background: #fff4d6; color: #8a5a00; }
.wizard-step.locked { opacity: .55; }
.wizard-step.active a { background: #fff; border-color: rgba(var(--brand-rgb), .45); box-shadow: 0 0 0 3px rgba(var(--brand-rgb), .08); }
.wizard-step.active .ws-no { background: var(--brand); color: #fff; }
.ws-badge { background: var(--brand); color: #fff; border-radius: .4rem; padding: .05rem .45rem; font-size: .78rem; }
@media (max-width: 991.98px) {
  .wizard-steps { flex-direction: row; overflow-x: auto; padding-bottom: .25rem; gap: .25rem; }
  .wizard-step a { flex-direction: column; text-align: center; min-width: 84px; padding: .4rem; }
  .wizard-step .ws-title small { display: none !important; }
}
.summary-section { padding: 1rem 0; border-bottom: 1px solid var(--border); }
.summary-section:first-child { padding-top: 0; }
.summary-title { font-size: .95rem; font-weight: 600; margin-bottom: .75rem; display: flex; align-items: center; gap: .5rem; }
.summary-title span { background: rgba(var(--brand-rgb), .1); color: var(--brand); border-radius: .35rem; padding: .05rem .4rem; font-size: .75rem; }
.declaration { margin-top: 1.25rem; padding: 1rem 1.1rem; border: 1px solid rgba(var(--brand-rgb), .35); border-radius: .75rem; background: rgba(var(--brand-rgb), .03); }
.preview-head > div { background: var(--surface); border-radius: .5rem; padding: .5rem .75rem; }
.submitted-icon { font-size: 3rem; color: #1f9254; line-height: 1; }
.numbers { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; }
.numbers > div { background: var(--surface); border-radius: .6rem; padding: .5rem .9rem; text-align: left; }
.numbers span { display: block; font-size: .7rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.numbers-inline { justify-content: flex-start; }
.timeline { list-style: none; margin: 0; padding: 1rem 1rem .5rem 1.75rem; position: relative; }
.timeline::before { content: ""; position: absolute; left: 1.1rem; top: 1.25rem; bottom: 1rem; width: 2px; background: var(--border); }
.timeline li { position: relative; padding-bottom: .9rem; }
.timeline .tl-dot { position: absolute; left: -.95rem; top: .3rem; width: 10px; height: 10px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 3px #fff; }
.application-card .mono { letter-spacing: .02em; }
.chart-table summary { cursor: pointer; }

/* ---------------------------------------------------------- Phase 3: documents & OCR */
.doc-slot { display: flex; gap: 1rem; align-items: flex-start; border: 1px dashed #cfd6df; border-radius: .75rem; padding: .85rem; background: #fff; height: 100%; }
.doc-slot.has-doc { border-style: solid; border-color: var(--border); }
.doc-thumb { flex: none; width: 112px; height: 84px; border-radius: .5rem; background: var(--surface); display: flex; align-items: center; justify-content: center; overflow: hidden; border: 1px solid var(--border); text-decoration: none; }
.doc-thumb img { width: 100%; height: 100%; object-fit: cover; }
.doc-icon { display: flex; flex-direction: column; align-items: center; font-size: 1.6rem; color: #c0392b; line-height: 1.1; }
.doc-icon small { font-size: .7rem; color: var(--muted); margin-top: .2rem; }
.doc-slot-body { flex: 1; min-width: 0; }
.doc-progress { margin-top: .5rem; }
.ocr-table th, .ocr-table td { font-size: .85rem; }
.ocr-table td:nth-child(2) { font-weight: 500; }
.copy-form { background: rgba(var(--brand-rgb), .04); border: 1px solid rgba(var(--brand-rgb), .15); border-radius: .6rem; padding: .65rem .8rem; }
.transcript-table td { padding: .2rem; }
.transcript-table .form-control-sm { padding: .2rem .4rem; }
.doc-list { list-style: none; padding: 0; columns: 2 18rem; }
.doc-list li { padding: .15rem 0; break-inside: avoid; }
.doc-list i { color: var(--brand); margin-right: .3rem; }
.queue-thumb { width: 52px; height: 40px; object-fit: cover; border-radius: .35rem; border: 1px solid var(--border); }
.viewer-card .viewer { position: relative; max-height: 78vh; overflow: auto; background: #2a3442; padding: .75rem; border-bottom-left-radius: .75rem; border-bottom-right-radius: .75rem; }
.viewer img, .viewer .pdf-pages { display: block; width: 100%; transition: transform .15s; transform-origin: center center; }
.viewer .pdf-pages canvas { display: block; width: 100%; height: auto; margin: 0 auto .75rem; background: #fff; box-shadow: 0 2px 10px rgba(0,0,0,.35); }
.layer-chip { border: 1px solid var(--border); border-radius: 999px; padding: .15rem .6rem; background: #fff; }
.layer-chip.official { border-color: var(--brand); color: var(--brand); font-weight: 600; }
.review-table .key-field th { color: #1f2933; }
.review-table .decision-row td { background: #fafbfc; border-top: 0; padding-top: 0; }
.raw-ocr { max-height: 240px; overflow: auto; font-size: .75rem; background: #f6f8fa; border-radius: .5rem; padding: .6rem; white-space: pre-wrap; }

/* ---------------------------------------------------------- Phase 4: live photo */
.live-photo { max-width: 440px; }
.camera-intro { border: 1px dashed #cfd6df; border-radius: .9rem; padding: 1.5rem 1rem; text-align: center; background: #fff; }
.camera-placeholder { font-size: 3.2rem; color: #b5c0cc; line-height: 1; margin-bottom: .75rem; }
.camera-stage { position: relative; aspect-ratio: 4 / 5; width: 100%; background: #10161f; border-radius: .9rem; overflow: hidden; }
.camera-stage video, .camera-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.camera-stage video { object-fit: cover; }   /* the visible part of the frame is exactly the 4:5 photo */
.camera-stage.mirrored video, .camera-stage.mirrored canvas { transform: scaleX(-1); }
.camera-loading { position: absolute; left: 0; right: 0; bottom: 1rem; text-align: center; color: #fff; font-size: .85rem; text-shadow: 0 1px 2px rgba(0,0,0,.7); }
.camera-status { margin-top: .75rem; font-weight: 600; font-size: 1.05rem; display: flex; align-items: center; gap: .45rem; }
.camera-status::before { content: ""; width: .7rem; height: .7rem; border-radius: 50%; background: #f5c542; flex: none; }
.camera-status[data-state="ok"] { color: #1f7a45; }
.camera-status[data-state="ok"]::before { background: #2ecc71; }
.camera-status[data-state="bad"] { color: #b42318; }
.camera-status[data-state="bad"]::before { background: #e74c3c; }
.camera-hint { color: var(--muted); font-size: .875rem; min-height: 1.3em; }
.camera-checks { list-style: none; padding: 0; margin: .6rem 0 .8rem; display: flex; flex-wrap: wrap; gap: .35rem; }
.camera-checks li { font-size: .75rem; border-radius: 999px; padding: .15rem .6rem; border: 1px solid var(--border); background: #fff; color: var(--muted); }
.camera-checks li::before { content: "• "; }
.camera-checks li[data-state="ok"] { border-color: #b7e4c7; background: #ecf9f1; color: #1f7a45; }
.camera-checks li[data-state="ok"]::before { content: "✓ "; }
.camera-checks li[data-state="bad"] { border-color: #f5c2c0; background: #fdf0ef; color: #b42318; }
.camera-checks li[data-state="bad"]::before { content: "✕ "; }
.camera-actions { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.photo-frame { display: block; aspect-ratio: 4 / 5; width: 160px; border-radius: .6rem; overflow: hidden; border: 1px solid var(--border); background: var(--surface); flex: none; }
.photo-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-frame-lg { width: 100%; max-width: 360px; }
.photo-frame-sm { width: 88px; }
.photo-frame-xs { width: 44px; border-radius: .35rem; }
.photo-tips { padding-left: 1.1rem; }
.photo-tips li { margin-bottom: .3rem; }
.summary-photo { float: right; width: 120px; margin: 0 0 .75rem 1rem; }
.summary-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: .5rem; border: 1px solid var(--border); display: block; }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: .9rem; }
.photo-card { display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: .75rem; overflow: hidden; background: #fff; transition: box-shadow .15s; }
.photo-card:hover, .photo-card:focus-visible { box-shadow: 0 4px 14px rgba(15,31,51,.12); }
.photo-card .photo-frame { width: 100%; border: 0; border-radius: 0; }
.photo-card-body { padding: .55rem .65rem .7rem; min-width: 0; display: block; }
.photo-compare { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 1rem; align-items: start; }
.photo-compare figure { margin: 0; }
.photo-compare img { width: 100%; border-radius: .6rem; border: 1px solid var(--border); display: block; }
.photo-compare figcaption { font-size: .8rem; color: var(--muted); margin-top: .35rem; }
.photo-checks th[scope="row"] { font-weight: 500; }
.kpi.active { outline: 2px solid var(--brand); outline-offset: -2px; }
.print-top { display: flex; gap: 1rem; align-items: flex-start; margin-bottom: 1rem; }
.print-top .print-meta { flex: 1; margin-bottom: 0; }
.print-photo { width: 30mm; height: 37.5mm; object-fit: cover; border: 1px solid #9aa5b1; order: 2; flex: none; }
@media (max-width: 575.98px) {
  .photo-compare { grid-template-columns: 1fr; }
  .summary-photo { width: 96px; }
  .print-top { flex-direction: column; }
  .print-photo { order: 0; }
}

/* ---------------------------------------------------------- Phase 5: payments */
.fee-box { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: flex-end; border: 1px solid var(--border); border-radius: .75rem; padding: 1rem 1.1rem; background: #fff; margin-bottom: 1rem; }
.pay-methods { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: .6rem; }
.pay-method { display: flex; align-items: center; gap: .6rem; border: 1px solid var(--border); border-radius: .65rem; padding: .7rem .8rem; background: #fff; cursor: pointer; }
.pay-method:has(input:checked) { border-color: var(--brand); box-shadow: 0 0 0 .15rem rgba(var(--brand-rgb), .15); }
.pay-method .form-check-input { margin: 0; flex: none; }
.pay-method i { font-size: 1.3rem; color: var(--brand); }
.pay-form legend { float: none; width: auto; }
.paid-box { display: flex; gap: 1rem; align-items: flex-start; border: 1px solid #b7e4c7; background: #f2fbf5; border-radius: .75rem; padding: 1rem 1.1rem; }
.paid-icon { font-size: 2.4rem; color: #1f9254; line-height: 1; }
.kv-compact .kv dt { font-size: .75rem; }
.pay-log { list-style: none; margin: 0; padding: .5rem 1rem 1rem; }
.pay-log > li { border-left: 3px solid var(--border); padding: .45rem 0 .45rem .8rem; margin-bottom: .3rem; }
.pay-log > li.pay-log-out { border-left-color: #4c8bf5; }
.pay-log > li.pay-log-in { border-left-color: #2ecc71; }
.pay-log > li.pay-log-sys { border-left-color: #adb5bd; }
.verify-page { max-width: 680px; }
.verify-grid { grid-template-columns: 1fr 1fr; }
@media (max-width: 575.98px) { .verify-grid { grid-template-columns: 1fr; } .paid-box { flex-direction: column; } }

/* the built-in sandbox gateway's hosted pages */
.sandbox-gateway { background: #eef1f6; min-height: 100vh; }
.sandbox-ribbon { background: #fff3cd; color: #7a5a00; font-size: .8rem; text-align: center; padding: .4rem 1rem; border-bottom: 1px solid #f1d38a; }
.sandbox-card { max-width: 420px; margin: 1.5rem auto; background: #fff; border-radius: 1rem; box-shadow: 0 6px 24px rgba(15, 31, 51, .1); padding: 1.25rem 1.4rem 1.5rem; }
.sandbox-head { display: flex; align-items: center; border-bottom: 1px solid var(--border); padding-bottom: .75rem; margin-bottom: 1rem; }
.sandbox-logo { font-weight: 700; color: #1d4ed8; }
.sandbox-merchant { text-align: center; margin-bottom: 1.25rem; }
.sandbox-amount { font-size: 2rem; font-weight: 700; margin: .25rem 0; }
.sandbox-result { font-size: 3rem; line-height: 1; margin-bottom: .5rem; }
.sandbox-valid { color: #1f9254; } .sandbox-failed { color: #c0392b; } .sandbox-cancelled { color: #6b7785; }

/* ---------------------------------------------------------- Phase 6: screening */
.pipeline { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: .5rem; }
.pipeline-step { position: relative; display: flex; flex-direction: column; gap: .1rem; padding: .7rem .75rem; background: #fff; border: 1px solid var(--border);
  border-radius: .7rem; color: inherit; text-decoration: none; min-width: 0; transition: box-shadow .15s; }
.pipeline-step:hover, .pipeline-step:focus-visible { box-shadow: 0 4px 14px rgba(15,31,51,.1); }
.pipeline-step.active { outline: 2px solid var(--brand); outline-offset: -2px; }
.pipeline-step > i { color: var(--brand); font-size: 1rem; }
.pipeline-step.pipeline-end > i { color: var(--muted); }
.pipeline-value { font-size: 1.35rem; font-weight: 700; line-height: 1.15; font-variant-numeric: tabular-nums; }
.pipeline-label { font-size: .75rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 1199.98px) { .pipeline { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 575.98px) { .pipeline { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.elig-tile { display: flex; flex-direction: column; padding: .6rem .75rem; border-radius: .6rem; border: 1px solid var(--border); background: #fff;
  color: inherit; text-decoration: none; font-size: .8rem; height: 100%; }
.elig-tile.active { outline: 2px solid var(--brand); outline-offset: -2px; }
.elig-value { font-size: 1.3rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.elig-success { border-left: 4px solid var(--bs-success); } .elig-info { border-left: 4px solid var(--bs-info); }
.elig-warning { border-left: 4px solid var(--bs-warning); } .elig-danger { border-left: 4px solid var(--bs-danger); }
.elig-summary { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; max-width: 26rem; }
.text-truncate-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.elig-result { display: flex; gap: .6rem; align-items: center; padding: .6rem .9rem; border-radius: .6rem; background: #fff; border: 1px solid var(--border); }
.elig-result > i { font-size: 1.6rem; }
.elig-result.elig-success > i { color: var(--bs-success); } .elig-result.elig-info > i { color: var(--bs-info); }
.elig-result.elig-warning > i { color: var(--bs-warning); } .elig-result.elig-danger > i { color: var(--bs-danger); }
.check-list { list-style: none; padding: 0; margin: 0 0 .75rem; }
.check-list li { display: flex; gap: .45rem; align-items: baseline; padding: .15rem 0; }
.screening-card .section-title { margin-top: .75rem; }
.review-tabs .card-header-tabs .nav-link { font-size: .85rem; }
.review-doc { border: 1px solid var(--border); border-radius: .75rem; padding: .85rem; margin-bottom: .9rem; background: #fff; }
.decide-inline { display: flex; flex-wrap: wrap; gap: .35rem; align-items: center; }
.decide-inline .form-control { flex: 1 1 14rem; min-width: 0; }
.compare-table th, .compare-table td { vertical-align: top; }
.rule-table td:first-child { width: 2rem; }
.rule-list td { font-size: .875rem; }
.rule-form [hidden] { display: none !important; }
.correction-card .card-header { font-weight: 600; }
.correction-list { list-style: none; padding: 0; margin: 0 0 .75rem; }
.correction-list li { display: flex; gap: .5rem; align-items: center; padding: .45rem .6rem; border: 1px solid var(--border); border-radius: .5rem; margin-bottom: .35rem; background: #fff; }
.correction-list li.is-done { background: #f1faf4; }
.correction-items { columns: 2 16rem; }
.correction-items .form-check { break-inside: avoid; }
.timeline .tl-review .tl-dot { width: 8px; height: 8px; left: -.9rem; background: #fff; border: 2px solid var(--muted); }
.timeline .tl-dot-success { border-color: var(--bs-success) !important; } .timeline .tl-dot-danger { border-color: var(--bs-danger) !important; }
.timeline .tl-dot-warning { border-color: var(--bs-warning) !important; }

/* ---------------------------------------------------------- Phase 7: examination */
.step-no { width: 1.6rem; height: 1.6rem; border-radius: 50%; background: rgba(var(--brand-rgb), .1); color: var(--brand); font-weight: 700; font-size: .8rem;
  display: inline-flex; align-items: center; justify-content: center; margin-bottom: .4rem; }
.room-picker { display: flex; flex-wrap: wrap; gap: .35rem; }
.room-chip { display: inline-flex; gap: .4rem; align-items: center; border: 1px solid var(--border); border-radius: .5rem; padding: .25rem .55rem; background: #fff; font-size: .8125rem; cursor: pointer; }
.room-chip:has(:checked) { border-color: var(--brand); background: rgba(var(--brand-rgb), .06); }
.venue-rooms .form-control-sm, .venue-rooms .form-select-sm { min-width: 5rem; }
.venue-edit[open] { flex-basis: 100%; }
.marks-input { max-width: 7rem; }
.desk-camera video { width: 100%; max-height: 320px; border-radius: .6rem; background: #10161f; }
.desk-result { border-left: 6px solid var(--border); min-height: 9.5rem; }
.desk-result[data-state="ok"] { border-left-color: var(--bs-success); background: #f1faf4; }
.desk-result[data-state="warn"] { border-left-color: var(--bs-warning); background: #fff9e8; }
.desk-result[data-state="bad"] { border-left-color: var(--bs-danger); background: #fdf0ef; }
.desk-message { font-weight: 600; font-size: 1.1rem; }
.exam-schedule td, .exam-schedule th { font-size: .875rem; }

/* ---------------------------------------------------------- Phase 8: viva */
.criteria-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); gap: .35rem .75rem; }
.criteria-row { display: grid; grid-template-columns: 1fr 5rem; gap: .35rem; }
.viva-board:last-of-type { border-bottom: 0 !important; }
.viva-members li + li { border-top: 1px dashed var(--border); }
.viva-members [hidden], [data-member-new][hidden] { display: none !important; }
.panel-board { color: inherit; transition: border-color .15s, box-shadow .15s; }
.panel-board:hover { border-color: var(--brand); box-shadow: 0 4px 18px rgba(15, 31, 51, .08); }
.viva-photo { width: 120px; }
.viva-criterion { display: grid; grid-template-columns: 1fr 6.5rem; gap: .75rem; align-items: center; padding: .35rem 0; border-bottom: 1px solid var(--border); }
.viva-criterion label { margin: 0; }
.viva-criterion .invalid-feedback { font-size: .75rem; }
.viva-total { border-bottom: 0; font-weight: 600; }
.viva-total strong { font-size: 1.35rem; font-variant-numeric: tabular-nums; }

/* ---------------------------------------------------------- two-factor sign-in */
.twofa-steps { padding-left: 1.2rem; margin-bottom: 0; }
.twofa-steps > li { margin-bottom: 1rem; }
.twofa-steps > li:last-child { margin-bottom: 0; }
.twofa-qr { display: inline-block; padding: .5rem; margin: .5rem 0; border: 1px solid var(--border); border-radius: .6rem; background: #fff; }
.twofa-qr img { display: block; }
.twofa-code { font-size: 1.15rem; letter-spacing: .12em; font-variant-numeric: tabular-nums; }
.recovery-codes { list-style: none; padding: 0; margin: 0; columns: 2 9rem; font-size: 1.05rem; }
.recovery-codes li { padding: .2rem 0; break-inside: avoid; }
@media print { body:has(#recovery-codes) .card:not(#recovery-codes), body:has(#recovery-codes) .col-lg-5, body:has(#recovery-codes) p > a { display: none !important; } }

/* ---------------------------------------------------------- Phase 9: results and reports */
.merit-table td, .merit-table th, .report-table td, .report-table th { font-size: .875rem; }
.merit-table td:first-child { width: 4rem; }
.report-table td { white-space: nowrap; max-width: 22rem; overflow: hidden; text-overflow: ellipsis; }
.report-row { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.report-row .form-select { max-width: 12rem; }
.summary-table th, .summary-table td { font-size: .8125rem; }
.summary-districts { columns: 3 11rem; column-gap: 1.5rem; font-size: .8125rem; }
.summary-districts > div { break-inside: avoid; padding: .15rem 0; border-bottom: 1px solid var(--border); }
.report-print th, .report-print td { font-size: .75rem; padding: .2rem .35rem; }
@media print { .report-print { font-size: 8pt; } .layout-print .print-page { max-width: none; } }
@media (max-width: 575.98px) { .viva-photo { width: 84px; } .criteria-grid { grid-template-columns: 1fr; } }

/* printable application copy */
.layout-print { background: #e9edf2; }
.print-toolbar { position: sticky; top: 0; display: flex; gap: .5rem; justify-content: center; padding: .6rem; background: rgba(233,237,242,.95); z-index: 5; }
.print-page { max-width: 820px; margin: 0 auto 2rem; background: #fff; padding: 2rem 2.25rem; box-shadow: 0 4px 24px rgba(15,31,51,.08); }
.print-header { display: flex; gap: 1rem; align-items: center; border-bottom: 2px solid var(--brand); padding-bottom: .75rem; }
.print-logo { width: 56px; height: 56px; object-fit: contain; }
.print-org { font-size: 1.15rem; font-weight: 700; }
.print-title { font-size: 1.05rem; text-align: center; margin: 1rem 0; text-transform: uppercase; letter-spacing: .06em; }
.print-meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem 1rem; border: 1px solid var(--border); border-radius: .5rem; padding: .75rem; margin-bottom: 1rem; }
.print-meta span { display: block; font-size: .68rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.print-footer { margin-top: 1.5rem; border-top: 1px solid var(--border); padding-top: .5rem; }
@media (max-width: 575.98px) { .print-page { padding: 1rem; } .print-meta { grid-template-columns: 1fr 1fr; } }

@media print {
  .sidebar, .topbar, .applicant-nav, .sticky-actions, .btn, .print-toolbar { display: none !important; }
  .main { margin: 0; } body, .layout-print { background: #fff; }
  .print-page { box-shadow: none; margin: 0; padding: 0; max-width: none; }
  .summary-section { break-inside: avoid; }
  a[href]::after { content: none; }
}

/* ===========================================================================================================
   PREMIUM THEME — a layer over everything above. Colours still come from Settings → Branding (--brand,
   --brand-rgb, --sidebar); everything else is derived from them, so any brand colour stays in harmony.
   =========================================================================================================== */
:root {
  --ink: #0f172a; --ink-2: #334155; --muted: #64748b; --surface: #f4f6fb; --border: #e5e9f0; --line: rgba(15, 23, 42, .08);
  --radius: 14px; --radius-lg: 20px;
  --shadow-xs: 0 1px 2px rgba(15, 23, 42, .05);
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .04), 0 6px 18px -10px rgba(15, 23, 42, .14);
  --shadow-md: 0 2px 6px rgba(15, 23, 42, .04), 0 16px 36px -14px rgba(15, 23, 42, .22);
  --shadow-lg: 0 30px 70px -24px rgba(2, 6, 23, .45);
  --brand-dark: color-mix(in srgb, var(--brand) 68%, #020617);
  --brand-deep: color-mix(in srgb, var(--brand) 38%, #020617);
  --brand-soft: color-mix(in srgb, var(--brand) 8%, #fff);
  --gold: #e0b252;
  --font-display: "Plus Jakarta Sans", "Inter", "Hind Siliguri", system-ui, -apple-system, "Segoe UI", sans-serif;
}
body { background: var(--surface); color: var(--ink); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
h1, h2, h3, h4, .h1, .h2, .h3, .h4, .h5, .display-5, .display-6, .page-title { font-family: var(--font-display); letter-spacing: -.015em; color: inherit; }
.h6, h6 { letter-spacing: -.005em; }
::selection { background: rgba(var(--brand-rgb), .18); }

/* ---- buttons */
.btn { border-radius: 10px; font-weight: 600; letter-spacing: .005em; padding: .5rem 1rem;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease, border-color .15s ease, color .15s ease; }
.btn-sm { border-radius: 8px; padding: .3rem .65rem; }
.btn-lg { border-radius: 12px; padding: .8rem 1.4rem; font-size: 1rem; }
.btn-primary { background-image: linear-gradient(180deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, 0));
  box-shadow: 0 1px 2px rgba(15, 23, 42, .14), 0 8px 18px -8px rgba(var(--brand-rgb), .65), inset 0 1px 0 rgba(255, 255, 255, .18); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 2px 4px rgba(15, 23, 42, .14), 0 14px 26px -10px rgba(var(--brand-rgb), .7), inset 0 1px 0 rgba(255, 255, 255, .2); }
.btn-primary:active { transform: none; }
.btn-outline-primary { --bs-btn-bg: #fff; border-width: 1.5px; }
.btn-light { --bs-btn-bg: #fff; --bs-btn-border-color: #fff; --bs-btn-hover-bg: #f1f5f9; --bs-btn-hover-border-color: #f1f5f9; color: var(--ink); box-shadow: 0 10px 24px -12px rgba(2, 6, 23, .5); }
.btn-light.border { box-shadow: var(--shadow-xs); }
.btn-outline-light { border-width: 1.5px; --bs-btn-hover-color: var(--ink); }
.btn-ghost { color: var(--ink-2); background: transparent; border: 1px solid transparent; }
.btn-ghost:hover { background: rgba(var(--brand-rgb), .07); color: var(--brand); }
.btn-outline-secondary { --bs-btn-color: var(--ink-2); --bs-btn-border-color: #d6dce6; --bs-btn-hover-bg: #f1f5f9; --bs-btn-hover-color: var(--ink); --bs-btn-hover-border-color: #c8d0dc; }

/* ---- forms */
.form-control, .form-select { border-radius: 10px; border-color: #d9dfe8; padding: .58rem .85rem; box-shadow: inset 0 1px 1px rgba(15, 23, 42, .03);
  transition: border-color .15s ease, box-shadow .15s ease; }
.form-control:hover:not(:focus):not(:disabled), .form-select:hover:not(:focus):not(:disabled) { border-color: #c4ccd8; }
.form-control:focus, .form-select:focus { border-color: rgba(var(--brand-rgb), .6); box-shadow: 0 0 0 4px rgba(var(--brand-rgb), .12); }
.form-control-sm, .form-select-sm { border-radius: 8px; padding: .3rem .6rem; }
.form-control-lg { border-radius: 12px; }
.input-group > .btn { border-radius: 10px; }
.input-group > :not(:first-child) { border-top-left-radius: 0; border-bottom-left-radius: 0; }
.input-group > :not(:last-child) { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.form-label { font-weight: 600; font-size: .85rem; color: var(--ink-2); margin-bottom: .35rem; }
.form-check-input { border-color: #c4ccd8; }
.form-text { color: var(--muted); }

/* ---- cards, lists, tables, badges, alerts */
.card { border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.card-header { background: transparent; font-family: var(--font-display); font-size: .95rem; font-weight: 700; letter-spacing: -.005em; padding: 1rem 1.15rem; border-bottom-color: var(--line); }
.card-footer { background: #fafbfd; border-top-color: var(--line); }
.card > .list-group:last-child, .card > .table-responsive:last-child { border-bottom-left-radius: var(--radius); border-bottom-right-radius: var(--radius); }
.card-header:first-child { border-radius: calc(var(--radius) - 1px) calc(var(--radius) - 1px) 0 0; }
.list-group-item { border-color: var(--line); }
.list-group-item-action:hover { background: rgba(var(--brand-rgb), .035); }
.table { --bs-table-hover-bg: rgba(var(--brand-rgb), .035); }
.table > thead th { background: #f8fafc; color: #64748b; font-size: .7rem; letter-spacing: .07em; border-bottom: 1px solid var(--line); padding-top: .7rem; padding-bottom: .7rem; }
.table > :not(caption) > * > * { border-bottom-color: #edf0f5; }
.badge { border-radius: 999px; font-weight: 600; padding: .38em .72em; letter-spacing: .01em; }
.alert { border-radius: 12px; border-width: 1px; box-shadow: var(--shadow-xs); }
.dropdown-menu { border-radius: 12px; border-color: var(--line); box-shadow: var(--shadow-md); padding: .35rem; }
.dropdown-item { border-radius: 8px; padding: .45rem .7rem; }
.nav-tabs { border-bottom-color: var(--line); }
.nav-tabs .nav-link { border: 0; border-bottom: 2px solid transparent; color: var(--muted); font-weight: 500; }
.nav-tabs .nav-link.active { color: var(--brand); border-bottom-color: var(--brand); background: transparent; }
.nav-pills .nav-link.active { background: var(--brand); }
.pagination { gap: .25rem; } .page-link { border-radius: 8px !important; border-color: var(--line); }
.progress { background: #e8edf4; border-radius: 999px; } .progress-bar { border-radius: 999px; background-image: linear-gradient(90deg, var(--brand), color-mix(in srgb, var(--brand) 70%, #22d3ee)); }
.section-title { display: flex; align-items: center; gap: .75rem; font-size: .72rem; letter-spacing: .12em; color: #64748b; margin: .5rem 0 .9rem; }
.section-title::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, var(--line), transparent); }
.empty-state i { color: rgba(var(--brand-rgb), .45); opacity: 1; }
.modal-content { border-radius: var(--radius-lg); border: 0; box-shadow: var(--shadow-lg); }

/* ---- admin shell */
.sidebar { background:
    radial-gradient(130% 55% at 0% 0%, rgba(var(--brand-rgb), .38), transparent 62%),
    linear-gradient(180deg, var(--sidebar), color-mix(in srgb, var(--sidebar) 72%, #000));
  border-right: 1px solid rgba(255, 255, 255, .04); color: #b8c4d4; }
.sidebar-brand { padding: 1.3rem 1.2rem 1.15rem; border-bottom-color: rgba(255, 255, 255, .06); }
.sidebar-brand-text strong { font-family: var(--font-display); font-size: 1.02rem; letter-spacing: -.01em; }
.sidebar-brand-text small { color: #8ea0b6; }
.brand-mark { background: linear-gradient(135deg, color-mix(in srgb, var(--brand) 85%, #fff), var(--brand-dark));
  box-shadow: 0 8px 18px -8px rgba(var(--brand-rgb), .9), inset 0 1px 0 rgba(255, 255, 255, .28); border-radius: 11px; }
.sidebar-nav { padding: .85rem .7rem; }
.sidebar-heading { color: #6b7d94; letter-spacing: .14em; font-weight: 700; font-size: .64rem; margin: 1.35rem .8rem .45rem; }
.sidebar .nav-link { position: relative; border-radius: 10px; padding: .58rem .8rem; color: #b8c4d4; font-weight: 500; margin-bottom: 2px; }
.sidebar .nav-link i { opacity: .9; transition: transform .15s ease; }
.sidebar .nav-link:hover { background: rgba(255, 255, 255, .07); color: #fff; }
.sidebar .nav-link:hover i { transform: translateX(1px); }
.sidebar .nav-link.active { color: #fff; background: linear-gradient(90deg, rgba(var(--brand-rgb), .98), rgba(var(--brand-rgb), .72));
  box-shadow: 0 10px 22px -12px rgba(var(--brand-rgb), 1), inset 0 1px 0 rgba(255, 255, 255, .14); }
.sidebar .nav-link.active::before { content: ""; position: absolute; left: -.7rem; top: 22%; bottom: 22%; width: 3px; border-radius: 0 3px 3px 0; background: var(--gold); }
.sidebar-foot { color: #6b7d94; border-top-color: rgba(255, 255, 255, .06); letter-spacing: .02em; }
.topbar { background: rgba(255, 255, 255, .78); backdrop-filter: saturate(170%) blur(14px); -webkit-backdrop-filter: saturate(170%) blur(14px);
  border-bottom: 1px solid var(--line); padding: .8rem 1.75rem; }
.page-title { font-size: 1.32rem; font-weight: 700; }
.breadcrumb { font-size: .72rem; letter-spacing: .02em; }
.content { padding: 1.75rem; }
.btn-user { border-color: var(--line); box-shadow: var(--shadow-xs); }
.btn-user:hover { border-color: #cfd6e0; }
.avatar { background: linear-gradient(135deg, rgba(var(--brand-rgb), .16), rgba(var(--brand-rgb), .08)); }
@media (max-width: 991.98px) { .topbar, .content { padding-left: 1rem; padding-right: 1rem; } }

/* ---- dashboards */
.welcome { position: relative; overflow: hidden; border: 0; color: #fff;
  background: radial-gradient(90% 140% at 100% 0%, rgba(255, 255, 255, .16), transparent 55%),
    radial-gradient(60% 120% at 0% 100%, rgba(224, 178, 82, .22), transparent 60%),
    linear-gradient(120deg, var(--brand-deep), var(--brand) 78%);
  box-shadow: var(--shadow-md); }
.welcome::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: radial-gradient(rgba(255, 255, 255, .22) 1px, transparent 1px); background-size: 18px 18px;
  -webkit-mask-image: linear-gradient(90deg, transparent 35%, #000); mask-image: linear-gradient(90deg, transparent 35%, #000); }
.welcome .card-body { position: relative; z-index: 1; padding: 1.5rem 1.6rem; }
.welcome h2 { font-size: 1.45rem; font-weight: 800; color: #fff; }
.welcome .text-muted { color: rgba(255, 255, 255, .78) !important; }
.kpi { border-radius: var(--radius); }
a.kpi:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.kpi-icon { width: 42px; height: 42px; border-radius: 12px; font-size: 1.15rem; box-shadow: inset 0 0 0 1px rgba(15, 23, 42, .04); }
.kpi-value { font-family: var(--font-display); font-size: 1.75rem; font-weight: 800; letter-spacing: -.02em; }
.kpi-label { font-weight: 500; }

/* ---- applicant area */
.applicant-nav { background: rgba(255, 255, 255, .82); backdrop-filter: saturate(170%) blur(14px); -webkit-backdrop-filter: saturate(170%) blur(14px);
  border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 1030; }
.applicant-nav .navbar-brand .fw-semibold { font-family: var(--font-display); font-weight: 700 !important; letter-spacing: -.01em; }
.applicant-nav .nav-link { border-radius: 9px; padding: .45rem .75rem !important; color: var(--ink-2); font-weight: 500; }
.applicant-nav .nav-link:hover { background: rgba(var(--brand-rgb), .06); color: var(--brand); }
.applicant-nav .nav-link.active { background: rgba(var(--brand-rgb), .1); color: var(--brand); font-weight: 600; }
.applicant-hero-card { overflow: hidden; }
.applicant-hero { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; padding: 1.5rem 1.6rem; color: #fff;
  background: radial-gradient(90% 160% at 100% 0%, rgba(255, 255, 255, .16), transparent 55%),
    radial-gradient(60% 140% at 0% 100%, rgba(224, 178, 82, .2), transparent 60%),
    linear-gradient(120deg, var(--brand-deep), var(--brand) 80%); }
.applicant-hero h1 { color: #fff; font-weight: 800; }
.applicant-hero-kicker { display: block; font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; color: rgba(255, 255, 255, .72); margin-bottom: .2rem; }
.applicant-hero-progress { display: flex; align-items: center; gap: .7rem; font-size: .8rem; color: rgba(255, 255, 255, .85); }
.applicant-hero-progress .progress { width: 160px; height: .55rem; background: rgba(255, 255, 255, .22); }
.applicant-hero-progress .progress-bar { background: linear-gradient(90deg, #fff, var(--gold)); }
.applicant-hero-progress strong { color: #fff; font-size: 1rem; font-family: var(--font-display); }
.tracker-step { border-radius: 12px; border-color: var(--line); box-shadow: var(--shadow-xs); }
.tracker-step.current { box-shadow: 0 0 0 4px rgba(var(--brand-rgb), .1); }
.wizard-step a { border-radius: 12px; }
.wizard-step.active a { box-shadow: 0 0 0 4px rgba(var(--brand-rgb), .08), var(--shadow-xs); }

/* ---- shared brand block */
.site-brand { display: flex; align-items: center; gap: .7rem; color: var(--ink); text-decoration: none; min-width: 0; }
.site-brand-text { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.site-brand-text strong { font-family: var(--font-display); font-size: 1rem; letter-spacing: -.01em; }
.site-brand-text small { color: var(--muted); font-size: .74rem; }
.site-brand-light { color: #fff; } .site-brand-light .site-brand-text small { color: rgba(255, 255, 255, .7); }
.eyebrow { display: inline-flex; align-items: center; gap: .4rem; font-size: .74rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--brand); background: rgba(var(--brand-rgb), .08); border: 1px solid rgba(var(--brand-rgb), .16); border-radius: 999px; padding: .3rem .75rem; }
.eyebrow-light { color: #fff; background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .22); backdrop-filter: blur(6px); }
.eyebrow-light i { color: var(--gold); }

/* ---- public site: header and footer */
.layout-public { background: #fff; }
.site-header { position: sticky; top: 0; z-index: 1030; background: rgba(255, 255, 255, .8); backdrop-filter: saturate(170%) blur(14px);
  -webkit-backdrop-filter: saturate(170%) blur(14px); border-bottom: 1px solid var(--line); }
.site-header-inner { display: flex; align-items: center; flex-wrap: wrap; gap: .75rem; min-height: 70px; }
.site-menu-btn { margin-left: auto; width: 42px; height: 42px; border-radius: 11px; border: 1px solid var(--line); background: #fff; font-size: 1.3rem; color: var(--ink); }
.site-nav { flex-basis: 100%; padding-bottom: .9rem; }
.site-nav.show, .site-nav.collapsing { display: flex; flex-direction: column; gap: .25rem; }
.site-link { display: inline-flex; align-items: center; padding: .5rem .8rem; border-radius: 9px; color: var(--ink-2); font-weight: 500; text-decoration: none; }
.site-link:hover { color: var(--brand); background: rgba(var(--brand-rgb), .06); }
.site-link.active { color: var(--brand); font-weight: 600; }
.site-nav-actions { display: flex; gap: .5rem; padding-top: .5rem; }
@media (min-width: 992px) {
  .site-nav { display: flex !important; flex-basis: auto; align-items: center; gap: .15rem; margin-left: auto; padding: 0; }
  .site-nav-actions { padding: 0 0 0 .75rem; margin-left: .5rem; border-left: 1px solid var(--line); }
}
.site-footer { background: var(--brand-deep); background: linear-gradient(180deg, color-mix(in srgb, var(--brand) 30%, #020617), #020617); color: rgba(255, 255, 255, .72); }
.site-footer-top { padding: 3.5rem 0 2.25rem; }
.site-footer-note { margin: 1rem 0 0; max-width: 26rem; font-size: .9rem; line-height: 1.65; }
.site-footer-title { font-family: var(--font-display); font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #fff; margin-bottom: 1rem; }
.site-footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; font-size: .9rem; }
.site-footer-links a { color: rgba(255, 255, 255, .78); text-decoration: none; } .site-footer-links a:hover { color: #fff; }
.site-footer-contact li { display: flex; gap: .55rem; } .site-footer-contact i { color: var(--gold); }
.site-footer-bottom { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: space-between; padding: 1.25rem 0 1.5rem; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .8rem; }
.site-footer-pay i { color: var(--gold); margin-right: .35rem; }

/* ---- public site: hero, sections */
.hero-x { position: relative; overflow: hidden; color: #fff; isolation: isolate;
  background: radial-gradient(70% 90% at 85% 10%, rgba(var(--brand-rgb), .85), transparent 60%),
    radial-gradient(50% 70% at 10% 100%, rgba(224, 178, 82, .18), transparent 60%),
    linear-gradient(135deg, var(--brand-deep), color-mix(in srgb, var(--brand) 22%, #020617)); }
.hero-x::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .35;
  background-image: linear-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .07) 1px, transparent 1px);
  background-size: 44px 44px; -webkit-mask-image: radial-gradient(80% 80% at 70% 30%, #000, transparent 75%); mask-image: radial-gradient(80% 80% at 70% 30%, #000, transparent 75%); }
.hero-x-glow { position: absolute; z-index: -1; width: 520px; height: 520px; right: -140px; top: -180px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, .18), transparent 65%); filter: blur(10px); }
.hero-x-inner { padding-top: 5rem; padding-bottom: 5.5rem; }
.hero-title { font-size: clamp(2rem, 4.2vw, 3.35rem); font-weight: 800; line-height: 1.08; letter-spacing: -.03em; margin: 1.1rem 0 1rem; color: #fff; }
.hero-accent { background: linear-gradient(90deg, #fff, color-mix(in srgb, var(--gold) 80%, #fff)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-lead { font-size: 1.1rem; line-height: 1.7; color: rgba(255, 255, 255, .8); max-width: 38rem; margin-bottom: 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; }
.hero-link { color: rgba(255, 255, 255, .85); font-weight: 600; text-decoration: none; padding: .5rem .25rem; } .hero-link:hover { color: #fff; }
.hero-trust { list-style: none; padding: 0; margin: 2.25rem 0 0; display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; font-size: .88rem; color: rgba(255, 255, 255, .78); }
.hero-trust i { color: var(--gold); margin-right: .4rem; }
.glass-card { position: relative; border-radius: var(--radius-lg); padding: 1.4rem; color: #fff;
  background: linear-gradient(160deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, .06)); border: 1px solid rgba(255, 255, 255, .22);
  backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%); box-shadow: var(--shadow-lg); }
.glass-card-head { display: flex; align-items: center; gap: .75rem; margin-bottom: 1rem; }
.glass-card-head h2 { font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; margin: 0 auto 0 0; color: rgba(255, 255, 255, .9); }
.glass-count { font-size: .75rem; padding: .2rem .6rem; border-radius: 999px; background: rgba(255, 255, 255, .14); }
.glass-list { display: grid; gap: .6rem; }
.glass-item { display: flex; align-items: center; gap: .8rem; padding: .8rem .9rem; border-radius: 14px; text-decoration: none; color: var(--ink);
  background: rgba(255, 255, 255, .95); box-shadow: 0 10px 24px -16px rgba(2, 6, 23, .6); transition: transform .15s ease, box-shadow .15s ease; }
.glass-item:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -16px rgba(2, 6, 23, .7); color: var(--ink); }
.glass-item-icon { flex: none; width: 40px; height: 40px; border-radius: 11px; display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, rgba(var(--brand-rgb), .14), rgba(var(--brand-rgb), .06)); color: var(--brand); font-size: 1.1rem; }
.glass-item-body { display: flex; flex-direction: column; min-width: 0; margin-right: auto; }
.glass-item-body strong { font-size: .9rem; line-height: 1.3; }
.glass-item-body small { color: var(--muted); font-size: .78rem; }
.glass-more { display: inline-flex; align-items: center; gap: .35rem; margin-top: 1rem; color: #fff; font-weight: 600; font-size: .88rem; text-decoration: none; }
.glass-more:hover { color: var(--gold); }
.glass-card .empty-state, .glass-card .empty-state i { color: rgba(255, 255, 255, .8); }
.stats-strip { position: relative; z-index: 2; margin-top: -2.4rem; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); border: 1px solid var(--line); overflow: hidden; }
.stat { padding: 1.4rem 1.5rem; display: flex; flex-direction: column; gap: .15rem; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat strong { font-family: var(--font-display); font-size: 1.9rem; font-weight: 800; letter-spacing: -.03em; color: var(--brand); line-height: 1.1; }
.stat span { color: var(--muted); font-size: .85rem; }
@media (max-width: 767.98px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } .stat:nth-child(3) { border-left: 0; } .stat:nth-child(n+3) { border-top: 1px solid var(--line); } }
.section { padding: 5rem 0; }
.section-alt { background: linear-gradient(180deg, #f6f8fc, #fff); border-top: 1px solid var(--line); }
.section-head { max-width: 40rem; margin: 0 auto 3rem; text-align: center; }
.section-head h2 { font-size: clamp(1.6rem, 2.8vw, 2.25rem); font-weight: 800; letter-spacing: -.025em; margin: .9rem 0 .6rem; }
.section-head p { color: var(--muted); font-size: 1.02rem; margin: 0; }
.steps-line { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; position: relative; }
.steps-line::before { content: ""; position: absolute; top: 32px; left: 12%; right: 12%; height: 2px;
  background: linear-gradient(90deg, rgba(var(--brand-rgb), .1), rgba(var(--brand-rgb), .45), rgba(var(--brand-rgb), .1)); }
.steps-line-item { position: relative; text-align: center; padding: 0 .5rem; }
.steps-line-icon { position: relative; width: 64px; height: 64px; margin: 0 auto 1.1rem; border-radius: 20px; display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; color: #fff; background: linear-gradient(135deg, color-mix(in srgb, var(--brand) 85%, #fff), var(--brand-dark));
  box-shadow: 0 14px 28px -12px rgba(var(--brand-rgb), .8), inset 0 1px 0 rgba(255, 255, 255, .25); }
.steps-line-no { position: absolute; top: -8px; right: -8px; width: 24px; height: 24px; border-radius: 50%; background: #fff; color: var(--brand);
  font-size: .75rem; font-weight: 800; display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-sm); }
.steps-line-item h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: .4rem; }
.steps-line-item p { color: var(--muted); font-size: .9rem; line-height: 1.6; margin: 0; }
@media (max-width: 991.98px) { .steps-line { grid-template-columns: repeat(2, 1fr); row-gap: 2.5rem; } .steps-line::before { display: none; } }
@media (max-width: 575.98px) { .steps-line { grid-template-columns: 1fr; } }
.feature-card { height: 100%; padding: 1.6rem; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.feature-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: rgba(var(--brand-rgb), .25); }
.feature-icon { width: 48px; height: 48px; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center; font-size: 1.3rem;
  color: var(--brand); background: linear-gradient(135deg, rgba(var(--brand-rgb), .14), rgba(var(--brand-rgb), .05)); margin-bottom: 1rem; }
.feature-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: .45rem; }
.feature-card p { color: var(--muted); font-size: .9rem; line-height: 1.65; margin: 0; }
.cta-band { padding: 0 0 5rem; }
.cta-band-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; padding: 2.75rem 3rem; border-radius: 24px; color: #fff;
  background: radial-gradient(70% 140% at 100% 0%, rgba(255, 255, 255, .16), transparent 55%), linear-gradient(120deg, var(--brand-deep), var(--brand));
  box-shadow: var(--shadow-lg); }
.cta-band h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 800; letter-spacing: -.02em; margin: 0 0 .35rem; color: #fff; }
.cta-band p { margin: 0; color: rgba(255, 255, 255, .8); }
.cta-band-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
@media (max-width: 575.98px) { .cta-band-inner { padding: 2rem 1.5rem; } .hero-x-inner { padding-top: 3.25rem; padding-bottom: 4.5rem; } }
.page-band { color: #fff; padding: 3.25rem 0 3rem; position: relative; overflow: hidden;
  background: radial-gradient(60% 120% at 90% 0%, rgba(var(--brand-rgb), .8), transparent 60%), linear-gradient(135deg, var(--brand-deep), color-mix(in srgb, var(--brand) 22%, #020617)); }
.page-band h1 { font-size: clamp(1.75rem, 3vw, 2.4rem); font-weight: 800; letter-spacing: -.025em; color: #fff; margin: .9rem 0 .5rem; }
.page-band p { color: rgba(255, 255, 255, .8); max-width: 40rem; margin: 0; }
.circular-card { overflow: hidden; border-radius: var(--radius-lg); }
.circular-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: linear-gradient(90deg, var(--brand), var(--gold)); opacity: .85; }
.circular-card .card-body { padding: 1.35rem; }
.circular-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.circular-card h3 { font-size: 1.05rem; font-weight: 700; }

/* ---- sign-in, registration: split screen */
.layout-auth { background: var(--surface); }
.auth-split { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
.auth-aside { position: relative; overflow: hidden; isolation: isolate; display: flex; flex-direction: column; padding: 2.5rem 3rem; color: #fff;
  background: radial-gradient(80% 60% at 100% 0%, rgba(var(--brand-rgb), .9), transparent 60%),
    radial-gradient(60% 50% at 0% 100%, rgba(224, 178, 82, .2), transparent 60%),
    linear-gradient(160deg, var(--brand-deep), color-mix(in srgb, var(--brand) 18%, #020617)); }
.auth-aside::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .35;
  background-image: linear-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .07) 1px, transparent 1px);
  background-size: 40px 40px; -webkit-mask-image: radial-gradient(90% 70% at 30% 40%, #000, transparent 75%); mask-image: radial-gradient(90% 70% at 30% 40%, #000, transparent 75%); }
.auth-aside-body { margin: auto 0; max-width: 30rem; }
.auth-aside-title { font-family: var(--font-display); font-size: clamp(1.7rem, 2.6vw, 2.35rem); font-weight: 800; letter-spacing: -.025em; line-height: 1.15; margin: 1.1rem 0 1.6rem; }
.auth-points { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
.auth-points li { display: flex; gap: .85rem; align-items: flex-start; color: rgba(255, 255, 255, .82); font-size: .95rem; line-height: 1.5; }
.auth-points i { flex: none; width: 36px; height: 36px; border-radius: 11px; display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18); color: var(--gold); font-size: 1rem; }
.auth-points strong { color: #fff; }
.auth-aside-foot { font-size: .8rem; color: rgba(255, 255, 255, .55); margin: 0; }
.auth-wrap { min-height: 100vh; padding: 2.5rem 1.25rem;
  background: radial-gradient(60% 40% at 50% 0%, rgba(var(--brand-rgb), .07), transparent 70%), var(--surface); }
.auth-card { max-width: 460px; border-radius: var(--radius-lg); border: 1px solid var(--line); box-shadow: var(--shadow-md); }
.auth-card h1 { font-weight: 800; letter-spacing: -.02em; }
.auth-split .auth-brand { display: none; }
.demo-accounts { border: 1px solid var(--line); border-radius: 12px; padding: .7rem .9rem; background: #f8fafc; }
.demo-accounts summary { font-weight: 600; }
@media (max-width: 991.98px) {
  .auth-split { display: block; }
  .auth-aside { display: none; }
  .auth-split .auth-brand { display: flex; }
  .auth-wrap { min-height: 100vh; }
}
.section, [id] { scroll-margin-top: 84px; }
.site-brand { flex: 1 1 0; }
.site-menu-btn { flex: none; }
@media (max-width: 575.98px) {
  .site-header-inner { min-height: 62px; }
  .site-brand-text strong { font-size: .9rem; line-height: 1.2; }
  .site-brand-text small { display: none; }
}
@media (min-width: 992px) { .site-brand { flex: 0 1 auto; } }
.site-footer-contact li { overflow-wrap: anywhere; }
.sidebar-nav { scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .16) transparent; }
.sidebar-nav::-webkit-scrollbar { width: 6px; } .sidebar-nav::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .16); border-radius: 6px; }
.welcome .card-body::after { content: "\f87d"; font-family: "bootstrap-icons"; position: absolute; right: 1.6rem; top: 50%; transform: translateY(-50%);
  font-size: 3.2rem; line-height: 1; color: rgba(255, 255, 255, .14); pointer-events: none; }
@media (max-width: 575.98px) { .welcome .card-body::after { display: none; } }
.applicant-nav .nav-link { white-space: nowrap; display: flex; align-items: center; gap: .1rem; }
@media (max-width: 1199.98px) { .applicant-nav .navbar-collapse { padding: .5rem 0 .75rem; } .applicant-nav .navbar-nav { gap: .15rem; } }
.applicant-hero-progress span { white-space: nowrap; }
.applicant-nav .navbar-toggler { border-radius: 11px; border-color: var(--line); padding: .35rem .55rem; }
.applicant-nav .navbar-toggler:focus { box-shadow: 0 0 0 4px rgba(var(--brand-rgb), .12); }
@media (max-width: 575.98px) { .applicant-hero { padding: 1.25rem; } .applicant-hero-progress .progress { width: 120px; } }

/* ---- notice board (home page and /notices) */
.section-notices { padding-top: 4rem; padding-bottom: 1rem; }
.notice-board { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); padding: 1.75rem; }
.notice-board-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1.25rem; }
.notice-board-head h2 { font-size: clamp(1.4rem, 2.4vw, 1.85rem); font-weight: 800; letter-spacing: -.025em; margin: .75rem 0 0; }
.notice-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
@media (max-width: 767.98px) { .notice-list { grid-template-columns: 1fr; } .notice-board { padding: 1.15rem; } }
.notice-item { display: flex; align-items: center; gap: 1rem; padding: .9rem 1rem; border-radius: 14px; border: 1px solid var(--line); background: #fff;
  color: var(--ink); text-decoration: none; transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease; min-width: 0; }
.notice-item:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: rgba(var(--brand-rgb), .3); color: var(--ink); }
.notice-date { flex: none; width: 58px; height: 58px; border-radius: 14px; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1;
  color: #fff; background: linear-gradient(135deg, color-mix(in srgb, var(--brand) 85%, #fff), var(--brand-dark)); box-shadow: 0 10px 20px -12px rgba(var(--brand-rgb), .9); }
.notice-date strong { font-family: var(--font-display); font-size: 1.35rem; font-weight: 800; }
.notice-date small { font-size: .62rem; letter-spacing: .06em; text-transform: uppercase; opacity: .85; margin-top: .2rem; }
.notice-body { display: flex; flex-direction: column; gap: .25rem; min-width: 0; flex: 1; }
.notice-title { font-weight: 600; line-height: 1.35; overflow-wrap: anywhere; }
.notice-pin { color: var(--gold); margin-right: .35rem; }
.notice-meta { display: flex; align-items: center; flex-wrap: wrap; gap: .35rem; font-size: .78rem; color: var(--muted); }
.notice-meta .bi-file-earmark-pdf { color: #dc3545; }
.notice-new { margin-left: .25rem; font-size: .65rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #fff; background: #16a34a; border-radius: 999px; padding: .15rem .5rem; }
.notice-go { flex: none; color: var(--muted); transition: color .15s ease, transform .15s ease; }
.notice-item:hover .notice-go { color: var(--brand); transform: translate(2px, -2px); }
.notice-board .pagination { margin-top: 1rem; }
.notice-title.bn { font-family: "Hind Siliguri", "Inter", sans-serif; font-weight: 600; line-height: 1.55; font-size: 1.02em; }
.bn { letter-spacing: normal; }
