/* YallaKaam — minimal, mobile-first. Neutral palette + deep teal accent; warm gold marks the Gulf. 8px grid. */
:root {
  --bg: #fafafa;
  --surface: #ffffff;
  --surface-2: #f2f4f5;
  --border: #e4e7e9;
  --text: #14181b;
  --text-2: #4a545b;
  --muted: #646e75;      /* 5.2:1 on surface, 4.7:1 on surface-2 */
  --accent: #0b6e6e;
  --accent-hover: #095a5a;
  --accent-soft: #e4f2f1;
  --accent-text: #ffffff;
  --gold: #8a5f12;       /* 5.6:1 on surface, 5.1:1 on gold-soft */
  --gold-soft: #fbf2df;
  --danger: #c0392b;
  --danger-soft: #fdecea;
  --warn: #a86200;
  --warn-soft: #fff3e0;
  --ok: #1b7d44;
  --ok-soft: #e6f4ea;
  --shadow-sm: 0 1px 2px rgba(16, 24, 32, .05);
  --shadow-md: 0 6px 20px rgba(16, 24, 32, .07), 0 1px 3px rgba(16, 24, 32, .04);
  --shadow-lg: 0 20px 56px rgba(16, 24, 32, .18);
  --radius: 14px;
  --radius-sm: 10px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0e1214; --surface: #161b1e; --surface-2: #1e2428; --border: #2a3237;
    --text: #e8ecee; --text-2: #b2bcc1; --muted: #828e96;
    --accent: #3cb8ad; --accent-hover: #5ccac0; --accent-soft: #12302e; --accent-text: #05201d;
    --gold: #e0b25a; --gold-soft: #32270f; --danger: #ef6f61; --danger-soft: #3a1a17;
    --warn: #f0a640; --warn-soft: #362611; --ok: #5cc98a; --ok-soft: #12301e;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4); --shadow-md: 0 6px 20px rgba(0, 0, 0, .45); --shadow-lg: 0 20px 56px rgba(0, 0, 0, .6);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0e1214; --surface: #161b1e; --surface-2: #1e2428; --border: #2a3237;
  --text: #e8ecee; --text-2: #b2bcc1; --muted: #828e96;
  --accent: #3cb8ad; --accent-hover: #5ccac0; --accent-soft: #12302e; --accent-text: #05201d;
  --gold: #e0b25a; --gold-soft: #32270f; --danger: #ef6f61; --danger-soft: #3a1a17;
  --warn: #f0a640; --warn-soft: #362611; --ok: #5cc98a; --ok-soft: #12301e;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4); --shadow-md: 0 6px 20px rgba(0, 0, 0, .45); --shadow-lg: 0 20px 56px rgba(0, 0, 0, .6);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  background: var(--bg); color: var(--text); font-family: var(--font);
  font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased;
}
body.no-scroll { overflow: hidden; }
a { color: var(--accent); }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.25; }
p { margin: 0; }
[hidden] { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.ok-text { color: var(--ok); }
.teal { color: var(--accent); }
.gold { color: var(--gold); }
.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: -999px; top: 8px; z-index: 100; background: var(--accent); color: var(--accent-text); padding: 8px 16px; border-radius: var(--radius-sm); }
.skip-link:focus { left: 16px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--bg) 90%, transparent); backdrop-filter: blur(10px); }
body.is-results .site-header, body:not(.is-hero) .site-header { border-bottom: 1px solid var(--border); }
.header-inner { max-width: 1040px; margin: 0 auto; padding: 12px 16px; display: flex; align-items: center; gap: 16px; min-height: 56px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; }
body.is-hero .site-header .brand { visibility: hidden; }
.logo-mark { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; background: var(--accent); color: #fff; font-weight: 800; font-size: 16px; flex-shrink: 0; }
.logo-mark.lg { width: 48px; height: 48px; border-radius: 13px; font-size: 24px; }
.brand-name { font-weight: 800; font-size: 18px; letter-spacing: -.4px; display: block; line-height: 1.1; }
.brand-tag { display: block; font-size: 12px; color: var(--muted); }
.text-nav { display: flex; gap: 16px; margin-left: auto; flex-wrap: wrap; align-items: center; }
.text-nav a { color: var(--text-2); text-decoration: none; font-size: 13.5px; font-weight: 500; white-space: nowrap; }
.text-nav a:hover, .text-nav a[aria-current="page"] { color: var(--accent); }
.text-nav a.nav-strong { color: var(--text); font-weight: 600; }
.icon-btn { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--border); background: var(--surface); cursor: pointer; display: grid; place-items: center; color: var(--text-2); font-size: 20px; line-height: 1; flex-shrink: 0; }
.icon-btn:hover { color: var(--text); background: var(--surface-2); }
.icon-btn svg { width: 16px; height: 16px; }
.icon-btn.sm { width: 30px; height: 30px; font-size: 18px; }

