/* ===========================================================
   Jobelly — Liquid Glass Theme (light/dark)
   A "liquid morphism" redesign: fluid blob backdrops, wet-glass
   surfaces with real specular highlights, glossy pill controls,
   and pressed-glass form fields. All class names and CSS custom
   properties are unchanged from the previous theme so no markup
   or PHP had to be touched.
   =========================================================== */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&family=Inter:wght@400;500;600;700&display=swap');

:root {
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-display: 'Space Grotesk', 'Inter', -apple-system, sans-serif;

    /* Liquid palette */
    --color-primary: #5B4BFF;
    --color-primary-2: #08B6E0;
    --color-pink: #E23FA0;
    --color-teal: #0FCBA0;
    --gradient-aurora: linear-gradient(135deg, #5B4BFF 0%, #08B6E0 50%, #0FCBA0 100%);
    --gradient-aurora-soft: linear-gradient(135deg, rgba(91,75,255,0.12), rgba(8,182,224,0.12));

    /* Surfaces */
    --bg-base: #EEF1FB;
    --bg-base-2: #FFFFFF;
    --bg-elevated: rgba(255, 255, 255, 0.42);
    --bg-elevated-hover: rgba(255, 255, 255, 0.62);
    --glass-border: rgba(255, 255, 255, 0.55);
    --glass-border-strong: rgba(255, 255, 255, 0.85);

    /* Text */
    --color-text: #191B2E;
    --color-text-light: #5C6079;
    --color-text-faint: #868AA6;

    /* Status */
    --color-success: #0FCBA0;
    --color-warning: #C6790F;
    --color-danger: #D93857;
    --color-info: #08B6E0;

    --color-border: var(--glass-border);
    --radius: 18px;
    --radius-lg: 28px;
    --radius-xl: 999px;

    /* Liquid-glass shadow recipes: outer contact shadow (color-tinted,
       soft) + inset top specular streak + inset base shade for depth. */
    --shadow-glow: 0 14px 38px rgba(91, 75, 255, 0.16), 0 2px 8px rgba(20, 20, 40, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.75), inset 0 -12px 20px -14px rgba(91, 75, 255, 0.12);
    --shadow-liquid: 0 8px 24px rgba(30, 30, 60, 0.08), 0 1px 2px rgba(30, 30, 60, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.7), inset 0 -1px 0 rgba(255, 255, 255, 0.15);
    --shadow-liquid-hover: 0 20px 46px rgba(91, 75, 255, 0.18), 0 2px 6px rgba(30, 30, 60, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.85), inset 0 -1px 0 rgba(255, 255, 255, 0.2);
    --shadow-pressed: inset 0 2px 6px rgba(25, 27, 46, 0.10), inset 0 1px 1px rgba(25, 27, 46, 0.06),
        0 1px 0 rgba(255, 255, 255, 0.6);
    --bg-chrome: rgba(255, 255, 255, 0.5);

    /* Shared motion curves — "liquid" settle vs. springy pop */
    --ease-liquid: cubic-bezier(0.34, 1.2, 0.64, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ===========================================================
   Dark mode — same liquid-glass structure, deep glass over ink.
   Toggled via [data-theme="dark"] on <html>, set by js/theme.js.
   =========================================================== */
[data-theme="dark"] {
    --color-primary: #9C8BFF;
    --color-primary-2: #3FDCFF;
    --color-pink: #FF7BCB;
    --color-teal: #4FF0CE;
    --gradient-aurora: linear-gradient(135deg, #9C8BFF 0%, #3FDCFF 50%, #4FF0CE 100%);
    --gradient-aurora-soft: linear-gradient(135deg, rgba(156,139,255,0.18), rgba(63,220,255,0.18));

    --bg-base: #090A16;
    --bg-base-2: #14152A;
    --bg-elevated: rgba(255, 255, 255, 0.055);
    --bg-elevated-hover: rgba(255, 255, 255, 0.10);
    --glass-border: rgba(255, 255, 255, 0.14);
    --glass-border-strong: rgba(255, 255, 255, 0.26);

    --color-text: #F2F3FA;
    --color-text-light: #B7BAD4;
    --color-text-faint: #82869F;

    --color-success: #4FF0CE;
    --color-warning: #F0AE4E;
    --color-danger: #FF6B7F;
    --color-info: #3FDCFF;

    --shadow-glow: 0 16px 44px rgba(156, 139, 255, 0.22), 0 2px 10px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.10), inset 0 -12px 20px -14px rgba(156, 139, 255, 0.14);
    --shadow-liquid: 0 10px 28px rgba(0, 0, 0, 0.35), 0 1px 2px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.08), inset 0 -1px 0 rgba(255, 255, 255, 0.03);
    --shadow-liquid-hover: 0 22px 50px rgba(156, 139, 255, 0.24), 0 2px 6px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.14), inset 0 -1px 0 rgba(255, 255, 255, 0.04);
    --shadow-pressed: inset 0 2px 6px rgba(0, 0, 0, 0.45), inset 0 1px 1px rgba(0, 0, 0, 0.3),
        0 1px 0 rgba(255, 255, 255, 0.04);
    --bg-chrome: rgba(9, 10, 22, 0.55);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html { color-scheme: light; scroll-behavior: smooth; }
html[data-theme="dark"] { color-scheme: dark; }

::selection { background: rgba(91, 75, 255, 0.25); color: var(--color-text); }

body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--color-text);
    background: var(--bg-base);
    position: relative;
    min-height: 100vh;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Liquid backdrop — soft morphing blobs of colour drifting behind the
   glass, pure CSS, no markup needed. Slower and "wetter" than a simple
   gradient: shape itself deforms, not just position. */
body::before {
    content: "";
    position: fixed;
    inset: -25%;
    z-index: -2;
    background:
        radial-gradient(36% 30% at 14% 10%, rgba(91, 75, 255, 0.32), transparent 62%),
        radial-gradient(40% 34% at 86% 14%, rgba(8, 182, 224, 0.26), transparent 62%),
        radial-gradient(38% 32% at 22% 88%, rgba(15, 203, 160, 0.22), transparent 62%),
        radial-gradient(34% 28% at 92% 82%, rgba(226, 63, 160, 0.18), transparent 62%);
    filter: blur(80px) saturate(130%);
    animation: liquid-drift 26s ease-in-out infinite alternate;
    transition: opacity 0.3s ease;
}

[data-theme="dark"] body::before {
    background:
        radial-gradient(36% 30% at 14% 10%, rgba(156, 139, 255, 0.36), transparent 62%),
        radial-gradient(40% 34% at 86% 14%, rgba(63, 220, 255, 0.28), transparent 62%),
        radial-gradient(38% 32% at 22% 88%, rgba(79, 240, 206, 0.24), transparent 62%),
        radial-gradient(34% 28% at 92% 82%, rgba(255, 123, 203, 0.2), transparent 62%);
}

body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    background: linear-gradient(180deg, rgba(255,255,255,0.12) 0%, rgba(255,255,255,0.5) 55%, var(--bg-base) 100%);
    pointer-events: none;
    transition: background 0.3s ease;
}

