/* =========================================================================
   WE RECRUIT — EXECUTIVE DARK IDENTITY
   Dark navy · single teal accent · serif display · subtle grid · thin borders.
   One token-driven system; reuses all class names so every page converts.
   ========================================================================= */

/* ------------------------------------------------------------------ TOKENS */
:root {
    /* Light text scale (on dark) */
    --ink-900: #f4f7fb;   /* headings */
    --ink-800: #e7edf5;
    --ink-700: #cfd8e4;
    --ink-600: #a7b2c2;   /* body */
    --ink-500: #828d9e;   /* muted */
    --ink-400: #626d7e;   /* faint */
    --ink-300: #49535f;

    /* Navy surfaces */
    --bg: #080d15;
    --surface: #0f1722;       /* cards */
    --surface-2: #0c131d;     /* inputs / insets */
    --surface-3: #18222f;     /* pills / hovers */
    --line: rgba(255, 255, 255, 0.07);
    --line-2: rgba(255, 255, 255, 0.14);

    /* Single accent — teal (opportunity / progress) */
    --brand: #15838c;         /* solid actions */
    --brand-strong: #0f6a72;  /* hover */
    --brand-bright: #3ccbd2;  /* links, icons, rails, focus on dark */
    --brand-soft: rgba(60, 203, 210, 0.12);
    --brand-border: rgba(60, 203, 210, 0.32);

    /* Semantic (muted, on dark) */
    --success: #41c98c; --success-soft: rgba(65, 201, 140, 0.13); --success-border: rgba(65, 201, 140, 0.3);
    --warning: #e2b657; --warning-soft: rgba(226, 182, 87, 0.13); --warning-border: rgba(226, 182, 87, 0.3);
    --danger: #ef7468;  --danger-soft: rgba(239, 116, 104, 0.13); --danger-border: rgba(239, 116, 104, 0.32);
    --info: #6ba6ea;    --info-soft: rgba(107, 166, 234, 0.13);

    /* Elevation — dark, restrained */
    --sh-1: 0 1px 2px rgba(0, 0, 0, 0.4);
    --sh-2: 0 12px 30px -14px rgba(0, 0, 0, 0.7);
    --sh-3: 0 28px 64px -24px rgba(0, 0, 0, 0.8);
    --ring: 0 0 0 3px rgba(60, 203, 210, 0.28);

    /* Radii */
    --r-xs: 8px; --r-sm: 10px; --r: 13px; --r-lg: 18px; --r-xl: 26px; --r-pill: 999px;

    /* Type */
    --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
    --serif: "Playfair Display", Georgia, "Times New Roman", serif;

    /* Motion */
    --ease: cubic-bezier(.2, .7, .2, 1);
    --ease-out: cubic-bezier(.16, 1, .3, 1);
    --t-fast: 140ms; --t: 240ms; --t-slow: 480ms;

    --content: 1200px;
}

/* -------------------------------------------------------------------- BASE */
*, *::before, *::after { box-sizing: border-box; }

html { min-height: 100%; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    min-height: 100%;
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.65;
    color: var(--ink-600);
    background:
        linear-gradient(rgba(255, 255, 255, 0.014) 1px, transparent 1px) 0 0 / 66px 66px,
        linear-gradient(90deg, rgba(255, 255, 255, 0.014) 1px, transparent 1px) 0 0 / 66px 66px,
        radial-gradient(1300px 640px at 50% -12%, rgba(60, 203, 210, 0.06), transparent 70%),
        var(--bg);
    background-attachment: fixed;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }

h1, h2, h3 { font-weight: 700; letter-spacing: -0.02em; color: var(--ink-900); }

::selection { background: rgba(60, 203, 210, 0.24); color: #fff; }

a, button, input, select, textarea,
.list-card, .stat-card, .job-preview-card, .feature-card {
    transition:
        color var(--t-fast) var(--ease),
        background-color var(--t-fast) var(--ease),
        border-color var(--t-fast) var(--ease),
        box-shadow var(--t) var(--ease),
        transform var(--t) var(--ease);
}

a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible {
    outline: 2px solid var(--brand-bright);
    outline-offset: 2px;
}

.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.honeypot {
    position: absolute !important; left: -10000px !important;
    width: 1px !important; height: 1px !important; overflow: hidden !important;
}

.skip-link {
    position: absolute; inset-inline-start: -9999px; top: 0; z-index: 200;
    padding: 10px 16px; border: 1px solid var(--line-2); border-radius: var(--r-xs);
    background: var(--surface); color: var(--ink-900); font-weight: 600; box-shadow: var(--sh-2);
}
.skip-link:focus { inset-inline-start: 14px; top: 14px; }
main:focus { outline: none; }

/* ------------------------------------------------------------------ LAYOUT */
.container { width: min(calc(100% - 44px), var(--content)); margin: 0 auto; }

main { min-height: calc(100vh - 168px); padding: 64px 0 100px; }

.page-heading { max-width: 760px; margin-bottom: 40px; }

.page-heading h1, .foundation-panel h1 {
    margin: 0 0 14px;
    font-family: var(--serif);
    font-size: clamp(2.2rem, 4.6vw, 3.4rem);
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.08;
    color: var(--ink-900);
}

.page-heading p, .foundation-panel p {
    margin: 0; max-width: 62ch; color: var(--ink-500); font-size: 1.05rem;
}

.eyebrow {
    display: inline-flex; align-items: center;
    margin: 0 0 14px !important;
    color: var(--brand-bright) !important;
    font-size: 0.72rem; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase;
}

.auth-panel { max-width: 1060px; }
.dashboard-panel { max-width: 1120px; }
.admin-panel, .profile-panel { max-width: 1120px; }

/* ------------------------------------------------------------------ HEADER */
.site-header {
    position: sticky; top: 0; z-index: 60;
    border-bottom: 1px solid var(--line);
    background: rgba(8, 13, 21, 0.86);
}

.site-header__inner {
    display: flex; align-items: center; justify-content: space-between;
    gap: 16px; min-height: 74px;
}

.site-logo { display: inline-flex; align-items: center; gap: 13px; color: var(--ink-900); flex: none; white-space: nowrap; }

.site-logo__mark {
    display: grid; place-items: center; width: 38px; height: 38px;
    border-radius: 10px;
    border: 1px solid var(--line-2);
    background: var(--surface-3);
    color: #fff;
    font-family: var(--serif); font-weight: 700; font-size: 1.04rem; letter-spacing: -0.04em;
}

.site-logo__word {
    font-family: var(--serif); font-size: 1.16rem; font-weight: 700;
    letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-900);
    white-space: nowrap;
}

/* Sign in / sign out aligned with the nav as proper buttons */
.nav-auth-form { margin: 0; display: inline-flex; }
.nav-auth-btn { vertical-align: middle; }

.site-nav { display: flex; align-items: center; gap: 6px; font-size: 0.9rem; }

.nav-link { padding: 9px 13px; border-radius: 9px; color: var(--ink-500); font-weight: 500; }
.nav-link:hover { color: var(--ink-900); background: var(--surface-3); }
.nav-link.is-active { color: var(--brand-bright); background: var(--brand-soft); }
.nav-link-muted { color: var(--ink-400); }
.site-nav form { margin: 0; }
.site-nav button.nav-link { border: 0; font: inherit; cursor: pointer; background: transparent; }

.role-chip {
    margin-inline-start: 8px; padding: 5px 12px; border-radius: var(--r-pill);
    border: 1px solid var(--brand-border); color: var(--brand-bright); background: var(--brand-soft);
    font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
}

.nav-toggle {
    display: none; width: 44px; height: 44px; padding: 11px;
    border: 1px solid var(--line-2); border-radius: 11px; background: var(--surface); cursor: pointer;
}
.nav-toggle span:not(.sr-only) { display: block; height: 2px; margin: 4px 0; border-radius: 2px; background: var(--ink-700); }

/* --------------------------------------------------------------- BUTTONS */
.button {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 46px; width: fit-content; padding: 12px 22px;
    border: 1px solid transparent; border-radius: var(--r-sm);
    color: #fff; background: var(--brand);
    box-shadow: var(--sh-1);
    font-size: 0.92rem; font-weight: 600; letter-spacing: 0.01em; cursor: pointer; white-space: nowrap;
}
.button:hover, .button:focus-visible { background: var(--brand-strong); transform: translateY(-1px); box-shadow: var(--sh-2); }
.button:active { transform: translateY(0); }
.button:disabled { cursor: not-allowed; opacity: .45; box-shadow: none; transform: none; }

.button-small { min-height: 38px; padding: 9px 16px; font-size: 0.86rem; }

.button-secondary {
    color: var(--ink-800); border-color: var(--line-2); background: transparent; box-shadow: none;
}
.button-secondary:hover, .button-secondary:focus-visible {
    color: var(--ink-900); border-color: var(--ink-300); background: var(--surface-3); transform: translateY(-1px);
}

.button-quiet { color: var(--danger); background: transparent; border-color: var(--danger-border); box-shadow: none; }
.button-quiet:hover, .button-quiet:focus-visible { background: var(--danger-soft); transform: none; }

.button.is-loading { pointer-events: none; color: transparent !important; position: relative; }
.button.is-loading::after {
    content: ""; position: absolute; width: 17px; height: 17px; border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, .4); border-top-color: #fff; animation: spin .6s linear infinite;
}
.button-secondary.is-loading::after { border-color: rgba(60, 203, 210, .3); border-top-color: var(--brand-bright); }
@keyframes spin { to { transform: rotate(360deg); } }

/* --------------------------------------------------------------- SURFACES */
.list-card, .stat-card, .status-banner, .form-card {
    border: 1px solid var(--line); border-radius: var(--r-lg);
    background: var(--surface); box-shadow: var(--sh-1);
}

/* --------------------------------------------------------------- FORMS */
.form-card { display: grid; gap: 7px; max-width: 540px; padding: 30px; }

.form-card label {
    margin-top: 12px; color: var(--ink-700); font-size: 0.84rem; font-weight: 600; letter-spacing: 0.01em;
}
.form-card label:first-of-type { margin-top: 0; }

.form-card input, .form-card select, .form-card textarea,
.inline-actions input, .recruiter-stage-form select, .hero-search input {
    width: 100%; min-height: 48px; padding: 12px 14px;
    border: 1px solid var(--line-2); border-radius: var(--r-xs);
    background: var(--surface-2); color: var(--ink-900);
}
.form-card input::placeholder, .form-card textarea::placeholder, .hero-search input::placeholder { color: var(--ink-400); }
.form-card input:hover, .form-card select:hover, .form-card textarea:hover { border-color: var(--ink-300); }
.form-card input:focus, .form-card select:focus, .form-card textarea:focus,
.inline-actions input:focus, .hero-search input:focus {
    border-color: var(--brand-bright); background: var(--surface); box-shadow: var(--ring); outline: none;
}
.form-card select option { background: var(--surface); color: var(--ink-900); }
.form-card textarea { resize: vertical; min-height: 112px; }
.form-card .button { margin-top: 18px; }

.form-wide { max-width: 800px; }
.profile-form { max-width: 860px; }
.form-note { margin: 0 0 8px; color: var(--ink-500); font-size: 0.92rem; }

.form-section-heading {
    display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: center;
    margin: 34px 0 12px; padding-top: 28px; border-top: 1px solid var(--line);
}
.form-section-heading:first-of-type { margin-top: 0; padding-top: 0; border-top: 0; }
.form-section-heading > span {
    display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px;
    color: var(--brand-bright); background: var(--brand-soft); border: 1px solid var(--brand-border);
    font-size: 0.8rem; font-weight: 700;
}
.form-section-heading h2, .form-section-heading p { margin: 0; }
.form-section-heading h2 { font-size: 1.08rem; }
.form-section-heading p { color: var(--ink-500); font-size: 0.84rem; }

/* Sectioned form rows, hints + live preview */
.field { display: grid; gap: 6px; }
.field > label { margin-top: 0; }
.field .hint, .form-hint { margin: 2px 0 0; color: var(--ink-400); font-size: 0.8rem; }

.form-row { display: grid; gap: 14px; margin-top: 4px; }
@media (min-width: 640px) {
    .form-row.cols-2 { grid-template-columns: 1fr 1fr; }
    .form-row.cols-3 { grid-template-columns: 1fr 1fr 1fr; }
}

.job-layout { display: grid; gap: 28px; align-items: start; }
.job-layout .form-card { max-width: none; }
@media (min-width: 1000px) { .job-layout { grid-template-columns: minmax(0, 1.7fr) minmax(290px, 1fr); } }

.job-preview-panel { display: grid; gap: 12px; }
@media (min-width: 1000px) { .job-preview-panel { position: sticky; top: 96px; } }
.job-preview-panel .list-card { padding: 22px; }
.job-preview-panel h3 { margin: 0; font-size: 1.1rem; color: var(--ink-900); letter-spacing: -0.01em; overflow-wrap: anywhere; }
.job-preview-panel .pv-meta { margin: 4px 0 0; color: var(--ink-500); font-size: 0.88rem; }
.job-preview-panel .pv-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }

.form-actions {
    display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line);
}

