﻿/* ================================================================
   БарамРабота.мк — theme.css  (F1: унифициран design system)
   Еден фајл. Light + Dark преку [data-theme] на <html>.
   Ги заменува site-light.css И site.css.
   Сите класни имиња од старите фајлови се зачувани → markup-от не се крши.
   ================================================================ */

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

/* ================================================================
   TOKENS — LIGHT (default)
   ================================================================ */
:root {
    /* Brand (исти во двата режима) */
    --navy: #0F172A;
    --navy-2: #1E293B;
    --navy-3: #334155;
    --gold: #C9A84C;
    --gold-strong: #A8893A;
    --gold-soft: #FFF8E7;
    /* Surfaces */
    --bg: #F8FAFC;
    --surface: #FFFFFF;
    --surface-2: #F1F5F9;
    --bg-nav: #FFFFFF;
    --bg-input: #F9FAFB;
    /* Text */
    --text: #0F172A;
    --text-2: #475569;
    /* ФИКС (Lighthouse color-contrast, барање на Stole 2026-09-14):
       #94A3B8 наспроти бела позадина даваше само 2.56:1 - под AA прагот
       (4.5:1) за нормален текст (пр. "Твојата следна можност" таглајн под
       логото). #64748B е ист slate тон, само потемен чекор - 4.76:1. */
    --text-3: #64748B;
    /* Borders */
    --border: #E2E8F0;
    --border-strong: #CBD5E1;
    /* Semantic */
    /* ФИКС (Lighthouse color-contrast, барање на Stole 2026-09-14):
       #059669 наспроти светли картички (--success-bg/бела позадина) даваше
       само 3.6:1 (пр. "Remote"/"Без искуство"/"♿ Пристапно" ознаките). Ист
       зелен тон, потемен чекор (#047857) - 5.24:1. */
    --success: #047857;
    --success-bg: #ECFDF5;
    --danger: #DC2626;
    --danger-bg: #FEF2F2;
    --warning: #D97706;
    --warning-bg: #FEF3C7;
    --info: #1D4ED8;
    --info-bg: #EFF6FF;
    /* Typography scale */
    --fs-display: clamp(28px, 5vw, 40px);
    --fs-h1: clamp(24px, 4vw, 28px);
    --fs-h2: 22px;
    --fs-h3: 18px;
    --fs-body-lg: 16px;
    --fs-body: 14px;
    --fs-sm: 13px;
    --fs-xs: 12px;
    --fs-2xs: 11px;
    /* Spacing (4px база) */
    --sp-1: 4px;
    --sp-2: 8px;
    --sp-3: 12px;
    --sp-4: 16px;
    --sp-5: 20px;
    --sp-6: 24px;
    --sp-8: 32px;
    --sp-10: 40px;
    --sp-12: 48px;
    --sp-16: 64px;
    /* Radius */
    --r-sm: 6px;
    --r: 8px;
    --r-md: 10px;
    --r-lg: 14px;
    --r-xl: 20px;
    --r-full: 999px;
    /* Elevation (мека, Stripe-style) */
    --e-1: 0 1px 2px rgba(15,23,42,.04), 0 1px 3px rgba(15,23,42,.06);
    --e-2: 0 2px 4px rgba(15,23,42,.05), 0 4px 12px rgba(15,23,42,.08);
    --e-3: 0 8px 24px rgba(15,23,42,.12);
    /* ── Legacy alias-и (стариот код ги користи; следат семантички) ── */
    --gold-dk: var(--gold-strong);
    --gold-lt: var(--gold-soft);
    --blue: var(--navy);
    --blue-dk: var(--navy);
    --blue-lt: var(--info-bg);
    --bg-card: var(--surface);
    --bg-hover: var(--surface-2);
    --bg-dark: var(--navy);
    --txt: var(--text);
    --txt-60: var(--text-2);
    --txt-40: var(--text-3);
    --border-dk: var(--border-strong);
    --green: var(--success);
    --green-lt: var(--success-bg);
    --red: var(--danger);
    --red-lt: var(--danger-bg);
    --yellow: var(--warning);
    --yellow-lt: var(--warning-bg);
    --r-legacy: var(--r);
    --sh: var(--e-1);
    --sh-lg: var(--e-2);
    /* Стари „dark" tokens — сега следат семантички, авто-флипуваат во dark */
    --d100: var(--bg);
    --d80: var(--surface);
    --d60: var(--surface-2);
    --d40: var(--border);
    --w: var(--text);
    --w60: var(--text-2);
    --w20: var(--border);
    --gray: var(--text-3);
}

    /* ================================================================
   TOKENS — DARK
   ================================================================ */
    :root[data-theme="dark"] {
        --bg: #0B1120;
        --surface: #131C2E;
        --surface-2: #1E293B;
        --bg-nav: #131C2E;
        --bg-input: #1E293B;
        --text: #F1F5F9;
        --text-2: #94A3B8;
        --text-3: #7C8CA6;
        --border: #334155;
        --border-strong: #475569;
        --success-bg: rgba(5,150,105,.16);
        --danger-bg: rgba(220,38,38,.16);
        --warning-bg: rgba(217,119,6,.16);
        --info-bg: rgba(59,130,246,.16);
        --blue: var(--gold);
        --blue-dk: var(--gold-strong);
        --e-1: 0 0 0 1px rgba(255,255,255,.07);
        --e-2: 0 0 0 1px rgba(255,255,255,.09), 0 4px 16px rgba(0,0,0,.45);
        --e-3: 0 0 0 1px rgba(255,255,255,.11), 0 12px 32px rgba(0,0,0,.55);
    }

/* ================================================================
   BASE
   ================================================================ */
html {
    -webkit-text-size-adjust: 100%;
    overflow-x: hidden;
    max-width: 100%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    font-size: var(--fs-body);
    -webkit-font-smoothing: antialiased;
    transition: background-color .2s ease, color .2s ease;
    overflow-x: hidden;
    max-width: 100%;
    position: relative;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    display: block;
}

input, select, textarea, button {
    font-family: inherit;
}

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--border-strong);
    border-radius: var(--r-full);
}

/* ── Accessibility ──────────────────────────────────────────── */
:focus-visible {
    outline: 2px solid var(--info);
    outline-offset: 2px;
    border-radius: var(--r-sm);
}

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

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 1000;
    background: var(--navy);
    color: #fff;
    padding: 10px 18px;
    border-radius: 0 0 var(--r) 0;
    font-size: var(--fs-sm);
    font-weight: 600;
}

    .skip-link:focus {
        left: 0;
    }

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

/* ================================================================
   TYPOGRAPHY UTILITIES
   ================================================================ */
h1, .h1 {
    font-size: var(--fs-h1);
    font-weight: 700;
    line-height: 1.2;
}

h2, .h2 {
    font-size: var(--fs-h2);
    font-weight: 600;
    line-height: 1.3;
}

h3, .h3 {
    font-size: var(--fs-h3);
    font-weight: 600;
    line-height: 1.4;
}