[data-theme="dark"] body::after {
    background: linear-gradient(180deg, rgba(9,10,22,0.1) 0%, rgba(9,10,22,0.55) 55%, var(--bg-base) 100%);
}

@keyframes liquid-drift {
    0%   { transform: translate3d(0, 0, 0) rotate(0deg) scale(1); border-radius: 42% 58% 60% 40% / 45% 40% 60% 55%; }
    33%  { transform: translate3d(2%, -3%, 0) rotate(6deg) scale(1.06); border-radius: 55% 45% 40% 60% / 40% 60% 40% 60%; }
    66%  { transform: translate3d(-2%, 2%, 0) rotate(-4deg) scale(1.03); border-radius: 40% 60% 55% 45% / 55% 45% 60% 40%; }
    100% { transform: translate3d(-3%, 3%, 0) rotate(-8deg) scale(1); border-radius: 48% 52% 45% 55% / 50% 50% 50% 50%; }
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    letter-spacing: -0.01em;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Header — a floating glass bar with a bright specular top edge */
header {
    background: var(--bg-chrome);
    backdrop-filter: blur(24px) saturate(160%);
    -webkit-backdrop-filter: blur(24px) saturate(160%);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 8px 24px rgba(30, 30, 60, 0.05);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    text-decoration: none;
    background: var(--gradient-aurora);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.nav {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.nav a {
    color: var(--color-text-light);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.nav a:hover {
    color: var(--color-text);
}

/* Theme toggle — a small liquid droplet */
.theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 1px solid var(--glass-border);
    border-radius: 999px;
    background: var(--bg-elevated);
    color: var(--color-text-light);
    cursor: pointer;
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-liquid);
    transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    flex-shrink: 0;
}

.theme-toggle:hover {
    color: var(--color-primary);
    border-color: var(--glass-border-strong);
    transform: translateY(-2px) rotate(14deg);
    box-shadow: var(--shadow-liquid-hover);
}

.theme-toggle:active {
    transform: translateY(0) scale(0.92);
    box-shadow: var(--shadow-pressed);
}

.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: block; }
[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

/* Buttons — glossy liquid-glass pills with a top specular streak */
.btn {
    position: relative;
    padding: 0.65rem 1.5rem;
    border: 1px solid var(--glass-border);
    background: var(--bg-elevated);
    color: var(--color-text);
    border-radius: var(--radius-xl);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    text-decoration: none;
    display: inline-block;
    backdrop-filter: blur(12px) saturate(150%);
    box-shadow: var(--shadow-liquid);
    overflow: hidden;
}

.btn::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(180deg, rgba(255,255,255,0.55) 0%, rgba(255,255,255,0) 55%);
    opacity: 0.9;
    pointer-events: none;
}

[data-theme="dark"] .btn::before {
    background: linear-gradient(180deg, rgba(255,255,255,0.16) 0%, rgba(255,255,255,0) 55%);
}

.btn::after {
    content: "";
    position: absolute;
    top: 0;
    left: -60%;
    width: 40%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255,255,255,0.55), transparent);
    transform: skewX(-20deg);
    transition: left 0.65s ease;
    pointer-events: none;
}

