/* ══════════════════════════════════════════════════════════════════════════════
   AnywhereHired — Premium Dark Design System
   A research-grade job board with glassmorphism & modern aesthetics
   ══════════════════════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* ── Design Tokens ─────────────────────────────────────────────────────────── */
:root {
    /* Surface colors */
    --bg-primary: #0a0a0f;
    --bg-secondary: #12121a;
    --bg-card: #181822;
    --bg-card-hover: #1c1c28;
    --bg-elevated: #1e1e2a;
    --bg-input: #1a1a25;
    --bg-glass: rgba(255, 255, 255, 0.03);

    /* Borders — slightly stronger so cards & fields read clearly */
    --border: rgba(255, 255, 255, 0.11);
    --border-hover: rgba(255, 255, 255, 0.2);
    --border-accent: rgba(249, 115, 22, 0.45);

    /* Text — higher contrast on #0a0a0f / #16161f for easier reading */
    --text-primary: #f4f4f8;
    --text-secondary: #b9b9ce;
    --text-muted: #9494ac;
    --text-inverse: #0a0a0f;

    /* Accent */
    --accent: #f97316;
    --accent-hover: #fb923c;
    --accent-glow: rgba(249, 115, 22, 0.15);
    --accent-gradient: linear-gradient(135deg, #f97316 0%, #a855f7 50%, #ec4899 100%);
    --accent-gradient-2: linear-gradient(135deg, #06b6d4 0%, #f97316 100%);

    /* Status */
    --success: #22c55e;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #06b6d4;

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.6);
    --shadow-glow: 0 0 30px rgba(249, 115, 22, 0.1);
    --shadow-pill-glow: 0 4px 12px rgba(249, 115, 22, 0.3);

    /* Visa sponsorship pill on job cards */
    --visa-badge-fg: #cffafe;
    --visa-badge-bg: linear-gradient(145deg, rgba(6, 182, 212, 0.2) 0%, rgba(249, 115, 22, 0.12) 100%);
    --visa-badge-border: rgba(103, 232, 249, 0.35);
    --visa-badge-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06) inset, 0 2px 10px rgba(6, 182, 212, 0.12);

    /* Theme extras (dark default) */
    --link: #a5b4fc;
    --link-hover: #c7d2fe;
    --nav-bg: rgba(10, 10, 15, 0.85);
    --hero-radial: radial-gradient(circle, rgba(99, 102, 241, 0.08) 0%, transparent 70%);
    --text-on-accent: #ffffff;
    --form-chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%239494ac' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E");

    /* Sizing */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;
    --container: 1380px;
    --grid-columns: 12;
    --nav-height: 64px;
}

/* ── Theme: color-scheme for scrollbars / native UI ────────────────────────── */
html[data-theme="dark"] {
    color-scheme: dark;
}