/* ================================================================
   BUTTONS
   ================================================================ */
.btn,
.btn-primary, .btn-secondary, .btn-ghost, .btn-navy, .btn-danger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: var(--fs-body);
    font-weight: 600;
    line-height: 1;
    padding: 0 18px;
    min-height: 40px;
    border-radius: var(--r);
    border: 1px solid transparent;
    cursor: pointer;
    white-space: nowrap;
    transition: background-color .18s, border-color .18s, color .18s, transform .05s;
    text-align: center;
}

    .btn:active,
    .btn-primary:active, .btn-secondary:active, .btn-ghost:active,
    .btn-navy:active, .btn-danger:active {
        transform: scale(.98);
    }

.btn-primary {
    background: var(--gold);
    color: var(--navy);
}

    .btn-primary:hover {
        background: var(--gold-strong);
        color: var(--navy);
    }

.btn-secondary {
    background: var(--surface);
    color: var(--text);
    border-color: var(--border);
}

    .btn-secondary:hover {
        border-color: var(--navy);
        color: var(--navy);
        background: var(--surface-2);
    }

.btn-ghost {
    background: transparent;
    color: var(--text-2);
}

    .btn-ghost:hover {
        background: var(--surface-2);
        color: var(--text);
    }

.btn-navy {
    background: var(--navy);
    color: #fff;
}

:root[data-theme="dark"] .btn-navy {
    background: var(--blue-dk);
}

.btn-navy:hover {
    background: var(--navy-2);
}

:root[data-theme="dark"] .btn-navy:hover {
    background: var(--gold);
}

.btn-danger {
    background: transparent;
    color: var(--danger);
    border-color: var(--border);
}

    .btn-danger:hover {
        background: var(--danger-bg);
        border-color: var(--danger);
    }

.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: transparent;
    color: var(--gold);
    font-weight: 600;
    font-size: var(--fs-body);
    min-height: 40px;
    padding: 0 18px;
    border-radius: var(--r);
    border: 1px solid var(--gold);
    cursor: pointer;
    transition: all .18s;
}

    .btn-outline:hover {
        background: var(--gold);
        color: var(--navy);
    }

.btn-sm {
    min-height: 32px;
    padding: 0 12px;
    font-size: var(--fs-sm);
}

.btn-lg {
    min-height: 48px;
    padding: 0 28px;
    font-size: var(--fs-body-lg);
}

button:disabled, .btn-primary:disabled, .btn-secondary:disabled,
.btn-navy:disabled, .btn-outline:disabled {
    opacity: .5;
    cursor: not-allowed;
}

@media (max-width: 767px) {
    .btn, .btn-primary, .btn-secondary, .btn-ghost, .btn-navy,
    .btn-danger, .btn-outline {
        min-height: 44px;
    }
}

/* ── Legacy nav копчиња (зачувани) ──────────────────────────── */
.btn-nav-login {
    font-size: var(--fs-sm);
    padding: 8px 18px;
    border-radius: var(--r);
    border: 1px solid var(--border);
    color: var(--text);
    background: transparent;
    cursor: pointer;
    transition: all .2s;
    white-space: nowrap;
}

    .btn-nav-login:hover {
        border-color: var(--navy);
        color: var(--navy);
        background: var(--surface-2);
    }

.btn-post-job {
    background: var(--gold);
    color: var(--navy);
    font-weight: 700;
    font-size: var(--fs-sm);
    padding: 9px 18px;
    border-radius: var(--r);
    border: none;
    cursor: pointer;
    white-space: nowrap;
    transition: background .2s;
}

    .btn-post-job:hover {
        background: var(--gold-strong);
    }

.btn-nav-user {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: var(--fs-sm);
    color: var(--text);
    padding: 6px 14px;
    border-radius: var(--r-full);
    border: 1px solid var(--border);
    background: var(--surface);
    transition: all .2s;
}

    .btn-nav-user:hover {
        border-color: var(--navy);
        background: var(--surface-2);
    }

.nav-user-avatar {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--navy);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--fs-2xs);
    font-weight: 700;
}

/* ================================================================
   FORMS
   ================================================================ */
.form-group {
    margin-bottom: var(--sp-4);
}

.form-label {
    display: block;
    font-size: var(--fs-xs);
    font-weight: 600;
    color: var(--text);
    margin-bottom: 6px;
}

.form-input, .filter-input, .filter-select {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid var(--border);
    border-radius: var(--r);
    font-size: var(--fs-body);
    color: var(--text);
    background: var(--bg-input);
    outline: none;
    transition: all .18s;
}

    .form-input:focus, .filter-input:focus, .filter-select:focus {
        border-color: var(--info);
        box-shadow: 0 0 0 3px rgba(29,78,216,.12);
        background: var(--surface);
    }

    .form-input::placeholder, .filter-input::placeholder {
        color: var(--text-3);
    }

    .form-error, .form-input[aria-invalid="true"] ~ .form-error {
        font-size: var(--fs-xs);
        color: var(--danger);
        margin-top: 4px;
        display: block;
    }

    .form-input[aria-invalid="true"] {
        border-color: var(--danger);
    }

.form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-3);
}

.form-row-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--sp-4);
}

@media (max-width: 767px) {
    .form-input, .filter-input, .filter-select, .search-input, .search-select {
        font-size: 16px;
        min-height: 44px;
    }
}

.checkbox-label, .filter-check {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: var(--fs-sm);
    color: var(--text-2);
    cursor: pointer;
}

    .checkbox, .filter-check input {
        width: 18px;
        height: 18px;
        accent-color: var(--info);
        flex-shrink: 0;
    }

.input-with-toggle {
    position: relative;
}

    .input-with-toggle .form-input {
        padding-right: 42px;
    }

.toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    padding: 4px;
    color: var(--text-3);
    min-width: 32px;
    min-height: 32px;
}

    .toggle-password:hover {
        color: var(--text);
    }

.password-strength {
    height: 4px;
    background: var(--border);
    border-radius: var(--r-full);
    margin-top: 6px;
    overflow: hidden;
}

.strength-fill {
    height: 100%;
    width: 0;
    border-radius: var(--r-full);
    transition: all .3s;
}

.strength-label {
    font-size: var(--fs-xs);
    color: var(--text-3);
    margin-top: 4px;
}

.filter-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: var(--fs-sm);
    color: var(--text-2);
    cursor: pointer;
}

    .filter-toggle input {
        display: none;
    }

.toggle-slider {
    width: 40px;
    height: 22px;
    background: var(--border-strong);
    border-radius: var(--r-full);
    position: relative;
    flex-shrink: 0;
    transition: background .2s;
}

.filter-toggle input:checked ~ .toggle-slider {
    background: var(--info);
}

.toggle-slider::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    background: #fff;
    border-radius: 50%;
    top: 3px;
    left: 3px;
    transition: left .2s;
    box-shadow: 0 1px 3px rgba(0,0,0,.25);
}