.btn:hover::after {
    left: 130%;
}

.btn:hover {
    background: var(--bg-elevated-hover);
    border-color: var(--glass-border-strong);
    transform: translateY(-2px);
    box-shadow: var(--shadow-liquid-hover);
}

.btn:active {
    transform: translateY(0) scale(0.97);
    box-shadow: var(--shadow-pressed);
}

.btn-primary {
    background: var(--gradient-aurora);
    color: #FFFFFF;
    font-weight: 600;
    border: none;
    box-shadow: 0 8px 22px rgba(91, 75, 255, 0.35), inset 0 1px 0 rgba(255,255,255,0.4), inset 0 -10px 16px -10px rgba(0,0,0,0.18);
}

.btn-primary::before {
    background: linear-gradient(180deg, rgba(255,255,255,0.5) 0%, rgba(255,255,255,0) 60%);
}

.btn-primary:hover {
    filter: brightness(1.07) saturate(1.05);
    box-shadow: 0 12px 30px rgba(8, 182, 224, 0.38), inset 0 1px 0 rgba(255,255,255,0.45), inset 0 -10px 16px -10px rgba(0,0,0,0.2);
    transform: translateY(-2px);
}

.btn-primary:active {
    transform: translateY(0) scale(0.97);
    filter: brightness(0.98);
}

.btn-danger {
    background: rgba(217, 56, 87, 0.12);
    color: #B0243F;
    border-color: rgba(217, 56, 87, 0.32);
}

.btn-danger:hover {
    background: rgba(217, 56, 87, 0.2);
}

.btn-small {
    padding: 0.4rem 1rem;
    font-size: 0.85rem;
}

/* Hero Section */
.hero {
    padding: 4.5rem 0 3.5rem;
    text-align: center;
}

