/*
Theme Name: JobCV - Job Listings & CV Platform
Theme URI: https://example.com
Author: JobCV Team
Author URI: https://example.com
Description: A modern, professional WordPress theme for job listings and CV management with social media integration
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.4
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: jobcv
Tags: job-board, cv, resume, career, professional, modern, responsive
*/

/* Header (load first) */
   
#masthead.site-header,
.site-header,
header.site-header {
    background: #ffffff !important;
    border-bottom: 1px solid var(--border-color, #e2e8f0) !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05) !important;
    backdrop-filter: none !important;
}

#masthead.site-header::before,
#masthead.site-header::after,
.site-header::before,
.site-header::after,
header.site-header::before,
header.site-header::after,
#page .site-header::before,
#page .site-header::after {
    content: none !important;
    display: none !important;
    visibility: hidden !important;
    background: transparent !important;
    background-image: none !important;
    animation: none !important;
    height: 0 !important;
    opacity: 0 !important;
    border: none !important;
}
body.admin-bar .site-header,
body.admin-bar #masthead.site-header,
body.admin-bar header.site-header { top: 32px !important; }
@media screen and (max-width: 900px) {
    body.admin-bar .site-header,
    body.admin-bar #masthead.site-header,
    body.admin-bar header.site-header { top: 46px !important; }
}
#page .site-header { background: #fff !important; border-bottom: 1px solid var(--border-color, #e2e8f0) !important; box-shadow: 0 1px 3px rgba(0,0,0,0.05) !important; }
.header-container { flex-wrap: nowrap !important; padding-left: max(0px, env(safe-area-inset-left)) !important; }
.site-header { overflow: visible !important; min-height: 64px !important; }
.site-branding,
.site-branding .site-logo,
.site-branding a.site-logo,
.site-logo img.site-logo-img { background: transparent !important; background-color: transparent !important; }
.site-branding .site-logo {
    display: inline-flex;
    align-items: center;
}
.site-logo img.site-logo-img {
    height: 56px; max-height: 56px; width: auto; min-width: 112px; display: block; vertical-align: middle; object-fit: contain;
    /* Subtle ground shadow for a lifted, 3D look */
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.08)) drop-shadow(0 6px 14px rgba(0,0,0,0.1)) hue-rotate(-8deg) saturate(1.05);
}
.site-branding { margin-left: 0 !important; padding-left: 0 !important; }
.site-logo { padding: 0; margin: 0; margin-left: 0 !important; display: flex; align-items: center; }
.footer-logo-img { filter: drop-shadow(0 2px 6px rgba(99,102,241,0.1)) drop-shadow(0 3px 10px rgba(0,0,0,0.05)); }
.header-actions { display: flex; align-items: center; gap: 0.2rem; }
.header-user-menu { display: flex; align-items: center; gap: 0.625rem; }
.header-messenger-btn {
    position: relative; display: flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; min-width: 44px; min-height: 44px; border-radius: 50%;
    color: var(--primary-color, #6366f1);
    background: linear-gradient(135deg, rgba(99,102,241,0.12) 0%, rgba(139,92,246,0.08) 100%);
    border: 1px solid rgba(99,102,241,0.2);
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    text-decoration: none;
}
@media (hover: hover) {
    .header-messenger-btn:hover {
        color: var(--primary-dark, #4f46e5);
        background: linear-gradient(135deg, rgba(99,102,241,0.2) 0%, rgba(139,92,246,0.15) 100%);
        transform: scale(1.06);
        box-shadow: 0 0 20px rgba(99,102,241,0.35), 0 0 0 1px rgba(99,102,241,0.2);
    }
    .header-messenger-btn:has(.header-messenger-badge):hover { transform: none; }
    /* Fallback for browsers without :has() support — class toggled via JS */
    .header-messenger-btn.has-badge:hover { transform: none; }
}
.header-messenger-badge {
    position: absolute; top: 2px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px; box-sizing: border-box;
    font-size: 0.6875rem; font-weight: 700; color: #fff;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    border-radius: 9px; display: inline-flex; align-items: center; justify-content: center;
    border: 2px solid #fff; box-shadow: 0 2px 6px rgba(239,68,68,0.35); pointer-events: none;
}
.header-avatar-circle {
    flex-shrink: 0; width: 48px; height: 48px; margin-left: 0.25rem; border-radius: 50%; overflow: hidden;
    background: linear-gradient(145deg, #e2e8f0 0%, #cbd5e1 100%);
    border: 2px solid #e5e7eb; display: flex; align-items: center; justify-content: center;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
.header-avatar-circle img { width: 100%; height: 100%; object-fit: cover; display: block; }
.header-avatar-circle .header-avatar-logo-frame img { width: auto !important; height: auto !important; max-width: none !important; max-height: none !important; min-width: 120px !important; min-height: 120px !important; object-fit: none !important; border-radius: 0 !important; }
.header-avatar-circle .header-avatar-initials { font-size: 1.25rem; font-weight: 700; color: #475569; text-transform: uppercase; line-height: 1; }

/* ==========================================
   CSS Reset & Base Styles
   ========================================== */

:root {
    /* Primary (buttons, CTAs) */
    --primary-color: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --secondary-color: #8b5cf6;
    --secondary-dark: #7c3aed;
    --accent-color: #6366f1;
    --accent-light: #818cf8;
    
    /* Neutrals */
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-light: #64748b;
    
    --bg-primary: #f8fafc;
    --bg-secondary: #f1f5f9;
    --bg-tertiary: #e2e8f0;
    --bg-gradient-1: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    --bg-dark: #0f172a;
    
    --border-color: #e2e8f0;
    --border-light: #f1f5f9;
    --border-dark: #cbd5e1;
    
    --error-color: #dc2626;
    --success-color: #059669;
    --warning-color: #d97706;
    --info-color: #0284c7;
    
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.04);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.06), 0 2px 4px -2px rgb(0 0 0 / 0.04);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.06), 0 4px 6px -4px rgb(0 0 0 / 0.04);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.08);
    
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    
    /* Spacing scale (8px base); use for padding/margin consistency */
    --space-1: 0.25rem;   /* 4px */
    --space-2: 0.5rem;    /* 8px */
    --space-3: 0.75rem;   /* 12px */
    --space-4: 1rem;      /* 16px */
    --space-5: 1.25rem;   /* 20px */
    --space-6: 1.5rem;    /* 24px */
    
    --transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
    --transition-fast: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;

    /* Overlay stacking: 1–10 local, 1000 dropdowns, 10000 modals, 99999 toast, 100000 fullscreen */
    --z-dropdown: 1000;
    --z-modal: 10000;
    --z-modal-layer: 10002;
    --z-toast: 99999;
    --z-fullscreen: 100000;
    /* Tabs (conversations, contract compose, dashboard nav) – consistent height, padding, alignment */
    --tab-height: 44px;
    --tab-height-mobile: 48px;
    --tab-padding-x: 1rem;
    --tab-padding-y: 0.625rem;
    --tab-font-size: 0.875rem;
    --tab-gap: 0.5rem;
    --tab-border-radius: var(--radius-lg, 0.75rem);
    --tab-indicator-height: 2px;
}

/* ==========================================
   Unified Avatar System (jobcv-avatar)
   ========================================== */
.jobcv-avatar { transition: box-shadow 0.2s ease, transform 0.15s ease; }
.jobcv-avatar:hover { box-shadow: 0 2px 8px rgba(99,102,241,0.18) !important; }
.jobcv-avatar img { border-radius: 0; }

/* Crop Editor Modal */
.jobcv-crop-overlay {
    position: fixed; inset: 0; z-index: 100001;
    background: rgba(15,23,42,0.75); backdrop-filter: blur(8px);
    display: flex; align-items: center; justify-content: center;
    padding: 1rem; opacity: 0; transition: opacity 0.25s ease;
    box-sizing: border-box;
}
.jobcv-crop-overlay.is-visible { opacity: 1; }
.jobcv-crop-modal {
    background: #fff; border-radius: 20px;
    box-shadow: 0 25px 60px -12px rgba(0,0,0,0.35);
    max-width: 560px; width: 100%; padding: 0;
    display: flex; flex-direction: column;
    max-height: calc(100vh - 2rem); overflow: hidden;
    transform: scale(0.95) translateY(12px); transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1);
}
.jobcv-crop-overlay.is-visible .jobcv-crop-modal { transform: scale(1) translateY(0); }
.jobcv-crop-header {
    flex-shrink: 0;
    padding: 1.25rem 1.5rem; display: flex; align-items: center; justify-content: space-between;
    border-bottom: 1px solid #f1f5f9;
}
.jobcv-crop-header h3 { margin: 0; font-size: 1.125rem; font-weight: 700; color: #0f172a; }
.jobcv-crop-close {
    width: 36px; height: 36px; border-radius: 50%; border: none;
    background: #f1f5f9; color: #64748b; font-size: 1.25rem; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: background 0.2s, color 0.2s;
}
.jobcv-crop-close:hover { background: #e2e8f0; color: #0f172a; }
.jobcv-crop-body {
    padding: 1.5rem; display: flex; flex-direction: column; align-items: center; gap: 0;
    flex: 1; min-height: 0; overflow-y: auto;
}
.jobcv-crop-canvas-wrap {
    position: relative;
    /* Width/height set dynamically by JS (square canvas) */
    max-width: 100%; border-radius: 12px; align-self: center;
    background: #fff; touch-action: none; -webkit-user-select: none; user-select: none; cursor: default;
    overflow: hidden;
}
.jobcv-crop-canvas-wrap img {
    /* Explicit width/height are set by JS – do not override with % or auto here */
    display: block; pointer-events: none; -webkit-user-select: none; user-select: none;
    /* Ensure EXIF-rotated images (iPhone) are rendered in their correct orientation */
    image-orientation: from-image;
}
.jobcv-crop-svg-overlay {
    position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none;
}
.jobcv-crop-circle-move { cursor: grab; pointer-events: all; }
.jobcv-crop-circle-move:active { cursor: grabbing; }
.jobcv-crop-handle { pointer-events: all; cursor: nwse-resize; }
.jobcv-crop-handle-n, .jobcv-crop-handle-s { cursor: ns-resize; }
.jobcv-crop-handle-e, .jobcv-crop-handle-w { cursor: ew-resize; }
.jobcv-crop-handle-ne, .jobcv-crop-handle-sw { cursor: nesw-resize; }
.jobcv-crop-handle-nw, .jobcv-crop-handle-se { cursor: nwse-resize; }
.jobcv-crop-hint {
    margin-top: 0.75rem; font-size: 0.8125rem; color: #94a3b8; text-align: center;
}
.jobcv-crop-footer {
    flex-shrink: 0;
    padding: 1rem 1.5rem; border-top: 1px solid #f1f5f9;
    display: flex; align-items: center; justify-content: flex-end; gap: 0.75rem;
    background: #fff;
}
.jobcv-crop-btn-cancel {
    padding: 0.6rem 1.25rem; font-size: 0.875rem; font-weight: 600;
    border-radius: 10px; border: 1.5px solid #e2e8f0; background: #fff;
    color: #475569; cursor: pointer; transition: all 0.2s;
}
.jobcv-crop-btn-cancel:hover { border-color: #6366f1; color: #4338ca; }
.jobcv-crop-btn-save {
    padding: 0.6rem 1.25rem; font-size: 0.875rem; font-weight: 600;
    border-radius: 10px; border: none;
    background: linear-gradient(135deg, #6366f1, #7c3aed); color: #fff;
    cursor: pointer; box-shadow: 0 2px 8px rgba(99,102,241,0.3); transition: all 0.2s;
}
.jobcv-crop-btn-save:hover { box-shadow: 0 4px 16px rgba(99,102,241,0.4); transform: translateY(-1px); }
.jobcv-crop-loading {
    position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,0.8); z-index: 2; border-radius: 12px;
}
.jobcv-crop-spinner {
    width: 32px; height: 32px; border: 3px solid #e2e8f0;
    border-top-color: #6366f1; border-radius: 50%;
    animation: jobcv-spin 0.7s linear infinite;
}
@keyframes jobcv-spin { to { transform: rotate(360deg); } }

@media (max-width: 480px) {
    .jobcv-crop-modal { max-width: 100%; border-radius: 16px; }
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-primary);
    background: #f8fafc;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
}

/* ==========================================
   Typography
   ========================================== */

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.25;
    color: var(--text-primary);
    margin-bottom: 0.75em;
    letter-spacing: -0.02em;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

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

a:hover {
    color: var(--primary-dark);
}

/* ==========================================
   Header & Navigation
   ========================================== */

.site-header {
    background: #ffffff !important;
    border-bottom: 1px solid #e5e7eb !important;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05) !important;
    overflow: visible;
    min-height: 64px;
}
/* When WordPress admin bar is shown (logged-in), keep header below it so nav is never in the dark bar or clipped */
body.admin-bar .site-header,
body.admin-bar #masthead.site-header,
body.admin-bar header.site-header {
    top: 32px !important;
}
@media screen and (max-width: 782px) {
    body.admin-bar .site-header,
    body.admin-bar #masthead.site-header,
    body.admin-bar header.site-header {
        top: 46px !important;
    }
    /* When user scrolls and WP hides the admin bar, remove gap and stick header to top */
    html.admin-bar-scrolled {
        margin-top: 0 !important;
    }
    body.admin-bar.admin-bar-scrolled .site-header,
    body.admin-bar.admin-bar-scrolled #masthead.site-header,
    body.admin-bar.admin-bar-scrolled header.site-header {
        top: 0 !important;
    }
}

.site-content {
    min-height: calc(100vh - 64px);
}

#content {
    display: block;
}

.site-header::before,
.site-header::after {
    content: none !important;
    display: none !important;
    background: none !important;
    animation: none !important;
}

/* Header full width: logo left, nav centered, actions right (grid for perfect center alignment) */
.header-container {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding-left: max(1.5rem, env(safe-area-inset-left)) !important;
    padding-right: max(1.5rem, env(safe-area-inset-right)) !important;
    padding-top: 0;
    padding-bottom: 0;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    min-height: 64px;
    gap: 1rem;
    position: relative;
}
.header-container > .site-branding {
    min-width: 0;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    order: 1;
    margin-right: 0;
    justify-self: start;
}
.header-container > .header-nav-wrap {
    align-items: center;
    min-width: 0;
    order: 2;
    justify-content: center;
    justify-self: center;
}
.header-container > .header-actions {
    min-width: 0;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    order: 3;
    margin-left: 0;
    justify-self: end;
}
.site-header .site-branding {
    display: flex;
    align-items: center;
}

/* Messages page: same flex layout */
body.page-messages .site-header .header-container {
    display: flex;
    align-items: center;
}
body.page-messages .header-container > .site-branding,
body.page-messages .header-container > .header-nav-wrap,
body.page-messages .header-container > .header-actions {
    align-self: center;
}
body.page-messages .main-navigation {
    align-items: center;
}

.site-branding {
    background: transparent !important;
    padding: 0;
    margin: 0;
}
.site-branding .site-logo {
    background: transparent !important;
}
.site-branding .site-logo img,
.site-logo img {
    background: transparent !important;
}
.site-logo {
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    letter-spacing: -0.025em;
    transition: var(--transition);
}

.site-logo:hover {
    color: var(--primary-dark);
}

/* Nav wrap: centered in grid middle column; content centered for perfect alignment */
.header-nav-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    position: relative;
    min-height: 64px;
    align-self: center;
    justify-self: center;
}