.filter-toggle input:checked ~ .toggle-slider::after {
    left: 21px;
}

/* ================================================================
   CARDS
   ================================================================ */
.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: var(--sp-4) var(--sp-5);
    box-shadow: var(--e-1);
}

.card--feat {
    border-left: 3px solid var(--gold);
}

.card--interactive {
    transition: transform .18s, box-shadow .18s, border-color .18s;
    cursor: pointer;
}

    .card--interactive:hover {
        transform: translateY(-2px);
        box-shadow: var(--e-2);
        border-color: var(--border-strong);
    }

.card--flat {
    background: var(--surface-2);
    border: none;
    box-shadow: none;
}

/* ================================================================
   BADGES & TAGS
   ================================================================ */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: var(--fs-2xs);
    font-weight: 600;
    padding: 2px 8px;
    border-radius: var(--r-sm);
    line-height: 1.4;
}

.badge--gold {
    background: var(--gold);
    color: var(--navy);
}

.badge--info {
    background: var(--info-bg);
    color: var(--info);
}

.badge--success {
    background: var(--success-bg);
    color: var(--success);
}

.badge--danger {
    background: var(--danger-bg);
    color: var(--danger);
}

.badge--warning {
    background: var(--warning-bg);
    color: var(--warning);
}

.badge--neutral {
    background: var(--surface-2);
    color: var(--text-2);
}

.tag {
    font-size: var(--fs-xs);
    padding: 3px 10px;
    border-radius: var(--r-full);
    background: var(--surface-2);
    color: var(--text-2);
    border: 1px solid var(--border);
}

.tag-remote {
    background: var(--success-bg);
    color: var(--success);
    border-color: transparent;
}

/* ================================================================
   ALERTS
   ================================================================ */
.alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    border-radius: var(--r);
    font-size: var(--fs-sm);
    border: 1px solid transparent;
    border-left-width: 3px;
    margin-bottom: var(--sp-4);
}

.alert--success, .alert-success {
    background: var(--success-bg);
    color: var(--success);
    border-left-color: var(--success);
}

.alert--danger, .auth-error {
    background: var(--danger-bg);
    color: var(--danger);
    border-left-color: var(--danger);
}

.alert--warning {
    background: var(--warning-bg);
    color: var(--warning);
    border-left-color: var(--warning);
}

.alert--info {
    background: var(--info-bg);
    color: var(--info);
    border-left-color: var(--info);
}

.auth-success {
    background: var(--success-bg);
    color: var(--success);
    border: 1px solid rgba(5,150,105,.2);
    border-radius: var(--r);
    padding: 10px 14px;
    font-size: var(--fs-sm);
    margin-bottom: var(--sp-4);
}

.auth-error {
    border-radius: var(--r);
    padding: 10px 14px;
    margin-bottom: var(--sp-4);
}

/* ================================================================
   NAVBAR
   ================================================================ */
.navbar {
    background: var(--bg-nav);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 200;
    height: 64px;
    box-shadow: var(--e-1);
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--sp-6);
    height: 64px;
    display: flex;
    align-items: center;
    gap: var(--sp-10);
}

.nav-links {
    display: flex;
    gap: 28px;
    flex: 1;
}

.nav-link {
    font-size: var(--fs-body);
    color: var(--text-2);
    transition: color .2s;
    position: relative;
    padding-bottom: 4px;
    white-space: nowrap;
}

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

    .nav-link.active {
        color: var(--blue);
        font-weight: 600;
    }

        .nav-link.active::after {
            content: '';
            position: absolute;
            bottom: -4px;
            left: 0;
            right: 0;
            height: 2px;
            background: var(--blue);
            border-radius: var(--r-full);
        }

.nav-right {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

.lang-switcher {
    display: flex;
    gap: 3px;
}

.lang-btn {
    box-sizing: border-box;
    width: 28px;
    height: 28px;
    padding: 0;
    border-radius: 50%;
    overflow: hidden;
    border: none;
    background: var(--surface-2);
    opacity: .4;
    cursor: pointer;
    transform: scale(.85);
    transition: opacity .18s, box-shadow .18s, transform .18s;
    display: inline-flex;
    flex-shrink: 0;
}

    .lang-btn:hover {
        opacity: .7;
    }

    .lang-btn.active {
        opacity: 1;
        transform: scale(1.15);
        box-shadow: 0 0 0 2px var(--gold), 0 2px 6px rgba(201,168,76,.3);
    }

        .lang-btn.active:hover {
            transform: scale(1.15);
        }

.flag-icon {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ── HAMBURGER (останува за tablet/секундарно) ─────────────── */
.nav-hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: var(--r-sm);
    transition: background .2s;
}

    .nav-hamburger:hover {
        background: var(--surface-2);
    }

    .nav-hamburger span {
        display: block;
        width: 22px;
        height: 2px;
        background: var(--text);
        border-radius: 2px;
        transition: all .3s ease;
        transform-origin: center;
    }

    .nav-hamburger.open span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .nav-hamburger.open span:nth-child(2) {
        opacity: 0;
        transform: scaleX(0);
    }

    .nav-hamburger.open span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

/* ================================================================
   BOTTOM NAV (НОВО — мобилна примарна навигација)
   ================================================================ */
.bottom-nav {
    display: none;
}

@media (max-width: 767px) {
    .bottom-nav {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 300;
        background: var(--bg-nav);
        border-top: 1px solid var(--border);
        padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
        justify-content: space-around;
        box-shadow: 0 -2px 12px rgba(15,23,42,.06);
    }

    .bottom-nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 2px;
        flex: 1;
        min-height: 48px;
        justify-content: center;
        color: var(--text-3);
        font-size: var(--fs-2xs);
        border-radius: var(--r-sm);
        transition: color .15s;
    }

        .bottom-nav-item svg, .bottom-nav-item i {
            width: 22px;
            height: 22px;
            font-size: 22px;
        }

        .bottom-nav-item.active {
            color: var(--blue);
            font-weight: 600;
        }

    .bottom-nav-item--cta {
        color: #8A6D23;
        font-weight: 700;
    }

    body {
        padding-bottom: calc(60px + env(safe-area-inset-bottom));
    }

    main {
        min-height: auto;
    }
}

/* ================================================================
   HERO  (navy во двата режима — намерно)
   ================================================================ */
.hero {
    position: relative;
    min-height: 200px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: radial-gradient(620px 420px at 82% -25%, rgba(201,168,76,.28), transparent 65%), var(--navy);
    border-bottom: 1px solid var(--border);
}

.hero-bg {
    position: absolute;
    inset: 0;
    opacity: .06;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(15,23,42,.98) 35%, rgba(15,23,42,.85) 65%, rgba(15,23,42,.60) 100%);
}

.hero-inner {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--sp-6) var(--sp-6);
    width: 100%;
}

.hero-title {
    font-size: var(--fs-h1);
    font-weight: 800;
    line-height: 1.15;
    color: #fff;
    margin-bottom: var(--sp-4);
}