.hero h1 {
    font-size: clamp(1.9rem, 5vw, 2.75rem);
    margin-bottom: 0.75rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    background: linear-gradient(135deg, var(--color-text) 20%, var(--color-primary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: fade-up 0.6s ease both;
}

.hero p {
    color: var(--color-text-light);
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
    animation: fade-up 0.6s ease 0.08s both;
}

.hero-compact {
    padding: 3rem 0 2.5rem;
}

.hero-landing {
    padding: 5.5rem 0 4rem;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 1.1rem;
    border-radius: var(--radius-xl);
    background: var(--gradient-aurora-soft);
    border: 1px solid var(--glass-border-strong);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.6);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 1.5rem;
    animation: fade-up 0.6s ease both, badge-float 4.5s ease-in-out 0.6s infinite;
}

@keyframes badge-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

.hero-actions {
    display: flex;
    gap: 0.9rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 3rem;
    animation: fade-up 0.6s ease 0.16s both;
}

.btn-large {
    padding: 0.9rem 1.9rem;
    font-size: 1rem;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
    margin-top: 2.75rem;
    animation: fade-up 0.6s ease 0.24s both;
}

.hero-stat-value {
    font-family: var(--font-display);
    font-size: 2.1rem;
    font-weight: 700;
    background: var(--gradient-aurora);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-stat-label {
    font-size: 0.85rem;
    color: var(--color-text-faint);
    margin-top: 0.25rem;
}

@keyframes fade-up {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Features grid (landing page) */
.features-section {
    padding: 1.5rem 0 3.5rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 1.1rem;
}

.feature-card {
    position: relative;
    background: var(--bg-elevated);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 1.75rem 1.5rem;
    backdrop-filter: blur(14px) saturate(150%);
    box-shadow: var(--shadow-liquid);
    transition: all 0.3s var(--ease-liquid);
    overflow: hidden;
    animation: fade-up 0.5s ease both;
}

.features-grid .feature-card:nth-child(1) { animation-delay: 0.03s; }
.features-grid .feature-card:nth-child(2) { animation-delay: 0.08s; }
.features-grid .feature-card:nth-child(3) { animation-delay: 0.13s; }
.features-grid .feature-card:nth-child(4) { animation-delay: 0.18s; }

.feature-card::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 42%;
    border-radius: var(--radius-lg) var(--radius-lg) 60% 60% / var(--radius-lg) var(--radius-lg) 100% 100%;
    background: linear-gradient(180deg, rgba(255,255,255,0.5), rgba(255,255,255,0));
    pointer-events: none;
}

[data-theme="dark"] .feature-card::before {
    background: linear-gradient(180deg, rgba(255,255,255,0.1), rgba(255,255,255,0));
}

.feature-card:hover {
    border-color: var(--glass-border-strong);
    transform: translateY(-4px);
    box-shadow: var(--shadow-liquid-hover);
}

.feature-icon {
    font-size: 1.75rem;
    margin-bottom: 0.9rem;
}

.feature-card h3 {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--color-text);
}

.feature-card p {
    font-size: 0.88rem;
    color: var(--color-text-light);
    line-height: 1.55;
}

/* Steps section (landing page) */
.steps-section {
    padding: 2.5rem 0 4.5rem;
}

.steps-heading {
    text-align: center;
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 2.25rem;
    letter-spacing: -0.02em;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 1.25rem;
}

.step-card {
    position: relative;
    background: var(--bg-elevated);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    backdrop-filter: blur(14px) saturate(150%);
    box-shadow: var(--shadow-liquid);
    overflow: hidden;
    transition: transform 0.3s var(--ease-liquid), box-shadow 0.3s ease;
    animation: fade-up 0.5s ease both;
}

.steps-grid .step-card:nth-child(1) { animation-delay: 0.03s; }
.steps-grid .step-card:nth-child(2) { animation-delay: 0.09s; }
.steps-grid .step-card:nth-child(3) { animation-delay: 0.15s; }

.step-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-liquid-hover);
    border-color: var(--glass-border-strong);
}

.step-number {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--gradient-aurora);
    color: #FFFFFF;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    box-shadow: 0 6px 16px rgba(91, 75, 255, 0.35), inset 0 1px 0 rgba(255,255,255,0.5);
}

.step-card h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
    color: var(--color-text);
}

.step-card p {
    font-size: 0.88rem;
    color: var(--color-text-light);
    line-height: 1.55;
}

/* Empty state (jobs.php) */
.empty-state {
    text-align: center;
    padding: 4rem 1rem;
    color: var(--color-text-light);
}

.empty-state-icon {
    width: 84px;
    height: 84px;
    margin: 0 auto 1.25rem;
    font-size: 2.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--bg-elevated);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-liquid);
    backdrop-filter: blur(10px);
    animation: badge-float 4.5s ease-in-out infinite;
}

.empty-state-title {
    font-size: 1.05rem;
}

/* Search Bar — sits like a pill of liquid glass, pressed-in feel */
.search-bar {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.search-input {
    flex: 1;
    min-width: 200px;
    padding: 0.9rem 1rem 0.9rem 3rem;
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    font-size: 0.95rem;
    color: var(--color-text);
    background: var(--bg-elevated) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%235C6079' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.35-4.35'/%3E%3C/svg%3E") no-repeat 18px center;
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-pressed);
}

.search-input::placeholder { color: var(--color-text-faint); }

.search-input:focus {
    outline: none;
    border-color: var(--color-primary-2);
    box-shadow: var(--shadow-pressed), 0 0 0 4px rgba(8, 182, 224, 0.16);
}