/* ── Light theme ───────────────────────────────────────────────────────────── */
html[data-theme="light"] {
    color-scheme: light;
    --bg-primary: #f4f5fa;
    --bg-secondary: #e9ebf3;
    --bg-card: #ffffff;
    --bg-card-hover: #f0f2f8;
    --bg-elevated: #eef0f7;
    --bg-input: #ffffff;
    --bg-glass: rgba(0, 0, 0, 0.04);

    --border: rgba(0, 0, 0, 0.1);
    --border-hover: rgba(0, 0, 0, 0.18);
    --border-accent: rgba(79, 70, 229, 0.45);

    --text-primary: #11111a;
    --text-secondary: #3d3d4d;
    --text-muted: #5c5c6e;
    --text-inverse: #ffffff;

    --accent: #4f46e5;
    --accent-hover: #f97316;
    --accent-glow: rgba(99, 102, 241, 0.14);
    --accent-gradient: linear-gradient(135deg, #4f46e5 0%, #9333ea 50%, #db2777 100%);
    --accent-gradient-2: linear-gradient(135deg, #0891b2 0%, #4f46e5 100%);

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 14px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 14px 44px rgba(0, 0, 0, 0.1);
    --shadow-glow: 0 0 28px rgba(99, 102, 241, 0.14);
    --shadow-pill-glow: 0 4px 14px rgba(79, 70, 229, 0.28);

    --link: #4338ca;
    --link-hover: #4f46e5;
    --nav-bg: rgba(255, 255, 255, 0.88);
    --hero-radial: radial-gradient(circle, rgba(99, 102, 241, 0.11) 0%, transparent 70%);
    --text-on-accent: #ffffff;
    --form-chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%235c5c6e' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E");

    --visa-badge-fg: #0e7490;
    --visa-badge-bg: linear-gradient(145deg, #ecfeff 0%, #e0f2fe 100%);
    --visa-badge-border: rgba(8, 145, 178, 0.35);
    --visa-badge-shadow: 0 0 0 1px rgba(255, 255, 255, 0.8) inset, 0 1px 3px rgba(8, 145, 178, 0.12);
}
html[data-theme="light"] .nav-pillar--junior { color: #7c3aed !important; }
html[data-theme="light"] .nav-pillar--junior:hover { color: #6d28d9 !important; }
html[data-theme="light"] .nav-pillar--visa { color: #0891b2 !important; }
html[data-theme="light"] .nav-pillar--visa:hover { color: #0e7490 !important; }
html[data-theme="light"] .category-pill--junior { border-color: rgba(124, 58, 237, 0.35); color: #7c3aed; }
html[data-theme="light"] .category-pill--visa { border-color: rgba(8, 145, 178, 0.35); color: #0891b2; }
html[data-theme="light"] .pillar-card--junior { border-color: rgba(124, 58, 237, 0.3); background: linear-gradient(135deg, rgba(124, 58, 237, 0.06) 0%, rgba(79, 70, 229, 0.03) 100%); }
html[data-theme="light"] .pillar-card--visa { border-color: rgba(8, 145, 178, 0.3); background: linear-gradient(135deg, rgba(8, 145, 178, 0.06) 0%, rgba(79, 70, 229, 0.03) 100%); }

/* ── Reset & Base ──────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    transition: background-color 0.2s ease, color 0.15s ease;
}
body.newsletter-popup-open {
    overflow: hidden;
}

a { color: var(--link); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--link-hover); }

/* Keyboard / screen-reader: visible focus (mouse clicks stay clean via :focus-visible) */
:where(
    a,
    button,
    input:not([type="hidden"]),
    select,
    textarea,
    .nav-toggle,
    .category-pill
):focus-visible {
    outline: 2px solid var(--accent-hover);
    outline-offset: 3px;
}
.search-box input[type="text"]:focus-visible {
    outline: none;
}
.hero-search-panel .search-box input[type="text"]:focus-visible {
    outline: none;
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
img { max-width: 100%; display: block; }

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 clamp(18px, 4.5vw, 32px);
    width: 100%;
    box-sizing: border-box;
}

/* ── Animations ────────────────────────────────────────────────────────────── */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}
@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 20px rgba(249, 115, 22, 0.1); }
    50% { box-shadow: 0 0 30px rgba(99, 102, 241, 0.25); }
}
@keyframes gradient-shift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* ══════════════════════════════════════════════════════════════════════════════
   NAVBAR
   ══════════════════════════════════════════════════════════════════════════════ */
.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    height: var(--nav-height);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    background: var(--nav-bg);
    border-bottom: 1px solid var(--border);
}
.navbar .container {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    height: 100%;
}
.nav-brand {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--text-primary) !important;
    letter-spacing: -0.5px;
}
.nav-brand span {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.nav-links {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}
.nav-trailing {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    gap: 2px;
}
.nav-links a {
    color: var(--text-secondary);
    font-size: 0.88rem;
    font-weight: 500;
    padding: 6px 14px;
    border-radius: var(--radius-sm);
    transition: all 0.2s;
}
.nav-links a:hover, .nav-links a.active {
    color: var(--text-primary);
    background: var(--bg-card);
}
.nav-pillar {
    font-weight: 700 !important;
}
.nav-pillar--junior {
    color: #c084fc !important;
}
.nav-pillar--junior:hover {
    color: #d8b4fe !important;
}
.nav-pillar--visa {
    color: #22d3ee !important;
}
.nav-pillar--visa:hover {
    color: #67e8f9 !important;
}
.nav-cta {
    background: var(--accent) !important;
    color: var(--text-on-accent) !important;
    font-weight: 600 !important;
    padding: 8px 18px !important;
    border-radius: var(--radius-full) !important;
}
.nav-cta:hover {
    background: var(--accent-hover) !important;
    transform: translateY(-1px);
}

/* Single sun/moon control (same DOM on desktop + mobile; sits beside hamburger on small screens) */
.nav-theme-toggle {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: none;
    border-radius: var(--radius-full);
    background: transparent;
    color: var(--text-primary);
    cursor: pointer;
    transition: background 0.2s ease, transform 0.15s ease;
}
.nav-theme-toggle:hover {
    background: var(--bg-glass);
}
.nav-theme-toggle:active {
    transform: scale(0.94);
}
.nav-theme-toggle:focus-visible {
    outline: 2px solid var(--accent-hover);
    outline-offset: 2px;
}
.nav-theme-toggle__icon {
    position: absolute;
    inset: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}
.nav-theme-toggle__icon--moon {
    display: none;
}
html[data-theme="light"] .nav-theme-toggle__icon--sun {
    display: none;
}
html[data-theme="light"] .nav-theme-toggle__icon--moon {
    display: inline-flex;
}

/* Dropdown */
.dropdown { position: relative; }
.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    padding: 8px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    z-index: 50;
}
.dropdown:hover .dropdown-menu { display: block; }
.dropdown-menu a {
    display: block;
    padding: 8px 14px;
    font-size: 0.85rem;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
}
.dropdown-menu a:hover {
    background: var(--accent-glow);
    color: var(--accent-hover);
}

.dropdown-menu--counts {
    min-width: 240px;
}
.nav-dropdown-row {
    display: flex !important;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
}
.nav-dropdown-row > span:first-child {
    color: var(--text-secondary);
}
.nav-dropdown-count {
    flex-shrink: 0;
    font-size: 0.72rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: var(--accent-hover);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    padding: 2px 8px;
    min-width: 1.75rem;
    text-align: center;
}
.category-pills--with-counts .category-pill-count {
    margin-left: 6px;
    font-size: 0.72rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    opacity: 0.92;
}
.category-pill.active .category-pill-count {
    color: inherit;
    opacity: 0.95;
}

/* Mobile menu trigger — bars animate to an “X” when open */
.nav-toggle {
    display: none;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    margin: 0;
    border: none;
    border-radius: var(--radius-full);
    background: transparent;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.15s ease;
}
.nav-toggle:hover {
    background: var(--bg-glass);
}
.nav-toggle:active {
    transform: scale(0.94);
}
.nav-toggle-bar {
    display: block;
    width: 22px;
    height: 2px;
    border-radius: 2px;
    background: var(--text-primary);
    transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1),
        opacity 0.2s ease,
        background 0.2s ease;
}
.nav-toggle--open .nav-toggle-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.nav-toggle--open .nav-toggle-bar:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}
.nav-toggle--open .nav-toggle-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 768px) {
    .navbar .container {
        position: relative;
        justify-content: space-between;
    }
    .nav-toggle {
        display: inline-flex;
        flex-direction: column;
        gap: 5px;
    }
    .nav-links {
        display: none;
        margin-left: 0;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100vw;
        max-width: 100vw;
        margin-left: calc(50% - 50vw);
        box-sizing: border-box;
        flex-direction: column;
        align-items: stretch;
        padding: 8px max(16px, env(safe-area-inset-right)) 20px max(16px, env(safe-area-inset-left));
        gap: 0;
        list-style: none;
        z-index: 200;
        background: var(--bg-elevated);
        backdrop-filter: blur(24px) saturate(180%);
        -webkit-backdrop-filter: blur(24px) saturate(180%);
        border: 1px solid var(--border);
        border-top: none;
        border-radius: 0 0 var(--radius-lg) var(--radius-lg);
        box-shadow: var(--shadow-lg);
        max-height: min(72vh, calc(100dvh - var(--nav-height)));
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    .nav-links.open {
        display: flex;
    }
    .nav-links > li {
        border-bottom: 1px solid var(--border);
    }
    .nav-links > li:last-child {
        border-bottom: none;
    }
    .nav-links > li > a:not(.nav-cta) {
        display: block;
        width: 100%;
        padding: 14px 6px;
        font-size: 0.95rem;
        font-weight: 500;
        border-radius: var(--radius-sm);
        box-sizing: border-box;
    }
    .nav-links > li > a.nav-cta {
        display: block;
        width: 100%;
        margin: 12px 0 8px;
        padding: 12px 18px !important;
        text-align: center;
        box-sizing: border-box;
    }
    .nav-links .dropdown > a {
        font-size: 0.72rem;
        font-weight: 700;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        color: var(--text-muted);
        padding-top: 16px;
        padding-bottom: 6px;
        pointer-events: none;
        cursor: default;
    }
    .nav-links .dropdown {
        padding-bottom: 4px;
    }
    .nav-links .dropdown-menu {
        display: block !important;
        position: static;
        margin: 0 0 8px;
        padding: 4px 0 8px;
        background: transparent;
        border: none;
        box-shadow: none;
        border-radius: 0;
    }
    .nav-links .dropdown-menu a {
        padding: 10px 10px;
        margin: 2px 0;
        font-size: 0.9rem;
        border-radius: var(--radius-sm);
        color: var(--text-secondary);
        background: var(--bg-card);
        border: 1px solid var(--border);
    }
    .nav-links .dropdown-menu a:hover,
    .nav-links .dropdown-menu a:active {
        background: var(--accent-glow);
        border-color: var(--border-accent);
        color: var(--text-primary);
    }
}

/* ══════════════════════════════════════════════════════════════════════════════
   HERO
   ══════════════════════════════════════════════════════════════════════════════ */
.hero {
    padding: 100px 0 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 800px;
    background: var(--hero-radial);
    pointer-events: none;
}
.hero h1 {
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -1.5px;
    margin-bottom: 16px;
    animation: fadeUp 0.6s ease;
}
.gradient-text {
    background: var(--accent-gradient);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-shift 4s ease infinite;
}
.hero p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 560px;
    margin: 0 auto 32px;
    animation: fadeUp 0.6s ease 0.1s both;
}

.hero.hero--category > .container > h1 {
    margin-bottom: 32px;
}
.hero.hero--visa > .container > h1 {
    margin-bottom: 20px;
}
.hero.hero--category .visa-filter-banner {
    margin-top: 0;
    margin-bottom: 22px;
}
.hero .hero__visa-lead {
    font-size: 0.95rem;
    line-height: 1.55;
    color: var(--text-secondary);
    max-width: 480px;
    margin: 0 auto 28px;
}
.hero .hero__visa-lead a {
    display: inline-block;
    margin-left: 0.35em;
    color: var(--accent-hover);
    font-weight: 600;
    text-decoration: none;
}
.hero .hero__visa-lead a:hover {
    text-decoration: underline;
}

/* Stats Bar */
.stats-bar {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 28px 40px;
    margin-top: 40px;
    margin-bottom: 0;
    animation: fadeUp 0.6s ease 0.2s both;
}
.visa-filter-banner {
    font-size: 0.92rem;
    color: var(--text-secondary);
    margin: -8px 0 20px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 16px;
}
.visa-filter-banner a {
    color: var(--accent-hover);
    font-weight: 600;
    text-decoration: none;
}
.visa-filter-banner a:hover {
    text-decoration: underline;
}
.nav-dropdown-row--visa span:first-child {
    color: #0a7a9a;
    font-weight: 600;
}
/* category-pill--visa styles consolidated below Category Pills section */
.stat-number {
    font-size: 1.8rem;
    font-weight: 800;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

/* ── Pillar Cards (Junior / Visa quick-start) ─────────────────────────────── */
.pillar-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 32px;
    animation: fadeUp 0.6s ease 0.25s both;
}
@media (max-width: 600px) {
    .pillar-cards { grid-template-columns: 1fr; }
}
.pillar-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 6px;
    padding: 20px 16px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    background: var(--bg-card);
    text-decoration: none;
    color: var(--text-primary);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.pillar-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}