.hero-title-gold {
    color: var(--gold);
}

.hero-sub {
    font-size: var(--fs-body-lg);
    color: rgba(255,255,255,.7);
    margin-bottom: var(--sp-8);
}

.search-form {
    max-width: 860px;
    width: 100%;
}

.search-box {
    display: flex;
    background: #fff;
    border-radius: var(--r-lg);
    overflow: hidden;
    box-shadow: var(--e-3);
    height: 56px;
    width: 100%;
    border: 1px solid var(--border-strong);
}

.search-field {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    padding: 0 16px;
    border-right: 1px solid var(--border);
    min-width: 0;
}

    .search-field:last-of-type {
        border-right: none;
    }

.search-icon {
    color: var(--text-3);
    font-size: 16px;
    flex-shrink: 0;
}

.search-input, .search-select {
    flex: 1;
    border: none;
    outline: none;
    font-size: var(--fs-body);
    color: #0F172A;
    background: transparent;
    min-width: 0;
    height: 100%;
}

.search-select {
    cursor: pointer;
}

.btn-search {
    background: var(--gold);
    color: var(--navy);
    border: none;
    padding: 0 30px;
    font-size: var(--fs-body);
    font-weight: 700;
    cursor: pointer;
    transition: background .2s;
    white-space: nowrap;
    flex-shrink: 0;
    height: 100%;
}

    .btn-search:hover {
        background: var(--gold-strong);
    }

/* ================================================================
   STATS BAR
   ================================================================ */
.stats-bar {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--e-1);
}

.stats-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--sp-6);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.stat {
    padding: var(--sp-5) var(--sp-6);
    text-align: center;
    border-right: 1px solid var(--border);
}

    .stat:last-child {
        border-right: none;
    }

.stat-num {
    font-size: var(--fs-h2);
    font-weight: 700;
    color: var(--blue);
    display: block;
}

.stat-lbl {
    font-size: var(--fs-xs);
    color: var(--text-2);
    margin-top: 2px;
}

/* ================================================================
   SECTIONS
   ================================================================ */
.section {
    padding: var(--sp-12) var(--sp-6);
}

.section-dark {
    background: var(--surface);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.section-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--sp-6);
}

.section-title {
    font-size: var(--fs-h2);
    font-weight: 700;
    color: var(--text);
}

.see-all {
    font-size: var(--fs-sm);
    color: var(--info);
    transition: color .2s;
    font-weight: 500;
}

    .see-all:hover {
        color: var(--blue);
    }

:root[data-theme="dark"] .see-all {
    color: rgba(255,255,255,.85);
}

/* ================================================================
   CATEGORIES
   ================================================================ */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(155px, 1fr));
    gap: var(--sp-3);
}

.cat-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: var(--sp-5) var(--sp-4);
    text-align: center;
    cursor: pointer;
    transition: all .2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--sp-2);
    box-shadow: var(--e-1);
}

    .cat-card:hover {
        border-color: var(--navy);
        background: var(--surface-2);
        transform: translateY(-2px);
        box-shadow: var(--e-2);
    }

.cat-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--r);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    background: var(--bg);
}

.cat-name {
    font-size: var(--fs-sm);
    font-weight: 600;
    color: var(--text);
}

.cat-count {
    font-size: var(--fs-xs);
    color: var(--text-2);
}

/* ================================================================
   JOB CARDS — Grid
   ================================================================ */
.jobs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--sp-4);
}

.job-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: var(--sp-4);
    transition: all .2s;
    display: block;
    box-shadow: var(--e-1);
}

    .job-card:hover {
        border-color: var(--navy);
        box-shadow: var(--e-2);
        transform: translateY(-2px);
    }

    .job-card.featured {
        border-color: var(--gold);
        border-width: 2px;
    }

.job-card-badge {
    display: inline-block;
    font-size: var(--fs-2xs);
    padding: 3px 10px;
    border-radius: var(--r-full);
    background: var(--gold);
    color: var(--navy);
    font-weight: 700;
    margin-bottom: var(--sp-2);
}

.job-card-top {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.company-logo {
    width: 44px;
    height: 44px;
    border-radius: var(--r);
    background: var(--bg);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--fs-sm);
    font-weight: 700;
    color: var(--blue);
    flex-shrink: 0;
    overflow: hidden;
}

    .company-logo img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

.job-info {
    flex: 1;
    min-width: 0;
}

.job-title {
    font-size: var(--fs-body-lg);
    font-weight: 600;
    color: var(--text);
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.job-company {
    font-size: var(--fs-sm);
    color: var(--text-2);
    margin-bottom: 6px;
}

.job-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.job-card-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 10px;
    border-top: 1px solid var(--border);
    margin-top: 10px;
}

.job-salary {
    font-size: var(--fs-body);
    font-weight: 600;
    color: var(--success);
}

.job-date {
    font-size: var(--fs-xs);
    color: var(--text-2);
}

/* ================================================================
   JOB ROWS — List
   ================================================================ */
/* ФИКС (2 во ред на почетна, барање на Stole 2026-09-15): порано
   .jobs-list-full беше вертикална flex-колона (1 оглас по ред). Ова е
   ВИСТИНСКИОТ активен CSS фајл (theme.css, не site.css) - претходниот обид
   во site.css немаше ефект бидејќи тој фајл воопшто не се вчитува (виж
   Network таб - само theme.css/auth.css се сервираат). Сега 2 колони на
   десктоп/таблет, автоматски паѓа на 1 колона под 768px (виж media query
   подолу, до "Mobile: job row stack" делот) - .job-card-full си остана
   истата хоризонтална картичка, само две еден до друг наместо цела ширина. */
.jobs-list-full {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--sp-2);
}

.job-card-full {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: var(--sp-4);
    transition: all .2s;
    display: block;
    box-shadow: var(--e-1);
}

    .job-card-full:hover {
        border-color: var(--navy);
        box-shadow: var(--e-2);
    }

    .job-card-full.featured {
        border-color: var(--gold);
        border-left: 4px solid var(--gold);
    }

.job-featured-badge {
    font-size: var(--fs-2xs);
    padding: 3px 10px;
    background: var(--gold);
    color: var(--navy);
    border-radius: var(--r-full);
    font-weight: 700;
    display: inline-block;
}

.jcf-badges {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: var(--sp-2);
}

.job-card-full-body {
    display: flex;
    gap: var(--sp-4);
    align-items: center;
}

.jcf-logo {
    width: 48px;
    height: 48px;
    border-radius: var(--r);
    background: var(--bg);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--fs-body);
    font-weight: 700;
    color: var(--blue);
    flex-shrink: 0;
    overflow: hidden;
}

    .jcf-logo img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

.jcf-info {
    flex: 1;
    min-width: 0;
}

.jcf-title {
    font-size: var(--fs-body-lg);
    font-weight: 600;
    color: var(--text);
    margin-bottom: 3px;
}