.search-select {
    padding: 0.9rem 1.25rem;
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    font-size: 0.95rem;
    background: var(--bg-elevated);
    color: var(--color-text);
    cursor: pointer;
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-pressed);
}

/* Compact page header (jobs.php) — deliberately smaller/plainer than the
   homepage hero so the two pages don't look like duplicates of each other */
.page-header {
    padding: 2.5rem 0 1.75rem;
}

.page-header h1 {
    font-size: clamp(1.5rem, 4vw, 2rem);
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.page-header p {
    color: var(--color-text-light);
    font-size: 1rem;
}

/* Left sidebar filters + results layout (jobs.php) */
.jobs-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 2rem;
    align-items: start;
}

.filters-sidebar {
    position: sticky;
    top: 90px;
    background: var(--bg-elevated);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    backdrop-filter: blur(14px) saturate(150%);
    box-shadow: var(--shadow-liquid);
}

.filters-heading {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    color: var(--color-text);
}

.filters-sidebar .form-group {
    margin-bottom: 1rem;
}

.filters-sidebar .form-label {
    font-size: 0.8rem;
    color: var(--color-text-light);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.jobs-main {
    min-width: 0;
}

@media (max-width: 900px) {
    .jobs-layout {
        grid-template-columns: 1fr;
    }
    .filters-sidebar {
        position: static;
    }
}

/* Job Grid */
.jobs-section {
    padding: 2rem 0;
}

.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 1.25rem;
}

.section-heading h2 {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--color-text);
}

.section-heading-link {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-primary-2);
    text-decoration: none;
}

.section-heading-link:hover {
    text-decoration: underline;
}

.job-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.job-card-view {
    font-weight: 600;
    color: var(--color-primary-2);
}

.jobs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 1.1rem;
}

.job-card {
    position: relative;
    background: var(--bg-elevated);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    transition: all 0.3s cubic-bezier(0.34, 1.2, 0.64, 1);
    cursor: pointer;
    backdrop-filter: blur(14px) saturate(150%);
    box-shadow: var(--shadow-liquid);
    animation: fade-up 0.45s ease both;
    overflow: hidden;
}

.job-card::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 38%;
    background: linear-gradient(180deg, rgba(255,255,255,0.45), rgba(255,255,255,0));
    pointer-events: none;
}

[data-theme="dark"] .job-card::before {
    background: linear-gradient(180deg, rgba(255,255,255,0.09), rgba(255,255,255,0));
}

.job-card-bookmark {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-size: 1.2rem;
    line-height: 1;
    color: var(--color-text-faint);
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
    margin-right: 0.4rem;
}

.job-card-bookmark:hover {
    background: var(--glass-border);
    color: var(--color-warning);
    transform: scale(1.15);
}

.job-card-bookmark.is-saved {
    color: var(--color-warning);
}

.jobs-grid .job-card:nth-child(1) { animation-delay: 0.02s; }
.jobs-grid .job-card:nth-child(2) { animation-delay: 0.05s; }
.jobs-grid .job-card:nth-child(3) { animation-delay: 0.08s; }
.jobs-grid .job-card:nth-child(4) { animation-delay: 0.11s; }
.jobs-grid .job-card:nth-child(5) { animation-delay: 0.14s; }
.jobs-grid .job-card:nth-child(6) { animation-delay: 0.17s; }

.job-card:hover {
    border-color: var(--glass-border-strong);
    box-shadow: var(--shadow-liquid-hover);
    transform: translateY(-4px);
}

.job-card-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 0.75rem;
}

.job-card-logo {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.1rem;
    flex-shrink: 0;
    color: #0A0B18;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.6), inset 0 -6px 10px -6px rgba(0,0,0,0.15), 0 4px 10px rgba(0,0,0,0.08);
}

.job-card-title {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
    color: var(--color-text);
}

.job-card-company {
    font-size: 0.9rem;
    color: var(--color-text-light);
}

.job-card-tags {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
    margin-bottom: 0.75rem;
}

.tag {
    padding: 0.28rem 0.8rem;
    border-radius: var(--radius-xl);
    font-size: 0.75rem;
    font-weight: 600;
    border: 1px solid transparent;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.4);
    transition: transform 0.2s var(--ease-spring);
    display: inline-block;
}

.job-card:hover .tag {
    transform: translateY(-1px);
}