.pillar-card__icon {
    font-size: 1.6rem;
    line-height: 1;
}
.pillar-card__title {
    font-weight: 700;
    font-size: 1rem;
}
.pillar-card__blurb {
    font-size: 0.82rem;
    color: var(--text-secondary);
}
.pillar-card--junior {
    border-color: rgba(168, 85, 247, 0.35);
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.08) 0%, rgba(99, 102, 241, 0.04) 100%);
}
.pillar-card--junior:hover {
    border-color: rgba(168, 85, 247, 0.55);
    box-shadow: 0 6px 24px rgba(168, 85, 247, 0.15);
}
.pillar-card--junior .pillar-card__title {
    background: linear-gradient(135deg, #a855f7, #f97316);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.pillar-card--visa {
    border-color: rgba(6, 182, 212, 0.35);
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.08) 0%, rgba(99, 102, 241, 0.04) 100%);
}
.pillar-card--visa:hover {
    border-color: rgba(6, 182, 212, 0.55);
    box-shadow: 0 6px 24px rgba(6, 182, 212, 0.15);
}
.pillar-card--visa .pillar-card__title {
    background: linear-gradient(135deg, #06b6d4, #f97316);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Search Box */
.search-box {
    max-width: 600px;
    margin: 0 auto 24px;
    animation: fadeUp 0.6s ease 0.3s both;
}
.search-box form {
    display: flex;
    gap: 0;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    overflow: hidden;
    transition: border-color 0.3s, box-shadow 0.3s;
}
.search-box form:focus-within {
    border-color: var(--accent);
    box-shadow: var(--shadow-glow);
}
.search-box input {
    flex: 1;
    padding: 14px 24px;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-size: 0.95rem;
    font-family: inherit;
}
.search-box input::placeholder { color: var(--text-muted); }
.search-box button {
    padding: 14px 28px;
    background: var(--accent);
    color: var(--text-on-accent);
    border: none;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.2s;
}
.search-box button:hover { background: var(--accent-hover); }

/* Hero: keyword search + AI resume (single panel) */
.hero-search-panel {
    --hero-pill-height: 3.25rem; /* shared row height for both pills */
    max-width: min(1080px, 100%);
    margin: 0 auto 32px;
    padding: 24px 28px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 0 28px;
    align-items: start;
    text-align: left;
    animation: fadeUp 0.6s ease 0.2s both;
}
.hero-search-panel .search-box form {
    align-items: stretch;
}
.hero-search-panel .search-box form.hero-search-panel__form--with-loc {
    flex-wrap: wrap;
    border-radius: var(--radius-md);
}
.hero-search-panel .search-box form.hero-search-panel__form--with-loc input[name="q"] {
    flex: 1 1 38%;
    min-width: 140px;
}
.hero-search-panel .search-box form.hero-search-panel__form--with-loc input[name="loc"] {
    flex: 1 1 32%;
    min-width: 120px;
    border-left: 1px solid var(--border);
}
.hero-search-panel .search-box form.hero-search-panel__form--with-loc button[type="submit"] {
    flex: 0 0 auto;
    min-width: 7.5rem;
}
.hero-search-panel .search-box input[type="text"] {
    flex: 1;
    min-width: 0;
    min-height: var(--hero-pill-height);
    height: var(--hero-pill-height);
    padding: 0 1.5rem;
    font-size: 0.9rem;
    line-height: var(--hero-pill-height);
    box-sizing: border-box;
}
.hero-search-panel .search-box button[type="submit"] {
    flex-shrink: 0;
    min-height: var(--hero-pill-height);
    height: var(--hero-pill-height);
    padding: 0 1.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    font-size: 0.9rem;
}
.hero-search-panel__block--resume {
    padding-left: 28px;
    border-left: 1px solid var(--border);
}
/* Hidden on desktop so grid is exactly 2 columns (search | resume). */
.hero-search-panel__divider {
    display: none;
    align-items: center;
    gap: 12px;
    color: var(--text-muted);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.hero-search-panel__divider::before,
.hero-search-panel__divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}
@media (max-width: 639px) {
    .hero-search-panel {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 20px 16px;
        min-width: 0;
        width: 100%;
        box-sizing: border-box;
    }
    .hero-search-panel__block--resume {
        padding-left: 0;
        border-left: none;
        text-align: center;
    }
    .hero-search-panel__divider {
        display: flex;
    }
    /* Stack input + button so the row does not overflow narrow viewports */
    .hero-search-panel .search-box {
        width: 100%;
        max-width: 100%;
    }
    .hero-search-panel .search-box form {
        flex-direction: column;
        align-items: stretch;
        /* Not a horizontal “pill” anymore — stacked field + button */
        border-radius: var(--radius-md);
        overflow: hidden;
    }
    .hero-search-panel .search-box form:not(.hero-search-panel__form--with-loc) input[type="text"] {
        width: 100%;
        min-height: 2.875rem;
        height: auto;
        line-height: 1.4;
        padding-top: 0.65rem;
        padding-bottom: 0.65rem;
        border-radius: var(--radius-md) var(--radius-md) 0 0;
        border-bottom: 1px solid var(--border);
    }
    .hero-search-panel .search-box form.hero-search-panel__form--with-loc input[type="text"] {
        width: 100%;
        min-height: 2.875rem;
        height: auto;
        line-height: 1.4;
        padding-top: 0.65rem;
        padding-bottom: 0.65rem;
    }
    .hero-search-panel .search-box form.hero-search-panel__form--with-loc input[name="q"] {
        border-radius: var(--radius-md) var(--radius-md) 0 0;
        border-bottom: 1px solid var(--border);
    }
    .hero-search-panel .search-box form.hero-search-panel__form--with-loc input[name="loc"] {
        border-left: none;
        border-top: 1px solid var(--border);
        border-radius: 0;
        border-bottom: 1px solid var(--border);
    }
    .hero-search-panel .search-box button[type="submit"] {
        width: 100%;
        flex-shrink: 1;
        min-height: 2.875rem;
        height: auto;
        padding-top: 0.65rem;
        padding-bottom: 0.65rem;
        border-radius: 0 0 var(--radius-md) var(--radius-md);
    }
    /* Resume row: file strip + button — same stacked silhouette */
    .hero-search-panel .hero-search-panel__resume-box .search-box form {
        border-radius: var(--radius-md);
        overflow: hidden;
    }
    .hero-search-panel .hero-search-panel__resume-box .hero-search-panel__file-wrap {
        border-radius: var(--radius-md) var(--radius-md) 0 0;
        border-bottom: 1px solid var(--border);
    }
    .hero-search-panel .hero-search-panel__resume-box .search-box button[type="submit"] {
        border-radius: 0 0 var(--radius-md) var(--radius-md);
    }
}
.hero-search-panel__eyebrow {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin: 0 0 10px;
    text-align: center;
}
.hero-search-panel__search-box {
    max-width: none;
    margin: 0;
}

/* When user has search (or visa location text), switch sponsor vs full board without retyping */
.sponsor-search-toggle {
    margin-top: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px 14px;
}
.sponsor-search-toggle__label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
}
.sponsor-search-toggle__opts {
    display: inline-flex;
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    overflow: hidden;
    background: var(--bg-secondary, rgba(0, 0, 0, 0.04));
}
.sponsor-search-toggle__opt {
    padding: 0.42rem 1.1rem;
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-decoration: none;
    white-space: nowrap;
    border: none;
    background: transparent;
    transition: background 0.15s, color 0.15s;
}
.sponsor-search-toggle__opt:hover {
    color: var(--text-primary);
    background: var(--bg-card, rgba(255, 255, 255, 0.06));
}
.sponsor-search-toggle__opt.is-active {
    background: var(--accent);
    color: var(--text-on-accent);
}
.sponsor-search-toggle__opt.is-active:hover {
    color: var(--text-on-accent);
    background: var(--accent-hover);
}
.sponsor-search-toggle__opt + .sponsor-search-toggle__opt {
    border-left: 1px solid var(--border);
}
.sponsor-search-toggle__opt.is-active + .sponsor-search-toggle__opt,
.sponsor-search-toggle__opt + .sponsor-search-toggle__opt.is-active {
    border-left-color: transparent;
}
.sponsor-search-toggle--results {
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 36rem;
    margin-left: auto;
    margin-right: auto;
}
.sponsor-search-toggle__opts--triple {
    flex-wrap: wrap;
    justify-content: center;
    max-width: 100%;
}
.sponsor-search-toggle__opts--triple .sponsor-search-toggle__opt {
    padding: 0.38rem 0.85rem;
    font-size: 0.8rem;
}
.sponsor-search-toggle__hint {
    margin: 10px 0 0;
    font-size: 0.8rem;
    line-height: 1.45;
    color: var(--text-muted);
    font-weight: 500;
    max-width: 28rem;
}
.results-match-hero__toggle {
    margin: 18px auto 0;
    width: 100%;
}
.results-match-hero__back {
    margin-top: 18px;
    display: inline-block;
}
/* Same pill bar as keyword search: file zone + Match resume button */
.hero-search-panel__resume-box {
    max-width: none;
    margin: 0;
}
.hero-search-panel__file-wrap {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
    min-width: 0;
    min-height: var(--hero-pill-height);
    height: var(--hero-pill-height);
    padding: 0 1.5rem;
    box-sizing: border-box;
}
.hero-search-panel__file-native {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    font-size: 2rem;
}
.hero-search-panel__file-display {
    font-size: 0.9rem;
    line-height: 1.35;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    pointer-events: none;
    width: 100%;
}
.hero-search-panel__file-display.is-chosen {
    color: var(--text-primary);
}
/* Resume Upload */
.resume-upload {
    max-width: 500px;
    margin: 0 auto 32px;
    padding: 24px;
    background: var(--bg-glass);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    animation: fadeUp 0.6s ease 0.4s both;
}
.resume-upload h3 {
    font-size: 1rem;
    margin-bottom: 12px;
    font-weight: 600;
}
.resume-upload form {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
}
.resume-upload input[type="file"] {
    font-size: 0.85rem;
    color: var(--text-secondary);
}
.resume-upload input[type="file"]::file-selector-button {
    padding: 8px 16px;
    background: var(--bg-elevated);
    color: var(--text-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-family: inherit;
    font-size: 0.8rem;
    transition: all 0.2s;
}
.resume-upload input[type="file"]::file-selector-button:hover {
    background: var(--bg-card-hover);
}

/* Category Pills */
.category-pills {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    animation: fadeUp 0.6s ease 0.5s both;
}
.category-pills--with-counts {
    margin-bottom: 8px;
}
@media (min-width: 640px) {
    .category-pills--with-counts {
        margin-bottom: 16px;
    }
}
.category-pill {
    padding: 8px 14px;
    border-radius: var(--radius-full);
    font-size: 0.76rem;
    font-weight: 500;
    line-height: 1.25;
    text-align: center;
    color: var(--text-secondary);
    background: var(--bg-card);
    border: 1px solid var(--border);
    transition: all 0.25s;
}
@media (min-width: 900px) {
    .category-pills--with-counts .category-pill {
        padding: 8px 16px;
        font-size: 0.78rem;
    }
}
.category-pill:hover, .category-pill.active {
    color: var(--text-on-accent);
    background: var(--accent);
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: var(--shadow-pill-glow);
}

/* Promoted pills — Junior & Visa stand out */
.category-pill--junior,
.category-pill--visa {
    font-weight: 700;
    font-size: 0.82rem;
    padding: 9px 18px;
}
@media (min-width: 900px) {
    .category-pills--with-counts .category-pill--junior,
    .category-pills--with-counts .category-pill--visa {
        font-size: 0.84rem;
        padding: 9px 20px;
    }
}
.category-pill--junior {
    border-color: rgba(168, 85, 247, 0.35);
    color: #c084fc;
}
.category-pill--junior:hover,
.category-pill--junior.active {
    background: linear-gradient(135deg, #a855f7 0%, #f97316 100%);
    border-color: #a855f7;
    box-shadow: 0 4px 14px rgba(168, 85, 247, 0.3);
}
.category-pill--visa {
    border-color: rgba(6, 182, 212, 0.35);
    color: #22d3ee;
}
.category-pill--visa:hover,
.category-pill--visa.active {
    background: linear-gradient(135deg, #06b6d4 0%, #f97316 100%);
    border-color: #06b6d4;
    box-shadow: 0 4px 14px rgba(6, 182, 212, 0.3);
}

/* ══════════════════════════════════════════════════════════════════════════════
   JOB CARDS — 12-column grid (cards span 12 / 6 / 4 cols by breakpoint)
   ══════════════════════════════════════════════════════════════════════════════ */
.jobs-list {
    display: grid;
    grid-template-columns: repeat(var(--grid-columns), minmax(0, 1fr));
    gap: clamp(22px, 3vw, 36px);
    margin-bottom: 48px;
    padding: 8px 0 12px;
    align-items: stretch;
    width: 100%;
    min-width: 0;
}

.job-card {
    grid-column: span 12;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
    min-width: 0;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: inherit;
    animation: fadeUp 0.4s ease calc(var(--delay, 0) * 0.05s) both;
}

@media (min-width: 640px) {
    .job-card {
        grid-column: span 6;
    }
}

/* 2 larger cards per row on most desktops */
@media (min-width: 1024px) {
    .job-card {
        grid-column: span 6;
    }
}

/* 3 columns only on very wide screens */
@media (min-width: 1440px) {
    .job-card {
        grid-column: span 4;
    }
}

.job-card:hover {
    border-color: var(--border-accent);
    background: var(--bg-card-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.job-card-main {
    flex: 1;
    display: flex;
    align-items: stretch;
    gap: 14px;
    padding: 18px 18px 16px;
    width: 100%;
    min-height: 0;
}

.job-logo-wrap {
    position: relative;
    width: 52px;
    height: 52px;
    flex-shrink: 0;
    align-self: flex-start;
}

.job-logo {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-md);
    object-fit: contain;
    background: var(--bg-elevated);
    padding: 6px;
    flex-shrink: 0;
    border: 1px solid var(--border);
}

.job-logo-fallback {
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--accent-hover);
    object-fit: unset;
    padding: 0;
}

.job-logo-fallback.is-visible {
    display: flex;
}

.job-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}
.job-company {
    font-size: 0.82rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 2px;
}
.job-title {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.job-meta {
    display: flex;
    align-items: flex-start;
    gap: 8px 12px;
    flex-wrap: wrap;
    width: 100%;
    max-width: 100%;
}
.job-meta-item {
    font-size: 0.8rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 4px;
}
.job-meta-item .icon { font-size: 0.9rem; }

.tag {
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-size: 0.72rem;
    font-weight: 600;
    line-height: 1.35;
    background: var(--accent-glow);
    color: var(--accent-hover);
    border: 1px solid rgba(249, 115, 22, 0.15);
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.job-meta .tag {
    flex: 0 1 auto;
    min-width: 0;
    max-width: 100%;
}

/* Category pill: keep "Category: Name" on one line */
.tag-category {
    white-space: nowrap;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    display: inline-block;
    vertical-align: middle;
}

/* Category page cards: meta + Apply stacked under title */
.job-card--category .job-card-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 18px 18px 16px;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}
.job-card-head {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    width: 100%;
}
.job-head-text {
    flex: 1;
    min-width: 0;
}
.job-posted {
    flex-shrink: 0;
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.3;
    text-align: right;
    max-width: 38%;
}
.job-card--category .job-card-title-row {
    padding-left: calc(52px + 14px);
}
.job-card--category .job-card-title-row .job-title {
    margin: 0;
    white-space: normal;
    line-height: 1.35;
    font-size: 1.05rem;
}
/* Loc + category pill always one horizontal row (narrow cards: ellipsis, no wrap) */
.job-card-loc-cat-row {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: 10px;
    padding-left: calc(52px + 14px);
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}
.job-card-loc-cat-row .job-meta-item {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.job-card-loc-cat-row .tag.tag-category {
    flex: 0 1 auto;
    min-width: 0;
    max-width: 48%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    word-break: normal;
    overflow-wrap: normal;
    display: inline-block;
}
.job-card-exp-row {
    padding-left: calc(52px + 14px);
}
.job-card-actions-row {
    padding-left: calc(52px + 14px);
    padding-right: 2px;
}
.job-card-actions-row .btn-primary {
    width: 100%;
    max-width: none;
    justify-content: center;
}

@media (max-width: 640px) {
    .job-card-title-row,
    .job-card-loc-cat-row,
    .job-card-exp-row,
    .job-card-actions-row {
        padding-left: 0;
    }
    .job-card-head {
        flex-wrap: wrap;
    }
    .job-posted {
        flex: 1 1 100%;
        max-width: none;
        text-align: left;
        margin-top: 4px;
    }
    .job-head-text {
        flex: 1;
        min-width: 12rem;
    }
}

.job-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    flex-shrink: 0;
    align-self: stretch;
    min-width: 108px;
    max-width: 42%;
    text-align: right;
}
.job-actions .btn-primary {
    margin-top: auto;
    flex-shrink: 0;
    max-width: 100%;
}
.job-date {
    font-size: 0.78rem;
    color: var(--text-muted);
    flex-shrink: 0;
    line-height: 1.3;
}

@media (max-width: 640px) {
    .job-card-main {
        flex-direction: column;
        align-items: stretch;
        padding: 16px;
        gap: 12px;
    }
    .job-actions {
        flex-direction: row;
        width: 100%;
        max-width: none;
        min-width: 0;
        justify-content: space-between;
        align-items: center;
        text-align: left;
    }
    .job-actions .btn-primary {
        margin-top: 0;
    }
    .job-title { white-space: normal; }
}

/* Full-detail cards (homepage 12 jobs × 3-column grid) */
.job-card.job-card--detail {
    display: flex;
    flex-direction: column;
}
.job-detail-inner {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    padding: 22px 24px 26px;
    gap: 16px;
}
.job-detail-head {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}
.job-detail-head .job-logo-wrap {
    align-self: flex-start;
    width: 58px;
    height: 58px;
}
.job-card--detail .job-detail-head .job-logo,
.job-card--detail .job-detail-head .job-logo-fallback {
    width: 58px;
    height: 58px;
}
.job-card--detail .job-detail-head .job-logo-fallback {
    font-size: 1.35rem;
}
.job-detail-head-text {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
.job-visa-badge-wrap {
    margin-top: 10px;
    width: 100%;
}
.job-visa-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35em;
    font-size: 0.625rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--visa-badge-fg);
    background: var(--visa-badge-bg);
    border: 1px solid var(--visa-badge-border);
    border-radius: var(--radius-full);
    padding: 5px 11px 5px 10px;
    box-shadow: var(--visa-badge-shadow);
    line-height: 1.2;
}
.job-card--detail .job-company {
    font-size: 1.05rem;
    color: var(--text-primary);
    font-weight: 700;
    margin: 0 0 8px;
    white-space: normal;
    line-height: 1.3;
}
.job-detail-head-text .job-detail-position {
    margin: 0;
}
.job-detail-company-link {
    font-size: 0.78rem;
    color: var(--accent-hover);
    word-break: break-all;
}
.job-card--detail .job-title,
.job-card--detail .job-detail-position {
    font-size: 1.06rem;
    white-space: normal;
    line-height: 1.4;
    margin: 0;
    font-weight: 600;
}
.job-card--detail .job-title a,
.job-card--detail .job-detail-position a {
    color: var(--text-primary);
    text-decoration: none;
}
.job-card--detail .job-title a:hover,
.job-card--detail .job-detail-position a:hover {
    color: var(--accent-hover);
}
.job-detail-spec {
    display: grid;
    grid-template-columns: minmax(0, 38%) 1fr;
    gap: 10px 16px;
    font-size: 0.84rem;
    line-height: 1.45;
    margin: 0;
    padding: 16px 0 4px;
    border-top: 1px solid var(--border);
}
.job-detail-spec dt {
    margin: 0;
    color: var(--text-muted);
    font-weight: 600;
}
.job-detail-spec dd {
    margin: 0;
    color: var(--text-secondary);
    word-break: break-word;
    overflow-wrap: anywhere;
}
.job-detail-spec a {
    color: var(--accent-hover);
}
.job-company-description {
    margin-top: 12px;
    padding-top: 14px;
    border-top: 1px solid var(--border);
}
.job-company-description__title {
    margin: 0 0 8px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-muted);
}
.job-company-description__body {
    margin: 0;
    font-size: 0.86rem;
    line-height: 1.55;
    color: var(--text-secondary);
    white-space: pre-wrap;
    word-break: break-word;
    overflow-wrap: anywhere;
}
.job-detail-apply {
    margin-top: auto;
    padding-top: 14px;
}
.job-detail-apply .btn-primary {
    width: 100%;
    justify-content: center;
    padding: 14px 24px;
    font-size: 0.92rem;
}

/* ══════════════════════════════════════════════════════════════════════════════
   BUTTONS
   ══════════════════════════════════════════════════════════════════════════════ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 22px;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    border: none;
    transition: all 0.25s;
    white-space: nowrap;
}
.btn-primary {
    background: var(--accent);
    color: var(--text-on-accent);
}
.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-pill-glow);
    color: var(--text-on-accent);
}
.btn-outline {
    background: transparent;
    color: var(--accent-hover);
    border: 1px solid var(--border-accent);
}
.btn-outline:hover {
    background: var(--accent-glow);
    border-color: var(--accent);
    color: var(--accent-hover);
}
.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border);
}
.btn-ghost:hover {
    background: var(--bg-card);
    color: var(--text-primary);
    border-color: var(--border-hover);
}

/* ══════════════════════════════════════════════════════════════════════════════
   FORMS
   ══════════════════════════════════════════════════════════════════════════════ */
.form-section {
    max-width: 600px;
    margin: 60px auto;
    padding: 40px 40px 52px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    animation: fadeUp 0.5s ease;
}
.form-section h1 {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 8px;
}
.form-section .subtitle {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 32px;
    line-height: 1.5;
}

/* Transactional / status messages (subscription, errors, etc.) */
.message-page {
    padding: clamp(48px, 10vh, 96px) 0 80px;
    min-height: 52vh;
    display: flex;
    align-items: center;
    box-sizing: border-box;
}
.message-page .container {
    width: 100%;
}
.message-card {
    max-width: 520px;
    margin: 0 auto;
    padding: 40px 36px 36px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    text-align: center;
    animation: fadeUp 0.45s ease;
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.12);
}
[data-theme="light"] .message-card {
    box-shadow: 0 12px 40px rgba(15, 23, 42, 0.08);
}
.message-card__icon {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}
.message-card__svg {
    display: block;
}
.message-card--success .message-card__svg--success {
    color: var(--accent);
}
.message-card--error .message-card__svg--error {
    color: var(--danger);
}
.message-card--neutral .message-card__svg--neutral {
    color: var(--text-muted);
}
.message-card__title {
    font-size: 1.45rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin: 0 0 14px;
    line-height: 1.25;
    color: var(--text-primary);
}
.message-card__body {
    margin: 0;
    font-size: 1.02rem;
    line-height: 1.65;
    color: var(--text-secondary);
}
.message-card__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    align-items: center;
    margin-top: 28px;
}
.message-card__actions .btn {
    min-width: 160px;
}