/* ---------- Layout ---------- */
main { flex: 1; width: 100%; max-width: 1040px; margin: 0 auto; padding: 16px; }
main:focus { outline: none; }
.page-head { margin: 16px 0 24px; }
.page-head h1 { font-size: 28px; letter-spacing: -.6px; }
.page-head p { margin-top: 8px; color: var(--text-2); max-width: 640px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.card h2 { font-size: 17px; margin-bottom: 16px; }
.card h3 { font-size: 15px; }

/* ---------- Buttons & forms ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; border-radius: var(--radius-sm); padding: 9px 16px; font-weight: 600; font-size: 14px; cursor: pointer; text-decoration: none; white-space: nowrap; transition: background .15s, border-color .15s, color .15s; }
.btn-primary { background: var(--accent); color: var(--accent-text); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-secondary { background: var(--surface); color: var(--text); border-color: var(--border); }
.btn-secondary:hover { background: var(--surface-2); }
.btn-outline { background: none; color: var(--accent); border-color: var(--accent); }
.btn-outline:hover { background: var(--accent-soft); }
.btn-soft { background: var(--accent-soft); color: var(--accent); }
.btn-soft:hover { background: color-mix(in srgb, var(--accent-soft) 70%, var(--accent) 12%); }
.btn-ghost { background: none; color: var(--accent); padding: 6px 10px; }
.btn-ghost:hover { background: var(--accent-soft); }
.btn-gold { background: var(--gold); color: #fff; }
:root:not([data-theme="light"]) .btn-gold { color: #fff; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn-gold { color: #1d1405; } }
.btn-sm { padding: 6px 12px; font-size: 13px; }
.btn-lg { padding: 12px 22px; font-size: 15px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.btn-block { width: 100%; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; min-width: 0; }
.field label, .field .label { font-size: 13px; font-weight: 600; color: var(--text-2); }
.field .hint { font-size: 12px; color: var(--muted); }
.input, .select, .textarea { width: 100%; border: 1px solid var(--border); background: var(--surface); border-radius: var(--radius-sm); padding: 10px 12px; font-size: 14px; transition: border-color .15s, box-shadow .15s; min-width: 0; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.select[multiple] { padding: 6px; }
/* Native dropdowns ignore height/padding in Safari: draw our own chevron so selects match text inputs. */
.select:not([multiple]) { -webkit-appearance: none; appearance: none; padding-right: 36px; line-height: 1.4;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23646e75' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 12px 8px; }
.select-sm:not([multiple]) { padding-right: 30px; background-position: right 10px center; }
.select-sm { width: auto; padding: 6px 10px; font-size: 13px; border-radius: 999px; }
.textarea { min-height: 120px; resize: vertical; line-height: 1.5; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0 12px; }
.check { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-size: 14px; user-select: none; flex-direction: row !important; }
.check input { accent-color: var(--accent); width: 16px; height: 16px; margin: 0; }
.check-row { display: flex; gap: 24px; flex-wrap: wrap; margin-bottom: 16px; }
.form-error { background: var(--danger-soft); color: var(--danger); border-radius: var(--radius-sm); padding: 10px 12px; font-size: 13.5px; margin-bottom: 12px; font-weight: 500; }

/* ---------- Search shell: hero vs results ---------- */
.search-shell { display: flex; flex-direction: column; align-items: center; }
.hero-brand { text-align: center; margin-bottom: 24px; }
.hero-logo { display: inline-flex; align-items: center; gap: 12px; font-size: 40px; font-weight: 800; letter-spacing: -1.4px; }
.hero-tag { color: var(--text-2); margin-top: 6px; font-size: 16px; }
body.is-hero .search-shell { min-height: calc(100vh - 56px - 120px); justify-content: center; padding: 24px 0 40px; }
body.is-results .hero-brand, body:not(.is-hero) .hero-only { display: none; }
body:not(.is-results) .results-only { display: none !important; }

.kind-tabs { display: inline-flex; gap: 4px; margin-bottom: 12px; }
.kind-tabs button { border: 0; background: none; padding: 6px 14px; border-radius: 999px; cursor: pointer; font-size: 14px; font-weight: 600; color: var(--muted); }
.kind-tabs button:hover { color: var(--text); }
.kind-tabs button[aria-selected="true"] { color: var(--text); background: var(--surface); box-shadow: var(--shadow-sm), 0 0 0 1px var(--border); }

.search-form { width: 100%; max-width: 640px; }
body.is-results .search-shell { align-items: stretch; padding-top: 8px; }
body.is-results .kind-tabs { align-self: flex-start; }
body.is-results .search-form { max-width: none; }
.search-box { position: relative; display: flex; align-items: center; background: var(--surface); border: 1px solid var(--border); border-radius: 999px; box-shadow: var(--shadow-md); transition: box-shadow .15s, border-color .15s; }
.search-box:focus-within { border-color: var(--accent); box-shadow: var(--shadow-md), 0 0 0 3px var(--accent-soft); }
.search-box > svg { position: absolute; left: 18px; width: 20px; height: 20px; color: var(--muted); pointer-events: none; }
.search-input { flex: 1; min-width: 0; border: 0; background: none; padding: 16px 12px 16px 50px; font-size: 16px; border-radius: 999px; }
.search-input:focus { outline: none; }
.search-input::-webkit-search-cancel-button { cursor: pointer; }
.search-go { margin: 5px; border-radius: 999px; padding: 10px 20px; }
.search-sub { display: flex; justify-content: center; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 16px; }
body.is-results .search-sub { justify-content: flex-start; margin-top: 12px; }
.search-opts { display: flex; align-items: center; gap: 12px; margin-left: auto; }

.segmented { display: inline-flex; background: var(--surface-2); border-radius: 999px; padding: 3px; }
.segmented button { border: 0; background: none; padding: 6px 16px; border-radius: 999px; cursor: pointer; font-size: 13px; font-weight: 600; color: var(--text-2); }
.segmented button[aria-pressed="true"] { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); }
.segmented button[data-region="middle_east"][aria-pressed="true"] { color: var(--gold); }
.segmented button[data-region="india"][aria-pressed="true"] { color: var(--accent); }

.dropzone { border: 1.5px dashed var(--border); border-radius: var(--radius); padding: 20px; text-align: center; cursor: pointer; transition: border-color .15s, background .15s; display: flex; flex-direction: column; gap: 4px; align-items: center; }
.dropzone:hover, .dropzone.drag, .dropzone:focus-visible { border-color: var(--accent); background: var(--accent-soft); }
.dropzone .dz-main { font-weight: 600; font-size: 15px; }
.dropzone .arrow { color: var(--accent); }
.dropzone .hint { font-size: 12px; color: var(--muted); }
.dropzone.busy { pointer-events: none; opacity: .7; }
.hero-only { width: 100%; max-width: 640px; margin-top: 24px; display: flex; flex-direction: column; align-items: center; gap: 24px; }
.hero-drop { width: 100%; background: transparent; }
.stats-line { font-size: 13px; color: var(--muted); text-align: center; font-variant-numeric: tabular-nums; }
.stats-line:empty { display: none; }

.picked { width: 100%; }
.strip-title { font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: .6px; font-weight: 700; margin-bottom: 8px; }
.mini-row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(200px, 1fr); gap: 8px; overflow-x: auto; padding-bottom: 4px; scroll-snap-type: x mandatory; }
.mini-row.vertical { grid-auto-flow: row; grid-auto-columns: auto; }
.mini-card { text-align: left; border: 1px solid var(--border); background: var(--surface); border-radius: var(--radius-sm); padding: 12px; cursor: pointer; display: flex; flex-direction: column; gap: 2px; scroll-snap-align: start; border-left: 3px solid var(--accent); }
.mini-card.gulf { border-left-color: var(--gold); }
.mini-card:hover { box-shadow: var(--shadow-md); }
.mini-title { font-weight: 600; font-size: 14px; }
.mini-sub { font-size: 12.5px; color: var(--text-2); }
.mini-sal { font-size: 12.5px; font-weight: 600; }
.mini-sal.nd { color: var(--muted); font-weight: 500; }

/* ---------- Results ---------- */
.results-area { margin-top: 16px; }
.pills { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 8px; scrollbar-width: none; }
.pills::-webkit-scrollbar { display: none; }
.pill { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--border); background: var(--surface); padding: 7px 12px 7px 14px; border-radius: 999px; cursor: pointer; font-size: 13.5px; font-weight: 500; color: var(--text-2); white-space: nowrap; flex-shrink: 0; }
.pill:hover { border-color: var(--text-2); color: var(--text); }
.pill.active { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); font-weight: 600; }
.pill[aria-expanded="true"] { border-color: var(--accent); }
.pill-count { background: var(--accent); color: var(--accent-text); border-radius: 999px; font-size: 12px; padding: 0 6px; min-width: 18px; text-align: center; }
.pills-sep { flex: 1; }

.chips-row { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 12px; }
.chips-row:empty { display: none; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; background: var(--surface-2); color: var(--text-2); font-size: 12.5px; font-weight: 500; }
.chip-filter { background: var(--accent-soft); color: var(--accent); }
.chip-filter button { border: 0; background: none; color: inherit; cursor: pointer; padding: 0 0 0 2px; font-size: 15px; line-height: 1; }
.chip-ok { background: var(--ok-soft); color: var(--ok); }
.chip-miss { background: var(--danger-soft); color: var(--danger); }
.badge { display: inline-flex; align-items: center; padding: 1px 7px; border-radius: 6px; font-size: 12px; font-weight: 600; background: var(--accent-soft); color: var(--accent); white-space: nowrap; }
.badge-gold { background: var(--gold-soft); color: var(--gold); }
.badge-muted { background: var(--surface-2); color: var(--text-2); }
.badge-ok { background: var(--ok-soft); color: var(--ok); }
.badge-warn { background: var(--warn-soft); color: var(--warn); }

