/* =====================================================================
   RozgarHai — design system (Option B "Clean Pro"), hand-written, no build step.
   Fonts are self-hosted (public/assets/fonts, SIL OFL). No CDN.
   Mobile first; breakpoints 768px (tablet) and 1024px (desktop).
   ===================================================================== */

/* ---------- Fonts ---------- */
@font-face { font-family: "Sora"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/sora-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Sora"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/sora-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Mukta"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/mukta-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Mukta"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/mukta-latin-600-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Mukta"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/mukta-latin-700-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
/* Devanagari only for Hindi script text; the rupee sign (U+20B9) is left to the system font
   so a page full of salaries does not download a 100 KB font. */
@font-face { font-family: "Mukta"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/mukta-devanagari-400-normal.woff2") format("woff2"); unicode-range: U+0900-097F,U+1CD0-1CF9,U+200C-200D,U+A8E0-A8FF; }
@font-face { font-family: "Mukta"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/mukta-devanagari-700-normal.woff2") format("woff2"); unicode-range: U+0900-097F,U+1CD0-1CF9,U+200C-200D,U+A8E0-A8FF; }

/* ---------- Tokens ---------- */
:root {
  --navy: #0F1B33;
  --navy-2: #1B2A4A;
  --navy-line: #3A4766;
  --on-navy-muted: #C3CADB;
  --ink: #0F1B33;
  --ink-2: #2B3548;
  --muted: #5A6478;
  --faint: #8C96AD;
  --bg: #F4F5F8;
  --surface: #FFFFFF;
  --surface-2: #F8F9FB;
  --line: #DDE1EA;
  --line-2: #EEF0F4;
  --accent: #C2410C;          /* saffron: 5.2:1 on white */
  --accent-hover: #9A3412;
  --accent-soft: #FFF1E6;
  --accent-ink: #9A3412;
  --ok: #166534;  --ok-soft: #DCFCE7;
  --info: #3730A3; --info-soft: #E0E7FF;
  --bad: #B91C1C; --bad-soft: #FEE2E2;
  --warn-bg: #FFF7ED; --warn-line: #FED7AA; --warn-ink: #7C2D12;
  --r-sm: 8px; --r: 12px; --r-lg: 16px;
  --font: "Mukta", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Sora", "Mukta", system-ui, sans-serif;
  --shadow: 0 1px 2px rgba(15, 27, 51, .06);
  --max: 1200px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.5; color: var(--ink); background: var(--bg); }
img, svg { display: block; max-width: 100%; }
a { color: var(--accent); }
a:hover { color: var(--accent-hover); }
h1, h2, h3 { line-height: 1.25; margin: 0; }
h1, h2 { font-family: var(--font-display); letter-spacing: -.3px; }
p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid #F59E0B; outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 8px; top: -60px; z-index: 100; padding: 10px 14px; background: var(--surface); border-radius: var(--r-sm); }
.skip-link:focus { top: 8px; }
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .container { padding: 0 24px; } }
.stack { display: flex; flex-direction: column; gap: 16px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.nowrap { white-space: nowrap; }
[hidden] { display: none !important; }

/* ---------- Wordmark ---------- */
.wordmark { font-family: var(--font-display); font-weight: 700; font-size: 22px; letter-spacing: -.5px; color: #fff; text-decoration: none; }
.wordmark:hover { color: #fff; }
.wordmark span { color: var(--accent); }
.wordmark--dark { color: var(--ink); }
.wordmark--dark:hover { color: var(--ink); }

/* ---------- Header ---------- */
.site-header { background: var(--navy); color: #fff; }
.site-header__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; }
.site-nav { display: none; gap: 24px; font-weight: 600; }
.site-nav a { color: var(--on-navy-muted); text-decoration: none; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: #fff; }
.site-header__actions { display: flex; gap: 8px; align-items: center; }
.site-header__left { display: flex; align-items: center; gap: 36px; }
@media (min-width: 900px) { .site-nav { display: flex; } }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 10px; border: 1px solid transparent; font-weight: 700; font-size: 15px; text-decoration: none; cursor: pointer; white-space: nowrap; background: none; }
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-hover); color: #fff; }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { color: var(--ink); background: #EEF0F4; }
.btn--ghost-dark { border-color: var(--navy-line); color: #fff; }
.btn--ghost-dark:hover { color: #fff; background: var(--navy-2); }
.btn--outline { border-color: var(--line); background: var(--surface); color: var(--ink); }
.btn--outline:hover { color: var(--ink); border-color: var(--faint); }
.btn--dark { background: var(--navy); color: #fff; }
.btn--dark:hover { background: var(--navy-2); color: #fff; }
.btn--ok { background: var(--ok); color: #fff; }
.btn--danger { border-color: var(--bad); color: var(--bad); background: var(--surface); }
.btn--block { width: 100%; }
.btn--lg { min-height: 54px; font-size: 17px; border-radius: var(--r); }
.btn--sm { min-height: 36px; padding: 0 12px; font-size: 14px; border-radius: var(--r-sm); }
.btn--icon { width: 44px; padding: 0; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }
@media (max-width: 480px) { .hide-sm { display: none !important; } }

/* ---------- Hero + search ---------- */
.hero { background: var(--navy); color: #fff; padding: 16px 0 32px; }
.hero__title { font-size: 28px; line-height: 1.2; letter-spacing: -.6px; max-width: 760px; }
.hero__title em { font-style: normal; color: #FDBA74; }
.hero__sub { color: var(--on-navy-muted); font-size: 17px; margin-top: 8px; }
@media (min-width: 768px) { .hero { padding: 40px 0 56px; } .hero__title { font-size: 46px; letter-spacing: -1px; } .hero__sub { font-size: 19px; } }
.search { display: flex; flex-direction: column; background: var(--surface); border-radius: 14px; overflow: hidden; margin-top: 24px; max-width: 960px; }
.search__field { display: flex; align-items: center; gap: 10px; min-height: 56px; padding: 0 16px; color: var(--ink); border-bottom: 1px solid #E3E6ED; }
.search__field svg { flex: none; color: var(--muted); }
.search__field input { flex: 1; min-width: 0; border: 0; outline: none; background: transparent; font-size: 17px; }
.search__btn { min-height: 56px; border: 0; background: var(--accent); color: #fff; font-weight: 700; font-size: 17px; cursor: pointer; padding: 0 28px; }
.search__btn:hover { background: var(--accent-hover); }
@media (min-width: 768px) {
  .search { flex-direction: row; }
  .search__field { flex: 2 1 0; border-bottom: 0; border-right: 1px solid #E3E6ED; min-height: 64px; }
  .search__field + .search__field { flex: 1 1 0; border-right: 0; }
  .search__btn { min-height: 64px; }
}
.search--compact { margin-top: 0; }
.search--compact .search__field, .search--compact .search__btn { min-height: 52px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 14px; border-radius: 99px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-weight: 600; font-size: 15px; text-decoration: none; }
.chip:hover { color: var(--ink); border-color: var(--faint); }
.chip--dark { border-color: var(--navy-line); background: transparent; color: #fff; }
.chip--dark:hover { color: #fff; background: var(--navy-2); }
.chip--active { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-ink); }

/* ---------- Layout: main + aside ---------- */
.page { padding-top: 24px; padding-bottom: 48px; }
.split { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.split__main { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.split__aside { flex: 1 1 300px; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.section-head h2 { font-size: 22px; font-weight: 600; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 6px; font-size: 14px; color: var(--muted); margin: 0 0 4px; padding: 0; list-style: none; }
.breadcrumb a { color: var(--muted); }
.breadcrumb li + li::before { content: "/"; margin-right: 6px; }

/* ---------- Cards ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 18px; }
.card--lg { padding: 24px; border-radius: var(--r-lg); }
.card--navy { background: var(--navy); color: #fff; border-color: var(--navy); }
.card--navy p { color: var(--on-navy-muted); }
.card--warn { background: var(--warn-bg); border-color: var(--warn-line); color: var(--warn-ink); }
.card h2 { font-size: 18px; font-weight: 600; }
.notice { display: flex; gap: 12px; align-items: flex-start; }
.notice__icon { flex: none; width: 40px; height: 40px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); display: flex; align-items: center; justify-content: center; }

/* ---------- Job card ---------- */
.job-grid { display: flex; flex-wrap: wrap; gap: 16px; }
.job-grid > * { flex: 1 1 320px; }
.job-card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 16px; display: flex; flex-direction: column; gap: 12px; position: relative; }
.job-card:hover { border-color: var(--faint); }
.job-card__top { display: flex; gap: 12px; }
.logo-tile { flex: none; width: 48px; height: 48px; border-radius: 10px; background: #E8ECF5; color: var(--ink); display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 700; font-size: 19px; text-transform: uppercase; }
.logo-tile--lg { width: 72px; height: 72px; font-size: 28px; border-radius: 14px; }
.job-card__title { font-size: 18px; font-weight: 700; line-height: 1.25; font-family: var(--font); letter-spacing: 0; }
.job-card__title a { color: var(--ink); text-decoration: none; }
.job-card__title a::after { content: ""; position: absolute; inset: 0; border-radius: 14px; }   /* whole card clickable */
.job-card__title a:focus-visible::after { outline: 3px solid #F59E0B; }
.job-card__company { font-size: 15px; color: var(--muted); }
.job-card__foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 10px; border-top: 1px solid var(--line-2); font-size: 14px; color: var(--muted); }
.job-card__foot .btn { position: relative; z-index: 1; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; }
.tag { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 8px; background: var(--line-2); color: var(--ink-2); }
.tag--salary { background: var(--accent-soft); color: var(--accent-ink); font-weight: 700; }
.tag--ok { background: var(--ok-soft); color: var(--ok); font-weight: 700; }
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 99px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.badge--ok { background: var(--ok-soft); color: var(--ok); }
.badge--info { background: var(--info-soft); color: var(--info); }
.badge--accent { background: var(--accent-soft); color: var(--accent-ink); }
.badge--bad { background: var(--bad-soft); color: #991B1B; }
.badge--muted { background: #F1F2F5; color: var(--muted); }

/* Job list row (search results, wide) */
.job-row { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 16px; display: flex; flex-wrap: wrap; gap: 14px; align-items: center; position: relative; }
.job-row:hover { border-color: var(--faint); }
.job-row__body { flex: 1 1 280px; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.job-row__facts { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 15px; color: var(--ink-2); }
.job-row__facts .salary { font-weight: 700; color: var(--accent-ink); }
.job-row__side { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--muted); position: relative; z-index: 1; }

/* ---------- Category / city tiles ---------- */
.tile-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 768px) { .tile-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.tile { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); color: var(--ink); text-decoration: none; font-weight: 600; }
.tile:hover { color: var(--ink); border-color: var(--faint); }
.tile small { color: var(--muted); font-weight: 400; }

/* ---------- Filters (jobs page) ---------- */
.filters { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 18px; display: flex; flex-direction: column; gap: 18px; }
.filters fieldset { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.filters legend { font-weight: 700; font-size: 15px; margin-bottom: 6px; }
.filters label { display: flex; align-items: center; gap: 10px; min-height: 32px; font-size: 15px; }
.filters input[type=radio], .filters input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--accent); }
.filters select { min-height: 40px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface); padding: 0 8px; }
.filters-toggle { display: inline-flex; }
@media (min-width: 1024px) { .filters-toggle { display: none; } }
@media (max-width: 1023px) { .filters:not(.is-open) { display: none; } }
.results-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.results-head h1 { font-size: 22px; font-weight: 600; }
.pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; padding-top: 8px; }
.pagination a, .pagination span { min-width: 44px; min-height: 44px; padding: 0 12px; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); text-decoration: none; font-weight: 600; }
.pagination [aria-current="page"] { background: var(--navy); color: #fff; border-color: var(--navy); }
.empty { text-align: center; padding: 40px 16px; background: var(--surface); border: 1px dashed var(--line); border-radius: 14px; }
.empty h2 { font-size: 20px; margin-bottom: 6px; }

/* ---------- Job detail ---------- */
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0; }
@media (min-width: 768px) { .facts { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.facts > div { padding: 10px 12px; border-radius: var(--r); background: var(--bg); }
.facts dt { font-size: 13px; color: var(--muted); }
.facts dd { margin: 0; font-weight: 700; font-size: 16px; }
.facts .facts__salary { background: var(--accent-soft); }
.facts .facts__salary dt, .facts .facts__salary dd { color: var(--accent-ink); }
.job-title { font-size: 24px; letter-spacing: -.4px; }
@media (min-width: 768px) { .job-title { font-size: 32px; letter-spacing: -.6px; } }
.prose { font-size: 17px; line-height: 1.65; color: var(--ink-2); white-space: pre-line; overflow-wrap: anywhere; }
.apply-bar { position: sticky; bottom: 0; z-index: 10; display: flex; gap: 10px; padding: 12px 16px 16px; background: var(--surface); border-top: 1px solid var(--line); }
@media (min-width: 1024px) { .apply-bar { display: none; } }
.locked { display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 10px; background: var(--bg); font-weight: 600; }

/* ---------- Forms ---------- */
.field { display: flex; flex-direction: column; gap: 6px; }
.field label, .field .label { font-weight: 700; font-size: 15px; }
.input, .select, .textarea { width: 100%; min-height: 50px; padding: 0 14px; border: 1.5px solid #C9CFDB; border-radius: var(--r); background: var(--surface); font-size: 17px; }
.textarea { min-height: 120px; padding: 12px 14px; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(15, 27, 51, .12); }
.input-group { display: flex; align-items: stretch; border: 1.5px solid #C9CFDB; border-radius: var(--r); overflow: hidden; background: var(--surface); }
.input-group:focus-within { border-color: var(--navy); box-shadow: 0 0 0 3px rgba(15, 27, 51, .12); }
.input-group .input { border: 0; border-radius: 0; box-shadow: none; }
.input-group__addon { display: flex; align-items: center; padding: 0 12px; background: var(--bg); border-right: 1px solid var(--line); font-weight: 600; }
.hint { font-size: 14px; color: var(--muted); }
.error-text { font-size: 14px; color: var(--bad); }
.tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; padding: 4px; border-radius: var(--r); background: var(--line-2); }
.tabs button, .tabs a { min-height: 44px; border: 0; border-radius: 9px; background: transparent; color: var(--muted); font-weight: 600; cursor: pointer; display: flex; align-items: center; justify-content: center; text-decoration: none; }
.tabs [aria-selected="true"], .tabs [aria-current="page"] { background: var(--surface); color: var(--ink); font-weight: 700; box-shadow: 0 1px 3px rgba(15, 27, 51, .12); }

/* ---------- Footer ---------- */
.site-footer { background: var(--surface); border-top: 1px solid var(--line); margin-top: auto; }
.site-footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; padding-top: 24px; padding-bottom: 24px; font-size: 15px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--ink); }
body.site { min-height: 100vh; display: flex; flex-direction: column; }

/* ---------- Toast ---------- */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 1000; max-width: calc(100vw - 32px); padding: 12px 18px; border-radius: 12px; background: var(--navy); color: #fff; font-weight: 600; box-shadow: 0 10px 30px rgba(15, 27, 51, .25); }
.toast--error { background: #991B1B; }
.toast--ok { background: var(--ok); }

/* ---------- Small helpers used by the templates ---------- */
.stack-sm { display: flex; flex-direction: column; gap: 10px; }
.stack-xs { display: flex; flex-direction: column; gap: 4px; }
.h-gap { margin-top: 8px; }
.h-sm { font-size: 18px; font-weight: 600; }
.page-title { font-size: 26px; font-weight: 700; }
@media (min-width: 768px) { .page-title { font-size: 32px; } }
.section-head--spaced { margin-top: 16px; }
.hero__chips { margin-top: 18px; font-size: 15px; }
.muted-on-navy { color: var(--on-navy-muted); }
.search-band { background: var(--navy); padding: 0 0 20px; }
.split--filters .split__aside--filters { order: -1; flex: 1 1 260px; }
@media (min-width: 1024px) { .split--filters .split__aside--filters { flex: 0 0 280px; } }
.mini-list { list-style: none; margin: 0; padding: 0; }
.mini-list li + li { border-top: 1px solid var(--line-2); }
.mini-list a { display: flex; justify-content: space-between; gap: 8px; padding: 10px 0; color: var(--ink); text-decoration: none; }
.mini-list a:hover strong { color: var(--accent); }
.mini-list span:first-child { display: flex; flex-direction: column; min-width: 0; }
.mini-list small { color: var(--muted); font-size: 14px; }
.mini-list__salary { font-weight: 700; color: var(--accent-ink); white-space: nowrap; }
.is-done { background: var(--ok) !important; color: #fff !important; border-color: var(--ok) !important; }
.is-saved { color: var(--accent) !important; border-color: var(--accent) !important; }
@media (max-width: 1023px) { .apply-card { display: none; } }

/* =====================================================================
   Phase 3 part 2 — auth pages and dashboards
   ===================================================================== */
.center { text-align: center; }
.auth-page { max-width: 480px; }
.auth-card { margin-top: 8px; }
.auth-note { margin-top: 16px; }
.field__row { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.link-btn { background: none; border: 0; padding: 0; color: var(--accent); font-weight: 600; cursor: pointer; text-decoration: underline; min-height: 32px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; }
.check input { width: 18px; height: 18px; accent-color: var(--accent); margin-top: 3px; }

/* ---------- App shell ---------- */
body.app { background: var(--bg); font-size: 15px; }
.app-shell { display: flex; flex-direction: column; min-height: 100vh; }
.app-side { background: var(--navy); color: #fff; padding: 12px 16px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.app-side__brand { display: flex; align-items: baseline; gap: 8px; }
.app-side__brand .wordmark { font-size: 20px; }
.app-side__label { font-size: 12px; font-weight: 600; color: var(--on-navy-muted); }
.app-nav { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 0 16px; min-width: 0; }
.app-nav::-webkit-scrollbar { display: none; }
.app-nav a { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 40px; padding: 0 12px; border-radius: 8px; color: var(--on-navy-muted); text-decoration: none; font-weight: 600; font-size: 14px; white-space: nowrap; }
.app-nav a:hover { color: #fff; background: var(--navy-2); }
.app-nav a[aria-current="page"] { background: var(--navy-2); color: #fff; }
.app-nav__count { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 99px; background: var(--accent); color: #fff; font-size: 12px; display: inline-flex; align-items: center; justify-content: center; }
.app-side__foot { display: none; font-size: 13px; color: var(--on-navy-muted); gap: 8px; flex-direction: column; padding: 10px; border-radius: 8px; background: var(--navy-2); word-break: break-all; }
.app-side__foot .link-btn { color: #fff; align-self: flex-start; }
.app-main { flex: 1; min-width: 0; padding: 16px; display: block; outline: none; }
.app-view { display: flex; flex-direction: column; gap: 14px; max-width: 1280px; }
.app-view[hidden] { display: none; }
.app-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.app-head--wrap { flex-wrap: wrap; }
.app-title { font-size: 20px; font-weight: 700; }
@media (min-width: 1024px) {
  .app-shell { flex-direction: row; }
  .app-side { flex: 0 0 220px; position: sticky; top: 0; height: 100vh; padding: 16px 12px; gap: 18px; overflow-y: auto; }
  .app-nav { flex-direction: column; overflow: visible; margin: 0; padding: 0; gap: 2px; }
  .app-nav a { min-height: 36px; padding: 0 10px; }
  .app-side__foot { display: flex; margin-top: auto; }
  .app-main { padding: 20px 24px; }
}
@media (max-width: 1023px) { .app-side { position: sticky; top: 0; z-index: 20; } .app-mobile-logout { display: inline-flex; } }

/* Dense views (employer/admin): smaller type, tighter rows */
.app-view--dense { font-size: 14px; }
.stat-grid { display: grid; gap: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.stat-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (min-width: 768px) { .stat-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; text-decoration: none; color: var(--ink); }
.stat:hover { color: var(--ink); border-color: var(--faint); }
.stat strong { font-family: var(--font-display); font-size: 24px; }
.stat span { font-size: 13px; color: var(--muted); }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; min-width: 0; overflow: hidden; }
.panel__head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; padding: 12px 14px; border-bottom: 1px solid var(--line-2); }
.panel__head h2 { font-size: 16px; font-weight: 600; font-family: var(--font); }
.banner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding: 10px 14px; border-radius: 8px; font-size: 14px; }
.banner--warn { background: var(--warn-bg); border: 1px solid var(--warn-line); color: var(--warn-ink); }
.banner--bad { background: var(--bad-soft); border: 1px solid #FECACA; color: #7F1D1D; }
.banner--ok { background: var(--ok-soft); border: 1px solid #BBF7D0; color: var(--ok); }
.banner a { color: inherit; }

/* Tables */
.table-wrap { overflow-x: auto; position: relative; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .4px; color: var(--muted); font-weight: 600; padding: 8px 12px; background: #FBFBFC; white-space: nowrap; }
.table td { padding: 7px 12px; border-top: 1px solid var(--line-2); vertical-align: middle; }
.table td .sub { display: block; font-size: 12px; color: var(--muted); }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }
.table .right { text-align: right; }
.table .cb { width: 28px; }
.table input[type=checkbox] { width: 16px; height: 16px; accent-color: var(--accent); }
.table tr.is-selected td { background: #FFFAF5; }
.table--select tbody tr { cursor: pointer; }
.table--select tbody tr:hover td { background: var(--surface-2); }
.table--select tbody tr[aria-selected="true"] td { background: #FFFAF5; box-shadow: inset 3px 0 0 var(--accent); }
.table--select tbody tr[aria-selected="true"] td + td { box-shadow: none; }
.mono { font-variant-numeric: tabular-nums; white-space: nowrap; }
.row-actions { display: flex; gap: 4px; justify-content: flex-end; }
.icon-btn { width: 32px; height: 32px; display: inline-flex; align-items: center; justify-content: center; border-radius: 6px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); cursor: pointer; text-decoration: none; }
.icon-btn:hover { border-color: var(--faint); color: var(--ink); }
.icon-btn--ok { border-color: #BBF7D0; background: #F0FDF4; color: var(--ok); }
.icon-btn--bad { border-color: #FECACA; background: #FEF2F2; color: var(--bad); }
.icon-btn[disabled] { opacity: .45; cursor: not-allowed; }
.empty-row { padding: 18px 14px; color: var(--muted); text-align: center; margin: 0; }
.tabs-line { display: flex; flex-wrap: wrap; gap: 2px; padding: 6px 10px 0; border-bottom: 1px solid var(--line-2); }
.tabs-line button { min-height: 36px; padding: 0 10px; border: 0; border-bottom: 2px solid transparent; background: none; color: var(--muted); font-weight: 600; cursor: pointer; }
.tabs-line button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--accent); font-weight: 700; }
.tabs-line .cnt { margin-left: 4px; padding: 0 6px; border-radius: 99px; background: var(--line-2); font-size: 12px; color: var(--ink-2); }
.bulkbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 8px 12px; background: var(--surface-2); border-bottom: 1px solid var(--line-2); font-size: 13px; }
.pager { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; padding: 8px 12px; border-top: 1px solid var(--line-2); font-size: 13px; color: var(--muted); }
.pager__btns { display: flex; gap: 6px; align-items: center; }
.pager select { height: 32px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); }
.toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.toolbar select, .toolbar__search input { height: 36px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); padding: 0 10px; font-size: 14px; }
.toolbar__search input { width: 220px; max-width: 60vw; }

/* Forms in the apps */
.form-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 768px) { .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .form-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: end; } }
.form-grid h2 { font-size: 18px; font-weight: 600; }
.form-grid__full { grid-column: 1 / -1; }
.form-grid__actions { grid-column: 1 / -1; display: flex; gap: 8px; }
.form-grid--4 .form-grid__actions { grid-column: auto; }
.app-view--dense .input, .app-view--dense .select { min-height: 42px; font-size: 15px; border-radius: 10px; }
.radio-row { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; }
.radio-row legend { margin-bottom: 6px; }
.radio-row label { display: flex; gap: 8px; align-items: center; font-weight: 600; }
.radio-row input { width: 18px; height: 18px; accent-color: var(--accent); }
.kyc-form, .resume-upload { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.kyc-form .select { width: auto; min-height: 44px; }
.input--short { width: 160px; min-height: 44px; }
.input--code { font-family: var(--font-display); font-size: 26px; letter-spacing: 6px; text-align: center; }
.doc-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.doc-list li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding: 8px 10px; border: 1px solid var(--line-2); border-radius: 8px; font-size: 14px; }

/* Candidate app */
.progress-card { display: flex; flex-direction: column; gap: 8px; }
.progress-card__top { display: flex; justify-content: space-between; }
.progress { height: 8px; border-radius: 99px; background: var(--line-2); overflow: hidden; }
.progress__bar { height: 100%; width: 0; background: var(--accent); transition: width .3s; }
.progress__bar.w-0 { width: 0; } .progress__bar.w-10 { width: 10%; } .progress__bar.w-20 { width: 20%; } .progress__bar.w-30 { width: 30%; }
.progress__bar.w-40 { width: 40%; } .progress__bar.w-50 { width: 50%; } .progress__bar.w-60 { width: 60%; } .progress__bar.w-70 { width: 70%; }
.progress__bar.w-80 { width: 80%; } .progress__bar.w-90 { width: 90%; } .progress__bar.w-100 { width: 100%; }
.resume-card { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.list-card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.list-item { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 14px; border-top: 1px solid var(--line-2); }
.list-item:first-child { border-top: 0; }
.list-item__main { display: flex; flex-direction: column; min-width: 0; }
.list-item__main a { color: var(--ink); font-weight: 700; text-decoration: none; }
.list-item__main a:hover { color: var(--accent); }
.list-item__main small { color: var(--muted); font-size: 13px; }
.list-item__side { display: flex; align-items: center; gap: 8px; flex: none; }
.resume-box { font-size: 15px; }

/* Admin: gate screens, master-detail */
.gate { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 20px 16px; background: var(--navy); }
.gate__card { width: 100%; max-width: 420px; display: flex; flex-direction: column; gap: 16px; }
.gate__card--wide { max-width: 520px; }
.gate__brand { display: flex; justify-content: space-between; align-items: center; }
.pill-dark { padding: 4px 10px; border-radius: 99px; border: 1px solid var(--navy-line); color: var(--on-navy-muted); font-size: 13px; font-weight: 600; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.steps li { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 10px; background: var(--navy-2); color: var(--on-navy-muted); font-size: 14px; font-weight: 600; }
.steps li span { width: 24px; height: 24px; border-radius: 99px; display: flex; align-items: center; justify-content: center; background: var(--navy-line); color: #fff; font-size: 13px; }
.steps li[aria-current="step"] { background: var(--surface); color: var(--ink); font-weight: 700; }
.steps li[aria-current="step"] span { background: var(--accent); }
.steps li.done span { background: var(--ok); }
.numbered { margin: 0; padding-left: 20px; line-height: 1.7; }
.qr { width: 200px; height: 200px; margin: 0 auto; image-rendering: pixelated; }
.secret { display: block; padding: 10px; border-radius: 8px; background: var(--line-2); font-size: 15px; letter-spacing: 1px; text-align: center; word-break: break-all; user-select: all; }
.codes { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 16px; line-height: 1.9; padding: 12px 16px; border-radius: 8px; background: var(--line-2); columns: 2; }
.md { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-start; }
.md__list { flex: 3 1 520px; }
.md__detail { flex: 2 1 340px; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.md__detail h2 { font-size: 17px; font-family: var(--font); font-weight: 700; }
.desc-box { padding: 10px; border-radius: 8px; background: var(--surface-2); line-height: 1.55; white-space: pre-line; overflow-wrap: anywhere; max-height: 360px; overflow-y: auto; }
mark.flag { background: #FECACA; color: #7F1D1D; padding: 0 3px; border-radius: 3px; }
.kv { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 12px; margin: 0; font-size: 13px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 700; overflow-wrap: anywhere; }
.btn-row { display: flex; flex-wrap: wrap; gap: 6px; padding-top: 8px; border-top: 1px solid var(--line-2); }
.kyc-item { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: flex-start; }
.app-mobile-logout { color: #fff; margin-left: auto; font-size: 14px; }
@media (min-width: 1024px) { .app-mobile-logout { display: none; } }
.icon-btn--empty { opacity: .35; cursor: default; }
.row-actions--start { justify-content: flex-start; }
/* Phones: dense tables keep their columns and scroll sideways instead of squashing */
@media (max-width: 767px) {
  .table { min-width: 760px; }
  .table td { white-space: nowrap; }
  .table td .sub { white-space: normal; max-width: 220px; }
}

/* ---------- Content pages, blog, contact, tools (Phase 3, part 3) ---------- */
.article { max-width: 760px; display: flex; flex-direction: column; gap: 20px; }
.article__head { display: flex; flex-direction: column; gap: 8px; }
.article__lead { font-size: 19px; color: var(--ink-2); }
.article__body { font-size: 17px; line-height: 1.7; color: var(--ink-2); overflow-wrap: anywhere; }
.article__body > * + * { margin-top: 14px; }
.article__body h2 { margin-top: 32px; font-size: 22px; color: var(--ink); letter-spacing: -.2px; }
.article__body h3 { margin-top: 24px; font-size: 18px; color: var(--ink); }
.article__body ul, .article__body ol { padding-left: 22px; }
.article__body li + li { margin-top: 6px; }
.article__body a:not(.btn) { color: var(--accent); }
.article__body strong { color: var(--ink); }
.article__body details { border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); padding: 0 16px; }
.article__body details + details { margin-top: 8px; }
.article__body summary, .faq summary { cursor: pointer; font-weight: 700; color: var(--ink); padding: 12px 0; }
.article__body details p { padding-bottom: 12px; }
.check-list { list-style: none; padding-left: 0 !important; }
.check-list li { position: relative; padding-left: 28px; }
.check-list li::before { content: ""; position: absolute; left: 4px; top: .45em; width: 12px; height: 7px; border-left: 2.5px solid var(--ok); border-bottom: 2.5px solid var(--ok); transform: rotate(-45deg); }
.cta-box { padding: 16px 18px; border-radius: var(--r); background: var(--accent-soft); border: 1px solid #FBD5BC; }
.cta-box > * + * { margin-top: 10px; }
.cta-box--warn { background: var(--warn-bg); border-color: var(--warn-line); color: var(--warn-ink); }
.cta-box--warn strong, .cta-box--warn a:not(.btn) { color: var(--warn-ink); }
.cta-row { display: flex; flex-wrap: wrap; gap: 8px; }
.article__cta h2 { font-size: 20px; }
.article__cta > * + * { margin-top: 8px; }
.article__related h2 { font-size: 18px; margin-bottom: 4px; }
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 16px; }
.post-card { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.post-card__title { font-size: 19px; line-height: 1.35; }
.post-card__title a { color: var(--ink); text-decoration: none; }
.post-card__title a:hover { color: var(--accent); }
.post-card__meta { margin-top: auto; }
.section-title { font-size: 18px; }
button.chip { cursor: pointer; font-family: inherit; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.card--ok { background: var(--ok-soft); border-color: #A7E3BB; color: var(--ok); font-weight: 600; }
.faq details { border-top: 1px solid var(--line-2); }
.faq details p { color: var(--muted); padding-bottom: 12px; }
.salary-result__amount { font-family: var(--font-display); font-size: 30px; font-weight: 700; color: var(--accent-ink); letter-spacing: -.5px; }
.inline-search { display: flex; gap: 8px; max-width: 560px; }
.inline-search .input { flex: 1; min-width: 0; }
.company-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 12px; }
.company-card { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; color: var(--ink); text-decoration: none; }
.company-card:hover { border-color: var(--faint); }
.company-card__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; align-items: flex-start; overflow-wrap: anywhere; }
.company-card__count { flex: none; font-weight: 700; color: var(--accent-ink); white-space: nowrap; }
.msg-item { display: flex; flex-direction: column; gap: 8px; }
.msg-item--report { border-left: 3px solid var(--bad); }
.msg-item__head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.msg-item__text { white-space: pre-line; overflow-wrap: anywhere; font-size: 15px; }
.msg-item__actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.msg-item__actions .input { flex: 1 1 240px; min-height: 36px; font-size: 14px; }
.source-note { display: flex; gap: 6px; align-items: flex-start; padding: 8px 10px; border-radius: 8px; background: var(--info-soft); color: var(--info); }
.source-note svg { flex: none; margin-top: 3px; }
.partner-list { list-style: none; margin: 0; padding: 0; }
.partner-list li + li { border-top: 1px solid var(--line-2); }
.partner-item { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; color: var(--ink); text-decoration: none; }
.partner-item:hover strong { color: var(--accent); }
.partner-item__main { display: flex; flex-direction: column; min-width: 0; overflow-wrap: anywhere; }
.partner-item__main small { color: var(--muted); font-size: 14px; }
.partner-item__side { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex: none; }
.bulk-card summary { cursor: pointer; padding: 2px 0; }
.bulk-card[open] summary { margin-bottom: 12px; }
.bulk-card ol { padding-left: 20px; display: flex; flex-direction: column; gap: 4px; }
.bulk-card code, .card code { font-size: 13px; background: var(--bg); padding: 1px 5px; border-radius: 4px; overflow-wrap: anywhere; }
#bulkPreview > * + *, #adminBulkPreview > * + * { margin-top: 10px; }