/* Language selector next to logo hidden; language is in header right */
.header-drawer-lang {
    display: none !important;
}

.main-navigation {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 0.5rem 1rem;
    margin: 0;
    justify-content: center;
    box-sizing: border-box;
    flex-shrink: 0;
}

/* Header-actions: right-aligned within their flex column (centering handled by .header-container) */
.header-container .header-actions {
    margin-left: 0;
}

.main-navigation ul {
    display: flex;
    list-style: none;
    gap: 1.25rem;
    align-items: center;
    margin: 0;
    padding: 0;
}

.main-navigation a,
.main-navigation .nav-link {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 700;
    font-size: 1.125rem;
    padding: 0.6rem 0.4rem;
    position: relative;
    transition: var(--transition);
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    min-height: 2.75rem;
}

/* Premium nav link: badge in top-right corner of "Premium", very small */
.main-navigation .nav-link-premium {
    position: relative;
    padding-right: 0.5rem;
}
.main-navigation .nav-link-premium-badge {
    position: absolute;
    top: -2px;
    right: 0;
    font-size: 0.5rem;
    font-weight: 700;
    padding: 1px 4px;
    border-radius: 3px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.25) 0%, rgba(139, 92, 246, 0.2) 100%);
    color: var(--primary-dark, #4f46e5);
    border: 1px solid rgba(99, 102, 241, 0.35);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    line-height: 1.1;
    white-space: nowrap;
}
.main-navigation .nav-link-premium .nav-link-text {
    display: inline-block;
}

/* Language selector: mobile-only block hidden on desktop */
.mobile-only {
    display: none;
}

/* Slightly tighter header when space is limited: hide Premium badge only */
@media (max-width: 1100px) {
    .main-navigation .nav-link-premium-badge {
        display: none !important;
    }
    .main-navigation .nav-link-premium {
        padding-right: 0;
    }
}

/* From 1200px down: switch to hamburger menu so header never overlaps even on smaller laptops / narrow windows */
@media (max-width: 1200px) {
    .header-container {
        display: flex;
        flex-wrap: nowrap;
        justify-content: space-between;
        align-items: center;
        gap: 0.75rem;
    }
    .header-container > .site-branding {
        order: 1;
        flex-shrink: 0;
    }
    .header-container > .header-nav-wrap {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        width: min(300px, 85vw);
        z-index: 1099;
        background: #fff;
        box-shadow: 4px 0 24px rgba(0, 0, 0, 0.12);
        padding: max(1.25rem, env(safe-area-inset-top)) 1rem 2rem;
        padding-left: max(1rem, env(safe-area-inset-left));
        overflow-y: auto;
        transform: translateX(-100%);
        transition: transform 0.3s cubic-bezier(0.32, 0.72, 0, 1);
    }
    .header-nav-wrap.active {
        transform: translateX(0);
    }
    .header-container > .mobile-menu-toggle {
        order: 2;
        flex-shrink: 0;
    }
    .header-container > .header-actions {
        order: 3;
        flex-shrink: 0;
        margin-left: auto;
    }
    .main-navigation {
        display: none;
    }
    .header-nav-wrap .main-navigation {
        display: flex !important;
        flex-direction: column;
        align-items: stretch;
        gap: 0.25rem;
        margin: 0;
        padding: 0;
    }
    .header-nav-wrap .main-navigation a,
    .header-nav-wrap .main-navigation .nav-link {
        display: flex;
        align-items: center;
        padding: 0.875rem 1.25rem;
        font-size: 1rem;
        font-weight: 600;
        color: var(--text-primary, #0f172a);
        border-radius: 10px;
        text-decoration: none;
        transition: background 0.2s ease, color 0.2s ease;
    }
    .header-nav-wrap .main-navigation a:hover,
    .header-nav-wrap .main-navigation .nav-link:hover {
        background: rgba(99, 102, 241, 0.08);
        color: var(--primary-color);
    }
    .header-nav-wrap .main-navigation a.current-menu-item {
        background: rgba(99, 102, 241, 0.12);
        color: var(--primary-color);
    }
    .header-nav-wrap .header-drawer-lang.mobile-only {
        display: flex !important;
        align-items: center;
        gap: 0.5rem;
        margin-top: 1rem;
        padding: 0 1.25rem;
    }
    .header-nav-wrap .header-drawer-lang .header-drawer-lang-label {
        font-size: 0.875rem;
        font-weight: 600;
        color: var(--text-secondary, #64748b);
    }
    .mobile-menu-toggle {
        display: flex !important;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        min-width: 44px;
        min-height: 44px;
        border: none;
        background: rgba(99, 102, 241, 0.1);
        border-radius: 10px;
        cursor: pointer;
        transition: background 0.2s ease;
    }
    .mobile-menu-toggle:hover {
        background: rgba(99, 102, 241, 0.18);
    }
    .mobile-menu-toggle .hamburger-line {
        display: block;
        width: 20px;
        height: 2px;
        background: var(--text-primary, #1f2937);
        border-radius: 1px;
        position: absolute;
        left: 50%;
        margin-left: -10px;
    }
    .mobile-menu-toggle .hamburger-line:nth-child(1) { top: 16px; }
    .mobile-menu-toggle .hamburger-line:nth-child(2) { top: 21px; }
    .mobile-menu-toggle .hamburger-line:nth-child(3) { top: 26px; }
    .mobile-menu-toggle {
        position: relative;
    }
}

.main-navigation a:hover,
.main-navigation .nav-link:hover,
.main-navigation a.current-menu-item {
    color: var(--primary-color);
}

.main-navigation a::after,
.main-navigation .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.2s ease;
}

.main-navigation a:hover::after,
.main-navigation .nav-link:hover::after,
.main-navigation a.current-menu-item::after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}
.header-actions-icons {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.header-actions .nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.875rem;
    padding: 0.5rem 0.5rem;
    min-height: 2.5rem;
    display: inline-flex;
    align-items: center;
    transition: var(--transition);
    white-space: nowrap;
}

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

.header-actions .btn {
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
    min-height: 2.5rem;
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
}

/* Language selector: right side of header, next to notification bell (no "Language" label) */
.header-lang-right {
    flex-shrink: 0;
}
.header-lang-right .language-switcher-dropdown {
    display: inline-block;
}
.header-lang-right .lang-dropdown-btn {
    font-size: 0.875rem;
    padding: 0.5rem 0.75rem;
    min-height: 2.5rem;
    display: inline-flex;
    align-items: center;
    background: transparent;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    color: #475569;
    font-weight: 500;
}
.header-lang-right .lang-dropdown-btn:hover {
    border-color: #cbd5e1;
    color: #0f172a;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

/* Mobile drawer overlay: visibility/opacity controlled in "Modals & Notifications" section below */
.mobile-drawer-overlay {
    pointer-events: none;
}

/* ==========================================
   Buttons
   ========================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    font-size: 0.9375rem;
    font-weight: 600;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.2s ease, box-shadow 0.2s ease, color 0.2s ease, border-color 0.2s ease;
    border: 1px solid transparent;
    text-decoration: none;
    white-space: nowrap;
    line-height: 1.5;
}
.btn:focus-visible {
    outline: 2px solid var(--primary-color, #6366f1);
    outline-offset: 2px;
}

.btn-primary {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
    border-color: transparent;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.3);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.6s;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.4);
    background: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
}

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

.btn-secondary:hover {
    background-color: var(--bg-tertiary);
    border-color: var(--text-secondary);
}

.job-card .btn-secondary {
    color: #fff;
    border-color: #6366f1;
    background: #6366f1;
}

.job-card .btn-secondary:hover {
    background: #4f46e5;
    border-color: #4f46e5;
    color: #fff;
}

.btn-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.3);
}

@media (hover: hover) {
    .btn-success:hover {
        background: linear-gradient(135deg, #059669 0%, #047857 100%);
        box-shadow: 0 12px 32px rgba(16, 185, 129, 0.45);
    }
}

.btn-lg {
    padding: 0.75rem 2rem;
    font-size: 1rem;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

/* Hero Section */

.hero-section {
    background: #f8fafc;
    color: #0f172a;
    padding: 4.5rem 2rem 5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(255, 255, 255, 0.06) 0%, transparent 50%);
    animation: floatPatterns 20s ease-in-out infinite;
}

@keyframes floatPatterns {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(20px, -20px) scale(1.05); }
    66% { transform: translate(-20px, 10px) scale(0.95); }
}
@media (prefers-reduced-motion: reduce) {
    .hero-patterns { animation: none; }
    .hero-section h1,
    .hero-section p,
    .hero-actions { animation: none; }
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero-section h1 {
    color: white;
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    font-weight: 900;
    line-height: 1.1;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    letter-spacing: -1px;
    animation: fadeInUp 0.8s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-section p {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.35rem;
    margin-bottom: 2.5rem;
    max-width: 750px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-actions {
    display: flex;
    gap: 1.25rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease 0.4s both;
}

/* ==========================================
   Search Bar
   ========================================== */

.search-bar {
    background: white;
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-xl);
    display: flex;
    gap: 1rem;
    max-width: 1000px;
    margin: 2rem auto 0;
    flex-wrap: wrap;
}

.search-field {
    flex: 1;
    min-width: 200px;
}

.search-field input,
.search-field select {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}
.search-field select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236366f1' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.85rem center;
    background-size: 12px;
    padding-right: 2.4rem;
    cursor: pointer;
    background-color: #fff;
}
.search-field select:hover {
    border-color: #c7d2fe;
    background-color: #faf8ff;
}

.search-field input:focus,
.search-field select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* ==========================================
   Cards & Listings
   ========================================== */

.content-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.25rem 2rem;
    background: #f8fafc;
}