.results-head { display: flex; justify-content: space-between; align-items: center; margin: 8px 0 12px; gap: 12px; flex-wrap: wrap; }
.results-head h2 { font-size: 15px; font-weight: 600; color: var(--text-2); }
.results-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.pricing-note { font-size: 12.5px; color: var(--muted); margin: -4px 0 12px; }
.job-list { display: flex; flex-direction: column; gap: 8px; }
.job-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 20px; cursor: pointer; transition: box-shadow .15s, border-color .15s; display: flex; flex-direction: column; gap: 4px; }
.job-card:hover { box-shadow: var(--shadow-md); border-color: color-mix(in srgb, var(--accent) 30%, var(--border)); }
.job-card.gulf:hover { border-color: color-mix(in srgb, var(--gold) 40%, var(--border)); }
.jc-line1 { display: flex; align-items: center; gap: 8px; justify-content: space-between; }
.job-title { font-size: 16px; font-weight: 600; letter-spacing: -.2px; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.jc-line2 { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; font-size: 14px; }
.job-company { color: var(--text-2); font-weight: 500; }
.jc-line3 { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 14px; font-size: 13.5px; color: var(--text-2); }
.job-salary { font-weight: 600; color: var(--text); font-variant-numeric: tabular-nums; }
.job-card.gulf .job-salary:not(.nd) { color: var(--gold); }
.job-salary.nd { color: var(--muted); font-weight: 400; }
.jc-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 8px; flex-wrap: wrap; }
.via { font-size: 12px; color: var(--muted); }
.via .merged { color: var(--gold); }
.jc-actions { display: flex; gap: 8px; margin-left: auto; }
.match-pill { flex-shrink: 0; background: var(--ok-soft); color: var(--ok); font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 999px; }
.why { margin: 4px 0 0; padding-left: 18px; font-size: 13px; color: var(--text-2); }

.match-head { display: flex; align-items: center; gap: 16px; margin: 8px 0 12px; }
.match-copy { flex: 1; }
.match-copy h2 { font-size: 18px; }
.score-mini { width: 56px; height: 56px; border-radius: 50%; display: flex; align-items: baseline; justify-content: center; padding-top: 14px; border: 3px solid var(--accent); flex-shrink: 0; }
.score-mini strong { font-size: 18px; }
.score-mini span { font-size: 12px; color: var(--muted); }
.score-mini.good { border-color: var(--ok); }
.score-mini.mid { border-color: var(--warn); }
.score-mini.low { border-color: var(--danger); }
.all-jobs-title { font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: .6px; margin: 24px 0 0; }
#matches:empty { display: none; }

.skeleton { pointer-events: none; }
.sk { background: linear-gradient(90deg, var(--surface-2) 25%, var(--border) 37%, var(--surface-2) 63%); background-size: 400% 100%; animation: sk 1.4s ease infinite; border-radius: 6px; height: 14px; }
@keyframes sk { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }
.empty { text-align: center; padding: 48px 24px; border: 1px dashed var(--border); border-radius: var(--radius); color: var(--text-2); display: flex; flex-direction: column; align-items: center; gap: 8px; }
.empty h3 { font-size: 17px; color: var(--text); }
.empty .empty-icon { font-size: 32px; }
.pagination { display: flex; justify-content: center; gap: 4px; margin: 24px 0; flex-wrap: wrap; }
.pagination button { min-width: 36px; height: 36px; padding: 0 10px; border: 1px solid var(--border); background: var(--surface); border-radius: var(--radius-sm); cursor: pointer; font-weight: 600; font-size: 13px; }
.pagination button:hover:not([disabled]) { background: var(--surface-2); }
.pagination button[aria-current="page"] { background: var(--accent); color: var(--accent-text); border-color: var(--accent); }
.pagination button[disabled] { opacity: .4; cursor: not-allowed; }
.pagination .gap { padding: 0 4px; align-self: center; color: var(--muted); }

/* ---------- Popover / bottom sheet ---------- */
.overlay { position: fixed; inset: 0; background: rgba(8, 12, 14, .4); z-index: 50; opacity: 0; transition: opacity .2s; }
.overlay.open { opacity: 1; }
.overlay.light { background: transparent; }
.popover { position: fixed; z-index: 55; width: 320px; max-height: min(460px, 70vh); display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-lg); opacity: 0; transform: translateY(-4px); transition: opacity .15s, transform .15s; }
.popover.open { opacity: 1; transform: none; }
.pop-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--border); }
.pop-head strong { font-size: 14px; }
.pop-head h2 { font-size: 17px; }
.pop-search { margin: 12px 16px 0; width: auto; }
.pop-list { overflow-y: auto; padding: 8px 16px; flex: 1; }
.pop-group { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .6px; margin: 8px 0 4px; }
.pop-foot { display: flex; justify-content: space-between; padding: 10px 16px; border-top: 1px solid var(--border); }
.facet-option { display: flex; align-items: center; gap: 10px; padding: 6px 0; font-size: 14px; cursor: pointer; }
.facet-option input { accent-color: var(--accent); margin: 0; width: 16px; height: 16px; flex-shrink: 0; }
.facet-option .opt-label { flex: 1; min-width: 0; color: var(--text-2); }
.facet-option:hover .opt-label { color: var(--text); }
.facet-option .opt-count { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }

/* ---------- Drawer ---------- */
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(620px, 100vw); z-index: 51; background: var(--surface); box-shadow: var(--shadow-lg); display: flex; flex-direction: column; transform: translateX(100%); transition: transform .25s ease; }
.drawer.open { transform: none; }
.drawer-head { padding: 20px 24px 16px; border-bottom: 1px solid var(--border); display: flex; gap: 16px; align-items: flex-start; justify-content: space-between; }
.drawer-head h2 { font-size: 20px; letter-spacing: -.3px; }
.drawer-body { padding: 20px 24px; overflow-y: auto; flex: 1; }
.drawer-foot { padding: 12px 24px; border-top: 1px solid var(--border); display: flex; gap: 8px; flex-wrap: wrap; }
.trust { border-radius: var(--radius-sm); padding: 10px 14px; margin-bottom: 16px; font-size: 14px; font-weight: 500; }
.trust.ok { background: var(--ok-soft); color: var(--ok); }
.trust.warn { background: var(--warn-soft); color: var(--warn); }
.trust ul { margin: 6px 0 0; padding-left: 18px; font-weight: 400; color: var(--text-2); }
.salary-box { background: var(--surface-2); border-radius: var(--radius-sm); padding: 14px 16px; margin-bottom: 20px; }
.salary-main { font-size: 20px; font-weight: 700; letter-spacing: -.3px; font-variant-numeric: tabular-nums; }
.salary-main.nd { font-size: 15px; color: var(--muted); font-weight: 500; }
.salary-inr { font-size: 13.5px; margin-top: 4px; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; color: var(--text-2); }
.detail-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 24px; margin: 0 0 20px; }
.detail-grid dt { font-size: 12px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .4px; }
.detail-grid dd { margin: 2px 0 0; font-weight: 500; }
.detail-section { margin-bottom: 20px; }
.detail-section > h3 { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .6px; margin-bottom: 8px; }
.description { white-space: pre-wrap; color: var(--text-2); line-height: 1.65; font-size: 14.5px; overflow-wrap: anywhere; }
.apply-list { display: flex; flex-wrap: wrap; gap: 8px; }
.apply-wrap { border-top: 1px solid var(--border); padding-top: 20px; }
.apply-form h3 { font-size: 16px; margin-bottom: 12px; color: var(--text); text-transform: none; letter-spacing: 0; }
.apply-form .muted.small { margin-top: 8px; text-align: center; }