.tag-primary { background: rgba(8, 182, 224, 0.14); color: #0B7A94; border-color: rgba(8, 182, 224, 0.32); }
.tag-success { background: rgba(15, 203, 160, 0.14); color: #0C8567; border-color: rgba(15, 203, 160, 0.32); }
.tag-warning { background: rgba(198, 121, 15, 0.14); color: #8F5B0A; border-color: rgba(198, 121, 15, 0.32); }
.tag-danger { background: rgba(217, 56, 87, 0.14); color: #B0243F; border-color: rgba(217, 56, 87, 0.32); }

.job-card-desc {
    font-size: 0.9rem;
    color: var(--color-text-light);
    line-height: 1.5;
    margin-bottom: 0.75rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.job-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: var(--color-text-faint);
}

.job-card-select {
    margin-right: 0.75rem;
    accent-color: var(--color-primary-2);
}

/* Forms — pressed-glass fields, like a groove tooled into the surface */
.form-group {
    margin-bottom: 1.25rem;
}

.form-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 0.4rem;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    font-size: 0.95rem;
    font-family: inherit;
    background: var(--bg-elevated);
    color: var(--color-text);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-pressed);
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.form-input::placeholder, .form-textarea::placeholder { color: var(--color-text-faint); }

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--color-primary-2);
    box-shadow: var(--shadow-pressed), 0 0 0 4px rgba(8, 182, 224, 0.16);
}

.form-select option, .search-select option { background: var(--bg-base-2); color: var(--color-text); }

.form-textarea {
    min-height: 120px;
    resize: vertical;
}

.form-row {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 0.5rem;
}

.form-hint {
    font-size: 0.8rem;
    color: var(--color-text-faint);
    margin-top: 0.25rem;
}

.form-error {
    color: #B0243F;
    font-size: 0.85rem;
    margin-top: 0.5rem;
}

.form-success {
    color: #0C8567;
    font-size: 0.85rem;
    margin-top: 0.5rem;
}

/* Auth cards (register / login / verify) */
.auth-card {
    position: relative;
    background: var(--bg-elevated);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 2.25rem;
    backdrop-filter: blur(18px) saturate(160%);
    box-shadow: var(--shadow-glow);
    overflow: hidden;
}

.auth-card::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 34%;
    background: linear-gradient(180deg, rgba(255,255,255,0.5), rgba(255,255,255,0));
    pointer-events: none;
}

[data-theme="dark"] .auth-card::before {
    background: linear-gradient(180deg, rgba(255,255,255,0.1), rgba(255,255,255,0));
}

.auth-toggle {
    display: flex;
    gap: 0.4rem;
    background: rgba(120, 120, 160, 0.08);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    padding: 0.3rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-pressed);
    position: relative;
    z-index: 1;
}

.auth-toggle a {
    flex: 1;
    text-align: center;
    padding: 0.55rem 1rem;
    border-radius: var(--radius-xl);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-text-light);
    transition: all 0.25s ease;
}

.auth-toggle a.active {
    background: var(--gradient-aurora);
    color: #FFFFFF;
    box-shadow: 0 6px 16px rgba(91, 75, 255, 0.35), inset 0 1px 0 rgba(255,255,255,0.4);
}

.otp-input {
    font-size: 1.6rem !important;
    text-align: center;
    letter-spacing: 0.6rem;
    font-weight: 600;
}

/* File Upload — a soft liquid dropzone */
.file-upload {
    border: 2px dashed var(--glass-border-strong);
    border-radius: var(--radius-lg);
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.25s ease;
    background: rgba(91, 75, 255, 0.04);
}

.file-upload:hover {
    border-color: var(--color-primary-2);
    background: rgba(8, 182, 224, 0.08);
}

.file-upload-input {
    display: none;
}

.file-upload-icon {
    font-size: 2rem;
    color: var(--color-text-light);
    margin-bottom: 0.5rem;
}

/* Dashboard */
.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-card {
    position: relative;
    background: var(--bg-elevated);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    backdrop-filter: blur(14px) saturate(150%);
    box-shadow: var(--shadow-liquid);
    overflow: hidden;
    transition: transform 0.3s cubic-bezier(0.34, 1.2, 0.64, 1), box-shadow 0.3s ease;
}

.stat-card::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 40%;
    background: linear-gradient(180deg, rgba(255,255,255,0.45), rgba(255,255,255,0));
    pointer-events: none;
}