/* Auth pages */
.auth-page-section.content-section {
    padding-top: 0.5rem !important;
    padding-bottom: 3rem;
}
.auth-page-section .auth-container {
    transition: opacity 0.25s ease, transform 0.25s ease;
}
.auth-page-section .auth-page-wrap {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 0;
    width: 100%;
}
.auth-page-section .auth-page-wrap > * {
    width: 100%;
    max-width: 520px;
}
.auth-page-section.auth-register-wide .auth-page-wrap > * {
    max-width: 560px;
}

/* Create CV: full-viewport overlay */
.cv-builder-overlay {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.3s ease;
}
.cv-builder-overlay.is-open {
    opacity: 1;
    visibility: visible;
}
.cv-builder-overlay .cv-builder-overlay-frame {
    transform: scale(0.98);
    opacity: 0;
    transition: transform 0.32s cubic-bezier(0.34, 1.2, 0.64, 1), opacity 0.28s ease;
}
.cv-builder-overlay.is-open .cv-builder-overlay-frame {
    transform: scale(1);
    opacity: 1;
}
body.cv-overlay-open {
    overflow: hidden;
}
.cv-builder-overlay-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.52);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
.cv-builder-overlay-frame {
    position: relative;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    display: flex;
    flex-direction: column;
    min-height: 0;
    background: #f1f5f9;
    box-shadow: 0 32px 80px -12px rgba(15, 23, 42, 0.35), 0 0 0 1px rgba(99, 102, 241, 0.06);
    border-radius: 0;
    overflow: hidden;
}
.cv-builder-overlay-loading {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    background: #f1f5f9;
    color: #64748b;
    font-size: 0.9375rem;
    font-weight: 500;
    z-index: 2;
}
.cv-builder-overlay-loading.is-hidden {
    display: none !important;
}
.cv-overlay-spinner {
    width: 44px;
    height: 44px;
    border: 3px solid #e2e8f0;
    border-top-color: #6366f1;
    border-radius: 50%;
    animation: jobcv-spin 0.7s linear infinite;
}
@keyframes jobcv-spin {
    to { transform: rotate(360deg); }
}
.cv-builder-overlay-iframe {
    flex: 1;
    width: 100%;
    height: 100%;
    min-height: 0;
    border: none;
    display: none;
    background: #f1f5f9;
}
.cv-builder-overlay-iframe.is-loaded {
    display: block;
}

/* Create CV embed (iframe) */
html.create-cv-embed-html,
html.create-cv-embed-html body {
    height: 100%;
    margin: 0;
    overflow: hidden;
}
body.create-cv-embed-active .create-cv-embed-wrap {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    background: #f1f5f9;
    overflow: hidden;
}
body.create-cv-embed-active .create-cv-embed-wrap .cv-builder-fullscreen-wrap {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
}
body.create-cv-embed-active .cv-builder-fullscreen-bar {
    flex-shrink: 0;
}
body.create-cv-embed-active .cv-builder-fullscreen-inner {
    flex: 1;
    min-height: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
body.create-cv-embed-active .cv-builder-wrapper {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
}
body.create-cv-embed-active .cv-embed-close-btn {
    color: #6366f1 !important;
    font-weight: 600;
}
body.create-cv-embed-active .cv-wizard-actions {
    position: sticky;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 10;
    background: #fff;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.06);
    padding: 1rem 1.5rem;
    border-top: 1px solid #e2e8f0;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}
body.create-cv-embed-active .cv-wizard-actions .btn-primary {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border: none;
    font-weight: 600;
}

.cv-builder-overlay-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
}
.cv-builder-overlay-content .cv-builder-fullscreen-wrap {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
}
.cv-builder-overlay-content .cv-builder-fullscreen-bar {
    flex-shrink: 0;
}
.cv-builder-overlay-content .cv-builder-fullscreen-inner {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
}
.cv-builder-overlay-content .cv-builder-wrapper {
    min-height: min-content;
    max-width: none;
    width: 100%;
    padding: 0;
    margin: 0;
}
.cv-builder-overlay-content .cv-builder-form-premium {
    border-radius: 0;
    box-shadow: none;
    border: none;
}
.cv-builder-overlay-content .cv-wizard-panels {
    display: block;
}
.cv-builder-overlay-content .cv-wizard-step.active {
    display: block !important;
}
.cv-builder-overlay-content .cv-wizard-progress {
    flex-shrink: 0;
    padding: 0.75rem 1rem 1rem;
    background: rgba(255,255,255,0.95);
    border-bottom: 1px solid #e2e8f0;
}
.cv-builder-overlay-content .cv-wizard-step-label {
    font-weight: 600;
    color: #1e1b4b;
    font-size: 0.9375rem;
}
.cv-builder-overlay-content .cv-wizard-actions {
    flex-shrink: 0;
    position: sticky;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 10;
    background: #fff;
    box-shadow: 0 -4px 20px rgba(99, 102, 241, 0.08);
    padding: 1rem 1.5rem;
    border-radius: 0;
    border-top: 1px solid #e2e8f0;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}
.cv-builder-overlay-content .cv-wizard-actions .btn-primary {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border: none;
    font-weight: 600;
}
.cv-builder-overlay-content .cv-wizard-actions .btn-secondary {
    border-color: #e2e8f0;
    color: #475569;
}

/* Create CV: standalone page at /create-cv/ */
.create-cv-fullscreen-page {
    min-height: 100vh;
    background: linear-gradient(180deg, #f1f5f9 0%, #e2e8f0 100%);
    padding: 2rem 0 4rem 0;
}
body.create-cv-fullscreen-active #content {
    padding: 0;
    max-width: none;
}
.create-cv-fullscreen-page .cv-builder-fullscreen-wrap {
    max-width: 680px;
    margin: 0 auto;
    padding: 0 1.25rem;
}
.create-cv-fullscreen-page .cv-builder-fullscreen-bar {
    background: #fff;
    border-bottom: 1px solid #e2e8f0;
    margin: 0 -1.25rem 0 -1.25rem;
    padding: 1rem 1.25rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    border-radius: 12px 12px 0 0;
}
.create-cv-fullscreen-page .cv-builder-fullscreen-inner {
    padding: 0;
}
.create-cv-fullscreen-page .cv-builder-wrapper {
    max-width: 100%;
    padding: 0;
    margin: 0;
}
.create-cv-fullscreen-page .cv-builder-form-premium {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.06), 0 10px 30px -10px rgba(0,0,0,0.1);
    border: 1px solid rgba(226, 232, 240, 0.8);
    overflow: hidden;
}
.create-cv-fullscreen-page .cv-wizard-panels {
    display: block;
}
.create-cv-fullscreen-page .cv-wizard-step.active {
    display: block !important;
}
/* Next/Back in normal flow — no overlay; always below content */
.create-cv-fullscreen-page .cv-wizard-actions {
    position: relative;
    bottom: auto;
    left: auto;
    right: auto;
    z-index: 1;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    box-shadow: none;
    padding: 1.25rem 1.5rem;
    border-radius: 0 0 16px 16px;
    margin-top: 0.5rem;
}
.create-cv-fullscreen-page .cv-wizard-scroll-body {
    max-height: none;
    padding: 1.75rem 1.5rem 1.5rem;
}
.create-cv-fullscreen-page .cv-wizard-progress {
    margin-bottom: 1rem;
    padding: 1rem 1.25rem;
    border-radius: 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}
.create-cv-fullscreen-page .cv-section-card {
    padding: 1.25rem 0;
    border-bottom: 1px solid #f1f5f9;
}
.create-cv-fullscreen-page .cv-section-card:last-child {
    border-bottom: none;
}
.create-cv-fullscreen-page .cv-section-card h3 {
    font-size: 1.0625rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
}
.create-cv-fullscreen-page .form-input,
.create-cv-fullscreen-page .form-textarea {
    border-radius: 10px;
    padding: 0.625rem 0.875rem;
    font-size: 0.9375rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.create-cv-fullscreen-page .form-input:focus,
.create-cv-fullscreen-page .form-textarea:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12);
}
.create-cv-fullscreen-page .cv-upload-zone {
    min-height: 96px !important;
    padding: 1rem !important;
    border-radius: 12px;
}
.create-cv-fullscreen-page .upload-grid {
    margin-bottom: 1rem;
}
.create-cv-fullscreen-page {
    scroll-behavior: smooth;
}
.create-cv-fullscreen-page .cv-wizard-step-label {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #475569;
    letter-spacing: -0.01em;
}
.create-cv-fullscreen-page .cv-wizard-actions .btn-primary {
    border-radius: 12px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.create-cv-fullscreen-page .cv-wizard-actions .btn-primary:hover {
    transform: translateY(-1px);
}
.create-cv-fullscreen-page .form-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #334155;
    margin-bottom: 0.375rem;
}