.jcf-company {
    font-size: var(--fs-sm);
    color: var(--text-2);
    margin-bottom: 5px;
}

.jcf-meta {
    display: flex;
    gap: var(--sp-2);
    flex-wrap: wrap;
}

.meta-item {
    font-size: var(--fs-xs);
    color: var(--text-2);
    padding: 2px 8px;
    border-radius: var(--r-sm);
    background: var(--bg);
    border: 1px solid var(--border);
}

.jcf-right {
    text-align: right;
    flex-shrink: 0;
}

.jcf-salary {
    font-size: var(--fs-body);
    font-weight: 600;
    color: var(--success);
}

.jcf-date {
    font-size: var(--fs-xs);
    color: var(--text-2);
    margin-top: 2px;
}

.jcf-apply {
    font-size: var(--fs-xs);
    color: #fff;
    background: var(--navy);
    padding: 5px 12px;
    border-radius: var(--r-sm);
    margin-top: 6px;
    display: inline-block;
    font-weight: 600;
}

:root[data-theme="dark"] .jcf-apply {
    background: var(--blue-dk);
    color: var(--navy);
}

/* Mobile: job row stack (без хоризонтален прелив) */
@media (max-width: 767px) {
    /* ФИКС: .jobs-list-full на 2 колони (см. правилото погоре) враќа на
       1 колона на таблет/мобилен - хоризонталната картичка е премногу
       широка за да стои удобно 2 во ред под 768px. */
    .jobs-list-full {
        grid-template-columns: 1fr;
    }

    .job-card-full-body {
        flex-wrap: wrap;
    }

    .jcf-right {
        text-align: left;
        width: 100%;
        margin-top: var(--sp-2);
        padding-top: var(--sp-2);
        border-top: 1px solid var(--border);
        display: flex;
        align-items: center;
        gap: var(--sp-3);
    }

    .jcf-date {
        margin-top: 0;
        margin-left: auto;
    }

    .jcf-apply {
        display: inline-flex;
        align-items: center;
        gap: 4px;
        white-space: nowrap;
    }
}

/* ================================================================
   JOBS PAGE — Filters + Results
   ================================================================ */
.jobs-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--sp-8) var(--sp-6);
}

.jobs-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: var(--sp-6);
}

.filters-sidebar {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: var(--sp-5);
    height: fit-content;
    position: sticky;
    top: 80px;
    box-shadow: var(--e-1);
}

.filter-section {
    margin-bottom: var(--sp-5);
    padding-bottom: var(--sp-5);
    border-bottom: 1px solid var(--border);
}

    .filter-section:last-child {
        border-bottom: none;
        margin-bottom: 0;
        padding-bottom: 0;
    }

.filter-title {
    font-size: var(--fs-sm);
    font-weight: 600;
    color: var(--text);
    margin-bottom: 10px;
}

.filter-clear {
    font-size: var(--fs-xs);
    color: var(--danger);
    margin-top: 4px;
    display: inline-block;
}

.btn-filter-apply {
    width: 100%;
    padding: 11px;
    background: var(--navy);
    color: #fff;
    border: none;
    border-radius: var(--r);
    font-size: var(--fs-sm);
    font-weight: 700;
    cursor: pointer;
    margin-top: var(--sp-2);
    transition: background .2s;
}

:root[data-theme="dark"] .btn-filter-apply {
    background: var(--blue-dk);
    color: var(--navy);
}

.btn-filter-apply:hover {
    background: var(--navy-2);
}

:root[data-theme="dark"] .btn-filter-apply:hover {
    background: var(--gold);
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--sp-4);
}

.results-count {
    font-size: var(--fs-body);
    color: var(--text-2);
}

    .results-count strong {
        color: var(--text);
    }

.btn-post-job-sm {
    font-size: var(--fs-xs);
    padding: 8px 14px;
    border-radius: var(--r);
    background: var(--gold);
    color: var(--navy);
    font-weight: 700;
}

.active-filters {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: var(--sp-4);
}

.filter-chip {
    font-size: var(--fs-xs);
    padding: 4px 10px;
    border-radius: var(--r-full);
    background: var(--info-bg);
    color: var(--info);
    border: 1px solid transparent;
}

.filter-chip-clear {
    font-size: var(--fs-xs);
    padding: 4px 10px;
    border-radius: var(--r-full);
    background: var(--surface-2);
    color: var(--text-2);
    border: 1px solid var(--border);
}

/* Pagination */
.pagination {
    display: flex;
    gap: 6px;
    justify-content: center;
    margin-top: var(--sp-8);
    flex-wrap: wrap;
}

.page-btn {
    min-width: 40px;
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 14px;
    border-radius: var(--r-sm);
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text-2);
    font-size: var(--fs-sm);
    transition: all .2s;
    box-shadow: var(--e-1);
}

    .page-btn:hover {
        border-color: var(--navy);
        color: var(--blue);
        background: var(--surface-2);
    }

    .page-btn.active {
        background: var(--navy);
        color: #fff;
        border-color: var(--navy);
        font-weight: 700;
    }

:root[data-theme="dark"] .page-btn.active {
    background: var(--blue-dk);
    border-color: var(--blue-dk);
    color: var(--navy);
}

/* ================================================================
   DETAIL PAGE
   ================================================================ */
.detail-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--sp-8) var(--sp-6);
}

.detail-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: var(--sp-6);
}

.breadcrumb {
    font-size: var(--fs-sm);
    color: var(--text-2);
    margin-bottom: var(--sp-4);
    display: flex;
    align-items: center;
    gap: 6px;
}

    .breadcrumb a {
        color: var(--text-2);
    }

        .breadcrumb a:hover {
            color: var(--blue);
        }

.detail-header {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: var(--sp-6);
    margin-bottom: var(--sp-4);
    box-shadow: var(--e-1);
}

    .detail-header.featured {
        border-color: var(--gold);
        border-top: 3px solid var(--gold);
    }

.detail-featured-badge {
    font-size: var(--fs-xs);
    padding: 3px 12px;
    background: var(--gold);
    color: var(--navy);
    border-radius: var(--r-full);
    font-weight: 700;
    display: inline-block;
    margin-bottom: 10px;
}

.detail-header-top {
    display: flex;
    gap: var(--sp-4);
    margin-bottom: var(--sp-4);
}

.detail-logo {
    width: 64px;
    height: 64px;
    border-radius: var(--r-lg);
    background: var(--bg);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--fs-h2);
    font-weight: 700;
    color: var(--blue);
    flex-shrink: 0;
    overflow: hidden;
}

    .detail-logo img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

.detail-title {
    font-size: var(--fs-h1);
    font-weight: 700;
    color: var(--text);
    margin-bottom: 4px;
}

.detail-company {
    font-size: var(--fs-body);
    color: var(--text-2);
    margin-bottom: var(--sp-2);
}

.company-link {
    color: var(--blue);
    margin-left: 4px;
}