.form-group {
    margin-bottom: 20px;
}
.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
    letter-spacing: 0.01em;
}
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 0.9rem;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
    opacity: 1;
}
.form-group--checkbox {
    margin-bottom: 8px;
}
.form-group .form-group__checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    cursor: pointer;
    font-weight: 500;
    font-size: 0.9rem;
    line-height: 1.55;
    color: var(--text-secondary);
    margin-bottom: 0;
}
.form-group .form-group__checkbox-input {
    width: 1.125rem;
    height: 1.125rem;
    min-width: 1.125rem;
    margin: 0.35rem 0 0;
    flex-shrink: 0;
    cursor: pointer;
    accent-color: var(--accent);
}
.form-group .form-group__checkbox-text strong {
    color: var(--text-primary);
    font-weight: 600;
}
.post-job-form__actions {
    margin-top: 28px;
    padding-top: 8px;
}
.post-job-form__submit {
    width: 100%;
    padding: 14px 22px;
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    white-space: normal;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}
.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: var(--form-chevron);
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
}

/* Pagination: numbered links + jump in one bar */
.pagination-bar {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px 20px;
    padding: 20px 0 44px;
    flex-wrap: wrap;
}
@media (min-width: 720px) {
    .pagination-bar {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
    }
}
.pagination-bar .pagination {
    padding: 0;
}
.pagination-jump {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 14px;
    justify-content: center;
    font-size: 0.85rem;
    color: var(--text-secondary);
}
.pagination-jump__label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.pagination-jump__label input[type="number"] {
    width: 4.5rem;
    padding: 8px 10px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--bg-input);
    color: var(--text-primary);
    font-size: 0.9rem;
}
.pagination-jump__label span {
    font-weight: 600;
    color: var(--text-muted);
    font-size: 0.8rem;
}
.pagination-jump__of {
    font-size: 0.82rem;
}
.pagination-jump__btn {
    padding: 8px 16px;
    font-size: 0.82rem;
}