/* Dashboard pages */
.jobcv-dashboard-page .content-section > div {
    padding-top: 16px !important;
}
.jobcv-dashboard-page .dashboard-wrapper {
    padding-top: 0.5rem !important;
}

/* Dashboard */
.jobcv-dashboard-page .dashboard-header {
    border-color: #e5e7eb;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}
.jobcv-dashboard-page .dashboard-card .count-badge {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(139, 92, 246, 0.1));
    color: var(--primary-color);
}

/* Dashboard: Notification history uses same purple edge as all .dashboard-card (no override) */
.jobcv-dashboard-page .dashboard-notifications-subtitle {
    font-size: 0.875rem;
    color: #64748b;
    margin: 0 0 1.25rem 0;
    line-height: 1.45;
}
.jobcv-dashboard-page .dashboard-notifications-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2.5rem 1.75rem;
    text-align: center;
    background: linear-gradient(180deg, #fafbff 0%, #f8fafc 100%);
    border-radius: 14px;
    border: 1px dashed rgba(99, 102, 241, 0.25);
}
.jobcv-dashboard-page .dashboard-notifications-empty-title {
    margin: 0 0 0.35rem 0;
    font-size: 1rem;
    font-weight: 600;
    color: #475569;
}
.jobcv-dashboard-page .dashboard-notifications-empty-desc {
    margin: 0;
    font-size: 0.875rem;
    color: #94a3b8;
    line-height: 1.45;
    max-width: 280px;
}
.jobcv-dashboard-page .dashboard-notifications-empty p {
    margin: 0.75rem 0 0;
    font-size: 0.9375rem;
    color: #64748b;
}
.jobcv-dashboard-page .dashboard-notifications-empty-icon {
    color: rgba(99, 102, 241, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
}
.jobcv-dashboard-page .dashboard-notifications-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    background: #fff;
    max-height: 360px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}