[data-theme="dark"] .stat-card::before {
    background: linear-gradient(180deg, rgba(255,255,255,0.09), rgba(255,255,255,0));
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-liquid-hover);
}

.stat-label {
    font-size: 0.85rem;
    color: var(--color-text-light);
    margin-bottom: 0.5rem;
}

.stat-value {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    background: var(--gradient-aurora);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.stat-value.success { background: linear-gradient(135deg, #0FCBA0, #0C8567); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat-value.warning { background: linear-gradient(135deg, #C6790F, #8F5B0A); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Dashboard Job List */
.dashboard-job {
    position: relative;
    background: var(--bg-elevated);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-bottom: 1rem;
    backdrop-filter: blur(14px) saturate(150%);
    box-shadow: var(--shadow-liquid);
    overflow: hidden;
    transition: box-shadow 0.3s ease, transform 0.3s cubic-bezier(0.34, 1.2, 0.64, 1);
}

.dashboard-job::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 34%;
    background: linear-gradient(180deg, rgba(255,255,255,0.4), rgba(255,255,255,0));
    pointer-events: none;
}

[data-theme="dark"] .dashboard-job::before {
    background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0));
}

.dashboard-job:hover {
    box-shadow: var(--shadow-liquid-hover);
    transform: translateY(-2px);
}

.dashboard-job-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 1rem;
}

.dashboard-job-title {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
    color: var(--color-text);
}

.dashboard-job-meta {
    font-size: 0.9rem;
    color: var(--color-text-light);
}

.dashboard-job-stats {
    display: flex;
    gap: 2rem;
}

.dashboard-job-stat {
    font-size: 0.85rem;
    color: var(--color-text-faint);
}

.dashboard-job-stat strong {
    display: block;
    font-size: 1.3rem;
    color: var(--color-text);
    font-weight: 700;
    margin-top: 0.2rem;
}

.dashboard-job-actions {
    display: flex;
    gap: 0.5rem;
}

/* Profile panels (inline-styled in dashboard.php / applicant-dashboard.php,
   these selectors add the liquid-glass finish on top without touching
   the PHP-embedded <style> blocks that set layout/background there) */
.profile-section,
.applicant-header {
    position: relative;
    box-shadow: var(--shadow-liquid);
    backdrop-filter: blur(14px) saturate(150%);
    overflow: hidden;
}

.profile-section::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 34%;
    background: linear-gradient(180deg, rgba(255,255,255,0.4), rgba(255,255,255,0));
    pointer-events: none;
}

[data-theme="dark"] .profile-section::before {
    background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0));
}

/* Alert Messages */
.alert {
    padding: 1rem 1.25rem;
    border-radius: var(--radius);
    margin-bottom: 1.5rem;
    border: 1px solid transparent;
    font-size: 0.9rem;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.3);
}

.alert-success {
    background: rgba(15, 203, 160, 0.10);
    color: #0C8567;
    border-color: rgba(15, 203, 160, 0.3);
}

.alert-error {
    background: rgba(217, 56, 87, 0.10);
    color: #B0243F;
    border-color: rgba(217, 56, 87, 0.3);
}

.alert-warning {
    background: rgba(198, 121, 15, 0.10);
    color: #8F5B0A;
    border-color: rgba(198, 121, 15, 0.3);
}

.alert-info {
    background: rgba(8, 182, 224, 0.10);
    color: #0B7A94;
    border-color: rgba(8, 182, 224, 0.3);
}

/* Footer */
footer {
    background: var(--bg-chrome);
    backdrop-filter: blur(18px) saturate(150%);
    border-top: 1px solid var(--glass-border);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.4);
    padding: 2rem 0;
    margin-top: 4rem;
    text-align: center;
    color: var(--color-text-light);
    font-size: 0.9rem;
}