.detail-meta-row {
    display: flex;
    gap: var(--sp-2);
    flex-wrap: wrap;
}

.meta-chip {
    font-size: var(--fs-xs);
    padding: 4px 12px;
    border-radius: var(--r-full);
    background: var(--bg);
    color: var(--text-2);
    border: 1px solid var(--border);
}

.meta-remote {
    background: var(--success-bg);
    color: var(--success);
    border-color: transparent;
}

.detail-header-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--sp-4);
    border-top: 1px solid var(--border);
    flex-wrap: wrap;
    gap: var(--sp-2);
}

.salary-value {
    font-size: var(--fs-h3);
    font-weight: 700;
    color: var(--success);
}

.detail-stats {
    display: flex;
    gap: var(--sp-4);
    font-size: var(--fs-xs);
    color: var(--text-2);
    flex-wrap: wrap;
}

.detail-section {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: var(--sp-6);
    margin-bottom: var(--sp-4);
    box-shadow: var(--e-1);
}

.detail-section-title {
    font-size: var(--fs-h3);
    font-weight: 600;
    color: var(--text);
    margin-bottom: var(--sp-4);
    padding-bottom: var(--sp-3);
    border-bottom: 1px solid var(--border);
}

.detail-description {
    font-size: var(--fs-body-lg);
    line-height: 1.75;
    color: var(--text-2);
}

    .detail-description ul {
        padding-left: 20px;
    }

    .detail-description li {
        margin-bottom: 6px;
    }

.apply-box {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: var(--sp-5);
    margin-bottom: var(--sp-4);
    position: sticky;
    top: 80px;
    box-shadow: var(--e-2);
}

    .apply-box.featured {
        border-color: var(--gold);
        border-top: 3px solid var(--gold);
    }

.apply-salary {
    font-size: var(--fs-h1);
    font-weight: 700;
    color: var(--success);
}

.apply-salary-sub {
    font-size: var(--fs-sm);
    color: var(--text-2);
    margin-bottom: var(--sp-4);
}

.btn-apply-big {
    display: block;
    width: 100%;
    min-height: 48px;
    padding: 14px;
    background: var(--navy);
    color: #fff;
    border: none;
    border-radius: var(--r);
    font-size: var(--fs-body-lg);
    font-weight: 700;
    cursor: pointer;
    text-align: center;
    transition: background .2s;
}

:root[data-theme="dark"] .btn-apply-big {
    background: var(--blue-dk);
    color: var(--navy);
}

.btn-apply-big:hover {
    background: var(--navy-2);
    color: #fff;
}

:root[data-theme="dark"] .btn-apply-big:hover {
    background: var(--gold);
    color: var(--navy);
}

.btn-save-big {
    display: block;
    width: 100%;
    min-height: 46px;
    padding: 13px;
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: var(--r);
    font-size: var(--fs-body-lg);
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    margin-top: var(--sp-2);
    transition: all .2s;
}

    .btn-save-big:hover {
        border-color: var(--navy);
        color: var(--blue);
        background: var(--surface-2);
    }

.apply-note {
    font-size: var(--fs-xs);
    color: var(--text-2);
    text-align: center;
    margin-top: var(--sp-2);
}

.apply-info-list {
    margin-top: var(--sp-4);
    display: flex;
    flex-direction: column;
    gap: 10px;
    border-top: 1px solid var(--border);
    padding-top: var(--sp-4);
}

.apply-info-item {
    display: flex;
    gap: 10px;
    font-size: var(--fs-sm);
}

.apply-info-label {
    font-size: var(--fs-xs);
    color: var(--text-2);
    display: block;
}

.apply-info-val {
    font-size: var(--fs-sm);
    color: var(--text);
    font-weight: 500;
}

.similar-jobs {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: var(--sp-4);
    box-shadow: var(--e-1);
}

.similar-title {
    font-size: var(--fs-body);
    font-weight: 600;
    color: var(--text);
    margin-bottom: 10px;
}

.similar-job-item {
    display: flex;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    align-items: flex-start;
}

    .similar-job-item:last-child {
        border-bottom: none;
    }

    .similar-job-item:hover .sji-title {
        color: var(--blue);
    }

.sji-logo {
    width: 36px;
    height: 36px;
    border-radius: var(--r-sm);
    background: var(--bg);
    color: var(--blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--fs-2xs);
    font-weight: 700;
    flex-shrink: 0;
    border: 1px solid var(--border);
}

.sji-title {
    font-size: var(--fs-sm);
    font-weight: 500;
    color: var(--text);
    transition: color .2s;
}

.sji-company {
    font-size: var(--fs-2xs);
    color: var(--text-2);
}

.apply-mobile {
    display: none;
    margin-top: var(--sp-4);
}

/* ================================================================
   MODALS / BOTTOM SHEET
   ================================================================ */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 400;
    padding: var(--sp-4);
    backdrop-filter: blur(4px);
}

.modal-box {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-xl);
    padding: var(--sp-6);
    max-width: 480px;
    width: 100%;
    box-shadow: var(--e-3);
}

.modal-title {
    font-size: var(--fs-h3);
    font-weight: 600;
    color: var(--text);
    margin-bottom: 4px;
}

.sheet-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.5);
    z-index: 400;
    backdrop-filter: blur(2px);
}

.sheet {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 401;
    background: var(--surface);
    border-radius: var(--r-xl) var(--r-xl) 0 0;
    padding: var(--sp-4) var(--sp-5) calc(var(--sp-6) + env(safe-area-inset-bottom));
    box-shadow: 0 -8px 32px rgba(0,0,0,.2);
    max-height: 85vh;
    overflow-y: auto;
}

.sheet-handle {
    width: 40px;
    height: 4px;
    background: var(--border-strong);
    border-radius: var(--r-full);
    margin: 0 auto var(--sp-4);
}

/* ================================================================
   CTA  (navy секогаш)
   ================================================================ */
.cta-section {
    background: var(--navy);
    padding: var(--sp-16) var(--sp-6);
    text-align: center;
}

.cta-inner {
    max-width: 600px;
    margin: 0 auto;
}

.cta-title {
    font-size: var(--fs-h1);
    font-weight: 700;
    color: #fff;
    margin-bottom: var(--sp-3);
}

.cta-sub {
    font-size: var(--fs-body-lg);
    color: rgba(255,255,255,.7);
    margin-bottom: var(--sp-8);
}

.cta-badge {
    display: inline-block;
    font-size: var(--fs-2xs);
    padding: 2px 8px;
    border-radius: var(--r-full);
    background: rgba(255,255,255,.12);
    color: #fff;
    border: 1px solid rgba(255,255,255,.25);
    margin-left: 6px;
}