/* --------------------------------------------------------------- ALERTS */
.alert {
    position: relative; max-width: 800px; margin-bottom: 18px;
    padding: 14px 16px 14px 46px; border-radius: var(--r); border: 1px solid var(--line-2); font-size: 0.94rem;
}
.alert::before { position: absolute; inset-inline-start: 16px; top: 14px; font-weight: 800; font-size: 1rem; line-height: 1.3; }
.alert p { margin: 0; } .alert p + p { margin-top: 6px; }
.alert-error { color: #f6c0b9; background: var(--danger-soft); border-color: var(--danger-border); }
.alert-error::before { content: "!"; color: var(--danger); }
.alert-success { color: #b7ecd2; background: var(--success-soft); border-color: var(--success-border); }
.alert-success::before { content: "✓"; color: var(--success); }

/* --------------------------------------------------------------- BANNERS */
.status-banner {
    display: grid; gap: 6px; max-width: 800px; margin-bottom: 24px;
    padding: 18px 20px; border-radius: var(--r); border-inline-start: 3px solid var(--line-2);
}
.status-banner strong { color: var(--ink-900); font-size: 1.02rem; }
.status-banner span { color: var(--ink-500); font-size: 0.92rem; }
.status-pending { border-inline-start-color: var(--warning); background: var(--warning-soft); }
.status-verified { border-inline-start-color: var(--success); background: var(--success-soft); }
.status-rejected, .status-suspended { border-inline-start-color: var(--danger); background: var(--danger-soft); }

/* --------------------------------------------------------- ACTION ROWS */
.dashboard-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 26px; }

/* --------------------------------------------------------------- LISTS */
.table-list { display: grid; gap: 14px; }
.list-card { display: grid; gap: 16px; padding: 24px 26px; }
.list-card h2, .list-card h3 { margin: 0 0 8px; font-size: 1.16rem; letter-spacing: -0.015em; }
.list-card p { margin: 0 0 6px; color: var(--ink-500); }
.list-card a:not(.button) { color: var(--brand-bright); font-weight: 600; }
.list-card a:not(.button):hover { color: #6ad7dd; text-decoration: underline; text-underline-offset: 3px; }

a.list-card:hover, .list-card.is-interactive:hover {
    border-color: var(--line-2); box-shadow: var(--sh-2); transform: translateY(-2px);
}

.inline-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.inline-actions input { flex: 1 1 220px; }
.applicant-card { gap: 18px; }
.pipeline-actions { display: flex; flex-wrap: wrap; gap: 9px; }
.filter-form { margin-bottom: 28px; }
.pagination { display: flex; align-items: center; gap: 14px; margin-top: 30px; color: var(--ink-500); font-size: 0.92rem; }

/* --------------------------------------------------------------- DETAIL */
.job-detail { gap: 24px; }
.detail-section h2 {
    margin: 0 0 8px; font-size: 0.74rem; font-weight: 700; letter-spacing: 0.16em;
    text-transform: uppercase; color: var(--ink-400);
}
.detail-section p { margin: 0; color: var(--ink-700); }

/* --------------------------------------------------------- STAT CARDS */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; margin: 28px 0; }
.stat-card {
    position: relative; display: flex; flex-direction: column; gap: 7px;
    padding: 24px; overflow: hidden;
}
.stat-card::before { content: ""; position: absolute; inset-inline-start: 0; top: 0; bottom: 0; width: 2px; background: var(--brand-bright); opacity: .8; }
.stat-card:hover { border-color: var(--line-2); box-shadow: var(--sh-2); transform: translateY(-2px); }
.stat-value { font-family: var(--serif); font-size: 2.2rem; font-weight: 700; letter-spacing: -0.01em; line-height: 1; color: var(--ink-900); }
.stat-label { color: var(--ink-500); font-size: 0.83rem; }

/* --------------------------------------------------------- DASHBOARD ROWS */
.dashboard-row {
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    padding: 16px 0; border-top: 1px solid var(--line); flex-wrap: wrap;
}
.dashboard-row:first-of-type { border-top: 0; padding-top: 0; }
.dashboard-row strong { color: var(--ink-900); font-weight: 600; }
.dashboard-row p { margin: 4px 0 0; color: var(--ink-500); font-size: 0.9rem; }

/* --------------------------------------------------------------- PILLS */
.status-pill {
    display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px;
    border-radius: var(--r-pill); background: var(--surface-3); color: var(--ink-600);
    font-size: 0.79rem; font-weight: 600; white-space: nowrap; border: 1px solid var(--line);
}
.job-type-pill {
    display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px;
    border-radius: var(--r-pill); font-size: 0.79rem; font-weight: 700;
    white-space: nowrap; border: 1px solid transparent; line-height: 1;
}
.job-type-pill::before {
    content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; opacity: .85;
}
.job-type-pill--full_time  { background: #e7f6ec; color: #1a7f43; border-color: #bfe6cd; }
.job-type-pill--part_time  { background: #fff4e2; color: #b4690e; border-color: #f6d9ad; }
.job-type-pill--contract   { background: #eef0fb; color: #3b4bb0; border-color: #ccd2f3; }
.job-type-pill--internship { background: #e6f6f6; color: #0f7d83; border-color: #bfe6e7; }
.job-type-pill--remote     { background: #e8f1fd; color: #1d6fd1; border-color: #c3dbf7; }
.job-type-pill--hybrid     { background: #f1ebfb; color: #6d35c7; border-color: #ddccf3; }
.job-type-pill--temporary  { background: #eef1f4; color: #4a5763; border-color: #d4dbe2; }
.status-message {
    display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; padding: 10px 16px;
    border: 1px solid var(--success-border); border-radius: var(--r-xs);
    background: var(--success-soft); color: var(--success); font-weight: 600;
}

/* --------------------------------------------------------- DYNAMIC ROWS */
.dynamic-list { display: grid; gap: 10px; }
.dynamic-row { display: grid; gap: 10px; }
@media (min-width: 720px) {
    .dynamic-row { grid-template-columns: 1fr 180px auto; align-items: center; }
    .dynamic-row-skill { grid-template-columns: 1fr auto; }
}
.cv-row {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px;
    padding: 16px; margin-bottom: 12px; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r);
}
.cv-row textarea { grid-column: 1 / -1; }
.cv-row .cv-remove { justify-self: start; }

/* CV builder: photo + template + personal-detail grids */
.cv-meta-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px;
    margin-bottom: 12px;
}
.cv-photo-preview { margin: 8px 0; }
.checkbox-row {
    display: flex; align-items: center; gap: 8px; margin: 8px 0; font-weight: 400;
}
.checkbox-row input[type="checkbox"] { width: auto; margin: 0; }

/* --------------------------------------------------------- EMPTY / SKELETON */
.empty-state {
    display: grid; gap: 6px; padding: 44px 32px; text-align: center;
    border: 1px dashed var(--line-2); border-radius: var(--r-lg); color: var(--ink-500);
    background: radial-gradient(420px 160px at 50% 0%, rgba(60, 203, 210, 0.05), transparent 70%), var(--surface-2);
}
.empty-state strong { font-size: 1.05rem; color: var(--ink-800); }

.skeleton {
    border-radius: var(--r-xs);
    background: linear-gradient(100deg, var(--surface-3) 30%, #202b3a 50%, var(--surface-3) 70%);
    background-size: 200% 100%; animation: shimmer 1.3s ease-in-out infinite;
}
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }

/* =======================================================  CATEGORY BADGES = */
.cat-badge {
    --cat: var(--brand-bright);
    display: grid; place-items: center; flex: none; width: 46px; height: 46px; border-radius: 12px;
    color: var(--cat);
    color: color-mix(in srgb, var(--cat) 72%, white);
    background: color-mix(in srgb, var(--cat) 16%, transparent);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--cat) 26%, transparent);
}
.cat-badge svg { width: 22px; height: 22px; }
.cat-badge--sm { width: 38px; height: 38px; border-radius: 10px; }
.cat-badge--sm svg { width: 19px; height: 19px; }
.cat-badge--lg { width: 58px; height: 58px; border-radius: 15px; }
.cat-badge--lg svg { width: 28px; height: 28px; }

.jobcat--tech { --cat: #6f8cff; }
.jobcat--telecom { --cat: #5b9bff; }
.jobcat--aviation { --cat: #5fa6ee; }
.jobcat--maritime { --cat: #56a8db; }
.jobcat--education { --cat: #69a8e6; }
.jobcat--management { --cat: #7f9ad6; }
.jobcat--medical { --cat: #34c3a2; }
.jobcat--science { --cat: #36c5c0; }
.jobcat--social { --cat: #54c7a0; }
.jobcat--support { --cat: #3ccbd2; }
.jobcat--cleaning { --cat: #3fc9bd; }
.jobcat--realestate { --cat: #5bc2a6; }
.jobcat--finance { --cat: #4cc479; }
.jobcat--agriculture { --cat: #8cc24a; }
.jobcat--design { --cat: #b08cf5; }
.jobcat--media { --cat: #b07ce0; }
.jobcat--arts { --cat: #d873c0; }
.jobcat--hr { --cat: #c275d8; }
.jobcat--marketing { --cat: #ef6f97; }
.jobcat--beauty { --cat: #ee78b0; }
.jobcat--retail { --cat: #ef6f95; }
.jobcat--engineering { --cat: #f0894f; }
.jobcat--trades { --cat: #e8a04e; }
.jobcat--manufacturing { --cat: #d09b5a; }
.jobcat--automotive { --cat: #ef7d59; }
.jobcat--energy { --cat: #f0a93f; }
.jobcat--hospitality { --cat: #f09a4a; }
.jobcat--sports { --cat: #e0a64a; }
.jobcat--logistics { --cat: #3fb6cf; }
.jobcat--legal { --cat: #9aa6bd; }
.jobcat--security { --cat: #8c99b1; }
.jobcat--government { --cat: #a3b0c6; }
.jobcat--general { --cat: var(--brand-bright); }

.jobcat-head { display: flex; align-items: center; gap: 15px; }
.jobcat-head > div { min-width: 0; }

.mini-icon, .company-avatar {
    display: grid; place-items: center; width: 42px; height: 42px; border-radius: 11px;
    color: #fff; font-weight: 700; background: var(--surface-3); border: 1px solid var(--line-2);
}

/* =======================================================  RECRUITER  ===== */
.recruiter-workspace { display: grid; gap: 32px; }
.workspace-section { display: grid; gap: 16px; }
.section-heading, .project-card, .candidate-work-card {
    display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap;
}
.section-heading { margin-bottom: 4px; }
.section-heading h2 { margin: 0; }
.card-meta { display: flex; gap: 8px; margin-bottom: 10px; flex-wrap: wrap; }
.priority-high { color: var(--danger); background: var(--danger-soft); }
.priority-low { color: var(--ink-500); background: var(--surface-3); }
.status-on_hold { color: var(--warning); background: var(--warning-soft); }
.status-completed, .status-active { color: var(--success); background: var(--success-soft); }
.project-settings { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 700px; align-items: end; }
.project-settings .button { grid-column: 1 / -1; }
.recruiter-stage-form { align-items: center; }
.recruiter-stage-form select { min-height: 44px; }
.notes-list { display: grid; gap: 10px; max-width: 700px; }
.note-card {
    padding: 15px 18px; border: 1px solid var(--line); border-inline-start: 3px solid var(--brand-bright);
    border-radius: var(--r-xs); background: var(--surface);
}
.note-card p { margin: 0 0 8px; color: var(--ink-700); }
.note-card span { color: var(--ink-400); font-size: 0.84rem; }

/* =======================================================  EMPLOYER  ====== */
.employer-job-card { gap: 18px; }
.job-tracking-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(116px, 1fr)); gap: 10px; width: 100%; }
.job-tracking-grid div { display: grid; gap: 3px; padding: 14px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface-2); }
.job-tracking-grid strong { color: var(--ink-900); font-size: 1.3rem; letter-spacing: -0.02em; }
.job-tracking-grid span { color: var(--ink-500); font-size: 0.82rem; }
.pipeline-summary { margin-bottom: 24px; }
.job-status-pending, .job-status-draft { color: var(--warning); background: var(--warning-soft); }
.job-status-rejected, .job-status-closed, .job-status-expired { color: var(--danger); background: var(--danger-soft); }
.job-status-active { color: var(--success); background: var(--success-soft); }

/* =======================================================  HOME  ========== */
.hero-section {
    display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(340px, .92fr);
    align-items: center; gap: 56px; min-height: auto; padding-top: 12px;
}
.hero-copy h1 {
    max-width: 16ch; margin: 0 0 22px; font-family: var(--serif);
    font-size: clamp(2.7rem, 5.4vw, 4.8rem); font-weight: 700; letter-spacing: -0.01em; line-height: 1.04; color: var(--ink-900);
}
.hero-copy h1 em { font-style: italic; color: var(--brand-bright); }
.hero-lead { max-width: 50ch; margin: 0 0 30px; color: var(--ink-500); font-size: clamp(1.02rem, 1.4vw, 1.16rem); }

.hero-search {
    display: grid; grid-template-columns: 1fr .8fr auto; gap: 7px; max-width: 660px;
    padding: 8px; border: 1px solid var(--line-2); border-radius: var(--r-lg); background: var(--surface);
    box-shadow: var(--sh-2);
}
.hero-search input { min-height: 46px; padding: 11px 14px; border-color: transparent; background: transparent; }
.hero-search input:focus { box-shadow: none; }
.hero-search .button { min-height: 46px; }

.hero-actions { display: flex; gap: 12px; margin-top: 22px; flex-wrap: wrap; }

.hero-visual {
    position: relative; min-height: 500px; overflow: hidden;
    border: 1px solid var(--line); border-radius: var(--r-xl);
    background:
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px) 0 0 / 40px 40px,
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px) 0 0 / 40px 40px,
        radial-gradient(420px 280px at 70% 10%, rgba(60, 203, 210, 0.12), transparent 70%),
        var(--surface);
}
.hero-orb { position: absolute; border-radius: 50%; filter: blur(50px); }
.hero-orb-one { width: 260px; height: 260px; top: -60px; inset-inline-end: -50px; background: rgba(60, 203, 210, 0.14); }
.hero-orb-two { width: 220px; height: 220px; bottom: -80px; inset-inline-start: -40px; background: rgba(60, 203, 210, 0.07); }

.hero-feature-card {
    position: absolute; display: grid; gap: 10px; padding: 24px;
    border: 1px solid var(--line-2); border-radius: var(--r-lg); background: rgba(18, 27, 38, 0.92); box-shadow: var(--sh-3);
}
.hero-feature-main { top: 54px; inset-inline: 40px; }
.hero-feature-main strong { max-width: 18ch; font-size: 1.6rem; font-weight: 700; letter-spacing: -0.01em; line-height: 1.08; color: var(--ink-900); }
.hero-feature-main p, .hero-feature-float p { margin: 0; color: var(--ink-500); }

.preview-head { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; }
.preview-head strong { display: block; color: var(--ink-900); font-size: 1rem; }
.preview-head p { margin: 0; color: var(--ink-500); font-size: 0.84rem; }
.preview-match {
    padding: 4px 11px; border-radius: var(--r-pill); background: var(--brand-soft);
    color: var(--brand-bright); font-size: 0.82rem; font-weight: 700; white-space: nowrap; border: 1px solid var(--brand-border);
}
.hero-mock { display: grid; gap: 7px; margin-top: 6px; padding-top: 14px; border-top: 1px solid var(--line); }
.hero-mock-row { display: flex; align-items: center; justify-content: space-between; font-size: 0.86rem; color: var(--ink-600); font-weight: 600; }
.hero-mock-row strong { color: var(--brand-bright); }
.hero-mock-bar { height: 6px; border-radius: var(--r-pill); background: rgba(255, 255, 255, 0.08); overflow: hidden; }
.hero-mock-bar i { display: block; height: 100%; border-radius: var(--r-pill); background: var(--brand-bright); }

.hero-feature-float { inset-inline-end: 24px; bottom: 32px; grid-template-columns: auto 1fr; align-items: center; }
.hero-feature-float strong { color: var(--ink-900); }

.home-stats { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 12px; padding: 34px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.home-stats div { display: grid; gap: 4px; padding: 0 30px; border-inline-end: 1px solid var(--line); }
.home-stats div:last-child { border-inline-end: 0; }
.home-stats strong { font-family: var(--serif); font-size: clamp(2.1rem, 4vw, 2.8rem); font-weight: 700; letter-spacing: -0.01em; color: var(--ink-900); }
.home-stats span { color: var(--ink-500); }

.home-section { padding-top: 110px; }
.section-heading h2 { margin: 0; font-family: var(--serif); font-size: clamp(1.9rem, 4vw, 3rem); font-weight: 700; letter-spacing: -0.01em; line-height: 1.08; }

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature-card { padding: 32px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--sh-1); }
.feature-card:hover { border-color: var(--line-2); box-shadow: var(--sh-2); transform: translateY(-3px); }
.feature-number { display: inline-block; margin-bottom: 42px; color: var(--brand-bright); font-size: 0.76rem; font-weight: 700; letter-spacing: 0.16em; }
.feature-card h3 { margin: 0 0 10px; font-size: 1.3rem; letter-spacing: -0.015em; }
.feature-card p { min-height: 76px; margin: 0 0 14px; color: var(--ink-500); }
.feature-card a { color: var(--brand-bright); font-weight: 600; font-size: 0.92rem; }
.feature-card a:hover { color: #6ad7dd; }

.job-preview-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.job-preview-card {
    display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px;
    padding: 20px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); box-shadow: var(--sh-1);
}
.job-preview-card:hover { border-color: var(--line-2); box-shadow: var(--sh-2); transform: translateY(-2px); }
.job-preview-card strong { color: var(--ink-900); letter-spacing: -0.01em; }
.job-preview-card p { margin: 3px 0 0; color: var(--ink-500); font-size: 0.88rem; }

/* =======================================================  AUTH SPLIT  ==== */
.auth-split { display: grid; grid-template-columns: 1.02fr .98fr; gap: 28px; align-items: stretch; }
.auth-aside {
    position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between;
    gap: 38px; padding: 46px; border-radius: var(--r-xl); color: var(--ink-700);
    border: 1px solid var(--line);
    background:
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px) 0 0 / 44px 44px,
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px) 0 0 / 44px 44px,
        radial-gradient(440px 320px at 30% 0%, rgba(60, 203, 210, 0.14), transparent 70%),
        #0b121c;
    box-shadow: var(--sh-3);
}
.auth-aside .site-logo { color: #fff; position: relative; z-index: 1; }
.auth-aside .site-logo__word { color: #fff; }
.auth-aside h2 { position: relative; z-index: 1; margin: 0 0 14px; font-family: var(--serif); color: #fff; font-size: clamp(1.9rem, 3vw, 2.6rem); font-weight: 700; letter-spacing: -0.01em; line-height: 1.1; }
.auth-aside p { margin: 0; color: var(--ink-600); }
.auth-points { position: relative; z-index: 1; display: grid; gap: 15px; margin: 0; padding: 0; list-style: none; }
.auth-points li { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start; color: var(--ink-700); font-size: 0.96rem; }
.auth-points li span { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 7px; color: var(--brand-bright); background: var(--brand-soft); border: 1px solid var(--brand-border); font-size: 0.78rem; font-weight: 700; }
.auth-main { align-self: center; width: 100%; }
.auth-main .form-card { max-width: none; }
.auth-alt { margin-top: 18px; color: var(--ink-500); font-size: 0.92rem; }
.auth-alt a { color: var(--brand-bright); font-weight: 600; }

/* =======================================================  COMMAND CENTER = */
.cc-priority { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; margin-bottom: 28px; }
.cc-priority-card {
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    padding: 24px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--sh-1);
}
.cc-priority-card.is-actionable {
    border-color: var(--warning-border);
    background: linear-gradient(180deg, rgba(226, 182, 87, 0.06), transparent 60%), var(--surface);
}
.cc-priority-card .cc-count { font-family: var(--serif); font-size: 2.3rem; font-weight: 700; line-height: 1; color: var(--ink-900); }
.cc-priority-card.is-actionable .cc-count { color: var(--warning); }
.cc-priority-card h3 { margin: 0 0 4px; font-size: 1rem; }
.cc-priority-card p { margin: 0; color: var(--ink-500); font-size: 0.88rem; }

.cc-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 18px; align-items: start; }
.feed-item { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; padding: 15px 0; border-top: 1px solid var(--line); }
.feed-item:first-of-type { border-top: 0; padding-top: 0; }
.feed-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand-bright); box-shadow: 0 0 0 4px var(--brand-soft); }
.feed-item strong { color: var(--ink-900); font-weight: 600; font-size: 0.94rem; }
.feed-item p { margin: 2px 0 0; color: var(--ink-500); font-size: 0.85rem; }
.feed-item time { color: var(--ink-400); font-size: 0.8rem; white-space: nowrap; }

@media (max-width: 920px) {
    .auth-split { grid-template-columns: 1fr; }
    .auth-aside { display: none; }
    .cc-grid { grid-template-columns: 1fr; }
}

/* =======================================================  BRAND BAND  ==== */
.brand-band {
    position: relative; overflow: hidden; margin-top: 110px; padding: 88px 32px; text-align: center;
    border-radius: var(--r-xl); color: var(--ink-700); border: 1px solid var(--line);
    background:
        radial-gradient(680px 320px at 50% -10%, rgba(60, 203, 210, 0.18), transparent 70%),
        #0a111b;
    box-shadow: var(--sh-3);
}
.brand-band::before {
    content: ""; position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
    background-size: 58px 58px;
    mask-image: radial-gradient(circle at 50% 40%, #000 0%, transparent 72%);
    -webkit-mask-image: radial-gradient(circle at 50% 40%, #000 0%, transparent 72%);
}
.brand-band > * { position: relative; z-index: 1; }
.brand-band__mono {
    display: inline-grid; place-items: center; width: 96px; height: 96px; margin: 0 auto 28px;
    border-radius: 22px; border: 1px solid var(--line-2); background: var(--surface-3); color: #fff;
    font-family: var(--serif); font-size: 2.7rem; font-weight: 700; letter-spacing: -0.04em;
}
.brand-band__word { margin: 0 0 16px; font-family: var(--serif); font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: #fff; }
.brand-band__tagline { margin: 0 auto; max-width: 44ch; color: var(--ink-500); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.34em; text-transform: uppercase; }
.brand-band__powered { margin: 36px 0 0; color: var(--ink-400); font-size: 0.68rem; letter-spacing: 0.32em; text-transform: uppercase; }
.brand-band__powered strong { display: block; margin-top: 8px; font-family: var(--serif); font-size: 1.15rem; font-weight: 700; letter-spacing: 0.1em; color: var(--ink-700); }
.brand-band__cta { display: inline-flex; gap: 12px; margin-top: 36px; flex-wrap: wrap; justify-content: center; }

@media (max-width: 760px) {
    .brand-band { margin-top: 76px; padding: 60px 22px; }
    .brand-band__mono { width: 78px; height: 78px; font-size: 2.1rem; }
}

/* =======================================================  ERROR PAGE  ==== */
.error-page {
    max-width: 620px;
    margin-inline: auto;
    padding: 64px 0 72px;
    text-align: center;
}
.error-page .eyebrow { justify-content: center; }
.error-page h1 {
    margin: 0 0 14px;
    font-family: var(--serif);
    font-size: clamp(2.2rem, 5vw, 3.2rem);
    color: var(--ink-900);
}
.error-page p { margin: 0 auto 26px; max-width: 46ch; color: var(--ink-500); }
.error-page .dashboard-actions { justify-content: center; flex-wrap: wrap; margin-bottom: 0; }

/* Stylised error glyph (big code + halo) */
.error-glyph {
    position: relative;
    width: 200px;
    height: 200px;
    margin: 0 auto 18px;
    display: grid;
    place-items: center;
}
.error-glyph__code {
    position: relative;
    z-index: 2;
    font-family: var(--serif);
    font-weight: 700;
    font-size: clamp(4.4rem, 13vw, 6.6rem);
    line-height: 1;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, var(--brand-bright, #3ccbd2), var(--ink-900));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}
.error-glyph__ring {
    position: absolute;
    inset: 24px;
    border-radius: 50%;
    border: 1px solid color-mix(in srgb, var(--brand-bright, #3ccbd2) 38%, transparent);
    opacity: 0.7;
}
.error-glyph__ring--2 {
    inset: 2px;
    border-style: dashed;
    border-color: color-mix(in srgb, var(--brand-bright, #3ccbd2) 20%, transparent);
    animation: error-spin 26s linear infinite;
}
.error-glyph::after {
    content: "";
    position: absolute;
    inset: 30px;
    border-radius: 50%;
    background: radial-gradient(circle, color-mix(in srgb, var(--brand-bright, #3ccbd2) 22%, transparent), transparent 70%);
    filter: blur(6px);
    z-index: 1;
}
@keyframes error-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
    .error-glyph__ring--2 { animation: none; }
}

/* Inline job search on the 404 */
.error-search { margin: 0 auto 26px; max-width: 480px; }
.error-search__hint {
    display: block;
    margin-bottom: 10px;
    font-size: 0.92rem;
    color: var(--ink-500);
}
.error-search__row { display: flex; gap: 8px; }
.error-search__row input {
    flex: 1;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: var(--surface, var(--bg));
    color: var(--ink-900);
    font: inherit;
}
.error-search__row input:focus {
    outline: none;
    border-color: var(--brand-bright, #3ccbd2);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand-bright, #3ccbd2) 25%, transparent);
}
.error-search__row .button { white-space: nowrap; }

/* =======================================================  FOOTER  ======== */
.site-footer { padding: 40px 0; border-top: 1px solid var(--line); background: var(--bg); }
.site-footer__inner { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px; }
.site-logo-footer { margin: 0; }
.footer-tagline { margin: 0; color: var(--ink-500); font-size: 0.88rem; }
.footer-nav { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px 18px; }
.footer-nav a { color: var(--ink-500); font-size: 0.9rem; }
.footer-nav a:hover { color: var(--ink-900); }
.footer-nav__dot { width: 4px; height: 4px; border-radius: 50%; background: var(--line-2); }

/* =======================================================  MOTION  ======== */
.has-js [data-reveal] {
    opacity: 0; transform: translateY(16px);
    transition: opacity var(--t-slow) var(--ease-out), transform var(--t-slow) var(--ease-out); will-change: opacity, transform;
}
.has-js [data-reveal].is-visible { opacity: 1; transform: none; }
[data-reveal][data-delay="1"] { transition-delay: 70ms; }
[data-reveal][data-delay="2"] { transition-delay: 140ms; }
[data-reveal][data-delay="3"] { transition-delay: 210ms; }
[data-reveal][data-delay="4"] { transition-delay: 280ms; }

.toast-stack { position: fixed; inset-inline-end: 20px; bottom: 20px; z-index: 200; display: grid; gap: 10px; max-width: 360px; }
.toast {
    display: flex; align-items: flex-start; gap: 10px; padding: 14px 16px;
    border: 1px solid var(--line-2); border-inline-start: 3px solid var(--brand-bright); border-radius: var(--r);
    background: var(--surface); box-shadow: var(--sh-3); animation: toast-in var(--t-slow) var(--ease-out);
}
.toast.is-success { border-inline-start-color: var(--success); }
.toast.is-error { border-inline-start-color: var(--danger); }
.toast strong { display: block; font-size: 0.92rem; color: var(--ink-900); }
@keyframes toast-in { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }

/* =======================================================  RESPONSIVE  ==== */
@media (max-width: 920px) {
    .hero-section { grid-template-columns: 1fr; }
    .hero-copy h1 { max-width: 18ch; }
    .hero-visual { min-height: 380px; }
    .feature-grid { grid-template-columns: 1fr; }
    .feature-card p { min-height: auto; }
}

@media (max-width: 760px) {
    .container { width: min(calc(100% - 28px), var(--content)); }
    .site-header__inner { min-height: 62px; }
    .nav-toggle { display: block; }
    .site-nav {
        position: absolute; top: calc(100% + 8px); inset-inline: 14px; display: none; gap: 6px;
        padding: 12px; border: 1px solid var(--line-2); border-radius: var(--r); background: rgba(12, 19, 29, 0.98); box-shadow: var(--sh-3);
    }
    .site-nav.is-open { display: grid; animation: toast-in var(--t) var(--ease-out); }
    .site-nav .nav-link { padding: 11px 12px; }
    .site-nav .button { width: 100%; }
    .role-chip { width: fit-content; margin: 6px 0; }
    main { padding: 40px 0 68px; }
    .hero-section { gap: 36px; }
    .hero-search { grid-template-columns: 1fr; }
    .hero-search .button { width: 100%; }
    .hero-visual { min-height: 320px; border-radius: var(--r-lg); }
    .hero-feature-main { top: 44px; inset-inline: 18px; }
    .hero-feature-float { inset-inline-end: 14px; bottom: 16px; inset-inline-start: 44px; }
    .hero-mock { display: none; }
    .home-stats { grid-template-columns: 1fr; }
    .home-stats div { padding: 16px 0; border-inline-end: 0; border-bottom: 1px solid var(--line); }
    .home-stats div:last-child { border-bottom: 0; }
    .home-section { padding-top: 76px; }
    .job-preview-grid { grid-template-columns: 1fr; }
    .job-preview-card { grid-template-columns: auto 1fr; }
    .job-preview-card .status-pill { grid-column: 2; width: fit-content; }
    .form-card, .list-card { padding: 22px; }
    .section-heading { align-items: flex-start; flex-direction: column; }
    .toast-stack { inset-inline: 12px; bottom: 12px; max-width: none; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        scroll-behavior: auto !important;
        animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important;
    }
    .has-js [data-reveal] { opacity: 1; transform: none; }
}

/* Password field with show/hide toggle */
.input-wrap { position: relative; display: block; }
.input-wrap > input { width: 100%; padding-inline-end: 48px; }
.pw-toggle {
    position: absolute; top: 50%; inset-inline-end: 6px; transform: translateY(-50%);
    display: grid; place-items: center; width: 36px; height: 36px;
    padding: 0; border: 0; background: transparent; cursor: pointer;
    color: var(--ink-500); border-radius: 8px; transition: color .15s ease, background .15s ease;
}
.pw-toggle:hover { color: var(--brand-bright); background: var(--brand-soft); }
.pw-toggle:focus-visible { outline: 2px solid var(--brand-bright); outline-offset: 2px; }
.pw-toggle svg { display: block; }
.pw-toggle .pw-eye-off { display: none; }
.input-wrap.show-pw .pw-eye { display: none; }
.input-wrap.show-pw .pw-eye-off { display: block; }

/* Notifications bell + center */
.nav-bell { position: relative; display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 9px; color: var(--ink-600); }
.nav-bell:hover, .nav-bell:focus-visible { color: var(--brand-bright); background: var(--brand-soft); }
.nav-bell svg { display: block; }
.nav-bell__badge {
    position: absolute; top: 3px; inset-inline-end: 3px; min-width: 17px; height: 17px; padding: 0 4px;
    display: grid; place-items: center; border-radius: 999px;
    background: var(--danger, #ef7468); color: #fff; font-size: 0.66rem; font-weight: 800; line-height: 1;
    border: 2px solid var(--surface, #0f1722);
}
.notif-link { display: block; color: inherit; text-decoration: none; }
.notif-row { display: flex; gap: 14px; align-items: flex-start; padding: 14px 4px; border-top: 1px solid var(--line, #18222f); }
.notif-row:first-child { border-top: 0; }
.notif-link:hover .notif-row { background: var(--brand-soft); border-radius: 8px; }
.notif-row.is-unread { background: var(--brand-soft); border-radius: 8px; }
.notif-icon { font-size: 1.1rem; line-height: 1.4; }
.notif-body { flex: 1; }
.notif-body strong { display: block; color: var(--ink-800, #e7edf5); }
.notif-body p { margin: 2px 0 0; color: var(--ink-600); font-size: 0.9rem; }
.notif-body time { display: block; margin-top: 4px; color: var(--ink-500); font-size: 0.78rem; }

/* Messaging thread */
.chat-thread { display: flex; flex-direction: column; gap: 12px; max-height: 56vh; overflow-y: auto; }
.chat-msg { max-width: 78%; display: flex; flex-direction: column; gap: 3px; }
.chat-msg.is-mine { align-self: flex-end; align-items: flex-end; }
.chat-msg.is-theirs { align-self: flex-start; align-items: flex-start; }
.chat-bubble { padding: 10px 14px; border-radius: 14px; font-size: 0.92rem; line-height: 1.45; }
.chat-msg.is-mine .chat-bubble { background: var(--brand); color: #fff; border-bottom-right-radius: 4px; }
.chat-msg.is-theirs .chat-bubble { background: var(--surface-3, #18222f); color: var(--ink-800, #e7edf5); border-bottom-left-radius: 4px; }
.chat-msg time { font-size: 0.72rem; color: var(--ink-500); }
.chat-composer { margin-top: 16px; max-width: none; }

/* Google sign-in button + divider */
.button-google {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px; width: 100%;
    background: #ffffff; color: #1f2733; border: 1px solid #dadce0; font-weight: 600;
}
.button-google:hover, .button-google:focus-visible { background: #f5f6f8; color: #1f2733; box-shadow: var(--sh-2); transform: translateY(-1px); }
.button-google svg { display: block; }
.oauth-divider { display: flex; align-items: center; gap: 12px; margin: 16px 0; color: var(--ink-500); font-size: 0.82rem; }
.oauth-divider::before, .oauth-divider::after { content: ""; flex: 1; height: 1px; background: var(--line, #18222f); }

/* Public company page */
.company-hero { display: flex; gap: 20px; align-items: center; }
.company-logo { width: 84px; height: 84px; border-radius: 14px; object-fit: cover; background: #fff; flex-shrink: 0; }
.company-logo--placeholder { display: grid; place-items: center; font-size: 2rem; font-weight: 800; color: #fff; background: var(--brand); }

/* Personalised company banner (image, or auto gradient fallback) */
.company-banner {
    height: 180px; border-radius: var(--r-md, 16px) var(--r-md, 16px) 0 0;
    background-size: cover; background-position: center; background-repeat: no-repeat;
}
.company-hero--bannered { border-top-left-radius: 0; border-top-right-radius: 0; margin-top: -1px; }
.job-banner {
    position: relative; height: 150px; border-radius: var(--r-md, 16px);
    background-size: cover; background-position: center; background-repeat: no-repeat;
    margin-bottom: 44px;
}
.job-banner__logo {
    position: absolute; inset-inline-start: 24px; bottom: -28px; width: 88px; height: 88px;
    border-radius: 16px; object-fit: cover; background: #fff;
    border: 3px solid #fff; box-shadow: 0 4px 14px rgba(16,42,67,.18);
}
.job-banner__logo--placeholder { display: grid; place-items: center; font-size: 2rem; font-weight: 800; color: #fff; background: var(--brand); }
.jobcat-head--bannered { margin-top: 8px; }
.banner-preview {
    height: 120px; border-radius: 12px; margin: 8px 0 0;
    background-size: cover; background-position: center; border: 1px solid var(--line);
}
/* Logo / banner cropper widget on the company profile */
.img-cropper { margin: 4px 0 2px; }
.img-cropper__preview {
    background-size: cover; background-position: center; background-repeat: no-repeat;
    background-color: var(--surface-3, #eef1f5); border: 1px solid var(--line);
    border-radius: 12px; display: grid; place-items: center; color: var(--ink-600, #64748b);
    font-size: .85rem; text-align: center; padding: 8px;
}
.img-cropper__preview--logo { width: 120px; height: 120px; border-radius: 16px; }
.img-cropper__preview--banner { width: 100%; height: 150px; }
.img-cropper__actions { display: flex; gap: 10px; margin-top: 10px; flex-wrap: wrap; }
.img-cropper__pick { cursor: pointer; }
.img-cropper__pick input { position: absolute; width: 1px; height: 1px; opacity: 0; }

/* ---- Premium / featured employer styling (gold shine) ---- */
.premium-badge, .featured-badge {
    display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px;
    border-radius: 999px; font-size: .72rem; font-weight: 800; letter-spacing: .03em;
    color: #5a3d00; background: linear-gradient(120deg, #ffe6a0, #e6a72c);
    border: 1px solid #c8881a; white-space: nowrap; vertical-align: middle;
}
.list-card--premium {
    position: relative; border: 1.5px solid #e0b23a;
    box-shadow: 0 6px 24px rgba(212,160,30,.25); overflow: hidden;
}
/* moving light sweep = the "shine" */
.list-card--premium::before {
    content: ''; position: absolute; top: 0; left: -60%; width: 38%; height: 100%;
    background: linear-gradient(100deg, transparent, rgba(255,216,120,.45), transparent);
    transform: skewX(-18deg); pointer-events: none;
    animation: premium-shine 3.6s ease-in-out infinite;
}
@keyframes premium-shine { 0% { left: -60%; } 55%, 100% { left: 130%; } }
.featured-badge--corner { position: absolute; top: 12px; inset-inline-end: 12px; z-index: 2; box-shadow: 0 2px 10px rgba(184,134,11,.35); }
.job-company-logo--lg { width: 72px; height: 72px; }
.featured-badge--lg { font-size: .82rem; padding: 5px 14px; }
.job-banner--premium { box-shadow: inset 0 0 0 2px #e0b23a; }
.job-banner .featured-badge { position: absolute; top: 14px; inset-inline-end: 16px; box-shadow: 0 2px 8px rgba(0,0,0,.2); }
.job-banner__logo--lg { width: 104px; height: 104px; bottom: -32px; }
@media (prefers-reduced-motion: reduce) { .list-card--premium::before { animation: none; display: none; } }

/* ---- Urgent hiring badge (red, gently pulsing) ---- */
.urgent-badge {
    display: inline-flex; align-items: center; gap: 5px; padding: 4px 11px;
    border-radius: 999px; font-size: .76rem; font-weight: 800; letter-spacing: .02em;
    color: #fff; background: linear-gradient(120deg, #ef4444, #b91c1c);
    border: 1px solid #991b1b; white-space: nowrap; vertical-align: middle;
    box-shadow: 0 0 0 0 rgba(239,68,68,.5); animation: urgent-pulse 1.8s ease-out infinite;
}
.urgent-badge--lg { font-size: .85rem; padding: 5px 14px; }
@keyframes urgent-pulse {
    0% { box-shadow: 0 0 0 0 rgba(239,68,68,.45); }
    70% { box-shadow: 0 0 0 8px rgba(239,68,68,0); }
    100% { box-shadow: 0 0 0 0 rgba(239,68,68,0); }
}
@media (prefers-reduced-motion: reduce) { .urgent-badge { animation: none; } }
@media (max-width: 640px) {
    .company-banner { height: 120px; }
    .job-banner { height: 110px; }
}
.job-list-head { display: flex; align-items: flex-start; gap: 18px; }
.job-list-head > div { min-width: 0; }
.job-company-logo {
    width: 64px; height: 64px; border-radius: 14px; object-fit: cover; flex-shrink: 0;
    background: #fff; border: 1px solid var(--line); box-shadow: var(--sh-1);
}
.job-company-logo--placeholder {
    display: grid; place-items: center; color: #fff; background: var(--brand);
    font-size: 1.25rem; font-weight: 800;
}

@media (max-width: 560px) {
    .job-list-head { gap: 13px; }
    .job-company-logo { width: 52px; height: 52px; border-radius: 12px; }
}
.company-hero__body h1 { margin: 6px 0 4px; }
.company-meta { color: var(--ink-600); margin: 0 0 6px; }

/* CV photo cropper */
.photo-cropper__row { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.photo-frame { width: 110px; height: 110px; overflow: hidden; background: var(--surface-2, #0c131d); border: 1px solid var(--line, #18222f); display: grid; place-items: center; flex-shrink: 0; }
.photo-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-frame__empty { color: var(--ink-500); font-size: .78rem; }
.photo-frame.shape-circle { border-radius: 50%; }
.photo-frame.shape-square { border-radius: 6px; }
.photo-frame.shape-rounded { border-radius: 22px; }
.photo-frame.shape-oval { width: 98px; height: 122px; border-radius: 50%; }
.photo-frame.shape-free { border-radius: 6px; }
.photo-cropper__side { display: flex; flex-direction: column; gap: 8px; }
.shape-picker { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.shape-btn { display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border: 1px solid var(--line, #18222f); background: var(--surface-2, #0c131d); color: var(--ink-600); border-radius: 9px; cursor: pointer; font-size: .85rem; transition: border-color .15s, color .15s, background .15s; }
.shape-btn:hover { border-color: var(--brand-bright, #3ccbd2); color: var(--ink-800, #e7edf5); }
.shape-btn.is-active { border-color: var(--brand-bright, #3ccbd2); color: var(--brand-bright, #3ccbd2); background: var(--brand-soft, rgba(60,203,210,.12)); }
.shape-swatch { width: 18px; height: 18px; background: currentColor; opacity: .6; display: inline-block; }
.shape-swatch.shape-circle { border-radius: 50%; }
.shape-swatch.shape-square { border-radius: 2px; }
.shape-swatch.shape-rounded { border-radius: 6px; }
.shape-swatch.shape-oval { width: 15px; height: 19px; border-radius: 50%; }
.shape-swatch.shape-free { border-radius: 2px; clip-path: polygon(0 0, 100% 0, 100% 70%, 70% 100%, 0 100%); }

.crop-modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; background: rgba(4,8,14,.8); padding: 16px; }
.crop-modal[hidden] { display: none; }
.crop-modal__dialog { width: min(560px, 100%); background: var(--surface, #0f1722); border: 1px solid var(--line, #18222f); border-radius: 16px; padding: 22px; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.crop-modal__dialog h3 { margin: 0 0 14px; color: var(--ink-900, #f4f7fb); }
.crop-modal__stage { height: 340px; max-height: 50vh; background: #0b121c; border-radius: 10px; overflow: hidden; }
.crop-modal__stage img { max-width: 100%; display: block; }
.crop-modal__controls { display: flex; gap: 18px; flex-wrap: wrap; margin: 16px 0; }
.crop-modal__controls label { display: flex; align-items: center; gap: 10px; color: var(--ink-600); font-size: .85rem; flex: 1 1 200px; }
.crop-modal__controls input[type=range] { flex: 1; accent-color: var(--brand-bright, #3ccbd2); }
.crop-modal__foot { display: flex; justify-content: flex-end; gap: 10px; }

/* ===================== Employer dashboard 10x ===================== */
.emp-dash-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.emp-dash-head h1 { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.stat-card--accent { background: linear-gradient(135deg, var(--brand, #15838c), #0f6770); color: #fff; }
.stat-card--accent .stat-label { color: rgba(255,255,255,.85); }

.emp-dash-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 20px; margin-top: 22px; align-items: start; }
.emp-card-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.emp-card-head h2 { margin: 0; font-size: 1.1rem; }
.emp-card-head a { font-size: .85rem; text-decoration: none; color: var(--brand, #15838c); font-weight: 600; }
.emp-empty { color: var(--ink-600, #64748b); font-size: .92rem; }

.emp-applicant-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.emp-applicant { display: flex; align-items: center; gap: 12px; padding: 9px 8px; border-radius: 10px; text-decoration: none; color: inherit; transition: background .15s; }
.emp-applicant:hover { background: var(--surface-3, #f1f5f9); }
.emp-avatar { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; color: #fff; background: var(--brand, #15838c); flex-shrink: 0; }
.emp-applicant-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.emp-applicant-body strong { font-size: .95rem; }
.emp-applicant-meta { font-size: .8rem; color: var(--ink-600, #64748b); }
.emp-score { font-size: .8rem; font-weight: 800; color: var(--brand, #15838c); }

.pipe-shortlisted { background: var(--success-soft); color: var(--success); border-color: var(--success-border); }
.pipe-interview_scheduled, .pipe-interview_completed { background: var(--info-soft); color: var(--info); border-color: rgba(107,166,234,.3); }
.pipe-hired { background: var(--success-soft); color: var(--success); border-color: var(--success-border); }
.pipe-rejected, .pipe-archived { background: var(--surface-3); color: var(--ink-500); border-color: var(--line); }

.emp-plan--free { border: 1.5px solid #e0b23a; }
.emp-plan-line { margin: 0 0 10px; font-size: .92rem; }
.emp-plan-sub { margin: 14px 0 8px; font-weight: 700; font-size: .9rem; }
.emp-slot-bar { height: 8px; border-radius: 999px; background: var(--surface-3, #eef1f5); overflow: hidden; margin-bottom: 6px; }
.emp-slot-bar span { display: block; height: 100%; background: linear-gradient(90deg, #e6a72c, #c8881a); }
.emp-perks { list-style: none; margin: 6px 0 14px; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.emp-perks li { display: flex; gap: 10px; font-size: .86rem; line-height: 1.4; align-items: flex-start; }
.emp-perk-ico { flex-shrink: 0; width: 22px; text-align: center; }
.emp-upgrade { width: 100%; text-align: center; }

.emp-perf { margin-top: 20px; }
.emp-perf-table { width: 100%; border-collapse: collapse; }
.emp-perf-table th { text-align: start; font-size: .74rem; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-600, #94a3b8); padding: 6px 10px; border-bottom: 1px solid var(--line, #e5e7eb); }
.emp-perf-table td { padding: 11px 10px; border-bottom: 1px solid var(--line, #eef1f5); font-size: .9rem; }
.emp-perf-table tr:last-child td { border-bottom: 0; }
.button-sm { padding: 5px 12px; font-size: .82rem; }

/* Premium lock (talent search teaser) */
.button-lg { padding: 14px 30px; font-size: 1.02rem; }
.premium-lock {
    text-align: center; max-width: 580px; margin: 34px auto; padding: 44px 38px;
    border: 1px solid rgba(234,179,74,.3); border-radius: var(--r-xl);
    background: radial-gradient(560px 260px at 50% -10%, rgba(234,179,74,.14), transparent 70%), var(--surface);
    box-shadow: var(--sh-3);
}
.premium-lock__badge { display: inline-block; background: linear-gradient(120deg, #ffe6a0, #e0a72c); color: #3a2900; font-weight: 800; font-size: .74rem; letter-spacing: .04em; text-transform: uppercase; padding: 6px 15px; border-radius: 999px; margin-bottom: 16px; box-shadow: 0 6px 16px rgba(224,167,44,.3); }
.premium-lock h2 { margin: 0 0 12px; font-family: var(--serif); color: var(--ink-900); }
.premium-lock p { color: var(--ink-500); margin: 0 0 24px; }

@media (max-width: 820px) { .emp-dash-grid { grid-template-columns: 1fr; } }
@media (max-width: 640px) {
    .emp-perf-table thead { display: none; }
    .emp-perf-table tr { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 10px 0; border-bottom: 1px solid var(--line, #eef1f5); }
    .emp-perf-table td { border: 0; padding: 2px 6px; }
    .emp-perf-table td::before { content: attr(data-label) ": "; font-weight: 700; color: var(--ink-600, #64748b); }
    .emp-perf-table td:last-child::before { content: ""; }
}

/* ===================== Plans & pricing / comparison ===================== */
.plan-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; max-width: 780px; margin: 10px auto 44px; }
.plan-card { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 32px; background: var(--surface); box-shadow: var(--sh-1); display: flex; flex-direction: column; position: relative; }
.plan-card h2 { margin: 0 0 4px; font-family: var(--serif); font-size: 1.5rem; }
.plan-card--featured { border: 1px solid rgba(234,179,74,.4); background: radial-gradient(420px 220px at 50% -12%, rgba(234,179,74,.13), transparent 70%), var(--surface); box-shadow: 0 24px 60px -30px rgba(234,179,74,.55); }
.plan-ribbon { position: absolute; top: -12px; inset-inline-end: 20px; background: linear-gradient(120deg, #ffe6a0, #e0a72c); color: #3a2900; font-weight: 800; font-size: .68rem; letter-spacing: .05em; text-transform: uppercase; padding: 5px 13px; border-radius: 999px; box-shadow: 0 6px 16px rgba(224,167,44,.32); }
.plan-price { font-size: 1rem; margin: 8px 0 6px; color: var(--ink-500); }
.plan-price span { font-family: var(--serif); font-size: 2.7rem; font-weight: 700; color: var(--ink-900); letter-spacing: -0.015em; }
.plan-tag { font-size: .9rem; color: var(--ink-500); margin: 0 0 20px; min-height: 20px; }
.plan-tag strong { color: #f3d28a; }
.plan-list { list-style: none; padding: 0; margin: 0 0 22px; display: flex; flex-direction: column; gap: 11px; font-size: .92rem; flex: 1; color: var(--ink-700); }
.plan-list .muted { color: var(--ink-400); }

.compare-title { text-align: center; margin: 16px 0 20px; font-family: var(--serif); font-size: clamp(1.6rem, 3vw, 2.2rem); }
.compare-wrap { max-width: 780px; margin: 0 auto 44px; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sh-1); }
.compare-table { width: 100%; border-collapse: collapse; background: var(--surface); }
.compare-table th, .compare-table td { padding: 15px 20px; text-align: start; border-bottom: 1px solid var(--line); font-size: .92rem; color: var(--ink-700); }
.compare-table thead th { background: var(--surface-2); font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-500); }
.compare-table th.is-prem, .compare-table td.is-prem { background: rgba(234,179,74,.06); text-align: center; font-weight: 600; color: var(--ink-900); }
.compare-table thead th.is-prem { color: #f3d28a; }
.compare-table td:nth-child(2) { text-align: center; }
.compare-table tr:last-child td { border-bottom: 0; }
.cmp-yes { color: var(--success); font-weight: 800; }
.cmp-no { color: var(--ink-400); }

.upgrade-contact { max-width: 660px; margin: 0 auto 28px; text-align: center; padding: 38px; border: 1px solid rgba(234,179,74,.3); border-radius: var(--r-xl); background: radial-gradient(560px 260px at 50% -10%, rgba(234,179,74,.12), transparent 70%), var(--surface); box-shadow: var(--sh-2); }
.upgrade-contact h2 { margin: 0 0 8px; font-family: var(--serif); color: var(--ink-900); }
.upgrade-contact p { color: var(--ink-500); }
.upgrade-contact__methods { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin: 22px 0 4px; }
.contact-pill { display: inline-flex; align-items: center; gap: 12px; padding: 11px 22px 11px 13px; border-radius: var(--r-lg); background: linear-gradient(180deg, var(--surface-3), var(--surface-2)); border: 1px solid var(--line-2); color: var(--ink-800); text-align: start; box-shadow: 0 1px 2px rgba(0,0,0,.28); transition: border-color var(--t) var(--ease), transform var(--t) var(--ease), box-shadow var(--t) var(--ease); }
.contact-pill:hover { border-color: var(--brand-border); transform: translateY(-2px); box-shadow: 0 14px 28px -14px rgba(60,203,210,.55); }
.contact-pill__icon { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: var(--brand-soft); border: 1px solid var(--brand-border); font-size: 1.15rem; line-height: 1; flex: none; }
.contact-pill__text { display: flex; flex-direction: column; gap: 1px; line-height: 1.25; min-width: 0; }
.contact-pill__label { font-size: .7rem; font-weight: 600; text-transform: uppercase; letter-spacing: .09em; color: var(--ink-500); }
.contact-pill__value { font-size: .96rem; font-weight: 700; color: var(--ink-900); }
.upgrade-cta { display: flex; gap: 14px; justify-content: center; align-items: center; flex-wrap: wrap; margin-top: 16px; }
.plan-pick { display: inline-flex; align-items: center; gap: 7px; font-size: .92rem; font-weight: 600; color: var(--ink-700); }
.upgrade-note { font-size: .8rem; color: var(--ink-400); margin: 14px 0 0; }

@media (max-width: 560px) {
    .compare-table thead { display: none; }
    .compare-table tr { display: grid; grid-template-columns: 1fr auto auto; gap: 6px; padding: 8px 0; }
    .compare-table td { border: 0; padding: 4px 10px; }
}

/* ===================== Home: For companies + premium showcase ===================== */
.company-feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 30px; }
.co-feature {
    padding: 30px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface);
    box-shadow: var(--sh-1); transition: transform var(--t) var(--ease), border-color var(--t), box-shadow var(--t);
}
.co-feature:hover { transform: translateY(-3px); border-color: var(--line-2); box-shadow: var(--sh-2); }
.co-ico { display: inline-grid; place-items: center; width: 48px; height: 48px; margin-bottom: 16px; border-radius: 13px; background: var(--brand-soft); border: 1px solid var(--brand-border); font-size: 1.45rem; }
.co-feature h3 { margin: 0 0 8px; font-size: 1.2rem; letter-spacing: -0.015em; }
.co-feature p { margin: 0; color: var(--ink-500); font-size: .92rem; line-height: 1.6; }

.premium-showcase {
    position: relative; overflow: hidden; border-radius: var(--r-xl); padding: 56px 46px;
    border: 1px solid rgba(234,179,74,.30);
    background:
        radial-gradient(720px 340px at 50% -12%, rgba(234,179,74,.16), transparent 70%),
        linear-gradient(180deg, #15120a 0%, #0a0f18 62%);
    box-shadow: var(--sh-3);
}
.premium-showcase::before {
    content: ""; position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
    background-size: 58px 58px;
    mask-image: radial-gradient(circle at 50% 26%, #000 0%, transparent 70%);
    -webkit-mask-image: radial-gradient(circle at 50% 26%, #000 0%, transparent 70%);
}
.premium-showcase > * { position: relative; z-index: 1; }
.premium-showcase__head { text-align: center; margin-bottom: 34px; }
.premium-showcase__head .premium-badge { margin-bottom: 18px; font-size: .76rem; padding: 5px 14px; }
.premium-showcase__head h3 { margin: 0 0 12px; font-family: var(--serif); font-size: clamp(2rem, 4.4vw, 3rem); font-weight: 700; letter-spacing: -0.015em; color: #fff; }
.premium-showcase__head p { margin: 0 auto; max-width: 56ch; color: var(--ink-500); }
.premium-showcase__head strong { color: #f3d28a; font-weight: 700; }
.premium-showcase__perks { list-style: none; padding: 0; margin: 0 auto 34px; max-width: 840px; display: grid; grid-template-columns: 1fr 1fr; gap: 20px 36px; }
.premium-showcase__perks li { display: flex; gap: 14px; align-items: flex-start; }
.premium-showcase__perks .ps-ico { flex-shrink: 0; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 9px; background: linear-gradient(135deg, #ffe6a0, #e0a72c); color: #3a2900; font-weight: 800; font-size: .95rem; box-shadow: 0 6px 16px rgba(224,167,44,.28); }
.premium-showcase__perks strong { color: var(--ink-900); font-weight: 700; }
.premium-showcase__perks li > span:last-child { color: var(--ink-500); font-size: .9rem; line-height: 1.55; }
.premium-showcase__cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.premium-showcase__cta .button:not(.button-secondary) { background: linear-gradient(120deg, #f3cf6b, #e0a72c); color: #2a1d00; border-color: transparent; }
.premium-showcase__cta .button:not(.button-secondary):hover { background: linear-gradient(120deg, #ffd87a, #eab23a); transform: translateY(-2px); }

@media (max-width: 880px) { .company-feature-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) {
    .company-feature-grid, .premium-showcase__perks { grid-template-columns: 1fr; }
    .premium-showcase { padding: 40px 24px; }
}

/* For-companies line icons + free lead */
.co-ico svg { width: 23px; height: 23px; color: var(--brand-bright); }
.section-lead { margin: 14px 0 0; max-width: 58ch; color: var(--ink-500); font-size: 1.02rem; line-height: 1.6; }
.section-lead strong { color: var(--ink-800); }
.premium-showcase__perks .ps-ico { font-size: .82rem; }

/* Premium vs Free listing preview */
.listing-demo { margin: 6px 0 38px; }
.listing-demo__intro { text-align: center; margin-bottom: 22px; }
.listing-demo__intro h3 { font-family: var(--serif); font-size: clamp(1.5rem, 3vw, 2.1rem); margin: 0 0 6px; color: var(--ink-900); }
.listing-demo__intro p { margin: 0; color: var(--ink-500); }
.listing-demo__cards { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; align-items: start; max-width: 940px; margin: 0 auto; }
.demo-col { display: flex; flex-direction: column; gap: 12px; }
.demo-tag { align-self: flex-start; font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-500); padding: 5px 13px; border: 1px solid var(--line-2); border-radius: var(--r-pill); }
.demo-tag--prem { color: #f3d28a; border-color: rgba(234,179,74,.45); background: rgba(234,179,74,.08); }
.demo-card { margin: 0; pointer-events: none; }
.demo-card h2 { font-size: 1.12rem; margin: 0 0 4px; color: var(--ink-900); }
.demo-card .job-list-head > div:last-child > p { color: var(--ink-500); margin: 0 0 10px; font-size: .9rem; }
@media (max-width: 760px) { .listing-demo__cards { grid-template-columns: 1fr; } }

/* ===================== Centering fix + mobile polish ===================== */
.page-heading.is-centered { margin-left: auto; margin-right: auto; text-align: center; }
/* clip (not hidden) keeps the sticky header working while killing any sideways zoom */
html { overflow-x: clip; }

@media (max-width: 540px) {
    .container { width: min(calc(100% - 24px), var(--content)); }
    .hero-copy h1 { font-size: clamp(2.05rem, 8.5vw, 2.7rem); max-width: 22ch; }
    .hero-lead { font-size: 1rem; }
    .section-heading h2 { font-size: clamp(1.6rem, 7vw, 2.1rem); }
    .section-lead { font-size: .96rem; }
    .premium-showcase { padding: 32px 18px; }
    .premium-showcase__head h3 { font-size: 1.7rem; }
    .premium-showcase__perks { gap: 14px; }
    .premium-showcase__cta { flex-direction: column; }
    .premium-showcase__cta .button { width: 100%; }
    .co-feature, .plan-card { padding: 24px; }
    .listing-demo__intro h3, .compare-title { font-size: 1.5rem; }
    .upgrade-contact, .premium-lock { padding: 30px 20px; }
    .compare-table th, .compare-table td { padding: 12px 14px; }
    .contact-pill { width: 100%; justify-content: flex-start; }
}

/* ===================== Premium analytics ===================== */
.analytics-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 22px; }
.chart-card { margin-bottom: 20px; }
.chart-sub { font-size: .8rem; color: var(--ink-500); }

/* Vertical bar chart — applicants over time */
.bar-chart { display: flex; align-items: flex-end; gap: 10px; height: 200px; padding-top: 10px; }
.bar-col { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 6px; min-width: 0; }
.bar-count { font-size: .78rem; font-weight: 700; color: var(--ink-700); }
.bar { width: 100%; max-width: 38px; border-radius: 7px 7px 3px 3px; background: linear-gradient(180deg, var(--brand-bright), var(--brand)); box-shadow: 0 6px 16px rgba(60,203,210,.18); transition: height var(--t-slow) var(--ease-out); }
.bar-label { font-size: .72rem; color: var(--ink-500); white-space: nowrap; }

/* Horizontal funnel / ranking bars */
.funnel { display: flex; flex-direction: column; gap: 11px; }
.funnel-row { display: grid; grid-template-columns: 132px 1fr 36px; align-items: center; gap: 12px; }
.funnel-label { font-size: .85rem; color: var(--ink-600); }
.funnel-label--wide { font-weight: 600; color: var(--ink-700); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.funnel-track { height: 12px; border-radius: 999px; background: var(--surface-3); overflow: hidden; }
.funnel-fill { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #e0a72c, #f3cf6b); transition: width var(--t-slow) var(--ease-out); }
.funnel-fill--teal { background: linear-gradient(90deg, var(--brand), var(--brand-bright)); }
.funnel-val { font-size: .85rem; font-weight: 800; color: var(--ink-800); text-align: end; }

@media (max-width: 820px) { .analytics-grid { grid-template-columns: 1fr; } }
@media (max-width: 540px) {
    .funnel-row { grid-template-columns: 96px 1fr 30px; gap: 8px; }
    .funnel-label { font-size: .78rem; }
    .bar-chart { gap: 5px; height: 170px; }
    .bar-label { font-size: .64rem; }
}

/* ===================================================== STATUS PILL COLORS = */
/* Application pipeline stages — one hue per stage so lists scan at a glance. */
.status-pill--review      { background: rgba(60, 203, 210, 0.10); color: #7fd9de; border-color: rgba(60, 203, 210, 0.25); }
.status-pill--shortlisted { background: rgba(93, 140, 248, 0.12); color: #a7bcfa; border-color: rgba(93, 140, 248, 0.28); }
.status-pill--interview   { background: rgba(155, 109, 240, 0.12); color: #c5aaf6; border-color: rgba(155, 109, 240, 0.28); }
.status-pill--offer       { background: rgba(224, 167, 44, 0.12); color: #ffe6a0; border-color: rgba(224, 167, 44, 0.3); }
.status-pill--hired       { background: rgba(46, 196, 122, 0.12); color: #8fe6b8; border-color: rgba(46, 196, 122, 0.3); }
.status-pill--rejected    { background: rgba(232, 93, 80, 0.1); color: #f0a89f; border-color: rgba(232, 93, 80, 0.26); }
.status-pill--closed      { background: var(--surface-3); color: var(--ink-400); border-color: var(--line); }

/* ===================================================== PROGRESS BAR ====== */
.progress-track {
    height: 8px; border-radius: 999px; background: var(--surface-3);
    border: 1px solid var(--line); overflow: hidden; margin-top: 10px;
}
.progress-fill {
    display: block; height: 100%; border-radius: 999px;
    background: linear-gradient(90deg, var(--brand), var(--brand-bright));
    transition: width .6s cubic-bezier(.16, 1, .3, 1);
}
.progress-fill--done { background: linear-gradient(90deg, #1d9e63, #2ec47a); }

/* Pipeline action group on applicant cards — reads as ONE compact stage selector,
   not 8 competing buttons. The current stage shows as active, not disabled-grey. */
.pipeline-actions {
    align-items: center; gap: 6px; padding: 12px 14px; margin-top: 2px;
    background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r);
}
.pipeline-actions .pipeline-actions__label {
    flex-basis: 100%; margin: 0 0 2px; font-size: 0.7rem; font-weight: 700;
    letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-400);
}
.pipeline-actions .button {
    min-height: 32px; padding: 6px 12px; font-size: 0.8rem; font-weight: 600;
    border-radius: var(--r-pill); background: var(--surface-3); border-color: var(--line);
    color: var(--ink-600); box-shadow: none;
}
.pipeline-actions .button:hover:not(:disabled) {
    background: var(--brand-soft); border-color: var(--brand-bright); color: var(--ink-900); transform: none;
}
/* Current stage: filled accent + check, communicating "you are here". */
.pipeline-actions .button:disabled {
    opacity: 1; cursor: default;
    background: var(--brand-bright); border-color: var(--brand-bright); color: #04222a; font-weight: 700;
}
.pipeline-actions .button:disabled::before { content: "✓ "; }

.label-hint { font-weight: 400; color: var(--ink-400); font-size: 0.82rem; }

/* Card action row: a compact, lighter button size for dense action clusters so the
   primary action (View CV) leads and the rest read as supporting controls. */
.inline-actions .button { min-height: 38px; padding: 8px 15px; font-size: 0.85rem; }

/* ===================================================== RTL / SORANI ====== */
/* Layout flips automatically via dir="rtl" + the logical properties above.
   Kurdish (Arabic script) needs a script-capable font; Playfair/Inter have no
   Arabic glyphs. We use Vazirmatn — a clean, highly legible Persian/Kurdish
   typeface. (Noto Kufi's decorative Kufi shapes mangle Kurdish letters such as
   پ / ۆ / ێ.) Letter-spacing must be 0: Arabic script is cursive and any
   tracking breaks the letter joins. */
[dir="rtl"] body { font-family: 'Vazirmatn', 'Inter', sans-serif; }
[dir="rtl"] { --serif: 'Vazirmatn', serif; }
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3,
[dir="rtl"] .eyebrow, [dir="rtl"] .stat-label,
[dir="rtl"] .site-logo__word { letter-spacing: 0; }

.lang-switch { display: inline-flex; align-items: center; gap: 2px; }
.lang-switch a {
    padding: 5px 9px; border-radius: var(--r-pill); font-size: 0.8rem; font-weight: 600;
    color: var(--ink-500); text-decoration: none;
}
.lang-switch a:hover { color: var(--ink-800); }
.lang-switch a.is-active { color: var(--brand-bright); background: rgba(60, 203, 210, 0.1); }

/* Kurdish-mode candidate profile: English LTR form + Kurdish guide alongside */
.profile-i18n-grid { display: grid; gap: 22px; align-items: start; }
@media (min-width: 980px) {
    .profile-i18n-grid { grid-template-columns: minmax(0, 1fr) 320px; }
    .profile-i18n-grid .profile-guide { position: sticky; top: 86px; order: 2; }
    .profile-i18n-grid .profile-form { order: 1; }
}
.profile-guide {
    padding: 22px 24px; border: 1px solid var(--line); border-radius: var(--r-lg);
    background: radial-gradient(420px 160px at 50% 0%, rgba(60, 203, 210, 0.06), transparent 70%), var(--surface-2);
}
.profile-guide h2 { margin: 0 0 8px; font-size: 1.05rem; color: var(--brand-bright); }
.profile-guide p { margin: 0 0 12px; color: var(--ink-600); font-size: .92rem; line-height: 1.7; }
.profile-guide ol { margin: 0 0 12px; padding-inline-start: 20px; display: grid; gap: 9px; }
.profile-guide li { color: var(--ink-600); font-size: .9rem; line-height: 1.7; }
.profile-guide__save { color: var(--ink-800); font-weight: 600; }

/* ===================================================== ABOUT + POWERED BY  */
.about-story { max-width: 760px; margin: 0 auto 40px; text-align: center; }
.about-story h2 { font-family: var(--serif); font-size: 1.5rem; margin: 0 0 14px; color: var(--ink-900); }
.about-story p { margin: 0 0 14px; color: var(--ink-600); line-height: 1.8; }

/* Footer credit: "Powered by We Manage" with a flowing gradient sheen */
.footer-powered {
    display: inline-flex; align-items: baseline; gap: 7px;
    font-size: 0.85rem; color: var(--ink-400);
}
.footer-powered:hover .powered-flow { animation-duration: 2.2s; }
.powered-flow {
    font-weight: 800; letter-spacing: 0.04em; font-size: 0.95rem;
    background: linear-gradient(110deg, var(--brand-bright) 20%, #ffe6a0 40%, #e0a72c 50%, #ffe6a0 60%, var(--brand-bright) 80%);
    background-size: 250% auto;
    -webkit-background-clip: text; background-clip: text;
    color: transparent; -webkit-text-fill-color: transparent;
    animation: powered-flow 4.5s linear infinite;
}
@keyframes powered-flow {
    from { background-position: 250% center; }
    to   { background-position: -250% center; }
}
@media (prefers-reduced-motion: reduce) {
    .powered-flow { animation: none; background-position: 50% center; }
}

/* ===================== Legal & help pages ===================== */
.legal-doc { max-width: 820px; margin: 0 auto; }
.legal-doc__meta { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; margin: 0 0 22px; font-size: .85rem; color: var(--ink-500); }
.legal-updated { display: inline-flex; align-items: center; gap: 7px; }
.legal-disclaimer { display: flex; gap: 12px; padding: 15px 18px; margin: 0 0 30px; border: 1px solid var(--brand-border); background: var(--brand-soft); border-radius: var(--r); color: var(--ink-700); font-size: .9rem; line-height: 1.65; }
.legal-disclaimer svg { flex: none; color: var(--brand-bright); margin-top: 2px; }
.legal-toc { margin: 0 0 34px; padding: 18px 22px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface-2); }
.legal-toc h2 { margin: 0 0 12px; font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; color: var(--ink-500); font-weight: 700; }
.legal-toc ol { margin: 0; padding-inline-start: 0; list-style: none; columns: 2; column-gap: 28px; }
.legal-toc li { margin: 0 0 9px; break-inside: avoid; }
.legal-toc a { color: var(--ink-700); font-size: .92rem; }
.legal-toc a:hover { color: var(--brand-bright); }
.legal-section { margin: 0 0 30px; scroll-margin-top: 90px; }
.legal-section h2 { font-family: var(--serif); font-size: 1.35rem; color: var(--ink-900); margin: 0 0 12px; }
.legal-section p { color: var(--ink-600); line-height: 1.8; margin: 0 0 12px; }
.legal-section ul { margin: 0 0 12px; padding-inline-start: 22px; color: var(--ink-600); line-height: 1.8; }
.legal-section li { margin: 0 0 6px; }
.legal-section a, .legal-contact a { color: var(--brand-bright); font-weight: 600; }
.legal-contact { margin-top: 10px; padding: 24px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface-2); }
.legal-contact h2 { font-family: var(--serif); margin: 0 0 8px; color: var(--ink-900); }
.legal-contact p { color: var(--ink-600); margin: 0 0 10px; line-height: 1.7; }

/* FAQ accordion */
.faq-list { max-width: 820px; margin: 0 auto; }
.faq-group { display: flex; flex-direction: column; gap: 12px; }
.faq-group__title { font-family: var(--serif); font-size: 1.25rem; color: var(--ink-900); margin: 30px 0 14px; }
.faq-item { border: 1px solid var(--line-2); border-radius: var(--r); background: var(--surface); overflow: hidden; transition: border-color var(--t) var(--ease); }
.faq-item[open] { border-color: var(--brand-border); }
.faq-item summary { list-style: none; cursor: pointer; padding: 16px 20px; font-weight: 600; color: var(--ink-900); display: flex; justify-content: space-between; align-items: center; gap: 14px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.3rem; line-height: 1; color: var(--brand-bright); flex: none; }
.faq-item[open] summary::after { content: "\2013"; }
.faq-item__a { padding: 0 20px 18px; color: var(--ink-600); line-height: 1.8; }
.faq-item__a p { margin: 0 0 10px; }
.faq-item__a p:last-child { margin: 0; }
.faq-item__a a { color: var(--brand-bright); font-weight: 600; }

.footer-copy { color: var(--ink-400); font-size: .82rem; }

@media (max-width: 560px) {
    .legal-toc ol { columns: 1; }
}

/* Locked (Premium-gated) message button — gold tint signals the upgrade path */
.button.is-locked {
    background: rgba(224, 167, 44, 0.12); color: #ffe6a0;
    border-color: rgba(224, 167, 44, 0.32);
}
.button.is-locked:hover { background: rgba(224, 167, 44, 0.2); border-color: rgba(224, 167, 44, 0.5); }

/* WhatsApp share button — official green, recognisable instantly */
.button-whatsapp {
    background: #25d366; color: #04340f; border-color: #25d366;
    display: inline-flex; align-items: center; gap: 8px;
}
.button-whatsapp:hover, .button-whatsapp:focus-visible {
    background: #1ebe57; border-color: #1ebe57; color: #04340f; transform: translateY(-1px);
}
.button-whatsapp svg { flex: none; }

/* Icon-only compact button (e.g. WhatsApp share on dense job cards) */
.button-icon {
    padding: 0; width: 40px; min-width: 40px; display: inline-flex;
    align-items: center; justify-content: center; gap: 0;
}
.button-icon svg { margin: 0; }

/* ============================================ COLLAPSIBLE JOB FILTER ====== */
.filter-bar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 18px; }
.filter-toggle { display: none; align-items: center; gap: 8px; }
.filter-toggle svg { flex: none; }
.has-js .filter-toggle { display: inline-flex; }            /* button only matters with JS */
.has-js .filter-form.is-collapsed { display: none; }        /* no-JS users keep the form visible */
.filter-toggle[aria-expanded="true"] {
    background: var(--brand-soft); border-color: var(--brand-bright); color: var(--ink-900);
}

/* ============================================ CV STATUS (profile) ========= */
.cv-status {
    padding: 16px 18px; margin: 4px 0 14px; border: 1px solid var(--line);
    border-radius: var(--r); background: var(--surface-2);
}
.cv-status__line { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin: 0; color: var(--ink-700); }
.cv-status__none { margin: 0; color: var(--ink-500); }
.cv-status .cv-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.cv-badge {
    display: inline-flex; align-items: center; padding: 3px 9px; border-radius: var(--r-pill);
    font-size: 0.72rem; font-weight: 800; letter-spacing: 0.04em;
    background: var(--surface-3); color: var(--ink-600); border: 1px solid var(--line);
}
.cv-badge--wr {
    background: linear-gradient(120deg, var(--brand), var(--brand-bright));
    color: #04222a; border-color: transparent;
}

/* ============================================ CANDIDATE DASHBOARD ========= */
.dash-grid { display: grid; gap: 18px; align-items: start; }
@media (min-width: 940px) {
    .dash-grid { grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); }
    .dash-side .list-card { position: relative; }
}
.dash-main, .dash-side { display: grid; gap: 18px; align-items: start; }
.stat-card .stat-sub { color: var(--ink-400); font-size: 0.78rem; margin-top: 2px; }
.setup-card .progress-track { margin: 4px 0 12px; }
.setup-card .section-heading { margin-bottom: 6px; }

/* ===================================================== HERO: MATCH ENGINE = */
/* "Active matchmaking hive mind" — a glowing match-engine core with a candidate
   and a verified role connected by flowing lines, floating analysis labels, and a
   match score that counts up. Calm, premium, alive. Honors prefers-reduced-motion. */

.hero-hint {
    display: inline-flex; align-items: center; gap: 8px; margin: 14px 0 0;
    color: var(--ink-400); font-size: 0.86rem;
}
.hero-hint svg { flex: none; color: var(--brand-bright); opacity: .85; }

.match-engine { position: absolute; inset: 0; z-index: 1; }

/* Live status pill */
.me-status {
    position: absolute; top: 20px; left: 50%; transform: translateX(-50%);
    display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px;
    border-radius: var(--r-pill); background: rgba(13, 19, 28, 0.82);
    border: 1px solid var(--line-2); color: var(--ink-700);
    font-size: 0.76rem; font-weight: 600; letter-spacing: 0.02em; white-space: nowrap;
    z-index: 6; box-shadow: var(--sh-2); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.me-status__dot {
    width: 8px; height: 8px; border-radius: 50%; background: var(--brand-bright);
    animation: me-live 2.4s ease-out infinite;
}
@keyframes me-live {
    0% { box-shadow: 0 0 0 0 rgba(60, 203, 210, 0.5); }
    70% { box-shadow: 0 0 0 9px rgba(60, 203, 210, 0); }
    100% { box-shadow: 0 0 0 0 rgba(60, 203, 210, 0); }
}

/* Connection lines (data flowing candidate -> core -> role) */
.me-lines { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.me-wire { fill: none; stroke: rgba(60, 203, 210, 0.16); stroke-width: 0.4; stroke-linecap: round; stroke-linejoin: round; }
.me-flow {
    fill: none; stroke: var(--brand-bright); stroke-width: 0.7; stroke-linecap: round; stroke-linejoin: round;
    stroke-dasharray: 3 73; stroke-dashoffset: 76; filter: drop-shadow(0 0 1.5px rgba(60, 203, 210, 0.9));
    animation: me-flow 3.4s linear infinite;
}
.me-flow--2 { animation-delay: 1.7s; opacity: .8; }
@keyframes me-flow { from { stroke-dashoffset: 76; } to { stroke-dashoffset: 0; } }

/* Central core */
.me-core { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 128px; height: 128px; display: grid; place-items: center; z-index: 4; }
.me-core__inner {
    position: relative; z-index: 2; width: 100px; height: 100px; border-radius: 50%;
    display: grid; place-items: center; text-align: center;
    background: radial-gradient(circle at 50% 32%, rgba(60, 203, 210, 0.30), rgba(13, 19, 28, 0.96) 72%);
    border: 1px solid var(--brand-border);
    box-shadow: 0 0 44px rgba(60, 203, 210, 0.32), inset 0 0 22px rgba(60, 203, 210, 0.14);
    animation: me-breathe 4.5s ease-in-out infinite;
}
@keyframes me-breathe { 0%, 100% { box-shadow: 0 0 40px rgba(60,203,210,0.26), inset 0 0 22px rgba(60,203,210,0.12); } 50% { box-shadow: 0 0 56px rgba(60,203,210,0.40), inset 0 0 26px rgba(60,203,210,0.18); } }
.me-pct { font-family: var(--serif); font-size: 1.85rem; font-weight: 700; color: #fff; line-height: 1; letter-spacing: -0.02em; }
.me-core__inner small { display: block; margin-top: 3px; font-size: 0.6rem; text-transform: uppercase; letter-spacing: 0.16em; color: var(--brand-bright); }
.me-core__ring { position: absolute; inset: 0; border-radius: 50%; border: 1px solid rgba(60, 203, 210, 0.45); animation: me-ring 3.6s ease-out infinite; }
.me-core__ring--2 { animation-delay: 1.2s; }
.me-core__ring--3 { animation-delay: 2.4s; }
@keyframes me-ring { 0% { transform: scale(0.78); opacity: 0.7; } 100% { transform: scale(1.85); opacity: 0; } }

/* Candidate + role cards */
.me-card {
    position: absolute; display: flex; align-items: center; gap: 11px; padding: 12px 14px; max-width: 200px;
    border-radius: 15px; background: rgba(16, 24, 34, 0.94); border: 1px solid var(--line-2);
    box-shadow: var(--sh-3); z-index: 3; -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px);
}
.me-card strong { display: block; font-size: 0.9rem; color: var(--ink-900); letter-spacing: -0.01em; }
.me-card p { margin: 2px 0 0; font-size: 0.72rem; color: var(--ink-500); display: flex; align-items: center; gap: 5px; }
.me-card .company-avatar, .me-card .me-ico { flex: none; }
.me-ico { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: var(--brand-soft); color: var(--brand-bright); border: 1px solid var(--brand-border); }
.me-vtick { color: #8fe6b8; font-weight: 800; }
.me-bar { display: block; height: 5px; width: 84px; margin-top: 7px; border-radius: var(--r-pill); background: rgba(255,255,255,0.08); overflow: hidden; }
.me-bar i { display: block; height: 100%; width: 0; border-radius: var(--r-pill); background: var(--brand-bright); animation: me-fill 2.6s cubic-bezier(.16,1,.3,1) forwards; }
@keyframes me-fill { from { width: 0; } }
.me-card--cand { top: 12%; inset-inline-start: 2%; animation: me-float 6.5s ease-in-out infinite; }
.me-card--role { bottom: 11%; inset-inline-end: 2%; animation: me-float 6.5s ease-in-out infinite reverse; }
@keyframes me-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* Floating analysis labels */
.me-label {
    position: absolute; display: inline-flex; align-items: center; gap: 7px; padding: 5px 11px;
    border-radius: var(--r-pill); background: rgba(16, 24, 34, 0.82); border: 1px solid var(--line);
    color: var(--ink-600); font-size: 0.69rem; font-weight: 600; white-space: nowrap; z-index: 3;
    animation: me-bob 5.5s ease-in-out infinite;
}
.me-label i { width: 6px; height: 6px; border-radius: 50%; background: var(--brand-bright); box-shadow: 0 0 7px rgba(60, 203, 210, 0.85); flex: none; }
.me-label--1 { top: 45%; inset-inline-start: 0; animation-delay: 0s; }
.me-label--2 { top: 7%; inset-inline-end: 4%; animation-delay: 1.3s; }
.me-label--3 { bottom: 31%; inset-inline-start: 4%; animation-delay: 2.6s; }
.me-label--4 { bottom: 4%; inset-inline-start: 31%; animation-delay: 3.9s; }
@keyframes me-bob { 0%, 100% { opacity: 0.6; transform: translateY(0); } 50% { opacity: 1; transform: translateY(-4px); } }

/* Stats: live indicator */
.home-stats-wrap { margin-top: 12px; padding: 26px 0 34px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.home-stats-wrap .home-stats { margin: 0; padding: 0; border: 0; }
.stats-live {
    display: inline-flex; align-items: center; gap: 8px; margin: 0 0 20px;
    font-size: 0.74rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-400);
}
.stats-live__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand-bright); animation: me-live 2.4s ease-out infinite; }

/* Mobile: simplify the hive so it stays calm, not cramped */
@media (max-width: 820px) {
    .me-label--3, .me-label--4 { display: none; }
    .me-card { max-width: 168px; padding: 10px 12px; }
    .me-core { width: 108px; height: 108px; }
    .me-core__inner { width: 88px; height: 88px; }
    .me-pct { font-size: 1.6rem; }
}
@media (max-width: 540px) {
    .me-label { display: none; }
    .me-card--cand { top: 8%; }
    .me-card--role { bottom: 8%; }
}

/* Calm mode: no motion */
@media (prefers-reduced-motion: reduce) {
    .me-flow, .me-flow--2 { animation: none; stroke-dashoffset: 0; stroke-dasharray: none; opacity: .55; }
    .me-core__inner, .me-core__ring, .me-card, .me-label, .me-status__dot, .stats-live__dot { animation: none !important; }
    .me-core__ring { opacity: 0; }
    .me-bar i { width: 96% !important; animation: none; }
}

/* ============================ HERO MATCH ENGINE — v2 (richer ecosystem) ==== */
/* Layered depth + spotlight behind the core */
.hero-visual { background:
    linear-gradient(rgba(255,255,255,0.018) 1px, transparent 1px) 0 0 / 44px 44px,
    linear-gradient(90deg, rgba(255,255,255,0.018) 1px, transparent 1px) 0 0 / 44px 44px,
    radial-gradient(520px 360px at 60% 42%, rgba(60,203,210,0.10), transparent 72%),
    var(--surface);
}
.me-spotlight {
    position: absolute; top: 50%; left: 50%; width: 380px; height: 380px; transform: translate(-50%,-50%);
    border-radius: 50%; pointer-events: none; z-index: 0;
    background: radial-gradient(circle, rgba(60,203,210,0.16), rgba(60,203,210,0.05) 45%, transparent 70%);
    animation: me-glow 6s ease-in-out infinite;
}
@keyframes me-glow { 0%,100% { opacity: .65; transform: translate(-50%,-50%) scale(1); } 50% { opacity: 1; transform: translate(-50%,-50%) scale(1.08); } }

/* Confidence ring around the core */
.me-conf { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); z-index: 1; }
.me-conf__track { fill: none; stroke: rgba(255,255,255,0.07); stroke-width: 3; }
.me-conf__bar {
    fill: none; stroke: var(--brand-bright); stroke-width: 3; stroke-linecap: round;
    stroke-dasharray: 351.9; stroke-dashoffset: 351.9; filter: drop-shadow(0 0 3px rgba(60,203,210,0.7));
    animation: me-conf-fill 2.6s cubic-bezier(.16,1,.3,1) .25s forwards;
}
@keyframes me-conf-fill { to { stroke-dashoffset: 14.1; } }

/* Status crossfade */
.js-status { transition: opacity .35s ease; display: inline-block; }
.js-status.is-fading { opacity: 0; }

/* Secondary ghost comparison paths */
.me-wire--ghost { stroke: rgba(60,203,210,0.10); stroke-width: 0.3; stroke-dasharray: 1.5 2.5; }

/* Ghosted background cards — depth, "many comparisons at once" */
.me-ghost { position: absolute; border-radius: 14px; z-index: 1; background: rgba(18,27,38,0.45); border: 1px solid rgba(255,255,255,0.045); box-shadow: 0 10px 30px rgba(0,0,0,0.2); }
.me-ghost--1 { width: 150px; height: 54px; top: 14%; inset-inline-end: 9%; transform: rotate(2.5deg); opacity: .7; }
.me-ghost--2 { width: 138px; height: 50px; bottom: 17%; inset-inline-start: 8%; transform: rotate(-3deg); opacity: .55; }
.me-ghost--3 { width: 116px; height: 46px; top: 38%; inset-inline-end: 2%; transform: rotate(-2deg); opacity: .4; }

/* Micro signal chips */
.me-chip {
    position: absolute; display: inline-flex; align-items: center; gap: 7px; padding: 5px 11px;
    border-radius: var(--r-pill); font-size: 0.67rem; font-weight: 700; letter-spacing: 0.02em; white-space: nowrap;
    border: 1px solid var(--line-2); background: rgba(13,19,28,0.86); z-index: 5;
    -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); box-shadow: var(--sh-2);
}
.me-chip--signals { top: 9%; inset-inline-start: 4%; color: var(--brand-bright); }
.me-chip--matches { bottom: 9%; inset-inline-end: 4%; color: var(--ink-700); }
.me-chip__pulse { width: 6px; height: 6px; border-radius: 50%; background: var(--brand-bright); animation: me-live 2.4s ease-out infinite; }

/* "Top fit" marker on the candidate card */
.me-card--cand { position: absolute; }
.me-fit {
    position: absolute; top: -9px; inset-inline-end: 12px; padding: 2px 9px; border-radius: var(--r-pill);
    font-size: 0.6rem; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase;
    background: linear-gradient(120deg, var(--brand), var(--brand-bright)); color: #04222a; box-shadow: 0 4px 12px rgba(60,203,210,0.35);
}

/* Refined positions (override v1) — balanced, breathing room */
.me-card--cand { top: 25%; inset-inline-start: 3%; }
.me-card--role { bottom: 23%; inset-inline-end: 3%; }
.me-label--1 { top: 51%; inset-inline-start: 0; }
.me-label--2 { top: 13%; inset-inline-end: 6%; }
.me-label--3 { bottom: 30%; inset-inline-start: 6%; }
.me-label--4 { bottom: 5%; inset-inline-start: 29%; }
.me-label--5 { position: absolute; top: 57%; inset-inline-end: 0; animation: me-bob 5.5s ease-in-out infinite; animation-delay: 2s; }

/* Smarter search bar: focus glow */
.hero-search { transition: border-color .25s ease, box-shadow .25s ease; }
.hero-search:focus-within { border-color: var(--brand-border); box-shadow: 0 0 0 4px rgba(60,203,210,0.12), var(--sh-2); }

/* Mobile: keep it calm, not cramped */
@media (max-width: 820px) {
    .me-chip, .me-ghost--3, .me-label--5 { display: none; }
}
@media (max-width: 540px) {
    .me-ghost { display: none; }
}

/* Calm mode */
@media (prefers-reduced-motion: reduce) {
    .me-spotlight, .me-chip__pulse { animation: none; }
    .me-conf__bar { animation: none; stroke-dashoffset: 14.1; }
}

/* ===================================================== OFFICIAL / OWNER TIER */
/* Reserved for We Recruit's own company — reads above gold Premium. A gold→teal
   gradient (brand premium + accent) with a crown and a slow shine sweep. */
.official-badge {
    position: relative; display: inline-flex; align-items: center; gap: 6px;
    padding: 5px 13px; border-radius: var(--r-pill); overflow: hidden;
    font-size: 0.72rem; font-weight: 800; letter-spacing: 0.03em; color: #07151a; white-space: nowrap;
    background: linear-gradient(115deg, #ffe6a0 0%, #e9c46a 28%, #43c9d0 72%, #9bedf0 100%);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 4px 16px rgba(60, 203, 210, 0.30), 0 2px 10px rgba(224, 167, 44, 0.28);
}
.official-badge svg { flex: none; }
.official-badge__shine {
    position: absolute; top: 0; left: -60%; width: 38%; height: 100%; z-index: 1;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.65), transparent);
    transform: skewX(-18deg); animation: official-shine 5s ease-in-out infinite;
}
@keyframes official-shine { 0%, 100% { left: -60%; } 55%, 100% { left: 130%; } }
.official-badge--lg { padding: 8px 16px; font-size: 0.86rem; gap: 8px; }
.official-badge--lg svg { width: 16px; height: 16px; }
.official-badge--corner { position: absolute; top: 12px; inset-inline-end: 12px; z-index: 2; }

@media (prefers-reduced-motion: reduce) { .official-badge__shine { animation: none; opacity: 0; } }

/* Official banner frame — a thin gold→teal gradient border that SURROUNDS the
   banner (follows its radius, never covers the image). For We Recruit's own banners. */
.job-banner--official, .company-banner--official { position: relative; }
.job-banner--official::after, .company-banner--official::after {
    content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 2px; pointer-events: none; z-index: 3;
    background: linear-gradient(115deg, #ffe6a0, #e9c46a 28%, #43c9d0 72%, #9bedf0);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
            mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor; mask-composite: exclude;
}
/* The official frame replaces the gold inner premium ring (no double border). */
.job-banner--official { box-shadow: none; }

/* Company-name eyebrow with an inline Official badge */
.jobcat-company { display: inline-flex; align-items: center; gap: 9px; flex-wrap: wrap; }

/* Clean banner (logo moved out of it) + logo now sits beside the company name */
.job-banner--clean { margin-bottom: 14px; overflow: hidden; }
.jobcat-logo {
    width: 42px; height: 42px; border-radius: 10px; object-fit: cover; background: #fff;
    border: 1px solid var(--line-2); flex: none;
}
.jobcat-logo--placeholder { display: grid; place-items: center; font-size: 1.15rem; font-weight: 800; color: #fff; background: var(--brand); }
.jobcat-company a { font-size: 0.96rem; }

/* Site logo uses the official We Recruit logo image */
img.site-logo__mark { object-fit: cover; background: #fff; border-color: var(--line-2); }

/* Heading sentence segments — each isolated so RTL never drops the first clause */
.section-heading h2 .hsent { unicode-bidi: isolate; }

/* ===================================================== HERO BOX — PREMIUM ==
   Elevates "the home box": a thin gold→teal frame (same language as the
   Official tier), a glass top-sheen, warmer light, and refined depth — so the
   hero reads premium, not just technical. Layered on top of the v1/v2 passes. */
.hero-visual {
    border-color: rgba(233, 196, 106, 0.16);
    box-shadow:
        var(--sh-3),
        0 0 0 1px rgba(255, 255, 255, 0.02) inset,
        0 50px 130px -50px rgba(60, 203, 210, 0.40),
        0 24px 80px -40px rgba(233, 196, 106, 0.18);
}
/* Gold→teal gradient frame that surrounds the whole box (mask border trick) */
.hero-visual::before {
    content: "";
    position: absolute; inset: 0; z-index: 7; border-radius: inherit;
    padding: 1px; pointer-events: none;
    background: linear-gradient(135deg,
        rgba(255, 230, 160, 0.65) 0%,
        rgba(233, 196, 106, 0.32) 24%,
        rgba(60, 203, 210, 0.30) 60%,
        rgba(155, 237, 240, 0.60) 100%);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor; mask-composite: exclude;
}
/* Soft glass sheen across the top edge (above the textured bg, below the cards) */
.hero-visual::after {
    content: ""; position: absolute; inset: 0; z-index: 2; border-radius: inherit; pointer-events: none;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), transparent 20%);
}

/* Warmer, premium core — a faint gold rim sits over the teal glow */
.me-core__inner {
    background:
        radial-gradient(circle at 50% 28%, rgba(255, 230, 160, 0.18), transparent 46%),
        radial-gradient(circle at 50% 32%, rgba(60, 203, 210, 0.30), rgba(13, 19, 28, 0.96) 72%);
    box-shadow:
        0 0 46px rgba(60, 203, 210, 0.32),
        inset 0 0 22px rgba(60, 203, 210, 0.14),
        inset 0 1px 0 rgba(255, 255, 255, 0.10);
}
.me-pct { text-shadow: 0 0 18px rgba(60, 203, 210, 0.45); }

/* Cards: crisper top-edge highlight = tactile, premium glass */
.me-card { box-shadow: var(--sh-3), inset 0 1px 0 rgba(255, 255, 255, 0.06); }
.me-card--cand { border-color: rgba(233, 196, 106, 0.22); }

/* "Top fit" badge → gold→teal premium gradient with a soft shine */
.me-fit {
    background: linear-gradient(115deg, #ffe6a0 0%, #e9c46a 30%, #43c9d0 78%, #9bedf0 100%);
    color: #1a1205;
    box-shadow: 0 4px 14px rgba(233, 196, 106, 0.30), 0 2px 8px rgba(60, 203, 210, 0.30);
}

/* Live status pill: a hair more refined */
.me-status { border-color: rgba(233, 196, 106, 0.18); }

/* ============================================ HERO BOX — NEXT LEVEL (cinematic)
   Traveling-light frame, aurora drift, starfield, a rotating halo behind the
   core, and cursor parallax. All gated for reduced-motion + touch. */
@property --me-spin { syntax: '<angle>'; initial-value: 0deg; inherits: false; }
@keyframes me-frame-spin { to { --me-spin: 360deg; } }

.hero-visual { perspective: 1100px; }

/* 1. Animated traveling-light border: a static gold→teal base with a bright
      sweep of light orbiting the frame. */
.hero-visual::before {
    background:
        conic-gradient(from var(--me-spin),
            transparent 0deg,
            rgba(255, 248, 224, 0.0) 34deg,
            rgba(255, 249, 230, 0.95) 64deg,
            rgba(60, 203, 210, 0.0) 120deg,
            transparent 360deg),
        linear-gradient(135deg,
            rgba(255, 230, 160, 0.55) 0%,
            rgba(233, 196, 106, 0.30) 24%,
            rgba(60, 203, 210, 0.30) 60%,
            rgba(155, 237, 240, 0.55) 100%);
    animation: me-frame-spin 7s linear infinite;
}

/* 2. Starfield twinkle behind the engine */
.match-engine::before {
    content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; border-radius: inherit;
    background-image:
        radial-gradient(1.6px 1.6px at 18% 28%, rgba(60, 203, 210, 0.8), transparent),
        radial-gradient(1.6px 1.6px at 72% 62%, rgba(255, 230, 160, 0.7), transparent),
        radial-gradient(1.2px 1.2px at 41% 81%, rgba(255, 255, 255, 0.6), transparent),
        radial-gradient(1.6px 1.6px at 86% 24%, rgba(60, 203, 210, 0.65), transparent),
        radial-gradient(1.2px 1.2px at 56% 13%, rgba(255, 255, 255, 0.5), transparent),
        radial-gradient(1.6px 1.6px at 9% 67%, rgba(255, 230, 160, 0.55), transparent),
        radial-gradient(1.2px 1.2px at 33% 50%, rgba(60, 203, 210, 0.5), transparent),
        radial-gradient(1.4px 1.4px at 64% 88%, rgba(255, 255, 255, 0.45), transparent);
    animation: me-twinkle 5.5s ease-in-out infinite;
}
@keyframes me-twinkle { 0%, 100% { opacity: 0.35; } 50% { opacity: 0.9; } }

/* 3. Aurora drift — recolour + slowly move the orbs into a living mesh */
.hero-orb { mix-blend-mode: screen; filter: blur(58px); animation: me-aurora 17s ease-in-out infinite; }
.hero-orb-one { background: radial-gradient(circle, rgba(60, 203, 210, 0.24), transparent 70%); }
.hero-orb-two { background: radial-gradient(circle, rgba(233, 196, 106, 0.16), transparent 70%); animation-delay: -8.5s; }
@keyframes me-aurora {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(26px, 20px) scale(1.12); }
    66% { transform: translate(-20px, 12px) scale(0.94); }
}

/* 4. Rotating conic halo behind the core */
.me-core::before {
    content: ""; position: absolute; inset: -22px; z-index: 0; border-radius: 50%; pointer-events: none;
    background: conic-gradient(from var(--me-spin),
        rgba(60, 203, 210, 0) 0deg,
        rgba(60, 203, 210, 0.55) 90deg,
        rgba(255, 230, 160, 0.5) 180deg,
        rgba(60, 203, 210, 0) 300deg);
    filter: blur(13px); opacity: 0.75;
    animation: me-frame-spin 6s linear infinite;
}

/* 5. Cursor parallax — depth layers shift on pointer move (vars set by main.js).
      Uses the independent `translate` property so it composes with the existing
      transform-based float/bob animations instead of overwriting them. */
.hero-visual { --mx: 0; --my: 0; }
.me-core,
.me-card, .me-label, .me-chip, .me-ghost {
    transition: translate 0.32s cubic-bezier(.16, 1, .3, 1);
    will-change: translate;
}
.me-core   { translate: calc(var(--mx) * 7px)   calc(var(--my) * 7px); }
.me-card   { translate: calc(var(--mx) * 15px)  calc(var(--my) * 15px); }
.me-label  { translate: calc(var(--mx) * 24px)  calc(var(--my) * 24px); }
.me-chip   { translate: calc(var(--mx) * 19px)  calc(var(--my) * 19px); }
.me-ghost  { translate: calc(var(--mx) * -11px) calc(var(--my) * -11px); }

@media (prefers-reduced-motion: reduce) {
    .hero-visual::before { animation: none; }
    .match-engine::before { animation: none; opacity: 0.5; }
    .hero-orb { animation: none; }
    .me-core::before { animation: none; }
    .me-core, .me-card, .me-label, .me-chip, .me-ghost { transition: none; translate: none !important; }
}


/* ===========================================================================
   HERO - RECRUITMENT INTELLIGENCE NETWORK  ("the matchmaking constellation")
   Living ecosystem: central intelligence core, talent + company nodes, neural
   connections with travelling light, periodic match completions, network
   signals woven into the lines, three depth layers + cursor parallax.
   Reuses @property --me-spin, @keyframes me-frame-spin, me-live (defined above).
   ========================================================================= */
.hero-visual.rn { overflow: hidden; }

/* BACKGROUND LAYER - atmosphere */
.rn-aurora { position: absolute; border-radius: 50%; filter: blur(60px); mix-blend-mode: screen; z-index: 0; pointer-events: none; animation: rn-aurora 18s ease-in-out infinite; }
.rn-aurora--1 { width: 300px; height: 300px; top: -60px; inset-inline-end: -40px; background: radial-gradient(circle, rgba(60,203,210,0.26), transparent 70%); }
.rn-aurora--2 { width: 260px; height: 260px; bottom: -70px; inset-inline-start: -50px; background: radial-gradient(circle, rgba(233,196,106,0.16), transparent 70%); animation-delay: -9s; }
@keyframes rn-aurora { 0%,100% { transform: translate(0,0) scale(1); } 33% { transform: translate(24px,18px) scale(1.12); } 66% { transform: translate(-18px,12px) scale(0.95); } }

.rn-particles { position: absolute; inset: 0; z-index: 0; pointer-events: none; background-image: radial-gradient(1.5px 1.5px at 18% 28%, rgba(60,203,210,0.8), transparent), radial-gradient(1.5px 1.5px at 72% 62%, rgba(255,230,160,0.7), transparent), radial-gradient(1.2px 1.2px at 41% 81%, rgba(255,255,255,0.6), transparent), radial-gradient(1.5px 1.5px at 86% 24%, rgba(60,203,210,0.65), transparent), radial-gradient(1.2px 1.2px at 56% 13%, rgba(255,255,255,0.5), transparent), radial-gradient(1.5px 1.5px at 9% 67%, rgba(255,230,160,0.55), transparent), radial-gradient(1.2px 1.2px at 33% 47%, rgba(60,203,210,0.5), transparent), radial-gradient(1.4px 1.4px at 64% 88%, rgba(255,255,255,0.45), transparent), radial-gradient(1.2px 1.2px at 92% 70%, rgba(60,203,210,0.5), transparent); animation: rn-twinkle 5.5s ease-in-out infinite; }
@keyframes rn-twinkle { 0%,100% { opacity: 0.3; } 50% { opacity: 0.85; } }

.rn-radar { position: absolute; top: 50%; left: 50%; width: 520px; height: 520px; z-index: 0; pointer-events: none; border-radius: 50%; opacity: 0.55; background: conic-gradient(from 0deg, transparent 0deg, rgba(60,203,210,0.10) 28deg, rgba(60,203,210,0.02) 64deg, transparent 90deg); -webkit-mask: radial-gradient(circle, #000 54%, transparent 72%); mask: radial-gradient(circle, #000 54%, transparent 72%); transform: translate(-50%,-50%); animation: rn-radar-spin 16s linear infinite; }
.rn-radar::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle, transparent 29.6%, rgba(255,255,255,0.045) 30%, transparent 30.6%), radial-gradient(circle, transparent 45.6%, rgba(255,255,255,0.035) 46%, transparent 46.6%), radial-gradient(circle, transparent 61.6%, rgba(255,255,255,0.028) 62%, transparent 62.6%); }
@keyframes rn-radar-spin { from { transform: translate(-50%,-50%) rotate(0); } to { transform: translate(-50%,-50%) rotate(360deg); } }

.rn-far { position: absolute; width: 7px; height: 7px; border-radius: 50%; z-index: 1; pointer-events: none; filter: blur(0.4px); animation: rn-drift 9s ease-in-out infinite; }
.rn-far--1 { top: 30%; inset-inline-start: 16%; background: radial-gradient(circle, rgba(60,203,210,0.6), transparent 70%); }
.rn-far--2 { top: 68%; inset-inline-end: 18%; background: radial-gradient(circle, rgba(233,196,106,0.5), transparent 70%); animation-delay: -3s; }
.rn-far--3 { top: 19%; inset-inline-end: 34%; background: radial-gradient(circle, rgba(255,255,255,0.45), transparent 70%); animation-delay: -6s; }
@keyframes rn-drift { 0%,100% { transform: translate(0,0); opacity: 0.4; } 50% { transform: translate(8px,-10px); opacity: 0.85; } }

/* MID LAYER - neural connections */
.rn-net { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; pointer-events: none; overflow: visible; }
.rn-link { stroke: rgba(120,210,215,0.16); stroke-width: 1; fill: none; }
.rn-spark { stroke-width: 1.7; stroke-linecap: round; fill: none; stroke-dasharray: 4 80; filter: drop-shadow(0 0 2.5px rgba(60,203,210,0.9)); animation: rn-travel 3.2s linear infinite; }
.rn-spark--1 { stroke: #7fe9ee; animation-delay: 0s; }
.rn-spark--2 { stroke: #ffe6a0; animation-delay: 0.8s; }
.rn-spark--3 { stroke: #7fe9ee; animation-delay: 1.6s; }
.rn-spark--4 { stroke: #ffe6a0; animation-delay: 2.4s; }
@keyframes rn-travel { from { stroke-dashoffset: 84; } to { stroke-dashoffset: 0; } }

/* MID LAYER - nodes */
.rn-nodes { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.rn-node { position: absolute; left: var(--x); top: var(--y); transform: translate(-50%,-50%); }
.rn-node__inner { position: relative; display: flex; flex-direction: column; align-items: center; gap: 7px; animation: rn-float 7s ease-in-out infinite; animation-delay: var(--d); }
@keyframes rn-float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
.rn-node__ava { position: relative; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font-size: 0.82rem; font-weight: 800; letter-spacing: 0.01em; color: #dffafa; background: radial-gradient(circle at 50% 32%, rgba(60,203,210,0.22), rgba(12,18,26,0.96) 75%); border: 1px solid var(--brand-border); box-shadow: 0 10px 24px -10px rgba(0,0,0,0.7), inset 0 1px 0 rgba(255,255,255,0.08); }
.rn-node--company .rn-node__ava { color: #ffe9bf; background: radial-gradient(circle at 50% 32%, rgba(233,196,106,0.20), rgba(12,18,26,0.96) 75%); border-color: rgba(233,196,106,0.34); }
.rn-node__tag { font-size: 0.66rem; font-weight: 600; color: var(--ink-500); white-space: nowrap; padding: 2px 9px; border-radius: var(--r-pill); background: rgba(13,19,28,0.7); border: 1px solid var(--line); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.rn-node__check { position: absolute; top: -4px; inset-inline-end: -4px; width: 19px; height: 19px; border-radius: 50%; display: grid; place-items: center; font-size: 0.64rem; font-weight: 900; color: #04222a; background: linear-gradient(120deg, #ffe6a0, #43c9d0); box-shadow: 0 3px 9px rgba(60,203,210,0.5); opacity: 0; transform: scale(0.4); }
.rn-node--match .rn-node__ava { animation: rn-match-ava 9s ease-in-out infinite; animation-delay: var(--d); }
@keyframes rn-match-ava { 0%,70%,100% { box-shadow: 0 10px 24px -10px rgba(0,0,0,0.7), inset 0 1px 0 rgba(255,255,255,0.08); border-color: var(--brand-border); } 80% { box-shadow: 0 0 0 3px rgba(60,203,210,0.28), 0 8px 34px -6px rgba(60,203,210,0.6); border-color: rgba(125,233,238,0.85); } 90% { box-shadow: 0 0 0 7px rgba(60,203,210,0), 0 8px 30px -6px rgba(60,203,210,0.25); border-color: rgba(125,233,238,0.4); } }
.rn-node--match .rn-node__check { animation: rn-match-check 9s ease-in-out infinite; animation-delay: var(--d); }
@keyframes rn-match-check { 0%,70%,100% { opacity: 0; transform: scale(0.4); } 80% { opacity: 1; transform: scale(1.12); } 90% { opacity: 1; transform: scale(1); } }

/* FOREGROUND - network signals (transient detections) */
.rn-signal { position: absolute; left: var(--sx); top: var(--sy); z-index: 5; display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: var(--r-pill); font-size: 0.64rem; font-weight: 700; letter-spacing: 0.01em; white-space: nowrap; color: var(--ink-700); background: rgba(13,19,28,0.78); border: 1px solid var(--line-2); -webkit-backdrop-filter: blur(7px); backdrop-filter: blur(7px); box-shadow: var(--sh-2); opacity: 0; animation: rn-signal 8s ease-in-out infinite; animation-delay: var(--d); }
.rn-signal i { width: 6px; height: 6px; border-radius: 50%; background: var(--brand-bright); box-shadow: 0 0 8px rgba(60,203,210,0.9); flex: none; }
@keyframes rn-signal { 0%,100% { opacity: 0; transform: translate(-50%,-50%) scale(0.9); } 12%,40% { opacity: 1; transform: translate(-50%,-50%) scale(1); } 54% { opacity: 0; transform: translate(-50%,-50%) scale(0.96); } }

/* FOREGROUND - central intelligence core */
.rn-core { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); z-index: 6; width: 150px; height: 150px; display: grid; place-items: center; }
.rn-core__halo { position: absolute; inset: -30px; border-radius: 50%; pointer-events: none; background: conic-gradient(from var(--me-spin), rgba(60,203,210,0), rgba(60,203,210,0.5) 90deg, rgba(255,230,160,0.45) 200deg, rgba(60,203,210,0) 320deg); filter: blur(16px); opacity: 0.7; animation: me-frame-spin 7s linear infinite; }
.rn-core__ring { position: absolute; inset: 0; border-radius: 50%; border: 1px solid rgba(60,203,210,0.4); animation: rn-ring 3.8s ease-out infinite; }
.rn-core__ring--2 { animation-delay: 1.27s; }
.rn-core__ring--3 { animation-delay: 2.53s; }
@keyframes rn-ring { 0% { transform: scale(0.62); opacity: 0.65; } 100% { transform: scale(1.5); opacity: 0; } }
.rn-core__conf { position: absolute; inset: 8px; width: calc(100% - 16px); height: calc(100% - 16px); transform: rotate(-90deg); z-index: 1; }
.rn-core__track { fill: none; stroke: rgba(255,255,255,0.08); stroke-width: 3; }
.rn-core__bar { fill: none; stroke: #5fd6dd; stroke-width: 3; stroke-linecap: round; stroke-dasharray: 326.726; stroke-dashoffset: 13.07; filter: drop-shadow(0 0 3px rgba(60,203,210,0.7)); transition: stroke-dashoffset 0.9s cubic-bezier(.16,1,.3,1); }
.rn-core__orb { position: relative; z-index: 2; width: 104px; height: 104px; border-radius: 50%; display: grid; place-items: center; text-align: center; background: radial-gradient(circle at 50% 30%, rgba(255,230,160,0.16), transparent 46%), radial-gradient(circle at 50% 34%, rgba(60,203,210,0.30), rgba(10,16,24,0.97) 72%); border: 1px solid var(--brand-border); box-shadow: 0 0 46px rgba(60,203,210,0.34), inset 0 0 22px rgba(60,203,210,0.14), inset 0 1px 0 rgba(255,255,255,0.12); animation: rn-breathe 4.6s ease-in-out infinite; }
@keyframes rn-breathe { 0%,100% { box-shadow: 0 0 42px rgba(60,203,210,0.28), inset 0 0 22px rgba(60,203,210,0.12), inset 0 1px 0 rgba(255,255,255,0.12); } 50% { box-shadow: 0 0 60px rgba(60,203,210,0.44), inset 0 0 26px rgba(60,203,210,0.18), inset 0 1px 0 rgba(255,255,255,0.14); } }
.rn-core__pct { font-family: var(--serif); font-size: 1.95rem; font-weight: 700; color: #fff; line-height: 1; letter-spacing: -0.02em; text-shadow: 0 0 18px rgba(60,203,210,0.5); }
.rn-core__pct em { font-style: normal; font-size: 1rem; color: var(--brand-bright); margin-inline-start: 1px; }
.rn-core__orb small { display: block; margin-top: 4px; font-size: 0.56rem; text-transform: uppercase; letter-spacing: 0.16em; color: var(--brand-bright); }
.rn-core__spark { position: absolute; top: 4px; left: 50%; width: 7px; height: 7px; margin-left: -3.5px; border-radius: 50%; background: #eafdff; box-shadow: 0 0 10px 2px rgba(125,233,238,0.9); transform-origin: 3.5px 48px; animation: rn-spark-orbit 5s linear infinite; }
@keyframes rn-spark-orbit { to { transform: rotate(360deg); } }

/* FOREGROUND - engine label + live match feed */
.rn-badge { position: absolute; z-index: 7; display: inline-flex; align-items: center; gap: 8px; padding: 7px 13px; border-radius: var(--r-pill); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.01em; white-space: nowrap; background: rgba(11,17,25,0.86); border: 1px solid var(--line-2); -webkit-backdrop-filter: blur(7px); backdrop-filter: blur(7px); box-shadow: var(--sh-2); }
.rn-badge--engine { top: 18px; left: 50%; transform: translateX(-50%); color: var(--ink-800); border-color: rgba(233,196,106,0.22); }
.rn-badge--engine .rn-badge__pulse { width: 7px; height: 7px; border-radius: 50%; background: linear-gradient(120deg, #ffe6a0, #43c9d0); animation: me-live 2.4s ease-out infinite; flex: none; }
.rn-badge--feed { bottom: 18px; left: 50%; transform: translateX(-50%); color: var(--ink-600); max-width: 86%; }
.rn-badge--feed .js-status { overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.rn-badge__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--brand-bright); animation: me-live 2.4s ease-out infinite; flex: none; }

/* Cursor parallax (depth) - vars --mx/--my set by main.js */
.hero-visual.rn .rn-net, .hero-visual.rn .rn-nodes { transition: translate 0.3s cubic-bezier(.16,1,.3,1); translate: calc(var(--mx) * 12px) calc(var(--my) * 12px); }
.rn-core { translate: calc(var(--mx) * 7px) calc(var(--my) * 7px); transition: translate 0.3s cubic-bezier(.16,1,.3,1); }
.rn-signal { transition: translate 0.3s cubic-bezier(.16,1,.3,1); translate: calc(var(--mx) * 18px) calc(var(--my) * 18px); }
.rn-far { transition: translate 0.3s cubic-bezier(.16,1,.3,1); }
.hero-visual.rn .rn-far { translate: calc(var(--mx) * -9px) calc(var(--my) * -9px); }
.hero-visual.rn .rn-particles { transition: translate 0.4s ease; translate: calc(var(--mx) * -5px) calc(var(--my) * -5px); }

/* Responsive */
@media (max-width: 820px) { .rn-signal--3, .rn-signal--4, .rn-far--3 { display: none; } .rn-node__tag { font-size: 0.6rem; padding: 2px 7px; } .rn-node__ava { width: 42px; height: 42px; } .rn-core { width: 130px; height: 130px; } .rn-core__orb { width: 92px; height: 92px; } .rn-core__pct { font-size: 1.7rem; } }
@media (max-width: 540px) { .rn-node__tag, .rn-signal, .rn-far, .rn-badge--feed { display: none; } .rn-node__ava { width: 38px; height: 38px; font-size: 0.74rem; } }

/* Calm mode (no motion) */
@media (prefers-reduced-motion: reduce) {
    .rn-aurora, .rn-particles, .rn-radar, .rn-far, .rn-spark, .rn-node__inner, .rn-node--match .rn-node__ava, .rn-core__halo, .rn-core__ring, .rn-core__orb, .rn-core__spark, .rn-badge__pulse, .rn-badge__dot { animation: none !important; }
    .rn-spark { opacity: 0.55; stroke-dashoffset: 0; stroke-dasharray: none; }
    .rn-signal { animation: none !important; opacity: 1; }
    .rn-node--match .rn-node__check { animation: none !important; opacity: 1; transform: scale(1); }
    .hero-visual.rn .rn-net, .hero-visual.rn .rn-nodes, .rn-core, .rn-signal, .hero-visual.rn .rn-far, .hero-visual.rn .rn-particles { translate: none !important; transition: none !important; }
}

/* 3D tilt stage + true Z-depth — the constellation rotates toward the cursor and
   the layers separate in real perspective. Derived from --mx/--my (set by main.js),
   so it composes with the existing layer parallax. */
.rn-stage { position: absolute; inset: 0; transform-style: preserve-3d; transform: rotateX(calc(var(--my) * -5deg)) rotateY(calc(var(--mx) * 7deg)); transition: transform 0.35s cubic-bezier(.16,1,.3,1); will-change: transform; }
.hero-visual.rn .rn-net, .hero-visual.rn .rn-nodes { translate: calc(var(--mx) * 12px) calc(var(--my) * 12px) 16px; }
.rn-core { translate: calc(var(--mx) * 7px) calc(var(--my) * 7px) 34px; }
.rn-signal { translate: calc(var(--mx) * 18px) calc(var(--my) * 18px) 54px; }
.hero-visual.rn .rn-far { translate: calc(var(--mx) * -9px) calc(var(--my) * -9px) -30px; }
.hero-visual.rn .rn-particles { translate: calc(var(--mx) * -5px) calc(var(--my) * -5px) -42px; }
@media (prefers-reduced-motion: reduce) { .rn-stage { transform: none; transition: none; } }

/* Engine badge: "AI" wordmark accent + "Soon" pill */
.rn-badge--engine .rn-badge__txt { background: linear-gradient(120deg, #ffe6a0, #43c9d0); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; font-weight: 800; }
.rn-badge__soon { margin-inline-start: 2px; padding: 2px 7px; border-radius: var(--r-pill); font-size: 0.58rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: #1a1205; background: linear-gradient(120deg, #ffe6a0, #e9c46a); box-shadow: 0 2px 8px rgba(233,196,106,0.35); }

/* ============================================ ACCOUNT, PRIVACY & CONSENT ==== */
/* Cookie consent banner */
.cookie-consent { position: fixed; inset-inline: 16px; bottom: 16px; z-index: 60; display: flex; justify-content: center; pointer-events: none; }
.cookie-consent__inner { pointer-events: auto; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; max-width: 760px; width: 100%; padding: 16px 18px; border-radius: var(--r-lg); background: rgba(11,17,25,0.96); border: 1px solid var(--line-2); box-shadow: var(--sh-3); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); animation: cookie-in 0.4s cubic-bezier(.16,1,.3,1); }
.cookie-consent.is-dismissed .cookie-consent__inner { opacity: 0; transform: translateY(10px); transition: opacity 0.3s ease, transform 0.3s ease; }
.cookie-consent__text { flex: 1 1 320px; }
.cookie-consent__text strong { display: block; margin-bottom: 4px; color: var(--ink-900); font-size: 0.95rem; }
.cookie-consent__text p { margin: 0; font-size: 0.84rem; color: var(--ink-500); line-height: 1.5; }
.cookie-consent__text a { color: var(--brand-bright); }
.cookie-consent__actions { display: flex; gap: 8px; flex: 0 0 auto; }
@keyframes cookie-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 540px) { .cookie-consent__actions { width: 100%; } .cookie-consent__actions .button { flex: 1; } }

/* Signup terms checkbox */
.checkbox-row { display: flex; align-items: center; gap: 10px; margin: 4px 0 18px; font-size: 0.88rem; color: var(--ink-600); line-height: 1.4; cursor: pointer; }
.checkbox-row input[type="checkbox"] { margin: 0; width: 17px; height: 17px; flex: none; accent-color: var(--brand-bright); cursor: pointer; }
.checkbox-row a { color: var(--brand-bright); }

/* Account & privacy page */
.account-page { max-width: 720px; }
.account-card { padding: 24px 26px; margin-bottom: 20px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--sh-1); }
.account-card h2 { margin: 0 0 8px; font-size: 1.15rem; color: var(--ink-900); }
.account-card > p { margin: 0 0 16px; color: var(--ink-500); }
.account-card--danger { border-color: rgba(229,115,115,0.35); }
.account-card--danger h2 { color: #ff9a9a; }
.button-danger { background: #c0392b; border-color: #c0392b; color: #fff; }
.button-danger:hover, .button-danger:focus-visible { background: #a83224; border-color: #a83224; }

/* ===================================================== THEMED SCROLLBAR ==== */
/* Teal/brand accent on the dark Executive theme. */
* { scrollbar-width: thin; scrollbar-color: var(--brand-bright) var(--surface-2); }
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: var(--surface-2); }
::-webkit-scrollbar-thumb {
    border-radius: 999px;
    border: 3px solid var(--surface-2);
    background: linear-gradient(var(--brand), var(--brand-bright));
}
::-webkit-scrollbar-thumb:hover { background: var(--brand-bright); }
::-webkit-scrollbar-corner { background: var(--surface-2); }