/* ==========================================================================
   Stafic.com design system
   Palette: navy brand, amber calls-to-action, semantic success / warning /
   danger tokens on light canvases, tuned for legibility: 16px base
   text, ≥44px touch targets, and fewer competing accents per screen.
   ========================================================================== */

/* Plus Jakarta Sans (variable, self-hosted — OFL licence in /public/fonts) */
@font-face {
  font-family: 'Plus Jakarta Sans'; font-style: normal; font-display: swap; font-weight: 200 800;
  src: url(../fonts/plus-jakarta-sans-latin-wght-normal.woff2) format('woff2-variations'), url(../fonts/plus-jakarta-sans-latin-wght-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+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: 'Plus Jakarta Sans'; font-style: normal; font-display: swap; font-weight: 200 800;
  src: url(../fonts/plus-jakarta-sans-latin-ext-wght-normal.woff2) format('woff2-variations'), url(../fonts/plus-jakarta-sans-latin-ext-wght-normal.woff2) format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

:root {
  /* ---- Stafic palette (single source of truth) ---- */
  --primary-dark: #0B2A4A;   /* headers, nav, footer */
  --primary: #1E56A0;        /* links, outline buttons, focus */
  --primary-tint: #E4EEF7;   /* light info backgrounds */
  --accent: #C1652E;         /* primary CTAs: unlock, post job, checkout */
  --accent-dark: #A3521F;    /* CTA hover (a darker shade of the accent) */
  --accent-tint: #FBEEDA;    /* highlight banners, "new" tags */
  --success: #2E9E5B;        /* verified badges, hired status */
  --success-tint: #E4F5EB;
  --warning: #D9622B;        /* expiry alerts, pending states */
  --danger: #C23B3B;         /* errors, rejected / flagged */
  --text-primary: #1F2A33;
  --text-secondary: #5B6B76;
  --border: #DDE3E7;
  --bg-candidate: #F5F1EA;   /* worker-facing pages */
  --bg-recruiter: #F7F9FA;   /* employer / admin pages */

  /* Derived shades (kept close to the palette; "-ink" = readable text on the matching tint) */
  --primary-hover: #104C84;
  --success-ink: #1E7544; --success-line: #B5E0C6;
  --warning-tint: #FBE9DF; --warning-ink: #9A3F14; --warning-line: #F2C3A8;
  --danger-tint: #F8E6E6; --danger-ink: #A32F2F; --danger-line: #EDBDBD;

  /* Scales used across components, mapped onto the palette */
  --brand-50: var(--primary-tint); --brand-100: #CFE0F0; --brand-200: #A8C6E2; --brand-400: #4F8BC4;
  --brand-500: #2C73B5; --brand-600: var(--primary); --brand-700: var(--primary-hover); --brand-800: #0E3F6E; --brand-900: var(--primary-dark);
  --accent-50: var(--accent-tint); --accent-100: #F5DDCD; --accent-200: #EBBB9C; --accent-400: #D4855A;
  --accent-500: var(--accent); --accent-600: var(--accent-dark); --accent-700: #7A3A15;
  --slate-50: var(--bg-recruiter); --slate-100: #EEF2F4; --slate-200: var(--border); --slate-300: #C3CDD3; --slate-400: #8D9BA5;
  --slate-500: var(--text-secondary); --slate-600: #4B5A65; --slate-700: #37444E; --slate-800: #2A3640; --slate-900: var(--text-primary); --slate-950: #14202A;
  --red-50: var(--danger-tint); --red-200: var(--danger-line); --red-600: var(--danger); --red-700: var(--danger-ink);
  --blue-50: var(--primary-tint); --blue-200: var(--brand-200); --blue-700: var(--primary);

  --bg: var(--bg-recruiter);
  --surface: #fff;
  --text: var(--text-primary);
  --muted: var(--text-secondary);
  --primary-strong: var(--primary-hover);

  --radius-sm: 8px; --radius: 12px; --radius-lg: 18px;
  --shadow-sm: 0 1px 2px rgb(11 42 74 / 0.05);
  --shadow: 0 1px 3px rgb(11 42 74 / 0.06), 0 8px 24px -12px rgb(11 42 74 / 0.12);
  --shadow-lg: 0 20px 50px -20px rgb(11 42 74 / 0.35);
  --font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, 'Noto Sans', sans-serif;
  --container: 1200px;
  --header-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
/* The hidden attribute always wins over component display rules (grid, flex…) */
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text); font-family: var(--font);
  font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; letter-spacing: -0.005em;
}
img, video, svg { max-width: 100%; display: block; }
a { color: var(--primary-strong); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3, h4 { line-height: 1.2; letter-spacing: -0.02em; margin: 0 0 .5em; color: var(--slate-900); }
h1 { font-size: clamp(1.9rem, 4.2vw, 3rem); font-weight: 800; }
h2 { font-size: clamp(1.45rem, 2.8vw, 2rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }
h4 { font-size: 1rem; font-weight: 700; }
p { margin: 0 0 1em; }
small, .small { font-size: .875rem; }
.muted { color: var(--muted); }
.lead { font-size: 1.125rem; color: var(--slate-600); }
.nowrap { white-space: nowrap; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--brand-400); outline-offset: 2px; border-radius: 4px; }
hr { border: 0; border-top: 1px solid var(--border); margin: 1.5rem 0; }

.ic { width: 1.15em; height: 1.15em; flex: none; display: inline-block; vertical-align: -0.2em; }
.ic-lg { width: 1.6rem; height: 1.6rem; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.container-narrow { max-width: 760px; }
.section { padding: 64px 0; }
.section-sm { padding: 40px 0; }
.section-head { max-width: 680px; margin-bottom: 32px; }
.section-head.center { margin-inline: auto; text-align: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 6px; font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--primary-strong); margin-bottom: 10px; }

.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.stack > * + * { margin-top: 16px; }
.stack-sm > * + * { margin-top: 8px; }
.row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.mt-0 { margin-top: 0 !important; } .mb-0 { margin-bottom: 0 !important; }
.mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 40px; }
.mb-1 { margin-bottom: 8px; } .mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; }
.text-center { text-align: center; }
.w-full { width: 100%; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px;
  padding: 10px 18px; border-radius: var(--radius); border: 1px solid transparent; font: inherit;
  font-weight: 700; font-size: .95rem; line-height: 1.2; cursor: pointer; text-decoration: none !important;
  transition: background .15s, border-color .15s, color .15s, transform .05s; white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-primary:hover { background: var(--primary-strong); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-dark); color: #fff; }
.btn-dark { background: var(--primary-dark); color: #fff; }
.btn-dark:hover { background: var(--slate-800); }
.btn-outline { background: var(--surface); color: var(--primary); border-color: var(--primary); }
.btn-outline:hover { border-color: var(--slate-400); background: var(--slate-50); }
.btn-ghost { background: transparent; color: var(--slate-700); }
.btn-ghost:hover { background: var(--slate-100); }
.btn-danger { background: var(--surface); color: var(--red-700); border-color: var(--red-200); }
.btn-danger:hover { background: var(--red-50); }
.btn-whatsapp { background: var(--success); color: #fff; }
.btn-whatsapp:hover { background: var(--success-ink); }
.btn-lg { min-height: 52px; padding: 14px 24px; font-size: 1.05rem; border-radius: 14px; }
.btn-sm { min-height: 36px; padding: 6px 12px; font-size: .85rem; border-radius: 10px; }
.btn-block { width: 100%; }
.btn[disabled], .btn.disabled { opacity: .55; pointer-events: none; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: var(--primary-strong); cursor: pointer; font-weight: 600; }
.link-btn:hover { text-decoration: underline; }

/* ---------- Header ---------- */

.site-header { position: sticky; top: 0; z-index: 50; background: var(--primary-dark); color: #fff; border-bottom: 1px solid rgb(255 255 255 / .08); }
.site-header .container { display: flex; align-items: center; gap: 16px; height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none !important; flex: none; }
.brand img { width: 38px; height: 38px; }
.brand-name { font-size: 1.35rem; font-weight: 800; letter-spacing: -0.03em; line-height: 1; }
.brand-name span { color: var(--primary); }
.main-nav { display: flex; align-items: center; gap: 4px; margin-inline-start: 48px; }
.main-nav a { white-space: nowrap; color: var(--slate-700); font-weight: 600; font-size: .93rem; padding: 8px 10px; border-radius: 10px; text-decoration: none; }
.main-nav a:hover { background: rgb(255 255 255 / .08); color: #fff; }
.main-nav a.active { color: #fff; background: rgb(255 255 255 / .12); box-shadow: inset 0 -2px 0 var(--accent); }
.header-actions { margin-inline-start: auto; display: flex; align-items: center; gap: 8px; }
.lang-select { position: relative; }
.lang-select select { appearance: none; min-height: 40px; padding-block: 6px; padding-inline: 34px 30px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); font: inherit; font-size: .88rem; font-weight: 600; color: var(--slate-700); cursor: pointer; }
.lang-select .ic { position: absolute; inset-inline-start: 10px; top: 50%; transform: translateY(-50%); color: var(--slate-500); pointer-events: none; }
.lang-select::after { content: ''; position: absolute; inset-inline-end: 12px; top: 50%; width: 6px; height: 6px; border-right: 2px solid var(--slate-400); border-bottom: 2px solid var(--slate-400); transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.nav-toggle { display: none; }
.credit-pill { display: inline-flex; align-items: center; gap: 6px; background: rgb(255 255 255 / .1); border: 1px solid rgb(255 255 255 / .2); color: #fff; border-radius: 999px; padding: 6px 12px; font-weight: 700; font-size: .85rem; text-decoration: none !important; }
.bell { position: relative; }
.bell .dot { position: absolute; top: 4px; inset-inline-end: 4px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--red-600); color: #fff; font-size: .7rem; font-weight: 700; display: grid; place-items: center; }

@media (max-width: 980px) {
  .main-nav { display: none; position: absolute; top: var(--header-h); left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--border); flex-direction: column; align-items: stretch; padding: 12px 16px 16px; margin: 0; box-shadow: var(--shadow); }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 12px; font-size: 1rem; }
  .nav-toggle { display: inline-flex; }
  .hide-mobile { display: none !important; }
}
@media (min-width: 981px) { .show-mobile { display: none !important; } }

/* ---------- Flash / alerts ---------- */
.flash-wrap { position: fixed; top: 110px; inset-inline-end: 16px; z-index: 80; display: grid; gap: 8px; max-width: min(420px, calc(100vw - 32px)); }
.flash { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: var(--radius); box-shadow: var(--shadow-lg); background: #fff; border: 1px solid var(--border); font-size: .93rem; animation: flash-in .25s ease-out; }
.flash button { margin-inline-start: auto; background: none; border: 0; cursor: pointer; color: var(--muted); padding: 0; }
.flash-success { border-color: var(--success-line); background: var(--success-tint); color: var(--success-ink); }
.flash-error { border-color: var(--red-200); background: var(--red-50); color: var(--red-700); }
.flash-info { border-color: var(--blue-200); background: var(--blue-50); color: var(--blue-700); }
@keyframes flash-in { from { opacity: 0; transform: translateY(-6px); } }

.alert { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--radius); border: 1px solid; font-size: .95rem; }
.alert .ic { margin-top: 3px; }
.alert-info { background: var(--primary-tint); border-color: var(--brand-200); color: var(--primary-dark); }
.alert-warn { background: var(--warning-tint); border-color: var(--warning-line); color: var(--warning-ink); }
.alert-success { background: var(--success-tint); border-color: var(--success-line); color: var(--success-ink); }
.alert-danger { background: var(--danger-tint); border-color: var(--danger-line); color: var(--danger-ink); }
.alert p:last-child { margin-bottom: 0; }

/* ---------- Cards ---------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow-sm); }
.card-sm { padding: 16px; border-radius: var(--radius); }
.card-flush { padding: 0; overflow: hidden; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.card-head h2, .card-head h3 { margin: 0; }
.card-foot { border-top: 1px solid var(--border); margin: 20px -24px -24px; padding: 14px 24px; background: var(--slate-50); border-radius: 0 0 var(--radius-lg) var(--radius-lg); }
.card-link { display: block; color: inherit; text-decoration: none !important; transition: border-color .15s, box-shadow .15s; }
.card-link:hover { border-color: var(--brand-200); box-shadow: var(--shadow); }

/* ---------- Badges / pills ---------- */
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 999px; font-size: .78rem; font-weight: 700; line-height: 1.5; border: 1px solid transparent; white-space: nowrap; }
.badge .ic { width: .95em; height: .95em; }
.badge-green { background: var(--success-tint); color: var(--success-ink); border-color: var(--success-line); }
.badge-warn { background: var(--warning-tint); color: var(--warning-ink); border-color: var(--warning-line); }
.badge-amber { background: var(--accent-50); color: var(--accent-700); border-color: var(--accent-200); }
.badge-blue { background: var(--blue-50); color: var(--blue-700); border-color: var(--blue-200); }
.badge-red { background: var(--red-50); color: var(--red-700); border-color: var(--red-200); }
.badge-slate { background: var(--slate-100); color: var(--slate-600); border-color: var(--slate-200); }
.badge-dark { background: var(--primary-dark); color: #fff; }
.chip { display: inline-flex; align-items: center; padding: 4px 12px; border-radius: 999px; background: var(--slate-100); color: var(--slate-700); font-size: .85rem; font-weight: 600; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.dot-status { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.dot-available { background: var(--success); box-shadow: 0 0 0 3px var(--success-tint); }
.dot-on_job { background: var(--accent-500); box-shadow: 0 0 0 3px var(--accent-100); }
.dot-unavailable { background: var(--slate-400); box-shadow: 0 0 0 3px var(--slate-200); }

/* ---------- Forms ---------- */
.form { display: grid; gap: 18px; }
.form-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.field { display: grid; gap: 6px; }
.field > label, .label { font-weight: 700; font-size: .92rem; color: var(--slate-800); }
.field .hint { font-size: .83rem; color: var(--muted); }
.field .opt { font-weight: 500; color: var(--muted); font-size: .8rem; }
.input, .select, .textarea {
  width: 100%; min-height: 48px; padding: 11px 14px; border: 1.5px solid var(--slate-300); border-radius: var(--radius);
  background: #fff; font: inherit; font-size: 1rem; color: var(--text); transition: border-color .15s, box-shadow .15s;
}
.textarea { min-height: 110px; resize: vertical; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px rgb(30 86 160 / .15); }
.input[readonly] { background: var(--slate-50); }
.select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--slate-500) 50%), linear-gradient(135deg, var(--slate-500) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-inline-end: 40px; }
.input-group { display: flex; }
.input-group .prefix { display: grid; place-items: center; padding: 0 14px; border: 1.5px solid var(--slate-300); border-right: 0; border-radius: var(--radius) 0 0 var(--radius); background: var(--slate-50); font-weight: 700; color: var(--slate-600); }
.input-group .input { border-radius: 0 var(--radius) var(--radius) 0; }
.input-otp { font-size: 1.6rem; letter-spacing: .5em; text-align: center; font-weight: 800; }
.check { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; font-size: .95rem; }
.check input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--primary); flex: none; }
.option-grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr)); }
.option { position: relative; }
.option input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.option span { display: flex; align-items: center; gap: 8px; min-height: 48px; padding: 10px 14px; border: 1.5px solid var(--slate-300); border-radius: var(--radius); background: #fff; font-weight: 600; font-size: .93rem; }
.option input:checked + span { border-color: var(--primary); background: var(--brand-50); color: var(--brand-900); box-shadow: 0 0 0 3px rgb(30 86 160 / .12); }
.option input:focus-visible + span { outline: 3px solid var(--brand-400); outline-offset: 2px; }
.option-lg span { flex-direction: column; justify-content: center; text-align: center; min-height: 92px; gap: 6px; }
.option-lg .ic { width: 26px; height: 26px; color: var(--primary); }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
legend { font-weight: 700; font-size: .92rem; margin-bottom: 8px; padding: 0; }
.repeat-row { border: 1px dashed var(--slate-300); border-radius: var(--radius); padding: 16px; background: var(--slate-50); position: relative; }
.repeat-row .remove-row { position: absolute; top: 8px; inset-inline-end: 8px; }
.file-drop { display: flex; align-items: center; gap: 14px; border: 1.5px dashed var(--slate-300); border-radius: var(--radius); padding: 14px 16px; background: #fff; cursor: pointer; }
.file-drop:hover { border-color: var(--primary); }
.file-drop input[type=file] { font-size: .9rem; max-width: 100%; }
.file-current { display: inline-flex; align-items: center; gap: 6px; font-size: .85rem; color: var(--success-ink); font-weight: 600; }
.form-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; padding-top: 8px; }
.error-text { color: var(--red-700); font-size: .85rem; font-weight: 600; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; }
.table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.table th { text-align: start; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); background: var(--slate-50); padding: 12px 14px; border-bottom: 1px solid var(--border); white-space: nowrap; }
.table td { padding: 12px 14px; border-bottom: 1px solid var(--slate-100); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tr:hover td { background: var(--bg-recruiter); }
.table .num { text-align: end; font-variant-numeric: tabular-nums; }
.empty { text-align: center; padding: 40px 20px; color: var(--muted); }
.empty .ic { width: 40px; height: 40px; margin: 0 auto 10px; color: var(--slate-300); }

/* ---------- Hero (home): headline over a faded black-and-white team photo ---------- */
.hero { position: relative; overflow: hidden; isolation: isolate; color: var(--text-primary);
  background: linear-gradient(#fff, #F4F5FA); }
/* Photo layer: greyscale + low opacity, fading out at the edges; a soft light wash keeps the text crisp */
.hero-bg { position: absolute; inset: 0; z-index: -1; display: flex; justify-content: center; align-items: flex-end; pointer-events: none; }
.hero-bg picture { display: contents; }
.hero-bg img { width: min(1280px, 100%); height: 100%; object-fit: cover; object-position: center 35%;
  filter: grayscale(1) contrast(1.05); opacity: .2;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent), linear-gradient(to bottom, transparent, #000 25%, #000 80%, transparent);
  -webkit-mask-composite: source-in; mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent), linear-gradient(to bottom, transparent, #000 25%, #000 80%, transparent); mask-composite: intersect; }
.hero-bg::after { content: ''; position: absolute; inset: 0; background: radial-gradient(60% 55% at 50% 45%, rgb(255 255 255 / .75), rgb(255 255 255 / 0) 75%); }
.hero-copy { position: relative; text-align: center; padding-top: 72px; padding-bottom: 64px; display: grid; justify-items: center; }
.hero h1 { color: var(--primary-dark); font-size: clamp(2rem, 4.6vw, 3.4rem); max-width: 17em; }
.hero h1 em { font-style: normal; color: var(--primary); }
.hero .lead { color: var(--text-secondary); font-size: 1.15rem; max-width: 40em; margin-inline: auto; }
.hero-pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--border); font-size: .85rem; color: var(--text-secondary); margin-bottom: 18px; box-shadow: var(--shadow-sm); }
.hero-pill strong { color: var(--primary-dark); }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin: 24px 0 18px; }
.hero-ticks { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 20px; color: var(--text-secondary); font-size: .92rem; }
.hero-ticks span { display: inline-flex; align-items: center; gap: 6px; }
.hero-ticks .ic { color: var(--success); }
.hero-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 170px)); gap: 10px; justify-content: center; margin-top: 32px; }
.hero-stats div { background: rgb(255 255 255 / .85); backdrop-filter: blur(4px); border: 1px solid var(--border); border-radius: 14px; padding: 10px 12px; text-align: center; box-shadow: var(--shadow-sm); }
.hero-stats strong { display: block; font-size: 1.25rem; color: var(--primary-dark); }
.hero-stats span { font-size: .78rem; color: var(--text-secondary); }
@media (max-width: 720px) {
  .hero-copy { padding-top: 36px; padding-bottom: 40px; }
  .hero-pill { display: none; }
  .hero h1 { font-size: 1.85rem; }
  .hero .lead { font-size: 1rem; }
  .hero-ctas { flex-direction: column; align-items: stretch; width: 100%; }
  .hero-ticks { font-size: .86rem; gap: 6px 14px; }
  .hero-bg img { width: 100%; opacity: .16; object-position: center 30%; }
  .hero-stats { grid-template-columns: repeat(3, 1fr); width: 100%; }
}