.cta-btns {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-section .btn-primary {
    background: var(--gold);
    color: var(--navy);
}

    .cta-section .btn-primary:hover {
        background: var(--gold-strong);
    }

.cta-section .btn-secondary {
    background: rgba(255,255,255,.08);
    color: #fff;
    border-color: rgba(255,255,255,.25);
}

    .cta-section .btn-secondary:hover {
        background: rgba(255,255,255,.15);
        border-color: rgba(255,255,255,.4);
        color: #fff;
    }

/* ================================================================
   FOOTER  (navy секогаш)
   ================================================================ */
.footer {
    background: var(--navy);
    border-top: 1px solid rgba(255,255,255,.08);
    padding: var(--sp-12) var(--sp-6) var(--sp-8);
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--sp-10);
    margin-bottom: var(--sp-8);
}

.footer-brand-tag {
    font-size: var(--fs-xs);
    color: rgba(255,255,255,.55);
    font-style: italic;
}

.footer-links {
    display: flex;
    gap: var(--sp-12);
    flex-wrap: wrap;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: var(--sp-2);
}

.footer-col-title {
    font-size: var(--fs-2xs);
    color: var(--gold);
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.footer-col a {
    font-size: var(--fs-sm);
    color: rgba(255,255,255,.5);
    transition: color .2s;
}

    .footer-col a:hover {
        color: #fff;
    }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.08);
    padding-top: var(--sp-5);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--sp-2);
}

.footer-copy {
    font-size: var(--fs-xs);
    color: rgba(255,255,255,.55);
}

.footer-langs {
    display: flex;
    gap: 4px;
}

.lang-btn-sm {
    box-sizing: border-box;
    width: 22px;
    height: 22px;
    padding: 0;
    border-radius: 50%;
    overflow: hidden;
    border: none;
    background: rgba(255,255,255,.08);
    opacity: .4;
    transform: scale(.85);
    transition: opacity .18s, box-shadow .18s, transform .18s;
    display: inline-flex;
    flex-shrink: 0;
}

    .lang-btn-sm:hover {
        opacity: .7;
    }

    .lang-btn-sm.active {
        opacity: 1;
        transform: scale(1.15);
        box-shadow: 0 0 0 2px var(--gold), 0 2px 6px rgba(201,168,76,.3);
    }

        .lang-btn-sm.active:hover {
            transform: scale(1.15);
        }

/* ================================================================
   AUTH
   ================================================================ */
.auth-page {
    min-height: calc(100vh - 64px);
    background: var(--bg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--sp-8) var(--sp-4);
}

.auth-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-xl);
    padding: var(--sp-10) var(--sp-8);
    width: 100%;
    max-width: 460px;
    box-shadow: var(--e-2);
}

.auth-card-wide {
    max-width: 640px;
}

.auth-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: var(--sp-2);
}

.auth-logo-name {
    font-size: var(--fs-h3);
    font-weight: 800;
    color: var(--text);
    letter-spacing: .5px;
    text-align: center;
    margin-bottom: var(--sp-5);
}

    .auth-logo-name span {
        color: var(--gold);
    }

.auth-title {
    font-size: var(--fs-h1);
    font-weight: 700;
    color: var(--text);
    text-align: center;
    margin-bottom: var(--sp-2);
}

.auth-sub {
    font-size: var(--fs-sm);
    color: var(--text-2);
    text-align: center;
    margin-bottom: var(--sp-6);
    line-height: 1.6;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: var(--sp-3);
    margin: var(--sp-5) 0;
    color: var(--text-2);
    font-size: var(--fs-xs);
}

    .auth-divider::before, .auth-divider::after {
        content: '';
        flex: 1;
        height: 1px;
        background: var(--border);
    }

.google-btn {
    width: 100%;
    min-height: 48px;
    padding: 12px;
    border-radius: var(--r-md);
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text);
    font-size: var(--fs-body);
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all .15s;
    box-shadow: var(--e-1);
}

    .google-btn:hover {
        background: var(--surface-2);
        border-color: var(--border-strong);
    }

.btn-auth {
    width: 100%;
    min-height: 48px;
    padding: 13px;
    border-radius: var(--r-md);
    background: var(--navy);
    color: #fff;
    font-size: var(--fs-body-lg);
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: background .15s;
    display: block;
    text-align: center;
    margin-top: 4px;
}

:root[data-theme="dark"] .btn-auth {
    background: var(--blue-dk);
    color: var(--navy);
}

.btn-auth:hover {
    background: var(--navy-2);
}

:root[data-theme="dark"] .btn-auth:hover {
    background: var(--gold);
    color: var(--navy);
}

.auth-link {
    color: var(--blue);
    font-weight: 600;
}

    .auth-link:hover {
        text-decoration: underline;
    }

.role-toggle {
    display: flex;
    gap: 8px;
    margin-bottom: var(--sp-6);
    background: var(--bg);
    border-radius: var(--r-md);
    padding: 4px;
    border: 1px solid var(--border);
}

.role-btn {
    flex: 1;
    min-height: 44px;
    padding: 10px;
    border-radius: var(--r);
    border: none;
    background: transparent;
    color: var(--text-2);
    font-size: var(--fs-sm);
    font-weight: 600;
    cursor: pointer;
    transition: all .2s;
}

    .role-btn.active {
        background: var(--surface);
        color: var(--blue);
        box-shadow: var(--e-1);
    }

.demo-box {
    background: var(--info-bg);
    border: 1px solid rgba(29,78,216,.15);
    border-radius: var(--r);
    padding: 12px 16px;
    margin-top: var(--sp-4);
    font-size: var(--fs-xs);
    color: var(--text-2);
}

.demo-title {
    font-weight: 600;
    color: var(--info);
    margin-bottom: 6px;
    font-size: var(--fs-xs);
}

/* ================================================================
   UPLOAD
   ================================================================ */
.upload-zone {
    border: 2px dashed var(--border-strong);
    border-radius: var(--r-md);
    padding: var(--sp-6);
    text-align: center;
    cursor: pointer;
    transition: all .15s;
    background: var(--bg-input);
}

    .upload-zone:hover {
        border-color: var(--info);
        background: var(--info-bg);
    }

.upload-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.upload-icon-big {
    font-size: 28px;
}

.upload-hint-text {
    font-size: var(--fs-xs);
    color: var(--text-3);
}

.upload-preview-img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto;
    display: block;
}

.upload-preview-logo {
    width: 120px;
    height: 80px;
    border-radius: var(--r);
    object-fit: contain;
}

.field-optional {
    font-size: var(--fs-xs);
    color: var(--text-3);
    font-weight: 400;
    margin-left: 4px;
}

/* ================================================================
   EMPTY STATE
   ================================================================ */
.empty-state {
    text-align: center;
    padding: var(--sp-16) var(--sp-4);
}

.empty-icon {
    font-size: 48px;
    margin-bottom: var(--sp-4);
}

.empty-title {
    font-size: var(--fs-h3);
    font-weight: 600;
    color: var(--text);
    margin-bottom: var(--sp-2);
}

.empty-text {
    font-size: var(--fs-body);
    color: var(--text-2);
}

/* ================================================================
   EMPLOYER DASHBOARD helpers (token bridge — без !important hacks)
   ================================================================ */