/* ══════════════════════════════════════════════════════════════════════════════
   PAGINATION
   ══════════════════════════════════════════════════════════════════════════════ */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    padding: 32px 0 48px;
    max-width: 100%;
    box-sizing: border-box;
}
.pagination a, .pagination span {
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all 0.2s;
    flex: 0 0 auto;
    min-width: 0;
    text-align: center;
}
@media (max-width: 639px) {
    .pagination {
        gap: 6px;
        padding: 20px 0 32px;
        row-gap: 8px;
    }
    .pagination a, .pagination span {
        padding: 6px 9px;
        font-size: 0.75rem;
    }
}
@media (max-width: 380px) {
    .pagination a, .pagination span {
        padding: 5px 7px;
        font-size: 0.7rem;
    }
}
.pagination a:hover {
    background: var(--bg-card);
    color: var(--text-primary);
}
.pagination .active {
    background: var(--accent);
    color: var(--text-on-accent);
}
.pagination .disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* ══════════════════════════════════════════════════════════════════════════════
   NEWSLETTER
   ══════════════════════════════════════════════════════════════════════════════ */
.newsletter-section {
    padding: 80px 0;
}
.newsletter-card {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
    padding: 48px 40px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    position: relative;
    overflow: hidden;
}
.newsletter-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--accent-gradient);
}
.newsletter-card h2 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 8px;
}
.newsletter-card p {
    color: var(--text-secondary);
    margin-bottom: 24px;
    font-size: 0.95rem;
}
.newsletter-form {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}
.newsletter-form input[type="email"] {
    flex: 1;
    min-width: 200px;
    padding: 12px 20px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.9rem;
    outline: none;
}
.newsletter-form input:focus { border-color: var(--accent); }
.newsletter-form select {
    padding: 12px 16px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.85rem;
    outline: none;
    cursor: pointer;
}