/* ---------- Modal ---------- */
.modal { position: fixed; inset: 0; z-index: 60; background: rgba(8, 12, 14, .45); display: grid; place-items: center; padding: 16px; }
.modal-card { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow-lg); width: min(560px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; }
.modal-form { padding: 16px 20px 20px; display: flex; flex-direction: column; }
.modal-form > p { margin-bottom: 16px; }
.token-box { display: flex; gap: 8px; align-items: center; background: var(--surface-2); padding: 10px 12px; border-radius: var(--radius-sm); margin-bottom: 16px; }
.token-box code { flex: 1; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; word-break: break-all; user-select: all; }

/* ---------- Toasts ---------- */
.toasts { position: fixed; bottom: 16px; right: 16px; left: auto; z-index: 80; display: flex; flex-direction: column; gap: 8px; max-width: min(420px, calc(100vw - 32px)); }
.toast { background: var(--text); color: var(--bg); padding: 12px 14px; border-radius: var(--radius-sm); box-shadow: var(--shadow-lg); font-size: 14px; display: flex; gap: 12px; align-items: flex-start; animation: toastIn .2s ease; }
.toast.error { background: var(--danger); color: #fff; }
.toast.success { background: var(--ok); color: #fff; }
.toast button { margin-left: auto; border: 0; background: none; color: inherit; cursor: pointer; font-size: 16px; line-height: 1; opacity: .8; }
@keyframes toastIn { from { transform: translateY(8px); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---------- CV Studio ---------- */
.cv-layout { display: grid; grid-template-columns: minmax(300px, 400px) 1fr; gap: 24px; align-items: start;
  grid-template-areas: "form report" "talent report"; grid-template-rows: auto 1fr; }
.cv-layout > #cv-form { grid-area: form; }
.cv-layout > #cv-report { grid-area: report; }
.cv-layout > .cv-talent { grid-area: talent; align-self: start; min-width: 0; }
.cv-talent:empty { display: none; }
.cv-talent > * { margin: 0; }
.products-sub { margin: 24px 0 12px; padding-top: 20px; border-top: 1px solid var(--border); }
.products-sub h3 { font-size: 16px; margin: 0 0 4px; }
.products.products-pro { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 700px) { .products.products-pro { grid-template-columns: 1fr; } }
#cv-dropzone { margin-bottom: 16px; }
.file-pill { display: flex; align-items: center; gap: 8px; background: var(--accent-soft); color: var(--accent); padding: 6px 6px 6px 12px; border-radius: var(--radius-sm); margin-bottom: 16px; font-size: 13px; font-weight: 600; }
.file-pill button { margin-left: auto; }
.or-sep { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 12px; margin: 0 0 12px; text-transform: uppercase; letter-spacing: .5px; }
.or-sep::before, .or-sep::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.target-job { display: flex; align-items: center; gap: 8px; padding: 8px 8px 8px 12px; background: var(--accent-soft); border-radius: var(--radius-sm); font-size: 13.5px; }
.target-job .tj-title { font-weight: 600; flex: 1; min-width: 0; }
.target-none { font-size: 13px; color: var(--muted); }
.report { display: flex; flex-direction: column; gap: 16px; }
.score-card { display: grid; grid-template-columns: 160px 1fr; gap: 24px; align-items: center; }
.gauge { width: 160px; height: 160px; }
.gauge-track { stroke: var(--surface-2); }
.gauge-value { transition: stroke-dashoffset .9s ease; }
.gauge-num { font-size: 40px; font-weight: 800; fill: var(--text); }
.gauge-sub { font-size: 12px; fill: var(--muted); font-weight: 600; }
.bars { display: flex; flex-direction: column; gap: 10px; }
.bars h2 { margin-bottom: 4px; }
.bar-label { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 4px; color: var(--text-2); font-weight: 500; }
.bar { height: 6px; background: var(--surface-2); border-radius: 999px; overflow: hidden; }
.bar > span { display: block; height: 100%; background: var(--accent); border-radius: 999px; }
.bar.low > span { background: var(--danger); }
.bar.mid > span { background: var(--warn); }
.issue-group { margin-bottom: 16px; }
.issue-group h3 { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; font-size: 14px; }
.issue { border-left: 3px solid var(--accent); background: var(--surface-2); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; padding: 10px 14px; margin-bottom: 8px; }
.issue.sev-high, .issue.sev-critical, .issue.sev-error { border-left-color: var(--danger); }
.issue.sev-medium, .issue.sev-warning { border-left-color: var(--warn); }
.issue .msg { font-weight: 600; font-size: 14px; }
.issue .section { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .4px; font-weight: 700; }
.issue .fix { font-size: 13.5px; color: var(--text-2); margin-top: 4px; }
.issue .fix::before { content: "Fix: "; font-weight: 700; color: var(--ok); }
.sev-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; background: var(--accent); }
.sev-dot.high, .sev-dot.critical, .sev-dot.error { background: var(--danger); }
.sev-dot.medium, .sev-dot.warning { background: var(--warn); }
.rewrite { border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 10px 14px; margin-bottom: 8px; font-size: 14px; }
.rewrite .before { color: var(--muted); text-decoration: line-through; }
.rewrite .after { margin-top: 4px; }
.rewrite .after::before { content: "→ "; color: var(--ok); font-weight: 700; }
.cv-placeholder { text-align: center; padding: 56px 24px; color: var(--text-2); display: flex; flex-direction: column; align-items: center; gap: 8px; }
.cv-placeholder .big { font-size: 40px; }
.products { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.product { border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.product .btn, .product > .muted { margin-top: auto; }
.product.featured { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.product .price { font-size: 22px; font-weight: 800; letter-spacing: -.5px; }
.product .price.free { color: var(--ok); }
.product p { color: var(--text-2); font-size: 13.5px; }
.mini-features { margin: 0; padding-left: 18px; font-size: 13px; color: var(--text-2); }
.order-confirm { border: 1px solid var(--ok); background: var(--ok-soft); border-radius: var(--radius); padding: 16px 20px; display: flex; flex-direction: column; gap: 10px; }
.order-confirm h3 { color: var(--ok); }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 4px 16px; font-size: 13.5px; margin: 0; }
.kv dt { color: var(--muted); font-weight: 500; }
.kv dd { margin: 0; word-break: break-word; }

/* ---------- Employers ---------- */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 24px; align-items: stretch; }
@media (max-width: 960px) { .plans { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .plans { grid-template-columns: 1fr; } }
.plan { display: flex; flex-direction: column; gap: 10px; }
.plan .btn { margin-top: auto; }
.plan-kind { font-size: 12px; text-transform: uppercase; letter-spacing: .6px; color: var(--accent); font-weight: 700; }
.plan-kind:empty { display: none; }
.plan-name { font-size: 17px; }
.plan-price { font-size: 24px; font-weight: 800; letter-spacing: -.5px; }
.plan-price small { font-size: 12.5px; color: var(--muted); font-weight: 500; }
.plan ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; font-size: 13.5px; color: var(--text-2); }
.plan li { padding-left: 20px; position: relative; }
.plan li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 800; }
.tiers { font-size: 13px; border-collapse: collapse; width: 100%; }
.tiers td { padding: 4px 0; border-bottom: 1px solid var(--border); }
.tiers td:last-child { text-align: right; font-weight: 700; }
.emp-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.quote-result { margin-top: 16px; padding: 16px; border-radius: var(--radius-sm); background: var(--accent-soft); }
.quote-big { display: flex; gap: 24px; flex-wrap: wrap; margin-bottom: 8px; }
.quote-big .v { font-size: 22px; font-weight: 800; color: var(--accent); }
.quote-big .k { font-size: 12px; color: var(--text-2); font-weight: 600; text-transform: uppercase; letter-spacing: .4px; }
.split-bar { display: flex; height: 8px; border-radius: 999px; overflow: hidden; margin: 8px 0 12px; background: var(--surface); }
.split-bar .a { background: var(--accent); }
.split-bar .b { background: var(--gold); }
.notes { margin: 8px 0 0; padding-left: 18px; font-size: 13px; color: var(--text-2); }

/* ---------- Sources ---------- */
.compliance { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--radius); background: var(--gold-soft); margin-bottom: 24px; font-size: 14px; color: var(--text-2); }
.compliance strong { color: var(--text); display: block; }
.table-wrap { overflow-x: auto; position: relative; }
table.data { width: 100%; border-collapse: collapse; font-size: 14px; }
table.data th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .4px; color: var(--muted); padding: 8px 10px; border-bottom: 1px solid var(--border); white-space: nowrap; }
table.data td { padding: 12px 10px; border-bottom: 1px solid var(--border); vertical-align: middle; }
table.data tr:last-child td { border-bottom: 0; }
table.data .num { text-align: right; font-variant-numeric: tabular-nums; }
.src-name { font-weight: 600; }
.src-slug { font-size: 12px; color: var(--muted); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.sources-layout { display: grid; grid-template-columns: 1fr; gap: 24px; align-items: start; }
.sources-layout > * { min-width: 0; }
.src-toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.src-toolbar h2 { margin: 0 !important; margin-right: auto !important; }
.src-toolbar .badge { order: 0; }
.status-pill { display: inline-flex; align-items: center; gap: 6px; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; background: var(--surface-2); color: var(--text-2); }
.status-pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status-pill.pill-ok { background: var(--ok-soft); color: var(--ok); }
.status-pill.pill-err { background: var(--danger-soft); color: var(--danger); cursor: help; }
.status-pill.pill-muted { background: var(--surface-2); color: var(--muted); }
.run-sum { font-size: 13px; color: var(--text-2); white-space: normal; display: inline-block; min-width: 96px; }
.run-sum.err { color: var(--danger); }
.row-actions { display: inline-flex; gap: 6px; justify-content: flex-end; flex-wrap: nowrap; }
.btn-danger-ghost { background: none; color: var(--danger); border-color: transparent; }
.btn-danger-ghost:hover { background: var(--danger-soft); }
.trunc { display: inline-block; max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: bottom; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12.5px; color: var(--text-2); }
.emp-src { margin-top: 24px; }
.emp-src-note { margin-bottom: 16px; max-width: 720px; }
.emp-src-locked { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.emp-src-form { border-top: 1px solid var(--border); margin-top: 16px; padding-top: 20px; max-width: 720px; }
.emp-src-form h3 { font-size: 15px; margin-bottom: 12px; }
.provider-list { list-style: none; margin: 0; padding: 0; border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; }
.provider { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; border-bottom: 1px solid var(--border); background: var(--surface); }
.provider:last-child { border-bottom: 0; }
.provider-name { display: flex; align-items: center; gap: 8px; font-weight: 600; min-width: 0; flex-wrap: wrap; }
#upload-form > p { margin-bottom: 16px; }
.spinner { width: 12px; height: 12px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; display: inline-block; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- My postings ---------- */
.posting { border-bottom: 1px solid var(--border); padding-bottom: 16px; margin-bottom: 16px; }
.posting-head { display: flex; align-items: center; gap: 8px; justify-content: space-between; margin-bottom: 8px; }
.posting-head h3 { font-size: 16px; }
.apps { display: flex; flex-direction: column; gap: 8px; }
.app-row { background: var(--surface-2); border-radius: var(--radius-sm); padding: 12px 14px; display: flex; flex-direction: column; gap: 4px; }
.app-top { display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.app-pitch { font-size: 13.5px; color: var(--text-2); white-space: pre-wrap; overflow-wrap: anywhere; }
.app-actions, .escrow { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 6px; }
.escrow { border-top: 1px dashed var(--border); padding-top: 8px; }
.escrow > span { margin-right: auto; }

footer.site-footer { width: 100%; max-width: 1040px; margin: 0 auto; padding: 24px 16px; color: var(--muted); font-size: 12.5px; display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }
body.is-hero footer.site-footer { justify-content: center; }
footer .text-nav { margin-left: auto; }
body.is-hero footer .text-nav { margin-left: 0; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .cv-layout, .emp-layout, .sources-layout { grid-template-columns: 1fr; }
  .cv-layout { grid-template-areas: "form" "report" "talent"; grid-template-rows: auto; }
}
@media (max-width: 640px) {
  .header-inner { gap: 8px; }
  .site-header .text-nav a:not(.nav-strong):not(.nav-pro) { display: none; }
  .brand-tag { display: none; }
  .hero-logo { font-size: 32px; }
  .hero-tag { font-size: 14px; }
  .search-input { padding: 14px 8px 14px 46px; }
  .search-go { padding: 9px 14px; }
  .search-opts { margin-left: 0; }
  .grid-2, .grid-3, .detail-grid { grid-template-columns: 1fr; }
  .job-card { padding: 14px 16px; }
  .jc-actions { width: 100%; }
  .jc-actions .btn { flex: 1; }
  .card { padding: 16px; }
  .page-head h1 { font-size: 23px; }
  .score-card { grid-template-columns: 1fr; justify-items: center; }
  .score-card .bars { width: 100%; }
  /* filter popover becomes a bottom sheet */
  .popover { left: 0 !important; right: 0; bottom: 0; top: auto !important; width: 100%; max-height: 75vh; border-radius: var(--radius) var(--radius) 0 0; transform: translateY(16px); padding-bottom: env(safe-area-inset-bottom); }
  .overlay.light { background: rgba(8, 12, 14, .4); }
  .drawer-head, .drawer-body, .drawer-foot { padding-left: 16px; padding-right: 16px; }
  .drawer-foot .btn { flex: 1; }
  .modal { padding: 0; place-items: end stretch; }
  .modal-card { width: 100%; border-radius: var(--radius) var(--radius) 0 0; max-height: 92vh; }
  .toasts { left: 16px; right: 16px; max-width: none; }
  .trunc { max-width: 140px; }
  .provider { flex-wrap: wrap; }
  .provider .btn { width: 100%; }
}

.match-actions { display: flex; gap: 8px; align-items: center; margin-left: auto; flex-wrap: wrap; }
@media (max-width: 640px) { .match-head { flex-wrap: wrap; } .match-actions { margin-left: 0; width: 100%; } .match-actions .btn:first-child { flex: 1; } }

.plan-custom { font-size: 20px; }
.plan-custom small { display: block; margin-top: 2px; }
.fee-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.fee-table th, .fee-table td { text-align: left; padding: 4px 6px; border-bottom: 1px solid var(--border); white-space: nowrap; }
.fee-table th { font-weight: 600; color: var(--muted); font-size: 12px; }
.fee-table td:not(:first-child), .fee-table th:not(:first-child) { text-align: right; font-variant-numeric: tabular-nums; }

/* ---------- Orders console (admin) ---------- */
.ord-summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; margin-bottom: 14px; }
.ord-tile { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 10px 14px; }
.ord-tile-n { font-size: 22px; font-weight: 700; }
.ord-tile-l { font-size: 12px; color: var(--muted); }
.ord-tile.is-overdue { border-color: var(--danger); background: var(--danger-soft); color: var(--danger); }
.ord-tile.is-overdue .ord-tile-l { color: var(--danger); }
.ord-filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.ord-filters .select { max-width: 220px; }
.ord-filters .input { flex: 1; min-width: 180px; }
.ord-overdue { color: var(--danger); font-weight: 600; }
tr.ord-row-overdue td:first-child { box-shadow: inset 3px 0 0 var(--danger); }
.ord-warn { color: var(--danger); }
.ord-chip.ord-in_progress { background: var(--accent-soft); color: var(--accent); }
.ord-detail { margin-top: 16px; }
.ord-detail h3 { font-size: 15px; margin: 18px 0 8px; }
.ord-kv { margin: 12px 0; }
.ord-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 10px 0; }
.ord-inline { display: inline-flex; gap: 6px; align-items: center; }
.ord-inline .input { width: 240px; }
.ord-grow { flex: 1; } .ord-grow .input { width: auto; flex: 1; }
.ord-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 800px) { .ord-cols { grid-template-columns: 1fr; } .ord-inline .input { width: 100%; } }
.ord-pre { white-space: pre-wrap; word-break: break-word; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 10px 12px; max-height: 360px; overflow: auto; font-size: 12.5px; line-height: 1.5; margin: 0 0 8px; }
.ord-editor { min-height: 320px; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13px; }
.ord-callout { border-left: 4px solid var(--gold); background: var(--gold-soft); padding: 8px 12px; border-radius: var(--radius-sm); margin: 8px 0; }
.ord-notes { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; font-size: 13.5px; }
.ord-notes li { border-bottom: 1px solid var(--border); padding-bottom: 6px; word-break: break-word; }


/* ---- HIG pass: press states, control sizes, focus (buttons.md › Best practices; accessibility.md › Mobility) */
.btn:active:not([disabled]), .pill:active, .segmented button:active, .icon-btn:active { transform: translateY(1px); filter: brightness(.94); }
.btn { min-height: 40px; }
.btn-sm { min-height: 34px; }
.pill { min-height: 36px; }
.segmented button { min-height: 34px; }
.icon-btn { width: 40px; height: 40px; }
@media (pointer: coarse) {
  .btn, .btn-sm, .pill, .segmented button, .icon-btn, .select, .input { min-height: 44px; }
  .icon-btn { width: 44px; height: 44px; }
  .check input[type="checkbox"] { width: 22px; height: 22px; }
}
@media (prefers-contrast: more) {
  :root { --muted: #4a545b; --border: #9aa4aa; }
}

/* ---- Employer self-serve posting (dashboard, plans toggle, moderation). Existing tokens only. */
.plans-toolbar { grid-column: 1 / -1; display: flex; justify-content: center; }
.plan-featured { border-color: var(--gold); }
.plan-save { color: var(--ok); font-size: 13px; font-weight: 600; }
.emp-account { display: grid; gap: 24px; }
/* Two equal-height cards side by side (pay-on-hire + calculator; sign-up + sign-in). */
.emp-pair { align-items: stretch; margin-top: 24px; }
.emp-pair > .card, .plans-fee > .card { display: flex; flex-direction: column; height: 100%; margin: 0; }
.plans-fee { display: flex; min-width: 0; }
.plans-fee > .card { flex: 1; }
.emp-pair > form > .btn { align-self: flex-start; margin-top: auto; }
.emp-pair > form > .field:last-of-type { margin-bottom: 20px; }
.quote-check { display: flex; }
.emp-perks { border-top: 1px solid var(--border); padding-top: 16px; margin-bottom: 20px; }
.emp-perks .label { font-size: 13px; font-weight: 600; color: var(--text-2); margin: 0 0 10px; }
.emp-perks ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; font-size: 14px; color: var(--text-2); }
.emp-perks li { padding-left: 22px; position: relative; }
.emp-perks li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 800; }
.emp-account[hidden] { display: none; }
.emp-lead { margin: -8px 0 16px; }
.emp-dash { margin-bottom: 32px; display: grid; gap: 16px; }
.emp-dash-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.emp-dash-head h2 { font-size: 22px; }
.emp-note { border-left: 4px solid var(--warn); background: var(--warn-soft); color: var(--text); padding: 10px 14px; border-radius: var(--radius-sm); font-size: 14px; }
.emp-fieldset { border: 0; padding: 0; margin: 0 0 16px; }
.emp-fieldset legend { padding: 0; margin-bottom: 8px; font-size: 13px; font-weight: 600; color: var(--text-2); }
.emp-fieldset .segmented { margin-bottom: 12px; align-self: flex-start; }
.emp-fieldset .check { min-height: 44px; }
.emp-fieldset .check input[type="radio"] { width: 18px; height: 18px; accent-color: var(--accent); margin: 0; }
.emp-buy-list { display: grid; gap: 10px; }
.emp-buy-list .btn { white-space: normal; text-align: center; }
.row-actions { display: inline-flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.job-card.is-featured { border-color: var(--gold); box-shadow: inset 4px 0 0 var(--gold); }
.mod-list { display: grid; gap: 12px; }
.mod-card { display: grid; gap: 10px; }
.mod-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.mod-badges { display: flex; gap: 6px; flex-wrap: wrap; }
.mod-reasons { margin: 0; padding-left: 20px; color: var(--warn); font-size: 14px; }
.mod-desc { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 14px; margin-top: 8px; }
.mod-card details summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; font-weight: 600; font-size: 14px; }
@media (max-width: 600px) { .emp-dash-head, .mod-head { flex-direction: column; } .row-actions { justify-content: flex-start; } }
.emp-dash > *, .emp-layout > *, .emp-account > * { min-width: 0; }
.emp-dash .ord-summary { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }

/* ---- Talent Search (candidate opt-in, employer search, admin stats). Existing tokens only. */
.emp-tabs { justify-self: start; }
.emp-tabs button { min-height: 44px; padding: 8px 18px; }
.emp-talent, .emp-posts { display: grid; gap: 16px; }
.talent-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 16px; }
.talent-head h2 { margin-bottom: 4px; }
.talent-credits { display: grid; gap: 6px; min-width: 150px; justify-items: end; text-align: right; }
.talent-search { display: flex; gap: 8px; margin-bottom: 12px; }
.talent-search .input { flex: 1; min-height: 44px; }
.talent-search .btn { min-height: 44px; }
.talent-pills { flex-wrap: wrap; overflow: visible; }
.talent-pills .pill { min-height: 44px; }
.talent-panel { border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); margin-bottom: 12px; max-height: 320px; display: flex; flex-direction: column; box-shadow: var(--shadow-md); }
.talent-panel .facet-option { min-height: 44px; }
.talent-results { display: grid; gap: 12px; }
.talent-card { display: grid; gap: 10px; padding: 20px; }
.talent-card-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.talent-card h3 { font-size: 16px; }
.talent-meta { color: var(--text-2); }
.talent-card-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.talent-card-foot .btn, .talent-actions .btn { min-height: 44px; }
.talent-empty { padding: 32px 24px; }
.talent-optin { margin-top: 16px; display: grid; gap: 12px; border-color: var(--accent); }
.talent-optin h2, .talent-status h2 { margin-bottom: 0; }
.talent-points { margin: 0; padding-left: 20px; display: grid; gap: 4px; font-size: 14px; color: var(--text-2); }
.talent-consent { min-height: 44px; align-items: flex-start !important; padding-top: 10px; }
.talent-consent input { margin-top: 2px; flex-shrink: 0; }
.talent-consent-text { max-width: 720px; }
.talent-actions { justify-content: flex-start; }
#talent-main { display: grid; gap: 16px; max-width: 860px; }
.talent-status { display: grid; gap: 12px; }
.talent-status .talent-head { margin-bottom: 0; align-items: center; }
.talent-form .check { min-height: 44px; }
.talent-chips .chip-filter button { min-width: 28px; min-height: 28px; }
.talent-block { min-height: 88px; }
.talent-unlocks { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.talent-profile .kv { margin: 8px 0 4px; }
.talent-cv { white-space: pre-wrap; overflow-wrap: anywhere; font-family: inherit; font-size: 13px; background: var(--surface-2); border-radius: var(--radius-sm); padding: 12px; max-height: 320px; overflow-y: auto; margin: 8px 0 0; }
.talent-profile details summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; font-weight: 600; font-size: 14px; }
.mod-talent { display: grid; gap: 12px; margin-bottom: 12px; }
.mod-talent h2 { margin-bottom: 0; }
.mod-talent .ord-summary { grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); }
@media (max-width: 600px) {
  .talent-head, .talent-card-head { flex-direction: column; }
  .talent-credits { justify-items: start; text-align: left; }
  .talent-search { flex-direction: column; }
}