.tab-btn {
    color: var(--text-2);
    border: 1px solid transparent;
    cursor: pointer;
}

    .tab-btn:hover {
        background: var(--surface-2);
        color: var(--text);
    }

    .tab-btn.active-tab {
        background: var(--success-bg);
        color: var(--success);
        border-color: rgba(5,150,105,.2);
    }

    .tab-btn.archive-tab {
        background: var(--bg);
        color: var(--text-2);
        border-color: var(--border);
    }

.action-btn {
    font-size: var(--fs-2xs);
    padding: 5px 12px;
    border-radius: var(--r-sm);
    border: 1px solid var(--border);
    cursor: pointer;
    font-weight: 500;
    display: inline-block;
    transition: all .15s;
    background: var(--bg);
    color: var(--text-2);
}

    .action-btn:hover {
        opacity: .85;
    }

/* ================================================================
   TOASTS
   ================================================================ */
#globalToast, #globalToastErr {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    padding: 14px 20px;
    border-radius: var(--r-lg);
    font-size: var(--fs-body);
    font-weight: 500;
    box-shadow: var(--e-3);
    display: flex;
    align-items: center;
    gap: 10px;
    animation: toastIn .35s ease;
    max-width: 380px;
}

#globalToast {
    background: var(--success-bg);
    border: 1px solid rgba(5,150,105,.3);
    color: var(--success);
}

#globalToastErr {
    background: var(--danger-bg);
    border: 1px solid rgba(220,38,38,.3);
    color: var(--danger);
}

@keyframes toastIn {
    from {
        transform: translateX(120px);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@media (max-width: 767px) {
    #globalToast, #globalToastErr {
        left: 16px;
        right: 16px;
        bottom: calc(70px + env(safe-area-inset-bottom));
        max-width: none;
    }
}

/* ================================================================
   VERIFICATION BANNER
   ================================================================ */
.verify-banner {
    background: var(--navy);
    color: #fff;
    text-align: center;
    padding: 10px 16px;
    font-size: var(--fs-sm);
    position: sticky;
    top: 64px;
    z-index: 198;
    border-bottom: 2px solid var(--gold);
}

    .verify-banner button {
        background: var(--gold);
        border: none;
        color: var(--navy);
        padding: 6px 14px;
        border-radius: var(--r-sm);
        font-size: var(--fs-xs);
        cursor: pointer;
        font-weight: 700;
        margin-left: 12px;
        min-height: 32px;
    }

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 1023px) {
    .jobs-layout {
        grid-template-columns: 1fr;
    }

    .detail-layout {
        grid-template-columns: 1fr;
    }

    .filters-sidebar {
        position: static;
    }

    .apply-box {
        position: static;
    }

    .apply-mobile {
        display: block;
    }
}

@media (max-width: 767px) {
    .detail-page {
        padding: var(--sp-4) var(--sp-3) var(--sp-6);
    }

    .detail-header {
        padding: var(--sp-4);
    }

    .detail-header-top {
        gap: var(--sp-3);
    }

    .detail-logo {
        width: 48px;
        height: 48px;
        font-size: var(--fs-h3);
    }

    .detail-title {
        font-size: var(--fs-h3);
        line-height: 1.25;
    }

    .detail-company {
        font-size: var(--fs-sm);
    }

    .detail-meta-row {
        gap: 6px;
    }

    .meta-chip {
        font-size: var(--fs-2xs);
        padding: 3px 9px;
    }

    .detail-header-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--sp-2);
    }

    .detail-stats {
        flex-wrap: wrap;
        gap: 6px 12px;
        font-size: var(--fs-xs);
    }

    .detail-section {
        padding: var(--sp-4);
    }

    .detail-section-title {
        font-size: var(--fs-body-lg);
    }
}

@media (max-width: 767px) {
    .nav-links {
        display: none;
        position: fixed;
        top: 64px;
        left: 0;
        right: 0;
        background: var(--bg-nav);
        border-bottom: 1px solid var(--border);
        flex-direction: column;
        padding: var(--sp-2) 0;
        z-index: 199;
        box-shadow: var(--e-2);
    }

        .nav-links.mobile-open {
            display: flex;
            max-height: calc(100vh - 64px - 70px);
            overflow-y: auto;
            -webkit-overflow-scrolling: touch;
        }

    .nav-link {
        padding: 14px 24px;
        font-size: var(--fs-body-lg);
        min-height: 48px;
        display: flex;
        align-items: center;
    }

        .nav-link.active::after {
            display: none;
        }

        .nav-link:hover, .nav-link.active {
            background: var(--info-bg);
            color: var(--blue);
        }

    .nav-hamburger {
        display: flex;
    }

    .nav-mobile-lang {
        display: flex;
        gap: 14px;
        padding: 6px 24px 16px;
    }

        .nav-mobile-lang .lang-btn {
            width: 44px;
            height: 44px;
            flex: 0 0 auto;
        }

    .hero {
        min-height: auto;
    }

    .hero-inner {
        padding: var(--sp-5) var(--sp-4);
    }

    .search-box {
        flex-direction: column;
        height: auto;
        border-radius: var(--r-lg);
    }

    .search-field {
        border-right: none;
        border-bottom: 1px solid var(--border);
        height: 48px;
    }

    .btn-search {
        width: 100%;
        border-radius: 0 0 var(--r-lg) var(--r-lg);
        height: 48px;
    }

    .stats-inner {
        grid-template-columns: repeat(2, 1fr);
        padding: 0 var(--sp-4);
    }

    .stat {
        padding: var(--sp-4) var(--sp-3);
        border-right: 1px solid var(--border);
    }

        .stat:nth-child(2n) {
            border-right: none;
        }

        .stat:not(:nth-last-child(-n+2)) {
            border-bottom: 1px solid var(--border);
        }

    .jobs-grid {
        grid-template-columns: 1fr;
    }

    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .form-row-2 {
        grid-template-columns: 1fr;
    }

    .section {
        padding: var(--sp-8) var(--sp-4);
    }

    .section-inner {
        padding: 0;
    }

    .footer-links {
        flex-direction: column;
        gap: var(--sp-5);
    }
}

@media (max-width: 479px) {
    .auth-card {
        padding: var(--sp-6) var(--sp-5);
    }

    .stat-num {
        font-size: var(--fs-h3);
    }

    .lang-switcher {
        display: none;
    }
}

@media (max-width: 359px) {
    .stats-inner {
        grid-template-columns: 1fr;
        padding: 0 var(--sp-5);
    }

    .stat {
        border-right: none !important;
        border-bottom: 1px solid var(--border);
    }

        .stat:last-child {
            border-bottom: none;
        }
}

/* Large desktop — содржина центрирана, без растегнување */
@media (min-width: 1440px) {
    .nav-inner, .section-inner, .stats-inner, .hero-inner,
    .jobs-page, .detail-page, .footer-inner {
        max-width: 1200px;
    }
}