/* ══════════════════════════════════════════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════════════════════════════════════════ */
.footer {
    padding: 60px 0 30px;
    border-top: 1px solid var(--border);
    background: var(--bg-secondary);
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr repeat(4, minmax(0, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}
.footer-brand {
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 12px;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.footer-desc {
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.7;
    max-width: 320px;
}
.footer h4 {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-secondary);
    margin-bottom: 16px;
}
.footer ul { list-style: none; }
.footer li { margin-bottom: 8px; }
.footer li a {
    color: var(--text-muted);
    font-size: 0.85rem;
    transition: color 0.2s;
}
.footer li a:hover { color: var(--accent-hover); }
.footer-bottom {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 8px 16px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
    font-size: 0.8rem;
    color: var(--text-muted);
}
.footer-bottom p {
    margin: 0;
}
.footer-bottom__copy {
    justify-self: start;
    text-align: left;
}
.footer-bottom__support {
    justify-self: center;
    text-align: center;
}
.footer-bottom__support a {
    font-weight: 600;
}
.footer-bottom .footer-credit {
    justify-self: end;
    text-align: right;
}
.footer-bottom a { color: var(--accent-hover); }
.footer-contact {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
}
.footer-contact-email {
    color: var(--text-muted);
}
.footer-credit {
    margin: 0;
}
.footer-credit a {
    font-weight: 600;
}

/* Legal & policy pages */
.legal-page {
    padding: 48px 0 64px;
}
.legal-page__inner {
    max-width: 720px;
    margin: 0 auto;
}
.legal-page h1 {
    font-size: 2rem;
    margin-bottom: 8px;
}
.legal-page__updated {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 24px;
}
.legal-page h2 {
    font-size: 1.15rem;
    margin: 28px 0 12px;
}
.legal-page p,
.legal-page li {
    color: var(--text-secondary);
    line-height: 1.65;
    font-size: 0.95rem;
}
.legal-page ul {
    margin: 0 0 16px 1.1rem;
    padding: 0;
}
.legal-page li { margin-bottom: 8px; }
.legal-page__back {
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
    font-size: 0.9rem;
}
.newsletter-section__legal {
    margin-top: 16px;
    font-size: 0.8rem;
    line-height: 1.5;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}
.hero-search-panel__privacy {
    margin-top: 10px;
    font-size: 0.75rem;
    line-height: 1.4;
    max-width: 100%;
}
.newsletter-popup[hidden] { display: none; }
.newsletter-popup {
    position: fixed;
    inset: 0;
    z-index: 250;
}
.newsletter-popup__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.62);
}
.newsletter-popup__card {
    position: relative;
    width: min(560px, calc(100% - 24px));
    margin: 10vh auto 0;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 24px;
}
.newsletter-popup__close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: transparent;
    border: 0;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1.5rem;
    line-height: 1;
}
.newsletter-popup__eyebrow {
    color: var(--accent-hover);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.newsletter-popup__desc {
    color: var(--text-secondary);
    margin: 8px 0 14px;
}
.newsletter-popup__form {
    display: grid;
    gap: 10px;
}
.newsletter-popup__form input,
.newsletter-popup__form select {
    border: 1px solid var(--border);
    background: var(--bg-input);
    color: var(--text-primary);
    border-radius: var(--radius-md);
    padding: 11px 12px;
    font-size: 0.95rem;
}

@media (max-width: 768px) {
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
    .footer-bottom {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
    }
    .footer-bottom__copy,
    .footer-bottom .footer-credit {
        justify-self: center;
        text-align: center;
    }
}

/* ══════════════════════════════════════════════════════════════════════════════
   MESSAGE PAGE
   ══════════════════════════════════════════════════════════════════════════════ */
.message-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    text-align: center;
    padding: 40px 20px;
    animation: fadeUp 0.5s ease;
}
.message-page .icon-large { font-size: 4rem; margin-bottom: 20px; }
.message-page h2 {
    font-size: 1.4rem;
    font-weight: 700;
    max-width: 500px;
    margin-bottom: 24px;
    line-height: 1.5;
}