footer a {
    color: var(--color-text);
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
    .hero { padding: 3rem 0 2.5rem; }
    .hero-landing { padding: 3.5rem 0 3rem; }
    .search-bar { flex-direction: column; }
    .search-input, .search-select { min-width: 100%; width: 100%; }
    .jobs-grid { grid-template-columns: 1fr; }
    .nav { flex-direction: column; gap: 0.75rem; }
    .dashboard-job-header { flex-direction: column; gap: 1rem; }
    .dashboard-job-actions { flex-wrap: wrap; }
    .dashboard-job-stats { gap: 1.25rem; flex-wrap: wrap; }
    .form-row { grid-template-columns: 1fr; }
    .auth-card { padding: 1.5rem; }
    .hero-stats { gap: 1.75rem; }
    .features-grid, .steps-grid { grid-template-columns: 1fr; }

    /* Comfortable tap targets on touch */
    .btn { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
    .form-input, .form-select, .form-textarea, .search-input, .search-select { min-height: 44px; }
    .theme-toggle { width: 40px; height: 40px; }
}

@media (max-width: 480px) {
    .container { padding: 0 0.85rem; }
    .hero-badge { font-size: 0.72rem; padding: 0.4rem 0.85rem; }
    .hero p { font-size: 1rem; margin-bottom: 2rem; }
    .hero-stats { gap: 1.25rem; }
    .hero-stat-value { font-size: 1.7rem; }
    .jobs-grid { grid-template-columns: 1fr; gap: 0.85rem; }
    .job-card, .feature-card, .step-card, .stat-card, .dashboard-job { padding: 1.15rem; }
    .auth-card { padding: 1.1rem; }
    .otp-input { font-size: 1.3rem !important; letter-spacing: 0.4rem; }
    .modal-content { padding: 1.5rem; }
}

/* Loading Spinner */
.spinner {
    border: 2px solid var(--glass-border);
    border-top: 2px solid var(--color-primary-2);
    border-radius: 50%;
    width: 20px;
    height: 20px;
    animation: spin 0.8s linear infinite;
    display: inline-block;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(20, 20, 40, 0.35);
    backdrop-filter: blur(8px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
    animation: modal-backdrop-in 0.25s ease both;
}

@keyframes modal-backdrop-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.modal-content {
    position: relative;
    background: var(--bg-base-2);
    border: 1px solid var(--glass-border-strong);
    border-radius: var(--radius-lg);
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 2rem;
    box-shadow: var(--shadow-glow);
    animation: modal-in 0.3s var(--ease-liquid) both;
}

@keyframes modal-in {
    from { opacity: 0; transform: translateY(12px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-header {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--color-text);
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    color: var(--color-text-light);
}

.checkbox-label input { accent-color: var(--color-primary-2); }

/* Dark-mode overrides for hardcoded light-mode text colors.
   These selectors set colors as plain hex (not CSS vars) because they need to
   stay legible on a *tinted* chip background rather than the page background,
   so light and dark need their own values rather than sharing one variable. */
[data-theme="dark"] .btn-danger { color: #FF8FA0; }
[data-theme="dark"] .btn-danger:hover { background: rgba(255, 107, 127, 0.22); }

[data-theme="dark"] .tag-primary { color: #6BE0FF; }
[data-theme="dark"] .tag-success { color: #5FEBCB; }
[data-theme="dark"] .tag-warning { color: #FFC978; }
[data-theme="dark"] .tag-danger { color: #FF8FA0; }

[data-theme="dark"] .form-error { color: #FF8FA0; }
[data-theme="dark"] .form-success { color: #5FEBCB; }

[data-theme="dark"] .alert-success { color: #5FEBCB; }
[data-theme="dark"] .alert-error { color: #FF8FA0; }
[data-theme="dark"] .alert-warning { color: #FFC978; }
[data-theme="dark"] .alert-info { color: #6BE0FF; }

[data-theme="dark"] .stat-value.success { background: linear-gradient(135deg, #4FF0CE, #5FEBCB); -webkit-background-clip: text; background-clip: text; color: transparent; }
[data-theme="dark"] .stat-value.warning { background: linear-gradient(135deg, #F0AE4E, #FFC978); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Accessibility: visible keyboard focus */
a:focus-visible,
button:focus-visible,
.btn:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
.theme-toggle:focus-visible {
    outline: 2px solid var(--color-primary-2);
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Fallback for browsers without backdrop-filter: glass surfaces need more
   opaque backgrounds to stay legible when the blur itself isn't rendered. */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    :root { --bg-elevated: rgba(255, 255, 255, 0.86); --bg-chrome: rgba(255, 255, 255, 0.92); }
    [data-theme="dark"] { --bg-elevated: rgba(20, 21, 42, 0.92); --bg-chrome: rgba(9, 10, 22, 0.92); }
}

/* Scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg-base); }
::-webkit-scrollbar-thumb { background: var(--glass-border-strong); border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: rgba(91, 75, 255, 0.35); }