.page-hero { background: var(--primary-dark); color: rgb(255 255 255 / .78); padding: 48px 0 44px; }
.page-hero h1 { color: #fff; margin-bottom: 10px; }
.page-hero p { max-width: 42em; font-size: 1.08rem; margin: 0; }

/* ---------- Home sections ---------- */
.trust-bar { background: #fff; border-bottom: 1px solid var(--border); }
.trust-bar .container { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px; padding-top: 22px; padding-bottom: 22px; }
.trust-item strong { display: block; font-size: 1.6rem; font-weight: 800; color: var(--slate-900); letter-spacing: -0.03em; }
.trust-item span { color: var(--muted); font-size: .88rem; }
.trade-tile { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: var(--radius); border: 1px solid var(--border); background: #fff; color: var(--slate-800); font-weight: 700; text-decoration: none !important; transition: border-color .15s, transform .15s; }
.trade-tile:hover { border-color: var(--brand-400); transform: translateY(-2px); }
.trade-tile .ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-50); color: var(--brand-700); flex: none; }
.trade-tile small { display: block; font-weight: 500; color: var(--muted); }
.feature { display: flex; gap: 16px; }
.feature .ico { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; flex: none; background: var(--brand-50); color: var(--brand-700); }
.feature .ico.amber { background: var(--accent-50); color: var(--accent-700); }
.feature h3 { margin-bottom: 4px; }
.feature p { color: var(--slate-600); margin: 0; }
.steps { counter-reset: step; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.step { position: relative; padding: 22px; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--border); }
.step::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--primary); color: #fff; font-weight: 800; margin-bottom: 12px; }
.step p { color: var(--slate-600); margin: 0; }
.worker-band { background: linear-gradient(135deg, var(--brand-800), var(--primary-dark)); color: var(--brand-50); border-radius: 24px; padding: clamp(24px, 5vw, 48px); }
.worker-band h2 { color: #fff; }
.worker-band .lead { color: var(--brand-100); }
.worker-band .benefit { background: rgb(255 255 255 / .07); border: 1px solid rgb(255 255 255 / .12); border-radius: 16px; padding: 18px; }
.worker-band .benefit h3 { color: #fff; font-size: 1.05rem; margin-bottom: 4px; }
.worker-band .benefit p { color: var(--brand-100); margin: 0; font-size: .95rem; }
.worker-band .benefit .ic { color: var(--accent-400); width: 26px; height: 26px; margin-bottom: 8px; }
.lang-rotator { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.lang-rotator a { padding: 6px 12px; border-radius: 999px; background: rgb(255 255 255 / .08); color: #fff; font-size: .9rem; font-weight: 600; border: 1px solid rgb(255 255 255 / .15); text-decoration: none; }
.lang-rotator a.active, .lang-rotator a:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
.joboy-band { display: grid; grid-template-columns: auto 1fr auto; gap: 24px; align-items: center; }
.joboy-mark { width: 64px; height: 64px; border-radius: 18px; background: var(--primary-dark); display: grid; place-items: center; color: var(--accent-400); font-weight: 800; font-size: 1.2rem; }
@media (max-width: 700px) { .joboy-band { grid-template-columns: 1fr; } }
.quote { font-size: 1.02rem; color: var(--slate-700); }
.quote footer { margin-top: 12px; font-size: .9rem; color: var(--muted); font-weight: 600; }
.cta-band { background: var(--primary-dark); border-radius: 24px; padding: clamp(28px, 5vw, 56px); color: rgb(255 255 255 / .78); display: grid; gap: 24px; grid-template-columns: 1fr auto; align-items: center; }
.cta-band h2 { color: #fff; }
@media (max-width: 800px) { .cta-band { grid-template-columns: 1fr; } }

/* ---------- Pricing ---------- */
.plan { position: relative; display: flex; flex-direction: column; }
.plan.popular { border: 2px solid var(--primary); box-shadow: var(--shadow); }
.plan .ribbon { position: absolute; top: -13px; inset-inline-start: 24px; }
.plan .price { font-size: 2.4rem; font-weight: 800; letter-spacing: -0.03em; color: var(--slate-900); line-height: 1; }
.plan .price small { font-size: .9rem; color: var(--muted); font-weight: 600; letter-spacing: 0; }
.plan ul { list-style: none; padding: 0; margin: 20px 0; display: grid; gap: 10px; flex: 1; }
.plan li { display: flex; gap: 10px; align-items: flex-start; color: var(--slate-700); }
.plan li .ic { color: var(--primary); margin-top: 4px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--primary-dark); color: rgb(255 255 255 / .68); padding: 56px 0 28px; margin-top: 64px; font-size: .93rem; }
.site-footer h4 { color: #fff; font-size: .95rem; margin-bottom: 14px; }
.site-footer a { color: var(--slate-300); }
.site-footer a:hover { color: #fff; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.footer-grid { display: grid; gap: 32px; grid-template-columns: 1.4fr repeat(4, 1fr); }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer-bottom { border-top: 1px solid rgb(255 255 255 / .12); margin-top: 40px; padding-top: 20px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: .85rem; }
.site-footer .brand-name { color: #fff; }
.site-footer .brand-name span { color: var(--accent-400); }

/* ---------- Cookie banner ---------- */
.cookie-banner { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 90; max-width: 720px; margin: 0 auto; background: var(--primary-dark); color: rgb(255 255 255 / .85); padding: 16px 18px; border-radius: 16px; box-shadow: var(--shadow-lg); display: flex; gap: 16px; align-items: center; flex-wrap: wrap; font-size: .92rem; }
.cookie-banner[hidden] { display: none; }
.cookie-banner p { margin: 0; flex: 1 1 300px; }
.cookie-banner a { color: var(--accent-400); }

/* ---------- Auth pages ---------- */
.auth-wrap { min-height: calc(100vh - 200px); display: grid; place-items: center; padding: 40px 16px; }
.auth-card { width: 100%; max-width: 460px; }
.auth-card .card { padding: 32px; }
.auth-icon { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: var(--brand-50); color: var(--brand-700); margin-bottom: 16px; }
.auth-switch { text-align: center; margin-top: 18px; color: var(--muted); font-size: .93rem; }
.dev-otp { font-family: ui-monospace, monospace; font-size: 1.2rem; letter-spacing: .3em; font-weight: 800; }

/* ---------- App shell (dashboards) ---------- */
.app-shell { display: grid; grid-template-columns: 250px 1fr; min-height: calc(100vh - var(--header-h) - 34px); }
.sidebar { background: #fff; border-inline-end: 1px solid var(--border); padding: 20px 12px; position: sticky; top: var(--header-h); height: calc(100vh - var(--header-h)); overflow-y: auto; }
.sidebar .side-title { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--slate-400); font-weight: 700; padding: 14px 12px 6px; }
.sidebar a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; color: var(--slate-700); font-weight: 600; font-size: .93rem; text-decoration: none; }
.sidebar a:hover { background: var(--slate-100); }
.sidebar a.active { background: var(--brand-50); color: var(--brand-800); }
.sidebar a.active .ic { color: var(--brand-600); }
.sidebar a .count { margin-inline-start: auto; background: var(--slate-100); color: var(--slate-600); font-size: .75rem; padding: 1px 8px; border-radius: 999px; }
.sidebar .company-box { padding: 12px; margin: 0 0 8px; border-radius: 12px; background: var(--slate-50); border: 1px solid var(--border); }
.app-main { padding: 28px clamp(16px, 3vw, 36px) 56px; min-width: 0; }
.page-title { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.page-title h1 { font-size: 1.7rem; margin: 0; }
.page-title p { margin: 4px 0 0; color: var(--muted); }
.crumbs { font-size: .85rem; color: var(--muted); margin-bottom: 6px; }
.crumbs a { color: var(--muted); }
@media (max-width: 900px) {
  .app-shell { grid-template-columns: 1fr; }
  .sidebar { position: static; height: auto; border-inline-end: 0; border-bottom: 1px solid var(--border); padding: 8px 12px; display: flex; gap: 4px; overflow-x: auto; white-space: nowrap; }
  .sidebar .side-title, .sidebar .company-box { display: none; }
  .sidebar a { flex: none; padding: 8px 12px; }
  .sidebar a .count { margin-inline-start: 6px; }
}

.stat { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 18px 20px; }
.stat .label { font-size: .85rem; color: var(--muted); font-weight: 600; display: flex; align-items: center; gap: 6px; }
.stat .value { font-size: 1.9rem; font-weight: 800; letter-spacing: -0.03em; margin-top: 4px; }
.stat .sub { font-size: .82rem; color: var(--muted); }
.stat.highlight { background: var(--primary-dark); border-color: var(--primary-dark); color: #fff; }
.stat.highlight .label, .stat.highlight .sub { color: var(--brand-100); }

.progress { height: 10px; background: var(--slate-100); border-radius: 999px; overflow: hidden; }
.progress > span { display: block; height: 100%; background: linear-gradient(90deg, var(--brand-500), var(--brand-600)); border-radius: 999px; transition: width .4s; }
.ring { --p: 0; width: 120px; height: 120px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--primary) calc(var(--p) * 1%), var(--slate-100) 0); flex: none; }
.ring::before { content: attr(data-label); width: calc(100% - 26px); height: calc(100% - 26px); border-radius: 50%; background: #fff; display: grid; place-items: center; font-weight: 800; font-size: 1.5rem; }

/* ---------- Onboarding stepper ---------- */
.stepper { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 20px; scrollbar-width: thin; }
.stepper a { flex: none; display: flex; align-items: center; gap: 8px; padding: 8px 12px 8px 8px; border-radius: 999px; border: 1px solid var(--border); background: #fff; color: var(--slate-600); font-size: .85rem; font-weight: 600; text-decoration: none; }
.stepper a .n { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--slate-100); font-size: .8rem; font-weight: 800; }
.stepper a.done .n { background: var(--brand-100); color: var(--brand-800); }
.stepper a.current { border-color: var(--primary); color: var(--brand-900); background: var(--brand-50); }
.stepper a.current .n { background: var(--primary); color: #fff; }
.onb-layout { display: grid; grid-template-columns: 1fr 300px; gap: 24px; align-items: start; }
@media (max-width: 1000px) { .onb-layout { grid-template-columns: 1fr; } .onb-aside { order: 2; } }
@media (max-width: 600px) {
  .card { padding: 18px 16px; }
  .card-foot, .sticky-actions { margin-left: -16px; margin-right: -16px; padding-left: 16px; padding-right: 16px; }
  .sticky-actions { margin-bottom: -18px; }
  .option-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .option-lg span { min-height: 80px; font-size: .88rem; }
  .app-main { padding-top: 18px; }
  .page-title h1 { font-size: 1.4rem; }
}
.layout-aside { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; }
.layout-aside > aside { position: sticky; top: calc(var(--header-h) + 16px); }
@media (max-width: 1000px) { .layout-aside { grid-template-columns: 1fr; } .layout-aside > aside { position: static; } }
.sticky-actions { position: sticky; bottom: 0; background: rgb(255 255 255 / .96); backdrop-filter: blur(6px); border-top: 1px solid var(--border); margin: 24px -24px -24px; padding: 14px 24px; border-radius: 0 0 var(--radius-lg) var(--radius-lg); display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

/* ---------- Candidate cards (search) ---------- */
.cand-card { display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: start; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 18px; transition: border-color .15s, box-shadow .15s; }
.cand-card:hover { border-color: var(--brand-200); box-shadow: var(--shadow); }
.cand-card .select-box { display: flex; align-items: center; }
.avatar { width: 64px; height: 64px; border-radius: 16px; object-fit: cover; background: var(--slate-200); flex: none; }
.avatar-lg { width: 112px; height: 112px; border-radius: 22px; }
.avatar-sm { width: 40px; height: 40px; border-radius: 12px; }
.avatar-ph { display: grid; place-items: center; color: var(--slate-400); background: var(--slate-100); }
.cand-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; color: var(--slate-600); font-size: .9rem; margin: 6px 0 10px; }
.cand-meta span { display: inline-flex; align-items: center; gap: 5px; }
.cand-actions { display: grid; gap: 8px; justify-items: end; }
@media (max-width: 700px) { .cand-card { grid-template-columns: auto 1fr; } .cand-actions { grid-column: 1 / -1; justify-items: stretch; grid-template-columns: 1fr 1fr; } }
.search-layout { display: grid; grid-template-columns: 280px 1fr; gap: 24px; align-items: start; }
.filters { position: sticky; top: calc(var(--header-h) + 16px); }
.filters .field > label { font-size: .85rem; }
.filters .input, .filters .select { min-height: 42px; padding: 8px 12px; font-size: .93rem; }
@media (max-width: 1000px) { .search-layout { grid-template-columns: 1fr; } .filters { position: static; } }
.smart-search { display: flex; gap: 10px; background: #fff; border: 1.5px solid var(--slate-300); border-radius: 16px; padding: 6px 6px 6px 14px; align-items: center; box-shadow: var(--shadow-sm); }
.smart-search:focus-within { border-color: var(--primary); box-shadow: 0 0 0 4px rgb(30 86 160 / .15); }
.smart-search input { flex: 1; border: 0; font: inherit; font-size: 1.02rem; outline: none; min-width: 0; min-height: 40px; background: transparent; }
.smart-search .ic { color: var(--primary); }
.parsed-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; font-size: .85rem; color: var(--muted); align-items: center; }
.bulk-bar { position: sticky; bottom: 16px; z-index: 30; display: none; align-items: center; gap: 12px; flex-wrap: wrap; background: var(--primary-dark); color: #fff; padding: 12px 16px; border-radius: 16px; box-shadow: var(--shadow-lg); margin-top: 16px; }
.bulk-bar.show { display: flex; }

.locked-media { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--slate-800); aspect-ratio: 16 / 9; display: grid; place-items: center; color: #fff; text-align: center; }
.locked-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: blur(6px) brightness(.55); transform: scale(1.1); }
.locked-media .msg { position: relative; display: grid; gap: 6px; justify-items: center; padding: 16px; }
.locked-media .play { width: 56px; height: 56px; border-radius: 50%; background: rgb(255 255 255 / .15); display: grid; place-items: center; border: 1px solid rgb(255 255 255 / .3); }
.contact-box { background: var(--brand-50); border: 1px solid var(--brand-200); border-radius: var(--radius-lg); padding: 20px; }
.contact-box .phone { font-size: 1.4rem; font-weight: 800; letter-spacing: -0.01em; }
.kv { display: grid; grid-template-columns: minmax(120px, 38%) 1fr; gap: 10px 16px; font-size: .95rem; }
.kv dt { color: var(--muted); font-weight: 600; }
.kv dd { margin: 0; font-weight: 600; color: var(--slate-800); }
.timeline { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.timeline li { padding-inline-start: 20px; border-inline-start: 2px solid var(--brand-200); }
.timeline li strong, .timeline li > span { display: block; }
@media (min-width: 901px) { .app-shell { background: linear-gradient(to right, #fff 250px, var(--border) 250px, var(--border) 251px, transparent 251px); } }

/* ---------- Kanban ---------- */
.kanban { display: grid; grid-template-columns: repeat(5, minmax(220px, 1fr)); gap: 14px; overflow-x: auto; padding-bottom: 8px; }
.kanban-col { background: var(--slate-100); border-radius: var(--radius-lg); padding: 12px; min-height: 320px; transition: background .15s; }
.kanban-col.drag-over { background: var(--brand-100); outline: 2px dashed var(--brand-500); }
.kanban-col h3 { font-size: .9rem; display: flex; justify-content: space-between; align-items: center; margin: 4px 4px 12px; }
.kanban-card { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 12px; margin-bottom: 10px; cursor: grab; box-shadow: var(--shadow-sm); }
.kanban-card.dragging { opacity: .5; }
.kanban-card select { margin-top: 8px; min-height: 34px; padding: 4px 30px 4px 8px; font-size: .82rem; }

/* ---------- Calendar ---------- */
.cal { display: grid; grid-template-columns: repeat(7, 1fr); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: #fff; }
.cal .dow { background: var(--slate-50); padding: 8px; font-size: .75rem; font-weight: 700; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--border); text-align: center; }
.cal .day { min-height: 96px; padding: 6px; border-inline-end: 1px solid var(--slate-100); border-bottom: 1px solid var(--slate-100); font-size: .8rem; }
.cal .day.other { background: var(--slate-50); color: var(--slate-400); }
.cal .day.today .d { background: var(--primary); color: #fff; border-radius: 50%; width: 24px; height: 24px; display: grid; place-items: center; }
.cal .ev { display: block; margin-top: 4px; padding: 2px 6px; border-radius: 6px; background: var(--brand-50); color: var(--brand-800); font-weight: 600; font-size: .75rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 700px) { .cal .day { min-height: 64px; } .cal .ev { font-size: 0; height: 6px; padding: 0; } }

/* ---------- Compare ---------- */
.compare { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(230px, 1fr); gap: 16px; overflow-x: auto; }

/* ---------- Invoice / print ---------- */
.invoice { background: #fff; max-width: 820px; margin: 0 auto; padding: 40px; border: 1px solid var(--border); border-radius: var(--radius); }
.invoice table { width: 100%; border-collapse: collapse; margin-top: 16px; }
.invoice th, .invoice td { padding: 10px; border-bottom: 1px solid var(--border); text-align: left; font-size: .92rem; }
.invoice .totals td { border: 0; padding: 4px 10px; }
.invoice .grand td { font-weight: 800; font-size: 1.05rem; border-top: 2px solid var(--slate-900); }
.biodata { background: #fff; max-width: 820px; margin: 0 auto; padding: 40px; border: 1px solid var(--border); }
.biodata h2 { font-size: 1.05rem; border-bottom: 2px solid var(--primary); padding-bottom: 4px; margin-top: 24px; }
@media print {
  .no-print, .site-header, .site-footer, .cookie-banner, .flash-wrap, .sidebar { display: none !important; }
  body { background: #fff; }
  .app-shell { display: block; }
  .app-main { padding: 0; }
  .invoice, .biodata { border: 0; padding: 0; }
  .compare { grid-auto-flow: row; grid-template-columns: repeat(2, 1fr); }
  a { color: inherit; }
}

/* ---------- Misc ---------- */
.prose { max-width: 720px; font-size: 1.05rem; color: var(--slate-700); }
.prose h2 { margin-top: 1.6em; font-size: 1.4rem; }
.prose ul { padding-inline-start: 1.2em; }
.prose li { margin-bottom: .4em; }
.blog-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 12px; background: var(--slate-200); margin-bottom: 14px; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 20px; overflow-x: auto; }
.tabs a { padding: 10px 14px; font-weight: 600; color: var(--slate-600); border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; text-decoration: none; }
.tabs a.active { color: var(--brand-800); border-color: var(--primary); }
.notif { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--slate-100); }
.notif.unread { font-weight: 600; }
.notif .ico { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--brand-50); color: var(--brand-700); flex: none; }
.pager { display: flex; gap: 6px; justify-content: center; margin-top: 24px; }
.video-frame { aspect-ratio: 16 / 9; width: 100%; border: 0; border-radius: 12px; background: var(--slate-900); }
dialog { border: 0; border-radius: var(--radius-lg); padding: 0; max-width: min(520px, calc(100vw - 32px)); width: 100%; box-shadow: var(--shadow-lg); }
dialog::backdrop { background: rgb(11 42 74 / .55); }
dialog .dialog-body { padding: 24px; }
.chart-box { position: relative; height: 280px; width: 100%; min-width: 0; overflow: hidden; }
.card:has(> .chart-box), .card:has(.chart-box-sm) { min-width: 0; }
.chart-box-sm { position: relative; height: 180px; width: 100%; min-width: 0; overflow: hidden; }

/* ---------- Additions: admin SEO preview, popovers ---------- */
.save-search-pop { position: absolute; inset-inline-end: 0; top: 44px; z-index: 20; width: 300px; box-shadow: var(--shadow-lg); }
.list-indent { padding-inline-start: 1.1em; }
.serp { font-family: Arial, sans-serif; }
.serp-url { font-size: .8rem; color: #202124; }
.serp-title { font-size: 1.15rem; color: #1a0dab; line-height: 1.3; margin: 2px 0 4px; word-break: break-word; }
.serp-desc { font-size: .85rem; color: #4d5156; line-height: 1.5; }

/* ---------- Right-to-left (Arabic) ---------- */
[dir="rtl"] body { font-family: 'Noto Sans Arabic', var(--font); letter-spacing: 0; }
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3, [dir="rtl"] h4 { letter-spacing: 0; }
[dir="rtl"] .ic-dir { transform: scaleX(-1); }
[dir="rtl"] .select { background-position: 15px 50%, 20px 50%; }
[dir="rtl"] .input-group .prefix { border-radius: 0 var(--radius) var(--radius) 0; border-right: 1.5px solid var(--slate-300); border-left: 0; }
[dir="rtl"] .input-group .input { border-radius: var(--radius) 0 0 var(--radius); }
[dir="rtl"] .brand-name, [dir="rtl"] .dev-otp { direction: ltr; }
@media (min-width: 901px) { [dir="rtl"] .app-shell { background: linear-gradient(to left, #fff 250px, var(--border) 250px, var(--border) 251px, transparent 251px); } }

/* ==========================================================================
   Mobile-first worker flow: guided steps, camera pickers, fixed action bar,
   bottom navigation, upload progress.
   ========================================================================== */
.btn-wrap { white-space: normal; text-align: start; line-height: 1.3; }
.list-indent { padding-inline-start: 1.1em; }

/* Step header */
.onb-head { margin-bottom: 14px; }
.onb-head h1 { font-size: 1.6rem; margin: 6px 0 12px; }
.onb-stepof { font-size: .82rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--brand-700); }
.seg-progress { display: grid; grid-template-columns: repeat(9, 1fr); gap: 5px; }
.seg-progress a { height: 8px; border-radius: 999px; background: var(--slate-200); display: block; }
.seg-progress a.done { background: var(--brand-400); }
.seg-progress a.current { background: var(--primary); box-shadow: 0 0 0 3px var(--brand-100); }
.guide { display: flex; gap: 12px; align-items: flex-start; background: var(--accent-50); border: 1px solid var(--accent-200); color: var(--accent-700); border-radius: var(--radius-lg); padding: 14px 16px; margin-bottom: 16px; font-size: .98rem; line-height: 1.5; }
.guide p { margin: 0; }
.guide-ico { width: 38px; height: 38px; border-radius: 12px; background: #fff; display: grid; place-items: center; color: var(--accent-700); flex: none; }

/* Camera / gallery pickers */
.js .picker-input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
html:not(.js) .picker-buttons { display: none; }
.picker { display: grid; gap: 10px; padding: 16px; border: 1.5px solid var(--border); border-radius: var(--radius-lg); background: #fff; }
.picker .label { display: flex; align-items: center; gap: 6px; }
.picker-buttons { display: flex; flex-wrap: wrap; gap: 8px; }
.picker-buttons .btn { flex: 1 1 160px; }
.picker-frame { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--slate-100); border: 2px dashed var(--slate-300); display: grid; place-items: center; color: var(--slate-400); }
.picker-frame img { width: 100%; height: 100%; object-fit: cover; }
.picker-frame img[hidden] { display: none; }
.picker-frame:has(img:not([hidden])) { border-style: solid; border-color: var(--success); }
.picker-frame:has(img:not([hidden])) .picker-ph { display: none; }
.photo-frame { width: 132px; height: 132px; border-radius: 28px; flex: none; }
.doc-frame { aspect-ratio: 1.58; width: 100%; }
.doc-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.media-row { display: flex; gap: 16px; align-items: center; }
.tips { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: .95rem; font-weight: 600; color: var(--slate-700); }
.tips li { display: flex; gap: 8px; align-items: flex-start; }
.tips li .ic { color: var(--success); margin-top: 3px; }
.tips li:last-child .ic { color: var(--red-600); }
.script-card { background: var(--brand-50); border: 1px solid var(--brand-200); border-radius: var(--radius); padding: 12px 14px; font-size: .95rem; }
.script-card ol { margin: 6px 0 0; padding-inline-start: 1.3em; display: grid; gap: 4px; }
.picker-status { margin: 0; font-size: .9rem; font-weight: 700; color: var(--success-ink); min-height: 1.2em; }
.picker-status.error-text { color: var(--red-700); }
.video-frame[hidden] { display: none; }

/* Step actions: sticky in the card on desktop, fixed thumb bar on mobile */
.onb-actions { position: sticky; bottom: 0; background: rgb(255 255 255 / .97); backdrop-filter: blur(6px); border-top: 1px solid var(--border); margin: 24px -24px -24px; padding: 14px 24px; border-radius: 0 0 var(--radius-lg) var(--radius-lg); display: flex; gap: 10px; align-items: center; flex-wrap: wrap; z-index: 5; }
.onb-actions .onb-next { flex: 0 1 auto; min-width: 200px; }
.onb-later { margin-inline-start: auto; color: var(--slate-600); }

/* Upload overlay */
.upload-overlay { position: fixed; inset: 0; z-index: 200; background: rgb(11 42 74 / .72); display: grid; place-items: center; padding: 24px; }
.upload-box { background: #fff; border-radius: 20px; padding: 24px; width: min(420px, 100%); text-align: center; box-shadow: var(--shadow-lg); }
.upload-box .progress { height: 14px; margin: 16px 0 10px; }
.upload-box .pct { font-size: 1.3rem; font-weight: 800; }
.upload-box .spin { width: 44px; height: 44px; border-radius: 50%; border: 4px solid var(--brand-100); border-top-color: var(--primary); margin: 0 auto 10px; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Worker dashboard */
.progress-card-top { display: flex; gap: 16px; align-items: center; }
.progress-card-text { min-width: 0; flex: 1; }
.quick-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.quick { display: grid; justify-items: center; gap: 8px; padding: 16px 8px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); text-align: center; font-weight: 700; font-size: .88rem; color: var(--slate-800); text-decoration: none !important; line-height: 1.3; }
.quick:active { background: var(--brand-50); }
.quick .qi { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--brand-50); color: var(--brand-700); }
.quick .qi .ic { width: 22px; height: 22px; }

/* Bottom navigation (workers, mobile only) */
.bottom-nav { display: none; }

@media (max-width: 900px) {
  .shell-candidate .sidebar { display: none; }
  .app-candidate .app-main { padding: 16px 16px 96px; }
  .bottom-nav { display: grid; grid-template-columns: repeat(4, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; background: #fff; border-top: 1px solid var(--border); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); box-shadow: 0 -8px 24px -12px rgb(11 42 74 / .25); }
  .bottom-nav a { position: relative; display: grid; justify-items: center; gap: 2px; padding: 6px 2px; color: var(--slate-500); font-size: .72rem; font-weight: 700; text-decoration: none; text-align: center; line-height: 1.2; }
  .bottom-nav a .ic { width: 24px; height: 24px; }
  .bottom-nav a.active { color: var(--brand-700); }
  .bottom-nav .dot { position: absolute; top: 2px; inset-inline-end: 22%; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--red-600); color: #fff; font-size: .68rem; font-style: normal; display: grid; place-items: center; }

  /* Onboarding: full-width form, fixed thumb-reach action bar */
  .page-onb .app-main { padding-bottom: 150px; }
  .page-onb .onb-form.card { border: 0; box-shadow: none; padding: 0; background: transparent; }
  .page-onb .onb-head h1 { font-size: 1.45rem; }
  .onb-actions { position: fixed; left: 0; right: 0; bottom: 0; margin: 0; border-radius: 0; z-index: 80; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); display: grid; grid-template-columns: 56px 1fr; gap: 10px; box-shadow: 0 -8px 24px -12px rgb(11 42 74 / .3); }
  .onb-actions .onb-back { min-width: 0; padding: 0; }
  .onb-actions .onb-next { min-width: 0; font-size: 1.1rem; }
  .onb-actions .onb-later { grid-column: 1 / -1; margin: 0; justify-self: center; font-size: .92rem; padding: 2px 0; }
  .media-row { flex-direction: column; align-items: stretch; }
  .media-row .photo-frame { align-self: center; width: 160px; height: 160px; }
  .picker-buttons .btn { flex-basis: 100%; }
  .flash-wrap { top: 12px; }
  .page-onb .cookie-banner { bottom: 150px; }
}
@media (max-width: 380px) {
  .quick { font-size: .8rem; padding: 12px 4px; }
}

/* ---------- Login chooser dialog ---------- */
.login-dialog { max-width: min(460px, calc(100vw - 32px)); }
.login-dialog h2 { font-size: 1.35rem; }
.login-choices { display: grid; gap: 12px; }
.login-choice { display: flex; align-items: center; gap: 14px; padding: 16px; border: 1.5px solid var(--border); border-radius: var(--radius); color: var(--slate-800); text-decoration: none !important; transition: border-color .15s, background .15s; }
.login-choice:hover, .login-choice:focus-visible { border-color: var(--brand-600); background: var(--brand-50); }
.login-choice > span:nth-child(2) { flex: 1; display: grid; gap: 2px; }
.login-choice small { color: var(--muted); font-weight: 400; font-size: .86rem; }
.login-choice .ico { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-50); color: var(--brand-700); flex: none; }
.login-choice-worker .ico { background: var(--accent-50); color: var(--accent-700); }
.login-choice-worker:hover, .login-choice-worker:focus-visible { border-color: var(--accent-600); background: var(--accent-50); }
dialog[open] { animation: dlg-in .16s ease-out; }
@keyframes dlg-in { from { opacity: 0; transform: translateY(8px); } }
@media (max-width: 640px) {
  .login-dialog[open] { margin: auto auto 0; max-width: 100vw; border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
  .login-dialog .dialog-body { padding: 20px 16px calc(20px + env(safe-area-inset-bottom)); }
}

/* ---------- Current / permanent address + map picker ---------- */
.addr-head { display: flex; gap: 12px; align-items: flex-start; }
.addr-ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-50); color: var(--brand-700); flex: none; }
.addr-ico-home { background: var(--accent-50); color: var(--accent-700); }
.check-card { padding: 14px 16px; border: 1.5px solid var(--border); border-radius: var(--radius); background: var(--surface); align-items: center; }
.check-card:has(input:checked) { border-color: var(--brand-600); background: var(--brand-50); }
.perm-fields { display: grid; gap: 16px; }
.map-picker { display: grid; gap: 10px; }
html:not(.js) .map-picker { display: none; }
.map-head { display: grid; gap: 2px; }
.map-canvas { height: 320px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--slate-100); overflow: hidden; z-index: 0; }
.map-picker.is-loading .map-canvas { background: linear-gradient(90deg, var(--slate-100), var(--slate-50), var(--slate-100)); background-size: 200% 100%; animation: shimmer 1.2s linear infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }
.map-foot { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; }
.map-status { font-size: .9rem; color: var(--muted); }
.map-status.is-set { color: var(--success-ink); font-weight: 700; }
.map-picker .hint .ic { width: 14px; height: 14px; vertical-align: -2px; }
.map-pin-icon span { display: block; width: 30px; height: 30px; margin-top: 0; background: var(--brand-600); border: 3px solid #fff; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); box-shadow: 0 2px 6px rgb(0 0 0 / .35); }
.map-pin-icon span::after { content: ''; position: absolute; inset: 8px; background: #fff; border-radius: 50%; }
.map-canvas .leaflet-control-attribution { font-size: 10px; }
@media (max-width: 640px) { .map-canvas { height: 280px; } }

/* ---------- Public hire-by-trade page ---------- */
.hire-list { max-width: 920px; }
a.chip { text-decoration: none; transition: background .15s, color .15s; }
a.chip:hover { background: var(--brand-50); color: var(--brand-800); }
.chip-on, a.chip-on:hover { background: var(--brand-600); color: #fff; }
.chip-on .muted { color: rgb(255 255 255 / .8); }
.locked-more { position: relative; border-radius: var(--radius-lg); overflow: hidden; }
.locked-ghosts { display: grid; gap: 12px; filter: blur(3px); opacity: .55; }
.locked-ghosts div { height: 112px; border-radius: var(--radius); border: 1px solid var(--border); background:
  linear-gradient(var(--slate-200), var(--slate-200)) 96px 26px / 40% 14px no-repeat,
  linear-gradient(var(--slate-100), var(--slate-100)) 96px 54px / 60% 10px no-repeat,
  linear-gradient(var(--slate-100), var(--slate-100)) 96px 76px / 30% 10px no-repeat,
  radial-gradient(circle at 48px 56px, var(--slate-200) 30px, transparent 31px), #fff; }
.locked-cta { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; text-align: center; gap: 8px; padding: 20px;
  background: linear-gradient(180deg, rgb(247 249 250 / .55), rgb(247 249 250 / .97) 45%); }
.locked-cta h3 { margin: 0; font-size: 1.3rem; }
.locked-cta p { max-width: 520px; margin: 0 0 6px; }
.locked-ico { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: #fff; }
@media (max-width: 640px) {
  .locked-ghosts div:nth-child(2) { display: none; }
  .locked-more { min-height: 330px; }
  .locked-cta .btn { width: 100%; }
}


/* ---------- Navy header: controls on a dark bar ---------- */
.site-header .brand-name { color: #fff; }
.site-header .brand-name span { color: var(--accent-400); }
.main-nav a { color: rgb(255 255 255 / .82); }
.site-header .btn-ghost { color: #fff; }
.site-header .btn-ghost:hover { background: rgb(255 255 255 / .1); }
.site-header .lang-select select { color: #fff; background: rgb(255 255 255 / .06); border-color: rgb(255 255 255 / .22); }
.site-header .lang-select .ic { color: rgb(255 255 255 / .7); }
.site-header .lang-select::after { border-color: rgb(255 255 255 / .7); }
.site-header .lang-select select option { color: var(--text-primary); background: #fff; }
.site-header .nav-toggle { color: #fff; }
@media (max-width: 900px) {
  .main-nav { background: var(--primary-dark); border-bottom-color: rgb(255 255 255 / .1); }
  .main-nav .btn-ghost { color: #fff; }
}

/* ---------- Page canvases ---------- */
body.aud-worker, body.app-candidate { background: var(--bg-candidate); }
body.aud-worker .trust-bar, body.app-candidate .onb-actions { background: #fff; }

/* Mid-size screens: keep the full header on one line */
.credit-pill { white-space: nowrap; }
@media (min-width: 901px) and (max-width: 1180px) {
  .main-nav { margin-inline-start: 20px; gap: 0; }
  .main-nav a { padding-inline: 7px; font-size: .88rem; }
  .site-header .container { gap: 10px; }
  .header-actions { gap: 4px; }
}

/* Pricing: region switcher above the plans */
.price-region { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px; margin-bottom: 20px; color: var(--text-secondary); font-weight: 600; }
.price-region label { display: inline-flex; align-items: center; gap: 6px; }

/* Admin: checkbox groups laid out in rows */
.chips-check { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 6px; }
.chips-check .check { font-size: .9rem; }

/* ---------- Daily rate ---------- */
.input-group .suffix { display: grid; place-items: center; padding: 0 14px; border: 1.5px solid var(--slate-300); border-left: 0; border-radius: 0 var(--radius) var(--radius) 0; background: var(--slate-50); font-weight: 700; color: var(--slate-600); white-space: nowrap; }
.input-group .prefix + .input:not(:last-child) { border-radius: 0; }
[dir="rtl"] .input-group .suffix { border-radius: var(--radius) 0 0 var(--radius); border-left: 1.5px solid var(--slate-300); border-right: 0; }
.daily-rate { display: grid; gap: 12px; padding: 16px; border: 1.5px solid var(--accent-200); border-radius: var(--radius-lg); background: var(--accent-tint); margin-top: 8px; }
.daily-rate-head { display: flex; gap: 12px; align-items: flex-start; }
.daily-rate-ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: #fff; color: var(--accent-700); flex: none; }
.daily-rate-input { max-width: 280px; }
.day-rate { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 999px; background: var(--accent-tint); color: var(--accent-700); font-weight: 700; font-size: .88rem; white-space: nowrap; }
.day-rate .ic { width: 14px; height: 14px; }