/* ══════════════════════════════════════════════════════════════════════════════
   DASHBOARD
   ══════════════════════════════════════════════════════════════════════════════ */
.dash-header {
    padding: 40px 0 24px;
}
.dash-header h1 {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}
.dash-header p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-top: 4px;
}

.dashboard-owner-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 16px;
    margin-top: 20px;
    padding: 12px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
}
.dashboard-owner-nav__link {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-secondary);
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    transition: color 0.2s, background 0.2s;
}
.dashboard-owner-nav__link:hover {
    color: var(--text-primary);
    background: var(--bg-card-hover);
}
.dashboard-owner-nav__link.is-active {
    color: var(--accent-hover);
    background: var(--accent-glow);
}
.dashboard-owner-nav__spacer {
    flex: 1;
    min-width: 8px;
}
.dashboard-owner-nav__logout {
    margin: 0;
}

/* Stat Cards */
.stat-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 32px;
}
.stat-card {
    padding: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    transition: all 0.3s;
}
.stat-card:hover {
    border-color: var(--border-accent);
    box-shadow: var(--shadow-glow);
    transform: translateY(-2px);
}
.stat-card .label {
    font-size: 0.78rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    margin-bottom: 8px;
}
.stat-card .value {
    font-size: 2rem;
    font-weight: 800;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Dashboard Panels */
.dash-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 32px;
}
.dash-panel {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 24px;
    overflow: hidden;
}
.dash-panel h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.dash-panel.full-width {
    grid-column: 1 / -1;
}