.jobcv-dashboard-page .dashboard-notification-item {
    margin: 0;
    padding: 0;
    list-style: none;
    background: #fff;
    border-bottom: 1px solid #e2e8f0;
    transition: background 0.2s ease;
}
.jobcv-dashboard-page .dashboard-notification-item:last-child {
    border-bottom: none;
}
.jobcv-dashboard-page .dashboard-notification-item:hover {
    background: #fafbff;
}
.jobcv-dashboard-page .dashboard-notification-item.is-unread .dashboard-notification-link {
    background: linear-gradient(90deg, rgba(99, 102, 241, 0.06) 0%, transparent 100%);
}
.jobcv-dashboard-page .dashboard-notification-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    text-decoration: none;
    color: inherit;
    transition: background 0.2s ease, color 0.2s ease;
    min-height: 56px;
    box-sizing: border-box;
}
.jobcv-dashboard-page .dashboard-notification-link:hover {
    color: #0f172a;
}
.jobcv-dashboard-page .dashboard-notification-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.12), rgba(139, 92, 246, 0.08));
    color: var(--primary-color, #6366f1);
}
.jobcv-dashboard-page .dashboard-notification-icon-message { background: linear-gradient(135deg, rgba(99, 102, 241, 0.14), rgba(139, 92, 246, 0.1)); color: #6366f1; }
.jobcv-dashboard-page .dashboard-notification-icon-application { background: linear-gradient(135deg, rgba(34, 197, 94, 0.12), rgba(34, 197, 94, 0.06)); color: #16a34a; }
.jobcv-dashboard-page .dashboard-notification-icon-contract { background: linear-gradient(135deg, rgba(124, 58, 237, 0.12), rgba(124, 58, 237, 0.06)); color: #7c3aed; }
.jobcv-dashboard-page .dashboard-notification-icon-like { background: linear-gradient(135deg, rgba(236, 72, 153, 0.12), rgba(236, 72, 153, 0.06)); color: #db2777; }
.jobcv-dashboard-page .dashboard-notification-icon-invite { background: linear-gradient(135deg, rgba(59, 130, 246, 0.12), rgba(59, 130, 246, 0.06)); color: #2563eb; }
.jobcv-dashboard-page .dashboard-notification-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}
.jobcv-dashboard-page .dashboard-notification-title {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #0f172a;
    line-height: 1.3;
}
.jobcv-dashboard-page .dashboard-notification-preview {
    font-size: 0.8125rem;
    color: #64748b;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.jobcv-dashboard-page .dashboard-notification-time {
    font-size: 0.75rem;
    color: #94a3b8;
    margin-top: 0.15rem;
}
.jobcv-dashboard-page .dashboard-notification-chevron {
    flex-shrink: 0;
    color: #cbd5e1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease, transform 0.2s ease;
}
.jobcv-dashboard-page .dashboard-notification-link:hover .dashboard-notification-chevron {
    color: var(--primary-color, #6366f1);
    transform: translateX(2px);
}

.jobcv-dashboard-page .empty-state svg {
    color: #94a3b8;
}
.jobcv-dashboard-page .jobs-table tbody tr {
    transition: background 0.15s ease;
}
.jobcv-dashboard-page .action-btn {
    transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

/* Create CV Page — one column, aligned */
.create-cv-page .cv-builder-wrapper { max-width: 640px; margin: 0 auto; }
.create-cv-page .cv-form-section {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06), 0 1px 3px rgba(0,0,0,0.04);
    border: 1px solid #e2e8f0;
}
.create-cv-page .cv-form-section .form-container { padding: 2.5rem 2.5rem 3rem; }
.create-cv-page #cv-builder-form { display: flex; flex-direction: column; align-items: stretch; }
.create-cv-page .form-container div[style*="display: grid"] { display: block !important; }
.create-cv-page .form-container .form-group { width: 100%; max-width: 100%; margin-bottom: 1.25rem; }
.create-cv-page .cv-form-section .form-container > h2 { font-size: 1.5rem; font-weight: 700; color: #0f172a; margin-bottom: 0.5rem; }
.create-cv-page .cv-form-section .form-container > p { color: #475569; font-size: 0.9375rem; margin-bottom: 2rem; }
.create-cv-page .form-section-title { font-size: 1.125rem; font-weight: 700; color: #0f172a; margin: 1.75rem 0 1rem 0; padding-bottom: 0.5rem; border-bottom: 2px solid #e2e8f0; }
.create-cv-page .form-section-title:first-of-type { margin-top: 0; }
.create-cv-page .form-label { display: block; font-size: 0.9375rem; font-weight: 600; color: #334155; margin-bottom: 0.375rem; }
.create-cv-page .form-input,
.create-cv-page .form-textarea { display: block; width: 100%; box-sizing: border-box; border-radius: 8px; border: 1px solid #e2e8f0; padding: 0.625rem 0.875rem; }
.create-cv-page .form-input:focus,
.create-cv-page .form-textarea:focus { outline: none; border-color: #6366f1; box-shadow: 0 0 0 3px rgba(99,102,241,0.12); }
.create-cv-page .field-group { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 12px; padding: 1.5rem; margin-bottom: 1.25rem; }
.create-cv-page .field-group .form-group { margin-bottom: 1rem; }
.create-cv-page .field-group div[style*="grid-template-columns"] { display: grid !important; grid-template-columns: 1fr 1fr !important; gap: 1rem !important; }
.create-cv-page #image-upload-area { background: #f8fafc !important; border: 2px dashed #c7d2fe !important; border-radius: 12px !important; padding: 2.5rem !important; }
.create-cv-page #image-upload-area:hover { background: #eef2ff !important; border-color: #6366f1 !important; }
.create-cv-page .add-section-btn, .create-cv-page .add-experience-btn, .create-cv-page .add-education-btn { border-style: dashed; border-color: #cbd5e1; color: #475569; }
.create-cv-page .btn-primary { background: #6366f1; border-color: #6366f1; }
.create-cv-page .btn-primary:hover { background: #4f46e5; border-color: #4f46e5; }
.create-cv-page .form-container .btn-primary.btn-lg { width: 100%; margin-top: 0.5rem; }

/* Legal pages (Terms, Privacy, Cookie) – premium readability */
body.jobcv-legal-page .site-main { padding-top: 1.5rem; }
.legal-page-content {
    max-width: 720px;
    margin: 0 auto;
    padding: 1.5rem 1.25rem 4rem;
}
.legal-page-meta {
    font-size: 0.8125rem;
    color: #64748b;
    margin: 0 0 1rem 0;
    letter-spacing: 0.01em;
}
.legal-page-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 1.5rem 0;
    letter-spacing: -0.02em;
    line-height: 1.3;
}
.legal-section-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #0f172a;
    margin: 2rem 0 0.5rem 0;
    padding-top: 1.25rem;
    border-top: 1px solid #e2e8f0;
    letter-spacing: -0.01em;
}
.legal-section-title:first-of-type { margin-top: 1rem; padding-top: 0; border-top: none; }
.legal-section-text {
    font-size: 0.9375rem;
    line-height: 1.72;
    color: #475569;
    margin: 0 0 1rem 0;
}
@media (max-width: 560px) {
    .legal-page-content { padding: 1rem 1rem 3rem; }
    .legal-page-title { font-size: 1.5rem; }
    .legal-section-title { font-size: 1.0625rem; margin-top: 1.5rem; padding-top: 1rem; }
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--text-primary);
    text-align: center;
    letter-spacing: -0.02em;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.section-subtitle-center {
    text-align: center;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

.section-actions {
    text-align: center;
    margin-top: 3rem;
}

/* Home: How it works */
.home-section {
    padding: 4rem 2rem;
}

.how-it-works-section {
    background: #fff;
}

.how-it-works-section .section-title { margin-bottom: 0.5rem; }
.how-it-works-section .section-subtitle { margin-bottom: 2.5rem; }

.how-it-works-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 960px;
    margin: 0 auto;
}

.how-step {
    text-align: center;
    padding: 1.75rem 1.5rem;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.how-step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    font-size: 1.125rem;
    font-weight: 700;
    color: #6366f1;
    background: #eef2ff;
    border-radius: 50%;
    margin-bottom: 1rem;
}

.how-step-title { font-size: 1.125rem; font-weight: 700; color: var(--text-primary); margin-bottom: 0.5rem; }
.how-step-desc { font-size: 0.9375rem; color: var(--text-secondary); line-height: 1.55; margin: 0; }

/* Home: Why section */
.why-section { background: #f8fafc; }
.why-section .section-subtitle { margin-bottom: 2.5rem; }

.why-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    max-width: 960px;
    margin: 0 auto;
}

.why-card {
    padding: 1.75rem;
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.why-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    background: #eef2ff;
    color: #6366f1;
    border-radius: 10px;
    margin-bottom: 1rem;
}

.why-title { font-size: 1.0625rem; font-weight: 700; color: var(--text-primary); margin-bottom: 0.375rem; }
.why-desc { font-size: 0.9375rem; color: var(--text-secondary); line-height: 1.5; margin: 0; }

/* Home: Categories */
.categories-section { background: #fff; }
.categories-section .section-subtitle { margin-bottom: 2rem; }

.categories-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
}

.category-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--text-primary);
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    text-decoration: none;
    transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.category-pill:hover {
    background: #eef2ff;
    border-color: #6366f1;
    color: #4338ca;
}

.category-count {
    font-size: 0.8125rem;
    color: var(--text-light);
    background: #e2e8f0;
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
}

.category-pill:hover .category-count { background: #c7d2fe; color: #4338ca; }

/* Home: CTA */
.home-cta-section {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    padding: 4rem 2rem;
}

.home-cta-inner { text-align: center; max-width: 560px; margin: 0 auto; }
.home-cta-title { font-size: 1.75rem; font-weight: 700; color: #fff; margin-bottom: 0.5rem; }
.home-cta-text { font-size: 1.0625rem; color: rgba(255,255,255,0.85); margin-bottom: 1.75rem; }
.home-cta-buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; }

.home-cta-section .btn-primary {
    background: #6366f1;
    border-color: #6366f1;
    color: #fff;
}
.home-cta-section .btn-primary:hover {
    background: #4f46e5;
    border-color: #4f46e5;
    color: #fff;
}
.home-cta-section .btn-secondary {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.85);
    color: #fff;
}
.home-cta-section .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: #fff;
    color: #fff;
}

/* Jobs archive: premium layout, aligned search and cards */
.jobs-archive.content-section {
    background: var(--bg-primary, #f8fafc);
    padding: 2.5rem 0 4rem;
    box-sizing: border-box;
}
.jobs-archive-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
    box-sizing: border-box;
}
.jobs-archive-header {
    margin-bottom: 1.5rem;
}
.jobs-archive-title {
    font-size: 1.875rem;
    font-weight: 700;
    margin: 0 0 0.375rem 0;
    color: var(--text-primary, #0f172a);
    letter-spacing: -0.025em;
    line-height: 1.25;
}
.jobs-archive-subtitle {
    color: var(--text-secondary, #475569);
    font-size: 1rem;
    margin: 0;
}

/* Search: two rows, same width as card grid */
.jobs-archive-search {
    width: 100%;
    margin-bottom: 2rem;
    background: #fff;
    border: 1px solid var(--border-color, #e2e8f0);
    border-radius: var(--radius-lg, 0.75rem);
    box-shadow: var(--shadow-sm, 0 1px 2px 0 rgb(0 0 0 / 0.04));
    padding: 1rem 1.25rem;
    box-sizing: border-box;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}
.jobs-archive-search:focus-within {
    border-color: rgba(99, 102, 241, 0.4);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.08);
}
.jobs-archive-search-form {
    margin: 0;
}
.jobs-archive-search-row {
    display: grid;
    gap: 0.75rem;
    align-items: center;
}
.jobs-archive-search-row-main {
    grid-template-columns: 1fr 1fr auto;
    margin-bottom: 0.75rem;
}
.jobs-archive-search-row-filters {
    grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border-light, #f1f5f9);
}
.jobs-archive-filter-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.9375rem;
    color: var(--text-secondary, #475569);
    white-space: nowrap;
    margin-left: 0.25rem;
}
.jobs-archive-filter-checkbox input[type="checkbox"] {
    width: 1.125rem;
    height: 1.125rem;
    accent-color: var(--primary-color, #6366f1);
    cursor: pointer;
    flex-shrink: 0;
}
.jobs-archive-filter-checkbox-label {
    user-select: none;
}
.jobs-archive-input,
.jobs-archive-select {
    height: 44px;
    padding: 0 0.875rem;
    font-size: 0.9375rem;
    border-radius: var(--radius-md, 0.5rem);
    border: 1px solid var(--border-color, #e2e8f0);
    background: #fff;
    color: var(--text-primary, #0f172a);
    min-width: 0;
    box-sizing: border-box;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.jobs-archive-input::placeholder {
    color: var(--text-light, #64748b);
}
.jobs-archive-input:focus,
.jobs-archive-select:focus {
    outline: none;
    border-color: var(--primary-color, #6366f1);
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.12);
}
.jobs-archive-select {
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236366f1' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 12px;
    padding-right: 2.25rem;
}
.jobs-archive-select:hover {
    border-color: #c7d2fe;
    background-color: #faf8ff;
}
.jobs-archive-search-btn {
    height: 44px;
    padding: 0 1.5rem;
    font-weight: 600;
    font-size: 0.9375rem;
    border-radius: var(--radius-md, 0.5rem);
    white-space: nowrap;
    min-width: 120px;
    transition: transform 0.15s ease, box-shadow 0.2s ease;
}
.jobs-archive-search-btn:hover {
    transform: translateY(-1px);
}
.jobs-archive-search-btn:active {
    transform: translateY(0);
}

/* List and grid: same horizontal space as search */
.jobs-archive-list {
    margin-top: 0;
}
.jobs-archive .card-grid {
    margin-top: 0;
}

/* Empty state */
.jobs-archive-empty {
    text-align: center;
    padding: 3.5rem 2rem;
    background: #fff;
    border-radius: var(--radius-xl, 1rem);
    border: 1px solid var(--border-color, #e2e8f0);
    box-shadow: var(--shadow-sm, 0 1px 2px 0 rgb(0 0 0 / 0.04));
}
.jobs-archive-empty-icon {
    margin: 0 auto 1rem;
    display: block;
    color: var(--text-light, #94a3b8);
}
.jobs-archive-empty-title {
    margin: 0 0 0.5rem 0;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary, #0f172a);
}
.jobs-archive-empty-text {
    color: var(--text-secondary, #64748b);
    margin: 0 0 1.5rem 0;
    max-width: 28em;
    margin-left: auto;
    margin-right: auto;
}

/* Pagination */
.jobs-archive-pagination {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 2.5rem;
    padding-top: 0.5rem;
}
.jobs-archive-pagination a,
.jobs-archive-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    height: 2.5rem;
    padding: 0 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-primary, #0f172a);
    background: #fff;
    border: 1px solid var(--border-color, #e2e8f0);
    border-radius: var(--radius-md, 0.5rem);
    text-decoration: none;
    transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.jobs-archive-pagination a:hover {
    border-color: var(--primary-color, #6366f1);
    color: var(--primary-color, #6366f1);
    background: rgba(99, 102, 241, 0.06);
}
.jobs-archive-pagination .current {
    border-color: var(--primary-color, #6366f1);
    background: var(--primary-color, #6366f1);
    color: #fff;
}
.jobs-archive-pagination .dots {
    border: none;
    background: transparent;
    cursor: default;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(350px, 100%), 1fr));
    gap: 2rem;
    margin-top: 2rem;
    align-items: stretch;
}

.job-card,
.cv-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 1.75rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 4px 12px rgba(0, 0, 0, 0.04);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid #e5e7eb;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
}

.job-card::before,
.cv-card::before {
    display: none;
}

@media (hover: hover) {
    .job-card:hover,
    .cv-card:hover {
        border-color: #6366f1;
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(99, 102, 241, 0.25);
    }
}

/* Badges: top-right of card */
.job-card-badges {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    z-index: 1;
}
/* Top row: logo left + title/company (professional job board layout) */
.job-card-head {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 0.75rem;
    padding-right: 5rem;
    min-width: 0;
}
.job-card-head-content {
    flex: 1;
    min-width: 0;
}
.job-card-head-content .card-title {
    margin: 0 0 0.25rem 0;
    font-size: 1.125rem;
    line-height: 1.35;
}
.job-card-head-content .card-subtitle {
    margin: 0;
    font-size: 0.9375rem;
    color: var(--text-secondary, #64748b);
}
/* Company logo: left-aligned, fixed size */
.job-card-logo-wrap {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    min-width: 56px;
    min-height: 56px;
}
.job-card-company-logo {
    position: relative;
    width: 56px;
    height: 56px;
    min-width: 56px;
    min-height: 56px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #e5e7eb;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    background: #f8fafc;
}
.job-card-company-logo img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block;
}
/* Job card avatar circle (logo or placeholder) */
.job-card-avatar-circle {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    overflow: hidden;
    background: linear-gradient(145deg, #e2e8f0 0%, #cbd5e1 100%);
    border: 2px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}
.job-card-avatar-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
/* Company logo with position/scale (cropped circle) */
.job-card-avatar-circle .job-card-avatar-logo-frame {
    width: 56px;
    height: 56px;
    border-radius: 50%;
}
.job-card-avatar-circle .job-card-avatar-logo-frame img {
    width: auto !important;
    height: auto !important;
    min-width: 120px !important;
    min-height: 120px !important;
    object-fit: none !important;
}
.job-card-avatar-initials {
    font-size: 1.25rem;
    font-weight: 700;
    color: #475569;
    text-transform: uppercase;
    line-height: 1;
}
.job-card-company-logo-initial {
    background: linear-gradient(135deg, #6366f1 0%, #7c3aed 100%) !important;
    color: #fff !important;
    font-weight: 700;
    font-size: 1.25rem;
    border-color: rgba(255, 255, 255, 0.3);
}
.job-card-company-logo-initial .job-card-avatar-initials {
    color: #fff;
}

.job-card-score {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2rem;
    padding: 0.15rem 0.35rem;
    font-size: 0.6875rem;
    font-weight: 700;
    color: #4338ca;
    background: #eef2ff;
    border-radius: 4px;
    letter-spacing: -0.02em;
}
.job-card-rating {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    padding: 0.2rem 0.4rem;
    font-size: 0.75rem;
    color: #92400e;
    background: #fef3c7;
    border-radius: 6px;
    font-weight: 600;
}
.job-card-stars {
    letter-spacing: 0.02em;
}
.job-card-rating-count {
    font-weight: 500;
    color: #78716c;
}

.job-card-featured {
    display: inline-block;
    padding: 0.15rem 0.35rem;
    font-size: 0.5625rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #fff;
    background: #6366f1;
    border-radius: 4px;
}

/* Individual request: button-style badge under the title (matches site purple) */
.job-card-individual-badge {
    display: inline-block;
    padding: 0.15rem 0.35rem;
    font-size: 0.5625rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #6366f1;
    background: #eef2ff;
    border: 1px solid rgba(99, 102, 241, 0.35);
    border-radius: 4px;
    white-space: nowrap;
}
.job-card-head-content .job-card-individual-badge-under-title {
    margin-top: 0.2rem;
}

.card-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
    min-width: 0;
}

.card-header > div:last-child {
    min-width: 0;
    flex: 1;
    padding-right: 5.5rem;
}

.company-logo {
    width: 56px;
    height: 56px;
    min-width: 56px;
    max-width: 56px;
    min-height: 56px;
    max-height: 56px;
    border-radius: 10px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.job-card .company-logo-initial,
.job-card .company-logo:not(:has(img)) {
    background: #f1f5f9 !important;
    color: #475569 !important;
    border-color: #e2e8f0;
    font-weight: 700;
    font-size: 1.25rem;
}

.company-logo img {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: cover !important;
    display: block;
}

/* Single job page: company logo same size as header avatar, no extra empty space */
.single-job_listing .single-job-header-card .single-job-logo-cell,
.single-job_listing .single-job-header-card .single-job-company-logo-wrap {
    flex-shrink: 0;
}
.single-job_listing .single-job-header-card .single-job-company-logo-wrap,
.single-job_listing .single-job-header-card .single-job-company-logo {
    width: 48px !important;
    height: 48px !important;
    min-width: 48px !important;
    min-height: 48px !important;
    max-width: 48px !important;
    max-height: 48px !important;
    border-radius: 50% !important;
    overflow: hidden !important;
    background: #f1f5f9 !important;
    border: 2px solid #e2e8f0 !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06) !important;
}
.single-job_listing .single-job-header-card .single-job-company-logo-wrap .header-avatar-logo-frame {
    width: 48px !important;
    height: 48px !important;
}
.single-job_listing .single-job-header-card .single-job-company-logo img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}
.single-job_listing .single-job-header-card .single-job-company-logo-wrap .header-avatar-logo-frame img {
    width: auto !important;
    height: auto !important;
    min-width: 120px !important;
    min-height: 120px !important;
    object-fit: none !important;
}

.card-title {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    color: var(--text-primary);
    line-height: 1.4;
}

.card-title a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.card-title a:hover {
    color: #4f46e5;
}

.card-subtitle {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    font-weight: 500;
    margin-bottom: 0.75rem;
}

.card-excerpt {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 1.25rem 0;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

/* Keep job cards equal height: excerpt fills space, actions stick to bottom */
.job-card .card-excerpt {
    flex: 1;
    min-height: 0;
    padding-bottom: 0.125rem;
}
.job-card .job-card-translation-note {
    display: block;
    font-size: 0.75rem;
    color: #64748b;
    margin: 0.5rem 0 0 0;
    padding: 0;
    font-style: italic;
    flex-shrink: 0;
    clear: both;
    line-height: 1.3;
}
.job-card .job-card-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: auto;
    padding-top: 1rem;
    align-items: center;
    flex-shrink: 0;
    min-height: 2.5rem;
}
.job-card .job-like-wrap {
    flex-shrink: 0;
    align-self: center;
}
.job-card .job-card-actions-center {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    min-width: 0;
    min-height: 2.5rem;
}
.job-card .job-card-actions-center .btn.btn-primary.job-card-view-details,
.job-card .job-card-actions .btn.btn-primary.job-card-view-details {
    flex: 0 0 auto;
    min-width: 8.5em;
    min-height: 2.5rem;
    padding: 0 0.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1.35;
    white-space: nowrap;
    text-align: center;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(99, 102, 241, 0.22);
    transition: box-shadow 0.2s ease, transform 0.15s ease;
}
.job-card .job-card-actions-center .btn.btn-primary.job-card-view-details:hover,
.job-card .job-card-actions .btn.btn-primary.job-card-view-details:hover {
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.35);
    transform: translateY(-1px);
}
.job-card .job-card-timeline {
    flex-shrink: 0;
    margin-left: auto;
    font-size: 0.8125rem;
    min-height: 2.5rem;
    display: inline-flex;
    align-items: center;
}
.job-card-actions-index {
    justify-content: center;
}
.job-card-actions-index .job-card-actions-center {
    flex: none;
    width: 100%;
    max-width: 100%;
}
.job-card-actions-index .job-card-actions-center .btn.job-card-view-details {
    flex: 0 0 auto;
    min-width: 8.5em;
}
.job-card-actions-index .job-card-timeline {
    margin-left: auto;
}

.card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin: 1rem 0;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.meta-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.75rem;
    background: #f8fafc;
    color: #475569;
    border-radius: 6px;
    font-size: 0.8125rem;
    font-weight: 500;
    border: 1px solid #e2e8f0;
}

.meta-badge svg {
    flex-shrink: 0;
    opacity: 0.8;
}

/* Timeline (posted time) always in the same spot: end of meta row on job cards */
.job-card .card-meta .meta-badge-posted,
.job-card .card-meta .meta-item.meta-badge-posted {
    margin-left: auto;
    flex-shrink: 0;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1rem 0;
}

.tag {
    padding: 0.375rem 0.875rem;
    background-color: var(--bg-tertiary);
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    font-size: 0.8125rem;
    font-weight: 600;
}

.tag-featured {
    background-color: var(--warning-color);
    color: white;
}

/* ==========================================
   Forms
   ========================================== */

.form-container {
    max-width: 800px;
    margin: 2rem auto;
    background: white;
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
}

.form-group {
    margin-bottom: 1.5rem;
}

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

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: 0.75rem 2.4rem 0.75rem 1rem;
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
    background-color: white;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236366f1' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.85rem center;
    background-size: 12px;
    cursor: pointer;
    color: var(--text-primary, #1e293b);
}
.form-select:hover {
    border-color: #c7d2fe;
    background-color: #faf8ff;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12);
}

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

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

.form-error {
    color: var(--error-color);
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.file-upload {
    border: 2px dashed var(--border-color);
    border-radius: var(--radius-md);
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
}

.file-upload:hover {
    border-color: var(--primary-color);
    background-color: var(--bg-secondary);
}

.file-upload input[type="file"] {
    display: none;
}

/* ==========================================
   Social Login Buttons
   ========================================== */

.social-login {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 2rem 0;
}

.btn-social {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.875rem 1.5rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid var(--border-color);
    background-color: white;
}

.btn-social:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-google {
    border-color: #ea4335;
    color: #ea4335;
}

.btn-google:hover {
    background-color: #ea4335;
    color: white;
}

.btn-apple {
    border-color: #000000;
    color: #000000;
}

.btn-apple:hover {
    background-color: #000000;
    color: white;
}

.btn-facebook {
    border-color: #1877f2;
    color: #1877f2;
}

.btn-facebook:hover {
    background-color: #1877f2;
    color: white;
}

.btn-linkedin {
    border-color: #0a66c2;
    color: #0a66c2;
}

.btn-linkedin:hover {
    background-color: #0a66c2;
    color: white;
}

/* ==========================================
   CV Profile Page
   ========================================== */

.cv-profile {
    max-width: 1000px;
    margin: 2rem auto;
}

.cv-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    padding: 3rem 2rem;
    border-radius: var(--radius-lg);
    text-align: center;
    color: white;
    margin-bottom: 2rem;
}

.cv-avatar {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid white;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    margin: 0 auto 1.5rem;
    display: block;
}

.cv-header img.cv-avatar {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid white;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    margin: 0 auto 1.5rem;
    display: block;
}

.cv-name {
    font-size: 2.5rem;
    font-weight: 800;
    color: white;
    margin-bottom: 0.5rem;
}

.cv-title {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1rem;
}

.cv-contact {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    color: white;
}

.cv-contact span {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: white;
    font-weight: 500;
    font-size: 1rem;
}

.cv-contact svg {
    color: white;
    opacity: 1;
    flex-shrink: 0;
}

.cv-contact a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.2s ease;
}

.cv-contact a:hover {
    opacity: 0.85;
    text-decoration: underline;
}

.cv-section {
    background: white;
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    margin-bottom: 2rem;
    border: 1px solid var(--border-color);
}

.cv-section-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--border-color);
}

.timeline-item {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 2rem;
    border-left: 2px solid var(--border-color);
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-marker {
    position: absolute;
    left: -6px;
    top: 0;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--primary-color);
}

.timeline-content h4 {
    font-size: 1.125rem;
    margin-bottom: 0.25rem;
}

.timeline-date {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

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

.skill-item {
    text-align: center;
    padding: 0.75rem 1.25rem;
    background-color: var(--bg-tertiary);
    border-radius: var(--radius-md);
    font-weight: 600;
    color: var(--text-secondary);
}

/* Footer */

.site-footer {
    background: #0f172a;
    color: #94a3b8;
    padding: 0;
    margin-top: 5rem;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3.5rem 2rem 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 2.5rem;
}

@media (max-width: 900px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
    .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
}

.footer-brand { padding-right: 1rem; }

.footer-logo {
    display: inline-block;
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
}

.footer-logo:hover { color: #e2e8f0; }

.footer-tagline,
.footer-about {
    font-size: 0.9375rem;
    line-height: 1.6;
    color: #94a3b8;
    margin: 0;
}

.footer-heading {
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #cbd5e1;
    margin-bottom: 1.25rem;
}

.footer-links { list-style: none; margin: 0; padding: 0; }

.footer-links li { margin-bottom: 0.65rem; }

.footer-links a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.9375rem;
    transition: color 0.2s ease;
    display: inline-block;
    padding: 0.15em 0;
}

.footer-links a:hover,
.footer-links a:focus { color: #fff; }
.footer-links a:focus-visible { outline: 2px solid #94a3b8; outline-offset: 2px; }

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-copy {
    margin: 0;
    font-size: 0.875rem;
    color: #64748b;
}

.footer-container { max-width: 1200px; margin: 0 auto; }
.footer-section h3 { color: #cbd5e1; margin-bottom: 1rem; font-size: 0.9375rem; }

/* ==========================================
   Responsive Design
   ========================================== */

/* Large / medium: keep nav centered; reduce link size if needed */
@media (max-width: 1440px) {
    .main-navigation { gap: 0.4rem 0.75rem; }
    .main-navigation a,
    .main-navigation .nav-link { font-size: 0.8125rem; }
}

/* 13-inch Mac / 1280–1440: premium tap targets and legibility (no “tiny buttons”) */
@media (min-width: 1025px) and (max-width: 1440px) {
    .header-container { padding: 0 1.25rem; }
    .main-navigation { gap: 0.5rem 0.75rem; }
    .main-navigation a,
    .main-navigation .nav-link { font-size: 0.9375rem; }
    .header-actions { gap: 0.5rem; }
    .header-actions .btn { padding: 0.5rem 1rem; font-size: 0.9375rem; min-height: 2.75rem; }
    .header-actions .nav-link { font-size: 0.9375rem; }
    .header-lang-right .lang-dropdown-btn,
    .header-actions-icons .notification-bell,
    .header-messenger-btn,
    .header-dots-btn { min-width: 48px; min-height: 48px; width: 48px; height: 48px; }
    .header-avatar-circle { width: 48px; height: 48px; }
}

@media (max-width: 1024px) {
    .header-container { padding: 0 1rem; }
    .main-navigation { gap: 0.4rem 0.6rem; }
    .main-navigation a,
    .main-navigation .nav-link { font-size: 0.8125rem; }
    .header-actions { gap: 0.5rem; }
    .header-actions .btn { padding: 0.5rem 0.875rem; font-size: 0.8125rem; }
}

@media (max-width: 1024px) {
    .main-navigation { gap: 0.5rem 0.75rem; }
    .main-navigation a,
    .main-navigation .nav-link { font-size: 0.75rem; }
    .header-actions .nav-link { font-size: 0.75rem; }
    .header-actions .btn { padding: 0.5rem 0.75rem; font-size: 0.75rem; }
    .site-logo { font-size: 1.125rem; }
}

@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .header-container {
        padding: 0 1rem;
    }
    
    .main-navigation {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
    }
    
    .mobile-menu-toggle span {
        display: block;
        width: 22px;
        height: 2px;
        background: #1f2937;
        border-radius: 1px;
    }
    
    .card-grid {
        grid-template-columns: 1fr;
    }
    
    .search-bar {
        flex-direction: column;
    }
    
    .content-section {
        padding: 1rem 1rem;
    }
    
    .create-cv-page .cv-form-section .form-container {
        padding: 1.75rem 1.25rem;
    }
    .create-cv-page .field-group div[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
    }
    
    .form-container {
        padding: 2rem 1rem;
    }
    
    .how-it-works-grid { grid-template-columns: 1fr; }
    .why-grid { grid-template-columns: 1fr; }
    .home-section { padding: 3rem 1rem; }
    .home-cta-buttons { flex-direction: column; }
}

/* ==========================================
   Pagination
   ========================================== */

.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin: 2rem 0;
}

.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 0.75rem;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    text-decoration: none;
    transition: var(--transition);
    font-weight: 500;
}

.pagination .page-numbers:hover {
    background-color: var(--bg-tertiary);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.pagination .page-numbers.current {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.pagination .page-numbers.dots {
    border: none;
    background: none;
}

/* ==========================================
   Page Header
   ========================================== */

.page-header {
    margin-bottom: 3rem;
}

/* ==========================================
   Header - Hide menu items when logged in
   ========================================== */

body.logged-in .main-navigation a[href*="/login/"],
body.logged-in .main-navigation a[href*="/register/"] {
    display: none;
}

/* ==========================================
   Utility Classes
   ========================================== */

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

.text-center {
    text-align: center;
}

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }

.hidden { display: none; }

/* ==========================================
   Notification Bell & Badges (purple brand + red when unread)
   ========================================== */

.notification-bell {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.12) 0%, rgba(139, 92, 246, 0.08) 100%);
    color: var(--primary-color);
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid rgba(99, 102, 241, 0.2);
    cursor: pointer;
    box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.25);
    flex-shrink: 0;
    overflow: visible;
}

@media (hover: hover) {
    .notification-bell:hover {
        background: linear-gradient(135deg, rgba(99, 102, 241, 0.2) 0%, rgba(139, 92, 246, 0.15) 100%);
        color: var(--primary-dark);
        transform: scale(1.06);
        box-shadow: 0 0 20px rgba(99, 102, 241, 0.35), 0 0 0 1px rgba(99, 102, 241, 0.2);
    }
}

/* When there are unread notifications: red alert state with glow */
.notification-bell:has(.notification-badge) {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.15) 0%, rgba(220, 38, 38, 0.1) 100%);
    color: #dc2626;
    border-color: rgba(239, 68, 68, 0.35);
    box-shadow: 0 0 18px rgba(239, 68, 68, 0.3), 0 0 0 1px rgba(239, 68, 68, 0.2);
    animation: notification-bell-pulse 2.5s ease-in-out infinite;
}

.notification-bell:has(.notification-badge):hover {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.25) 0%, rgba(220, 38, 38, 0.2) 100%);
    color: #b91c1c;
    box-shadow: 0 0 24px rgba(239, 68, 68, 0.45), 0 0 0 1px rgba(239, 68, 68, 0.3);
}

@keyframes notification-bell-pulse {
    0%, 100% { box-shadow: 0 0 18px rgba(239, 68, 68, 0.3), 0 0 0 1px rgba(239, 68, 68, 0.2); }
    50% { box-shadow: 0 0 24px rgba(239, 68, 68, 0.5), 0 0 0 2px rgba(239, 68, 68, 0.25); }
}

.notification-bell svg {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

/* Header three-dot dropdown */

.header-user-menu {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.625rem;
}

.header-messenger-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    border-radius: 50%;
    color: var(--primary-color, #6366f1);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.12) 0%, rgba(139, 92, 246, 0.08) 100%);
    border: 1px solid rgba(99, 102, 241, 0.2);
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    text-decoration: none;
    flex-shrink: 0;
    overflow: visible;
}
.header-messenger-btn:hover {
    color: var(--primary-dark, #4f46e5);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2) 0%, rgba(139, 92, 246, 0.15) 100%);
    transform: scale(1.06);
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.35), 0 0 0 1px rgba(99, 102, 241, 0.2);
}
/* When message icon has notification badge: no scale on hover to avoid hover flicker/bug */
.header-messenger-btn:has(.header-messenger-badge):hover {
    transform: none;
}
.header-messenger-btn {
    will-change: auto;
    backface-visibility: hidden;
}
.header-messenger-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    box-sizing: border-box;
    font-size: 0.6875rem;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    border-radius: 9px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    box-shadow: 0 2px 6px rgba(239, 68, 68, 0.35);
    border: 2px solid #fff;
    pointer-events: none;
}
/* Ensure only one badge is ever visible (prevents duplicate badge / hover bug) */
.header-messenger-btn .header-messenger-badge ~ .header-messenger-badge {
    display: none !important;
}
/* Do not show legacy .message-badge on the header messenger button – it uses .header-messenger-badge only */
.header-messenger-btn .message-badge {
    display: none !important;
}
.header-avatar-circle {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    margin-left: 0.25rem;
    border-radius: 50%;
    overflow: hidden;
    background: linear-gradient(145deg, #e2e8f0 0%, #cbd5e1 100%);
    border: 2px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
a.header-avatar-link {
    text-decoration: none;
    color: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
a.header-avatar-link:hover {
    border-color: rgba(99, 102, 241, 0.5);
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.2);
}
.header-avatar-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
/* Company logo: same crop as dashboard – use transform, not object-fit */
.header-avatar-circle .header-avatar-logo-frame img {
    width: auto !important;
    height: auto !important;
    min-width: 120px !important;
    min-height: 120px !important;
    object-fit: none !important;
}
.header-avatar-circle .header-avatar-initials {
    font-size: 1.25rem;
    font-weight: 700;
    color: #475569;
    text-transform: uppercase;
    line-height: 1;
}

/* Guest three-dot menu (mobile) */
.header-user-menu-guest {
    display: none;
}

.header-dots-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    border: none;
    border-radius: 0;
    background: transparent;
    color: var(--primary-color, #6366f1);
    cursor: pointer;
    transition: color 0.2s ease;
    flex-shrink: 0;
}

.header-dots-btn:hover {
    color: var(--primary-dark, #4f46e5);
}

.header-dots-btn:focus {
    outline: none;
}

.header-dots-btn:focus-visible {
    outline: 2px solid rgba(99, 102, 241, 0.5);
    outline-offset: 2px;
    border-radius: 6px;
}

.header-dots-btn .header-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    transition: background 0.2s ease, box-shadow 0.2s ease;
    box-shadow: none;
}

.header-dots-btn:hover .header-dot {
    box-shadow: 0 0 10px currentColor, 0 0 18px rgba(99, 102, 241, 0.5);
}

/* Desktop: hide mobile-only dropdown items and three-dot alert badge */
.header-dots-item-mobile-only,
.header-dots-divider-mobile-only {
    display: none !important;
}
.header-dots-btn .header-dots-alert-badge {
    display: none !important;
}

.header-dots-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 200px;
    padding: 0.5rem 0;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 4px 12px rgba(0, 0, 0, 0.04);
    border: 1px solid #e5e7eb;
    z-index: 1100;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-10px) scale(0.94);
    transform-origin: top right;
    transition: opacity 0.28s cubic-bezier(0.32, 0.72, 0, 1),
                visibility 0.28s ease,
                transform 0.28s cubic-bezier(0.32, 0.72, 0, 1),
                border-color 0.25s ease,
                box-shadow 0.25s ease;
}

.header-dots-dropdown.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0) scale(1);
    border-color: #6366f1;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(99, 102, 241, 0.25);
}

/* Desktop: hide language in dropdown (language stays in header bar only); hide mobile close button */
@media (min-width: 901px) {
    #header-dots-dropdown .header-dots-divider-lang,
    #header-dots-dropdown .header-dots-lang-wrap,
    #header-dots-dropdown-guest .header-dots-divider-lang,
    #header-dots-dropdown-guest .header-dots-lang-wrap {
        display: none !important;
    }
    .header-dots-dropdown-close-wrap {
        display: none !important;
    }
}

.header-dots-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.625rem 1rem;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--text-primary);
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease;
    box-sizing: border-box;
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
    text-align: left;
}

.header-dots-item:hover {
    background: rgba(99, 102, 241, 0.08);
    color: var(--primary-color);
}

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

.header-dots-badge {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 2px 6px;
    min-width: 18px;
    text-align: center;
    border-radius: 10px;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: #fff;
    line-height: 1.2;
}

.header-notification-menu {
    position: relative;
    display: inline-flex;
    align-items: center;
}
.header-actions-icons .header-messenger-btn {
    margin-left: 0;
}

.header-dots-item-post-request {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}
.header-dots-tag.header-dots-tag-premium {
    font-size: 0.6875rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2) 0%, rgba(139, 92, 246, 0.15) 100%);
    color: var(--primary-dark, #4f46e5);
    border: 1px solid rgba(99, 102, 241, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

/* Notification bell dropdown – premium panel (notifications only; messages are in messenger) */
.header-notification-dropdown {
    min-width: 300px;
    max-width: 360px;
    max-height: 380px;
    display: flex;
    flex-direction: column;
    border-radius: 14px;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.1), 0 0 1px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(229, 231, 235, 0.9);
    background: #fff;
}

.header-notification-dropdown .notification-dropdown-title {
    padding: 1rem 1.25rem 0.5rem;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-light);
}

.notification-dropdown-list {
    overflow-y: auto;
    max-height: 300px;
}

.notification-dropdown-empty {
    padding: 1.25rem 1rem;
    font-size: 0.9375rem;
    color: var(--text-light);
    text-align: center;
}

.notification-dropdown-item {
    display: block;
    padding: 0.75rem 1.25rem;
    text-decoration: none;
    color: var(--text-primary);
    transition: background 0.15s ease, color 0.15s ease;
    border-bottom: 1px solid var(--border-light);
}

.notification-dropdown-item:last-child {
    border-bottom: none;
}

.notification-dropdown-item:hover {
    background: rgba(99, 102, 241, 0.08);
    color: var(--primary-color);
}

.notification-dropdown-item.is-unread {
    background: rgba(99, 102, 241, 0.04);
}

.notification-dropdown-item.is-unread .notification-dropdown-item-title {
    font-weight: 600;
}

.notification-dropdown-item-title {
    display: block;
    font-size: 0.9375rem;
    font-weight: 500;
    margin-bottom: 0.125rem;
}

.notification-dropdown-item-preview {
    display: block;
    font-size: 0.8125rem;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.notification-dropdown-item-time {
    display: block;
    font-size: 0.75rem;
    color: var(--text-light);
    margin-top: 0.25rem;
}

.header-dots-divider {
    height: 1px;
    margin: 0.5rem 0.75rem;
    background: var(--border-color);
}

.header-dots-item-logout {
    color: var(--text-secondary);
}

.header-dots-item-logout:hover {
    background: rgba(239, 68, 68, 0.08);
    color: var(--error-color);
}

.notification-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    box-sizing: border-box;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: #fff;
    font-size: 0.6875rem;
    font-weight: 700;
    border-radius: 9px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    box-shadow: 0 2px 6px rgba(239, 68, 68, 0.35);
    border: 2px solid #fff;
    pointer-events: none;
}

@keyframes pulse-badge {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* Message Badge in Navigation */
.nav-link-messages {
    position: relative;
}

.nav-link-messages .message-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
    line-height: 1.2;
}

/* Job like button – reusable; no inline styles */
.job-like-wrap {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}
.job-like-btn {
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
    border-radius: 8px;
    border: 2px solid #e5e7eb;
    background: #fff;
    color: #6b7280;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}
.job-like-btn.is-liked {
    border-color: #ef4444;
    background: #fef2f2;
    color: #ef4444;
}
.job-like-wrap .job-like-btn {
    flex-shrink: 0;
    min-width: 2.5rem;
    width: 2.5rem;
    height: 2.5rem;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.job-like-wrap .like-count {
    font-size: 0.875rem;
    font-weight: 600;
    color: #6b7280;
    min-width: 1.25rem;
}
.job-like-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.2);
}
.job-like-btn:active {
    transform: translateY(0);
}
.job-like-btn svg {
    transition: fill 0.2s ease;
}
@media (max-width: 900px) {
    .job-like-btn {
        min-width: 44px;
        width: 44px;
        height: 44px;
    }
}

/* No scale animation on click - keep heart same size */

/* Liked Jobs Grid Cards – equal-height cards, button aligned at bottom */
.liked-jobs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr));
    gap: 1.5rem;
    align-items: stretch;
}
.liked-job-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
}
.liked-job-card > a.btn {
    margin-top: auto;
    flex-shrink: 0;
}
.liked-job-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    border-color: #cbd5e1;
}

/* ==========================================
   Share this Job – social logos
   ========================================== */
.job-share-card {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    margin-bottom: 2rem;
}
.job-share-title {
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
}
.job-share-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}
.job-share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-width: 44px;
    height: 44px;
    padding: 0 1rem;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    background: #fff;
    color: var(--text-primary);
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: color 0.2s, background 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.job-share-btn svg {
    flex-shrink: 0;
}
.job-share-btn:hover {
    border-color: currentColor;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}
.job-share-facebook {
    color: #1877f2;
}
.job-share-facebook:hover {
    background: #1877f2;
    color: #fff;
}
.job-share-x {
    color: #0f1419;
}
.job-share-x:hover {
    background: #0f1419;
    color: #fff;
}
.job-share-linkedin {
    color: #0a66c2;
}
.job-share-linkedin:hover {
    background: #0a66c2;
    color: #fff;
}
.job-share-copy {
    color: var(--text-secondary);
}
.job-share-copy:hover {
    background: var(--bg-secondary);
    color: var(--primary-color);
    border-color: var(--primary-light);
}
@media (max-width: 480px) {
    .job-share-label {
        display: none;
    }
    .job-share-btn {
        padding: 0 0.75rem;
    }
}

/* ==========================================
   Modals & Notifications – premium design system
   (Confirm dialogs, toasts, unified backdrop)

   Z-index stack (low to high):
   - 10, 100: in-page (e.g. badges, dropdown triggers)
   - 999: header dropdowns / menus
   - 1000: mobile drawer overlay
   - 1100: header dots + notification dropdown panels
   - 10000: dashboard modals (e.g. contract)
   - 99999: toasts (#notification-container)
   - 100000: full-screen overlays (confirm, CV builder, auth modals)
   ========================================== */

/* ─── Premium Toast Notification System ──────────────────────────────────── */
#notification-container {
    position: fixed;
    top: max(1.25rem, env(safe-area-inset-top));
    right: max(1.25rem, env(safe-area-inset-right));
    z-index: var(--z-toast, 99999);
    max-width: min(400px, calc(100vw - 2rem));
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
    pointer-events: none;
}
.notification {
    pointer-events: auto;
    background: #fff;
    padding: 0.875rem 1rem;
    border-radius: var(--radius-lg);
    box-shadow: 0 8px 30px -4px rgba(15, 23, 42, 0.12), 0 0 0 1px rgba(99, 102, 241, 0.06);
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    opacity: 0;
    transform: translateX(120%);
    transition: opacity 0.32s cubic-bezier(0.4, 0, 0.2, 1), transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
    border-left: 3px solid transparent;
    will-change: transform, opacity;
}
@media (prefers-reduced-motion: reduce) {
    .notification { transition-duration: 0.01ms !important; }
}
.notification.show {
    opacity: 1;
    transform: translateX(0);
}
.notification-icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    margin-top: 1px;
}
.notification-success { border-left-color: var(--success-color, #059669); }
.notification-success .notification-icon { background: rgba(5, 150, 105, 0.08); }
.notification-error { border-left-color: var(--error-color, #dc2626); box-shadow: 0 8px 30px -4px rgba(220, 38, 38, 0.1), 0 0 0 1px rgba(220, 38, 38, 0.06); }
.notification-error .notification-icon { background: rgba(220, 38, 38, 0.08); }
.notification-warning { border-left-color: var(--warning-color, #d97706); }
.notification-warning .notification-icon { background: rgba(217, 119, 6, 0.08); }
.notification-info { border-left-color: var(--primary-color, #6366f1); }
.notification-info .notification-icon { background: rgba(99, 102, 241, 0.08); }
.notification-message { border-left-color: var(--primary-color, #6366f1); }
.notification-message .notification-icon { background: rgba(99, 102, 241, 0.08); }
.notification-content {
    flex: 1;
    min-width: 0;
}
.notification-title {
    color: var(--text-primary, #0f172a);
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.35;
    margin-bottom: 2px;
}
.notification-body {
    color: var(--text-secondary, #475569);
    font-size: 0.8125rem;
    font-weight: 400;
    line-height: 1.45;
}
.notification-title:empty { display: none; }
.notification-body:empty { display: none; }
/* Fallback: if only body (no title), make body the primary style */
.notification-title:empty + .notification-body {
    color: var(--text-primary, #0f172a);
    font-size: 0.875rem;
    font-weight: 500;
}
.notification-action {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: var(--radius-md);
    color: var(--primary-color, #6366f1);
    transition: background 0.15s ease;
    margin-top: 2px;
}
.notification-action:hover {
    background: rgba(99, 102, 241, 0.08);
}
.notification-close {
    background: none;
    border: none;
    font-size: 1.125rem;
    line-height: 1;
    cursor: pointer;
    color: var(--text-light, #94a3b8);
    padding: 2px;
    border-radius: var(--radius-sm);
    transition: color 0.15s ease, background 0.15s ease;
    flex-shrink: 0;
    margin-top: 2px;
}
.notification-close:hover {
    color: var(--text-primary, #0f172a);
    background: rgba(0, 0, 0, 0.04);
}
.notification-close:focus-visible {
    outline: 2px solid var(--primary-color, #6366f1);
    outline-offset: 2px;
}
@media (max-width: 480px) {
    #notification-container {
        right: 0.5rem;
        left: 0.5rem;
        max-width: none;
        top: max(0.5rem, env(safe-area-inset-top));
    }
    .notification { padding: 0.75rem; gap: 0.625rem; }
}

/* Confirm modal – same premium style as job post confirm, contract modals, worklife modal */
.jobcv-confirm-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.48);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    box-sizing: border-box;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.25s ease;
}
.jobcv-confirm-backdrop.is-visible {
    opacity: 1;
    visibility: visible;
}
.jobcv-confirm-box {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 32px 64px -12px rgba(15, 23, 42, 0.25), 0 0 0 1px rgba(99, 102, 241, 0.08);
    max-width: 400px;
    width: 100%;
    padding: 28px 28px 24px;
    text-align: center;
    transform: scale(0.92);
    opacity: 0;
    transition: transform 0.28s cubic-bezier(0.34, 1.2, 0.64, 1), opacity 0.25s ease;
}
.jobcv-confirm-backdrop.is-visible .jobcv-confirm-box {
    transform: scale(1);
    opacity: 1;
}
.jobcv-confirm-box .jobcv-confirm-message {
    font-size: 1rem;
    line-height: 1.55;
    color: #475569;
    margin: 0 0 24px 0;
    font-weight: 500;
}
.jobcv-confirm-box .jobcv-confirm-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}
.jobcv-confirm-box .jobcv-confirm-btn {
    min-width: 100px;
    padding: 12px 22px;
    border-radius: 10px;
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}
.jobcv-confirm-box .jobcv-confirm-btn:active {
    transform: scale(0.98);
}
.jobcv-confirm-box .jobcv-confirm-btn-cancel {
    background: #f1f5f9;
    color: #475569;
}
.jobcv-confirm-box .jobcv-confirm-btn-cancel:hover {
    background: #e2e8f0;
    color: #0f172a;
}
.jobcv-confirm-box .jobcv-confirm-btn-confirm {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    color: #fff;
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.35);
}
.jobcv-confirm-box .jobcv-confirm-btn-confirm:hover {
    background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}
.jobcv-confirm-box .jobcv-confirm-btn:focus-visible {
    outline: 2px solid var(--primary-color, #6366f1);
    outline-offset: 2px;
}
.jobcv-confirm-backdrop {
    pointer-events: auto;
}

/* Premium page wrapper (no dashboard menu) */
.jobcv-premium-page-wrapper {
    max-width: 100%;
    padding: 1rem 1.5rem 2rem;
}

/* Premium page: responsive pricing grid + card hover */
.jobcv-premium-pricing {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    align-items: stretch;
}
@media (max-width: 520px) {
    .jobcv-premium-pricing {
        grid-template-columns: 1fr;
    }
}
.jobcv-premium-card-monthly,
.jobcv-premium-card-annual,
.jobcv-premium-card-once {
    display: flex;
    flex-direction: column;
    min-height: 300px;
}
.jobcv-premium-card-monthly .jobcv-premium-checkout-trigger,
.jobcv-premium-card-annual .jobcv-premium-checkout-trigger,
.jobcv-premium-card-once .jobcv-premium-checkout-trigger {
    margin-top: auto;
    flex-shrink: 0;
}
/* Same size and alignment for both Choose plan buttons */
.jobcv-premium-pricing .jobcv-premium-choose-btn {
    height: 48px !important;
    min-height: 48px !important;
    padding: 0 1.25rem !important;
    box-sizing: border-box !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    font-size: 0.9375rem !important;
    font-weight: 700 !important;
    border-radius: 10px !important;
}
.jobcv-premium-card-monthly .jobcv-premium-choose-btn:hover,
.jobcv-premium-card-annual .jobcv-premium-choose-btn:hover,
.jobcv-premium-card-once .jobcv-premium-choose-btn:hover {
    opacity: 0.92;
    transform: translateY(-1px);
}
button.jobcv-pay-badge.jobcv-premium-checkout-trigger:hover {
    background: rgba(99, 102, 241, 0.08) !important;
    border-color: var(--primary-color, #6366f1) !important;
}

/* Premium payment methods: single row, aligned */
.jobcv-premium-payment-methods {
    max-width: 100%;
}
.jobcv-premium-payment-methods .jobcv-premium-badges {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
    flex-wrap: wrap;
}
.jobcv-premium-payment-methods .jobcv-pay-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    min-width: 0;
}
.jobcv-premium-payment-methods .jobcv-pay-badge svg {
    flex-shrink: 0;
}
@media (max-width: 380px) {
    .jobcv-premium-payment-methods .jobcv-premium-badges {
        flex-direction: column;
        gap: 0.75rem;
    }
}

/* Mobile drawer overlay – premium dim + transition */
.mobile-drawer-overlay {
    position: fixed;
    inset: 0;
    z-index: 1001; /* must exceed site-header (1000) so it covers navigation */
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}
.mobile-drawer-overlay.active {
    display: block !important;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}