/* ---------- YallaKaam Pro ---------- */
.text-nav a.nav-pro { color: var(--gold); font-weight: 700; }
.pro-badge { background: var(--gold-soft); color: var(--gold); letter-spacing: .3px; }
.warn-text { color: var(--warn); }
#pro-main { display: flex; flex-direction: column; gap: 16px; }
.pro-card h2 { margin-bottom: 8px; }
.pro-card > .muted.small { margin: 0 0 12px; }
.pro-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.pro-status { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 16px 20px; }
.pro-status.is-active { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold-soft); }
.pro-status-main { display: flex; align-items: center; gap: 12px; }
.pro-status p { margin: 2px 0 0; }
.pro-plans-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 4px; }
.pro-plans-head h2 { margin: 0; }
.pro-plans-head .segmented button { min-height: 44px; }
.pro-email { max-width: 420px; margin-top: 12px; }
.pro-plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 16px 0; }
.plan-card { position: relative; border: 1px solid var(--border); border-radius: var(--radius); padding: 20px 16px 16px; display: flex; flex-direction: column; gap: 6px; background: var(--surface); }
.plan-card.featured { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), var(--shadow-md); }
.plan-badge { align-self: flex-start; }
.plan-badge-spacer { height: 19px; }
.plan-card h3 { font-size: 16px; margin: 4px 0 0; }
.plan-price { font-size: 28px; font-weight: 800; letter-spacing: -.6px; }
.plan-per, .plan-save { margin: 0; }
.plan-save { color: var(--ok); font-weight: 600; font-size: 13.5px; }
.plan-list { margin: 8px 0 12px; padding-left: 18px; font-size: 13.5px; color: var(--text-2); }
.plan-list .plan-incl { color: var(--text); font-weight: 600; }
.plan-card .btn { margin-top: auto; min-height: 44px; }
.pro-disclaimer { color: var(--text-2); border-left: 3px solid var(--gold); padding: 6px 12px; margin: 12px 0 0; background: var(--gold-soft); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.pro-compare { width: 100%; border-collapse: collapse; font-size: 14px; }
.pro-compare th, .pro-compare td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: top; }
.pro-compare thead th { font-size: 12.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .4px; }
.pro-compare tbody th { font-weight: 600; }
.pro-compare .pro-yes { color: var(--accent); font-weight: 600; }
.pro-signin { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; }
.pro-signin .field { flex: 1 1 260px; margin: 0; }
.pro-signin [role="status"] { flex-basis: 100%; margin: 0; }
.pro-inline-form { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; }
.pro-inline-form .field { flex: 1 1 260px; margin: 0; }
.pro-card .btn, .pro-drawer .btn, .pro-upsell .btn, .pro-card .select, .pro-card .input { min-height: 44px; }
.pro-list, .credit-list, .pro-job-pick { list-style: none; margin: 0 0 12px; padding: 0; }
.pro-list li, .credit-list li, .pro-job-pick li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--border); }
.pro-sub { margin: 16px 0 8px; }
.kanban { display: grid; grid-template-columns: repeat(5, minmax(160px, 1fr)); gap: 12px; overflow-x: auto; }
.kanban-col { background: var(--surface-2); border-radius: var(--radius-sm); padding: 10px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.kanban-col h3 { font-size: 13px; margin: 0; color: var(--text-2); }
.kanban-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 10px; display: flex; flex-direction: column; gap: 6px; font-size: 13.5px; overflow-wrap: anywhere; }
.kanban-actions { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.link-btn { background: none; border: 0; padding: 0; color: var(--accent); font: inherit; font-weight: 600; text-align: left; cursor: pointer; min-height: 24px; }
.link-btn:hover { text-decoration: underline; }
.tailored { margin-top: 16px; border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 12px; }
.tailored:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.tailored-head { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.tailored-md { white-space: pre-wrap; overflow-wrap: anywhere; font: 13px/1.55 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; background: var(--surface-2); border-radius: var(--radius-sm); padding: 12px; max-height: 420px; overflow: auto; }
.verdict { border-radius: var(--radius-sm); padding: 10px 14px; margin: 12px 0; font-size: 15px; }
.verdict-ok { background: var(--ok-soft); color: var(--ok); }
.verdict-warn { background: var(--warn-soft); color: var(--warn); }
.verdict-danger { background: var(--danger-soft); color: var(--danger); }
.scam-result ul { margin: 6px 0 0; padding-left: 18px; font-size: 14px; color: var(--text-2); }
.pro-soon { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.soon-tile { border: 1px dashed var(--border); border-radius: var(--radius-sm); padding: 12px; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.soon-tile h3 { font-size: 14px; margin: 0; }
.soon-tile p { margin: 0; }
.pro-upsell, .pro-inline { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; background: var(--gold-soft); border-radius: var(--radius-sm); padding: 10px 12px; margin: 0 0 16px; }
.pro-drawer:empty { display: none; }
.pro-drawer-box { border: 1px solid var(--gold); border-radius: var(--radius-sm); padding: 12px; margin-bottom: 16px; display: flex; flex-direction: column; gap: 8px; }
.pro-drawer-head { display: flex; gap: 8px; align-items: center; }
.pro-salary p { margin: 4px 0 0; }
.pro-drawer-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.pro-limit { border-color: var(--gold); }
@media (max-width: 900px) { .pro-plans { grid-template-columns: 1fr; } .pro-soon { grid-template-columns: 1fr 1fr; } .pro-grid { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .pro-soon { grid-template-columns: 1fr; } .kanban { grid-template-columns: repeat(5, 78%); } }

/* AI mock interview (waitlist placeholder) */
.iv-layout { display: grid; grid-template-columns: 1fr minmax(280px, 360px); gap: 24px; align-items: start; }
.iv-main, .iv-side { display: grid; gap: 24px; min-width: 0; }
.iv-main > .card, .iv-side > .card { margin: 0; }
.iv-steps { margin: 0; padding-left: 20px; display: grid; gap: 12px; color: var(--text-2); }
.iv-steps strong { color: var(--text); }
.iv-questions { margin: 0; padding-left: 20px; display: grid; gap: 8px; }
.iv-job { background: var(--accent-soft); border-radius: var(--radius-sm); padding: 10px 12px; margin-bottom: 16px; }
.iv-prices { width: 100%; border-collapse: collapse; font-size: 14px; margin-bottom: 12px; }
.iv-prices td { padding: 8px 0; border-bottom: 1px solid var(--border); }
.iv-prices td:last-child { text-align: right; font-weight: 700; }
.iv-upsell { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  border: 1px dashed var(--border); border-radius: var(--radius-sm); padding: 10px 12px; margin: 12px 0; }
.iv-upsell .badge { margin-left: 8px; }
#view-interview .page-head .badge { margin-bottom: 8px; display: inline-block; }
@media (max-width: 900px) { .iv-layout { grid-template-columns: 1fr; } .iv-side { order: -1; } .iv-layout.is-live .iv-side { order: 1; } }
/* live AI mock interview */
#iv-live { display: grid; gap: 24px; }
#iv-live > .card { margin: 0; }
.iv-cv-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.iv-fieldset { border: 0; padding: 0; margin: 0 0 16px; }
.iv-video { width: 100%; max-width: 420px; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); background: #111; transform: scaleX(-1); }
.iv-replay .iv-video { transform: none; max-width: 520px; }
.iv-camcheck { margin: 8px 0 16px; }
.iv-stage-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.iv-timer { font-variant-numeric: tabular-nums; font-weight: 700; font-size: 18px; }
.iv-stage-grid { display: grid; grid-template-columns: minmax(160px, 240px) 1fr; gap: 20px; align-items: start; margin-bottom: 16px; }
.iv-stage-grid .iv-video { max-width: 240px; }
.iv-q-text { font-size: 20px; font-weight: 600; line-height: 1.4; margin: 6px 0 8px; }
.iv-stage-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; }
.iv-ent { margin: 0 0 12px; padding-left: 18px; }
.iv-buy-h { font-size: 15px; margin: 16px 0 8px; }
.iv-buy { margin-bottom: 8px; }
.iv-score { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; margin-bottom: 16px; }
.iv-summary { font-size: 16px; margin: 0 0 6px; }
.iv-lists { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 12px; }
.iv-lists h3, .iv-metrics h3, .iv-pres h3, .iv-replay h3 { font-size: 15px; margin: 8px 0 6px; }
.iv-lists ul, .iv-metrics ul, .iv-pres ul { margin: 0; padding-left: 18px; }
.iv-pres { background: var(--surface-2); border-radius: var(--radius-sm); padding: 12px 14px; margin: 12px 0; }
.iv-answer-card { border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 10px 14px; margin: 10px 0; }
.iv-answer-card summary { cursor: pointer; font-weight: 600; }
.iv-a-score { display: inline-block; min-width: 44px; color: var(--accent); }
.iv-better { background: var(--accent-soft); border-radius: var(--radius-sm); padding: 10px 12px; margin-top: 8px; }
.iv-better p { margin: 4px 0 0; }
.iv-replay { margin: 16px 0; }
@media (max-width: 700px) {
  .iv-stage-grid { grid-template-columns: 1fr; }
  .iv-stage-grid .iv-video { max-width: 100%; }
  .iv-lists { grid-template-columns: 1fr; }
}

.btn-link { background: none; border: 0; padding: 0; color: var(--accent); font: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 2px; min-height: 0; }
.btn-link:hover { text-decoration-thickness: 2px; }

/* ---- Phone-first navigation: bottom tab bar (thumb reach), big tap targets ---- */
.tabbar { display: none; }
@media (max-width: 640px) {
  .tabbar { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    background: color-mix(in srgb, var(--surface) 94%, transparent); backdrop-filter: blur(12px);
    border-top: 1px solid var(--border); padding-bottom: env(safe-area-inset-bottom); }
  .tabbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 56px;
    color: var(--muted); text-decoration: none; font-size: 12px; font-weight: 600; -webkit-tap-highlight-color: transparent; }
  .tabbar a[aria-current="page"] { color: var(--accent); }
  .tabbar a.tab-pro[aria-current="page"] { color: var(--gold); }
  .tabbar a:active { background: var(--surface-2); }
  body { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
  .toasts { bottom: calc(72px + env(safe-area-inset-bottom)); }
  .site-header .text-nav { display: none; }
  .kind-tabs button { min-height: 44px; padding: 10px 16px; }
  footer.site-footer .text-nav { gap: 0 4px; }
  footer.site-footer .text-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 8px; font-size: 14px; }
  .check input[type="checkbox"], .check input[type="radio"] { width: 24px; height: 24px; }
  .check { min-height: 44px; }
  .drawer { padding-bottom: env(safe-area-inset-bottom); }
}

/* partner promo code box */
.emp-promo { margin-top: 24px; }
.emp-promo-row { display: flex; gap: 12px; flex-wrap: wrap; }
.emp-promo-row .input { flex: 1; min-width: 180px; text-transform: uppercase; }
#mod-promo { margin-bottom: 24px; }
#mod-promo .ord-filters .input { max-width: 220px; }