/* Security Level Badges */
.security-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: var(--radius-full);
    font-size: 0.72rem;
    font-weight: 700;
}
.security-0 { background: rgba(34, 197, 94, 0.1); color: #22c55e; }
.security-1 { background: rgba(34, 197, 94, 0.1); color: #86efac; }
.security-2 { background: rgba(245, 158, 11, 0.1); color: #f59e0b; }
.security-3 { background: rgba(245, 158, 11, 0.1); color: #fbbf24; }
.security-4 { background: rgba(239, 68, 68, 0.1); color: #ef4444; }
.security-5 { background: rgba(239, 68, 68, 0.1); color: #f87171; }

/* Technique Badge */
.technique-badge {
    display: inline-flex;
    padding: 3px 10px;
    border-radius: var(--radius-full);
    font-size: 0.72rem;
    font-weight: 700;
}
.technique-scrapy { background: rgba(249, 115, 22, 0.1); color: #fb923c; }
.technique-playwright { background: rgba(168, 85, 247, 0.1); color: #c084fc; }
.technique-api { background: rgba(6, 182, 212, 0.1); color: #22d3ee; }
.technique-llm { background: rgba(236, 72, 153, 0.1); color: #f472b6; }

/* Dashboard Tables */
.dash-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.82rem;
}
.dash-table th {
    text-align: left;
    padding: 10px 12px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.72rem;
    border-bottom: 1px solid var(--border);
}
.dash-table td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--border);
    color: var(--text-secondary);
}
.dash-table tr:last-child td { border-bottom: none; }
.dash-table tr:hover td { background: var(--bg-glass); }

/* Progress Bars */
.progress-bar {
    height: 6px;
    border-radius: var(--radius-full);
    background: var(--bg-elevated);
    overflow: hidden;
    margin-top: 4px;
}
.progress-fill {
    height: 100%;
    border-radius: var(--radius-full);
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}
.progress-fill.success { background: var(--success); }
.progress-fill.warning { background: var(--warning); }
.progress-fill.danger { background: var(--danger); }
.progress-fill.accent { background: var(--accent); }

/* Chart Container */
.chart-container {
    width: 100%;
    height: 260px;
    position: relative;
}

/* Lightweight trend visuals for dashboard lab */
.trend-mini-chart {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    min-height: 190px;
    padding: 12px 0 4px;
    overflow-x: auto;
}
.trend-mini-chart__item {
    min-width: 78px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}
.trend-mini-chart__item--dual {
    min-width: 96px;
}
.trend-mini-chart__value {
    font-size: 0.74rem;
    color: var(--text-muted);
    font-weight: 600;
    text-align: center;
}
.trend-mini-chart__bar,
.trend-mini-chart__bar-group {
    height: 126px;
    display: flex;
    align-items: flex-end;
}
.trend-mini-chart__bar {
    width: 28px;
    border-radius: 999px;
    background: var(--bg-elevated);
    overflow: hidden;
    border: 1px solid var(--border);
}
.trend-mini-chart__bar-group {
    gap: 6px;
}
.trend-mini-chart__bar--half {
    width: 20px;
}
.trend-mini-chart__fill {
    display: block;
    width: 100%;
    min-height: 2px;
    border-radius: 999px;
}
.trend-mini-chart__fill--total {
    background: linear-gradient(180deg, #fb923c 0%, #f97316 100%);
}
.trend-mini-chart__fill--visa {
    background: linear-gradient(180deg, #22d3ee 0%, #06b6d4 100%);
}
.trend-mini-chart__fill--junior {
    background: linear-gradient(180deg, #c084fc 0%, #a855f7 100%);
}
.trend-mini-chart__fill--source {
    background: linear-gradient(180deg, #34d399 0%, #10b981 100%);
}
.trend-mini-chart__label {
    font-size: 0.72rem;
    color: var(--text-secondary);
    white-space: nowrap;
    text-align: center;
}
.trend-mini-chart__item--source .trend-mini-chart__label {
    max-width: 78px;
    word-break: break-word;
}

@media (max-width: 768px) {
    .dash-grid { grid-template-columns: 1fr; }
    .stat-cards { grid-template-columns: repeat(2, 1fr); }
}

/* ── Utilities ─────────────────────────────────────────────────────────────── */
.text-center { text-align: center; }
.text-right { text-align: right; }
.mb-3 { margin-bottom: 24px; }
.mt-3 { margin-top: 24px; }
.text-success { color: var(--success) !important; }
.text-warning { color: var(--warning) !important; }
.text-danger { color: var(--danger) !important; }
.text-accent { color: var(--accent-hover) !important; }
.text-muted { color: var(--text-muted) !important; }
.text-secondary { color: var(--text-secondary) !important; }
.fw-bold { font-weight: 700; }
.mono { font-family: 'SF Mono', 'Fira Code', monospace; font-size: 0.82rem; }

/* Job Details Expandable Drawer */
.job-details-expand {
    margin: 0 16px 16px 16px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.job-details-expand summary {
    cursor: pointer;
    color: var(--accent);
    font-weight: 500;
    font-size: 0.85rem;
    list-style: none; /* Hide default arrow in some browsers */
}

/* Hide webkit default arrow */
.job-details-expand summary::-webkit-details-marker {
    display: none;
}

.job-details-expand[open] summary {
    margin-bottom: 12px;
}

.job-description-content {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.6;
}
/* ── Hospitality Filters ─────────────────────────────────────────────────── */
.hospitality-filters {
    margin-top: 12px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--bg-card);
    overflow: hidden;
}
.hospitality-filters__toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    cursor: pointer;
    font-size: 13px;
    color: var(--text-secondary);
    list-style: none;
    user-select: none;
}
.hospitality-filters__toggle::-webkit-details-marker { display: none; }
.hospitality-filters__toggle svg { margin-left: auto; transition: transform .2s; }
details[open] .hospitality-filters__toggle svg { transform: rotate(180deg); }
.filter-active-badge {
    font-size: 11px;
    background: var(--accent);
    color: #fff;
    border-radius: 99px;
    padding: 1px 8px;
    font-weight: 600;
}
.hospitality-filters__body {
    padding: 12px 16px 16px;
    border-top: 1px solid var(--border);
}
.filter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 10px;
}
.filter-field { display: flex; flex-direction: column; gap: 4px; }
.filter-label { font-size: 11px; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: .06em; }
.filter-select {
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text-primary);
    font-size: 13px;
    padding: 6px 10px;
    cursor: pointer;
    transition: border-color .15s;
}
.filter-select:focus { outline: none; border-color: var(--accent); }
.filter-field--checkboxes { justify-content: flex-start; }
.filter-checks { display: flex; flex-direction: column; gap: 6px; margin-top: 2px; }
.filter-check { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-secondary); cursor: pointer; }
.filter-check input[type=checkbox] { accent-color: var(--accent); width: 14px; height: 14px; cursor: pointer; }
.filter-clear-link {
    display: inline-block;
    margin-top: 12px;
    font-size: 12px;
    color: var(--text-muted);
    text-decoration: underline;
    cursor: pointer;
}
.filter-clear-link:hover { color: var(--accent); }

/* ── KitchenHired Search Row ─────────────────────────────────────────────── */
.kh-search-form {
    max-width: 700px;
    margin: 32px auto 0;
}
.search-row {
    display: flex;
    gap: 8px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl, 14px);
    padding: 6px;
    align-items: center;
}
.search-field {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
    padding: 4px 10px;
}
.search-field--location {
    flex: 0 0 160px;
    border-left: 1px solid var(--border);
}
.search-icon {
    color: var(--text-muted);
    flex-shrink: 0;
}
.search-input {
    width: 100%;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-size: 14px;
    font-family: inherit;
}
.search-input::placeholder { color: var(--text-muted); }
.search-btn {
    flex-shrink: 0;
    white-space: nowrap;
}
@media (max-width: 600px) {
    .search-row { flex-wrap: wrap; }
    .search-field--location { flex: 1 1 100%; border-left: none; border-top: 1px solid var(--border); }
    .search-btn { width: 100%; }
}

/* ── KitchenHired 3-col roles dropdown ──────────────────────────────────── */
.kh-roles-dropdown {
    min-width: 560px;
    padding: 8px 0 12px;
}
.kh-dropdown-all {
    padding: 8px 16px 10px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 8px;
}
.kh-dropdown-columns {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
}
.kh-dropdown-col {
    padding: 0 4px;
    border-right: 1px solid var(--border);
}
.kh-dropdown-col:last-child { border-right: none; }
.kh-dropdown-group-label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .09em;
    color: var(--accent);
    padding: 4px 12px 6px;
}
.kh-dropdown-col .nav-dropdown-row {
    padding: 5px 12px;
    font-size: 13px;
}
.kh-dropdown-see-all {
    display: block;
    padding: 5px 12px;
    font-size: 11px;
    color: var(--text-muted);
    transition: color .15s;
}
.kh-dropdown-see-all:hover { color: var(--accent); }
@media (max-width: 768px) {
    .kh-roles-dropdown { min-width: unset; width: 100%; }
    .kh-dropdown-columns { grid-template-columns: 1fr; }
    .kh-dropdown-col { border-right: none; border-bottom: 1px solid var(--border); }
    .kh-dropdown-col:last-child { border-bottom: none; }
}

/* ── Roles dropdown right-align fix ─────────────────────────────────────── */
.kh-roles-dropdown {
    left: auto !important;
    right: 0;
    min-width: 520px;
}
@media (max-width: 900px) {
    .kh-roles-dropdown { min-width: unset; width: calc(100vw - 32px); right: -8px; }
}

/* ── Per-group dropdown ──────────────────────────────────────────────────── */
.kh-group-dropdown {
    min-width: 220px;
    padding: 6px 0 8px;
}
.kh-group-dropdown .nav-dropdown-row {
    padding: 6px 14px;
    font-size: 13px;
}
.kh-show-all-row {
    font-weight: 600;
}
.kh-show-all-row > span:first-child {
    color: var(--accent) !important;
    font-weight: 600;
}
.kh-show-all-row:hover {
    background: rgba(249,115,22,.08) !important;
}
.kh-dropdown-divider {
    height: 1px;
    background: var(--border);
    margin: 4px 0;
}

/* ── Role pills wrapper ──────────────────────────────────────────────────── */
.kh-role-pills-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 12px 16px 8px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.kh-role-pills-wrap .category-pills {
    flex-wrap: wrap;
    justify-content: flex-start;
    min-width: max-content;
}
@media (min-width: 900px) {
    .kh-role-pills-wrap .category-pills {
        min-width: unset;
        flex-wrap: wrap;
        justify-content: center;
    }
}
