:root {
    --primary-color: #6c757d;
    --primary-hover: #5a6268;
    --accent-color: #495057;
    --accent-hover: #343a40;
    --bg-secondary: #383838;
    --bg-tertiary: #2d2d2d;
    --bg-quaternary: #242424;
    --border-color: #4a4a4a;
    --text-primary: #f8f9fa;
    --text-secondary: #ced4da;
    --text-light-secondary: #ced4da;
    --text-color: #f5f5f5;
    --light-bg: #f5f6fa;
    --dark-bg: #212529;
    --darker-bg: #1a1d20;
}

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

body {
    margin: 0;
    padding: 0;
    font-family: 'Montserrat', Arial, sans-serif;
    background: var(--dark-bg);
    line-height: 1.6;
    color: var(--text-color);
    padding-top: 64px;
}

/* Dashboard-сторінки мають власний offset від header у .main-content */
body:has(.dashboard-container) {
    padding-top: 0;
}

header {
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
    padding: 5px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
    position: relative;
}

/* Структура елементів верхньої стрічки */
.controls {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-left: auto;
}

/* Стилі для кнопки змінення фону */
.change-bg-button {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: white; 
    padding: 5px 15px; 
    cursor: pointer; 
    font-family: 'Montserrat', sans-serif; 
    font-size: 14px; 
    border-radius: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 36px;
    transition: all 0.2s ease;
}

.change-bg-button:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* Стилі для перемикача теми */
.theme-switcher {
    position: relative;
    display: inline-flex;
    align-items: center;
}

/* Стилі для перемикача мов */
.language-switcher {
    position: relative;
    display: inline-block;
    z-index: 1001;
}

/* Стилі для кнопки мови */
.language-btn {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 22px;
    color: #fff;
    padding: 4px 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: unset;
    width: auto;
    height: 36px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    transition: all 0.2s ease;
}

.language-btn:hover {
    background: rgba(49, 130, 206, 0.13);
    border-color: #3182ce;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.language-btn .flag-emoji {
    font-size: 1.5em;
    display: flex;
    align-items: center;
    justify-content: center;
}

#lang-arrow {
    font-size: 0.7em;
    color: #aaa;
    margin-left: 2px;
    user-select: none;
    transition: transform 0.2s ease;
}

.language-btn:hover #lang-arrow {
    transform: rotate(180deg);
    color: #fff;
}

/* Стилі для кнопок авторизації */
.auth-buttons {
    display: flex;
    align-items: center;
}

.auth-main-btn {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 22px;
    color: white;
    padding: 5px 15px;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.auth-main-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

@media (hover: none), (pointer: coarse) {
    .auth-main-btn:hover {
        transform: none;
    }
    #mobile-open-auth-modal,
    .auth-main-btn {
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
    }
}

@media (max-width: 768px) {
    .controls {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
        margin-top: 10px;
        width: 100%;
    }
    
    nav {
        flex-wrap: wrap;
        padding: 10px;
    }
    
    nav ul {
        margin-top: 10px;
        width: 100%;
        justify-content: center;
    }
}

.theme-switcher {
    position: relative;
    display: inline-flex;
    align-items: center;
    margin-left: 10px;
}

.language-switcher {
    position: relative;
    display: inline-block;
    margin-left: 10px;
    z-index: 1001; /* Забезпечуємо, щоб мовний перемикач був над іншими елементами */
}

.auth-buttons {
    display: flex;
    align-items: center;
    margin-left: 10px;
}

/* Стилі для перемикача мов - оновлені */
.language-btn {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 22px;
    color: #fff;
    padding: 4px 14px 4px 8px;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: unset;
    width: auto;
    height: 36px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    transition: all 0.2s ease;
}

/* Стилі для випадаючого списку мов */
.language-flags {
    position: absolute;
    top: 100%;
    right: 0;
    width: 200px;
    background-color: #1a2a43;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    max-height: 300px;
    overflow-y: auto;
    margin-top: 8px;
    padding: 8px 0;
    display: none; /* За замовчуванням схований */
    animation: fadeIn 0.2s ease-in-out;
}

.logo {
    color: white;
    font-weight: 600;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.logo-container {
    display: flex;
    align-items: center;
    margin-bottom: 5px;
}

.logo-text {
    font-size: 2rem;
    font-weight: 800;
    color: #2ecc71; /* Зелений колір бренду */
    letter-spacing: -1px;
    margin-right: 5px;
    display: inline-flex;
    align-items: center;
    text-shadow: 0 0 8px rgba(46, 204, 113, 0.3);
    transition: all 0.3s ease;
}

.mini-globe-container {
    width: 24px;
    height: 24px;
    position: relative;
    margin-left: 2px;
    perspective: 800px;
    display: inline-block;
    vertical-align: middle;
}

nav .logo-container {
    display: flex;
    align-items: center;
    gap: 5px;
}

nav .logo-container a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
}

.logo-text {
    font-size: 2rem;
    font-weight: 800;
    color: white;
    letter-spacing: -1px;
    margin-right: 5px;
}

.mini-globe {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(30deg, #3498db, #2ecc71, #3498db);
    position: relative;
    transform-style: preserve-3d;
    animation: mini-globe-rotate 8s linear infinite;
    box-shadow: 0 0 10px rgba(46, 204, 113, 0.6);
}

.mini-globe::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(90deg, transparent 50%, rgba(0, 0, 0, 0.3) 50%);
    transform: rotateY(90deg);
}

.mini-globe::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.4) 0%, transparent 20%);
}

@keyframes mini-globe-rotate {
    0% {
        transform: rotateY(0) rotateX(-20deg);
    }
    100% {
        transform: rotateY(360deg) rotateX(-20deg);
    }
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

nav a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.active {
    color: var(--secondary-color);
    font-weight: 600;
}

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

.hero {
    display: flex;
    align-items: center;
    justify-content: space-around;
    min-height: 80vh;
    padding: 2rem;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, transparent 0%, rgba(10, 25, 47, 0.8) 100%);
    z-index: -1;
}

.hero-content {
    max-width: 600px;
    z-index: 1;
}

.special-offer {
    background-color: #e74c3c;
    border-radius: 10px;
    padding: 20px 30px;
    margin-bottom: 20px;
    position: relative;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 80px;
    overflow: visible;
    transform: perspective(600px) rotateX(0.4deg);
    animation: offer-pulse 3s ease-in-out infinite;
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.4);
}

.offer-badge {
    position: absolute;
    top: -10px;
    left: 10px;
    background-color: #FFD700;
    color: #333;
    padding: 5px 10px;
    font-size: 0.9rem;
    font-weight: bold;
    border-radius: 5px;
    z-index: 1;
    transform: translateX(0) translateY(0);
    width: auto;
    white-space: nowrap;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.offer-text {
    font-size: 1.3rem;
    font-weight: 700;
    color: white;
    margin: 0;
    text-align: center;
    position: relative;
    z-index: 1;
    line-height: 1.4;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

.offer-globe {
    position: absolute;
    bottom: 10px;
    right: 50%;
    transform: translateX(50%);
}

.offer-globe .mini-globe {
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.8);
}

@keyframes offer-pulse {
    0% {
        transform: perspective(600px) rotateX(0.4deg) scale(1);
        box-shadow: 0 0 0 0 rgba(233, 69, 96, 0.5);
    }
    50% {
        transform: perspective(600px) rotateX(0.4deg) scale(1.015);
        box-shadow: 0 0 10px 3px rgba(233, 69, 96, 0.6);
    }
    100% {
        transform: perspective(600px) rotateX(0.4deg) scale(1);
        box-shadow: 0 0 0 0 rgba(233, 69, 96, 0.5);
    }
}

.hero-title {
    font-size: 36px;
    margin-bottom: 20px;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.hero p {
    font-size: 18px;
    margin-bottom: 30px;
    color: white;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
    max-width: 600px;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    text-align: center;
}

.btn.primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    color: white;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

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

.btn.primary:hover {
    background: linear-gradient(135deg, var(--primary-hover) 0%, var(--accent-hover) 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.btn.secondary:hover {
    background: var(--primary-color);
    color: white;
}

.btn.btn-small {
    padding: 8px 16px;
    font-size: 14px;
}

.cta-buttons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.features {
    padding: 4rem 2rem;
    background: var(--darker-bg);
}

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

.section-title-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 2rem;
}

.section-globe {
    width: 30px;
    height: 30px;
}

.section-globe .mini-globe {
    box-shadow: 0 0 10px rgba(52, 152, 219, 0.7);
}

.features h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: center;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
    text-decoration: none;
    color: var(--text-color);
    display: block;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    cursor: pointer;
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

footer {
    background: linear-gradient(135deg, var(--bg-tertiary) 0%, var(--bg-quaternary) 100%);
    color: white;
    padding: 3rem 2rem 1rem;
}

/* Компактний footer для .site-footer (перекриває базові стилі) */
footer.site-footer {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    padding: 10px 12px !important;
    min-height: auto !important;
    margin: 0 !important;
    z-index: 1000 !important;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-section h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #ffffff;
}

.footer-section ul {
    list-style: none;
}

.footer-section a {
    color: #ddd;
    text-decoration: none;
    display: block;
    margin-bottom: 0.5rem;
}

.footer-section a:hover {
    color: var(--secondary-color);
}

.footer-bottom {
    text-align: center;
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.2);
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

/* Компактний footer-bottom для .site-footer */
footer.site-footer .footer-bottom {
    padding: 4px 0 !important;
    gap: 6px !important;
    flex-direction: column !important;
    align-items: flex-start !important;
}

.footer-bottom p {
    margin: 0;
    flex: 1;
    text-align: left;
    color: #ffffff;
}

/* Компактний текст для .site-footer */
footer.site-footer .footer-main p,
footer.site-footer .footer-bottom p {
    font-size: 0.81rem !important;
    opacity: 0.75;
    margin: 2px 0 !important;
    line-height: 1.2;
}

.footer-contacts {
    margin-left: auto;
}

/* Компактний footer-contacts для .site-footer */
footer.site-footer .footer-contacts a {
    font-size: 0.8rem !important;
    margin: 2px 0 !important;
}

.footer-contacts a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.3s;
    font-weight: 500;
}

.footer-contacts a:hover {
    color: #5dade2;
    text-decoration: underline;
}

/* Стилі для світлої теми */
body.light-theme .footer-contacts a {
    color: #ffffff;
}

body.light-theme .footer-contacts a:hover {
    color: #e2e8f0;
}

/* DESKTOP FOOTER: кнопка "Інформація" прихована, посилання завжди видимі */
@media (min-width: 769px) {
    .site-footer .footer-toggle {
        display: none;
    }
    .site-footer .footer-links {
        display: flex;
        gap: 20px;
        margin-top: 0;
        margin-left: auto;
    }
    .site-footer .footer-main {
        flex: 0 1 auto;
        justify-content: flex-start;
        gap: 8px 12px;
    }
}

/* Стилі для мобільних пристроїв */
@media (max-width: 768px) {
    body {
        padding-top: 52px;
    }

    body:has(.dashboard-container) {
        padding-top: 0 !important;
    }

    /* Хедер і меню вище футера; футер вище контенту дашборду */
    header {
        z-index: 10200 !important;
    }

    #open-mobile-menu {
        position: relative;
        z-index: 10201 !important;
        pointer-events: auto !important;
        touch-action: manipulation !important;
    }

    footer.site-footer {
        z-index: 1000 !important;
        bottom: var(--jg-footer-vv-bottom, 0px) !important;
    }

    footer.site-footer .footer-toggle.mobile-only {
        position: relative;
        z-index: 2;
        touch-action: manipulation !important;
        pointer-events: auto !important;
        cursor: pointer;
        box-sizing: border-box !important;
        width: 36px !important;
        height: 36px !important;
        min-width: 36px !important;
        max-width: 36px !important;
        padding: 0 !important;
        margin-left: auto !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        flex: 0 0 36px !important;
        border-radius: 50% !important;
        font-size: 1rem !important;
        line-height: 1 !important;
        overflow: hidden !important;
        white-space: nowrap !important;
    }

    footer.site-footer .footer-toggle.mobile-only .fa-info-circle,
    footer.site-footer .footer-toggle.mobile-only .footer-toggle-icon {
        width: 18px !important;
        height: 18px !important;
        font-size: 16px !important;
        line-height: 1 !important;
        margin: 0 !important;
        pointer-events: none;
        display: block !important;
        flex-shrink: 0;
    }

    /* Текст лишається для a11y/перекладів, візуально ховаємо на мобільному */
    footer.site-footer .footer-toggle.mobile-only .footer-toggle-label {
        position: absolute !important;
        width: 1px !important;
        height: 1px !important;
        padding: 0 !important;
        margin: -1px !important;
        overflow: hidden !important;
        clip: rect(0, 0, 0, 0) !important;
        white-space: nowrap !important;
        border: 0 !important;
    }

    footer.site-footer .footer-main {
        min-width: 0 !important;
        max-width: 100% !important;
        overflow: hidden !important;
    }

    footer.site-footer .footer-main > p[data-lang-key="copyright"],
    footer.site-footer .footer-main > p {
        min-width: 0 !important;
        flex: 1 1 auto !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    .mobile-menu.open {
        z-index: 10150 !important;
    }
    
    .hero {
        flex-direction: column;
        text-align: center;
        padding: 40px 15px;
        min-height: auto;
        margin-top: 50px;
    }
    
    .section {
        margin-top: 25px;
        padding-top: 25px;
    }
    
    .special-offer {
        padding: 15px;
        margin-top: 50px;
        margin-bottom: 25px;
        width: 100%;
    }
    
    .specialists-container,
    .vacancies-container,
    .contacts-container,
    .feature-container,
    .employer-container {
        padding-top: 40px;
    }
    
    .mobile-controls {
        margin-bottom: 10px;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        padding: 15px 10px;
    }
    
    .footer-bottom p {
        margin-bottom: 10px;
        text-align: center;
    }
    
    .footer-contacts {
        margin-left: 0;
        margin-top: 5px;
    }
    
    /* MOBILE FOOTER: компактний футер, посилання приховані до кліку */
    footer.site-footer .footer-links {
        display: none !important;
        width: 100% !important;
        margin-top: 6px !important;
        padding-top: 4px !important;
        border-top: 1px solid rgba(255, 255, 255, 0.05) !important;
        gap: 4px !important;
    }
    
    footer.site-footer.open .footer-links {
        display: flex !important;
        flex-direction: column !important;
        gap: 4px !important;
    }
    
    footer.site-footer.open .footer-links .footer-contacts {
        display: flex !important;
        flex-direction: column !important;
        gap: 2px !important;
        font-size: 0 !important;
    }
    
    footer.site-footer.open .footer-links .footer-contacts a {
        font-size: 0.8rem !important;
    }
    
    footer.site-footer .footer-main {
        display: flex !important;
        width: 100%;
        justify-content: flex-start;
        align-items: center;
        gap: 6px;
    }
    
    footer.site-footer .footer-toggle.mobile-only {
        padding: 0 !important;
        font-size: 1rem !important;
        border-radius: 50% !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 36px !important;
        height: 36px !important;
        min-width: 36px !important;
        background: rgba(255, 255, 255, 0.15);
        border: 1px solid rgba(255, 255, 255, 0.3);
        color: #fff;
        cursor: pointer;
    }
    
    body.light-theme footer.site-footer .footer-toggle.mobile-only {
        background: rgba(0, 0, 0, 0.08) !important;
        border-color: rgba(0, 0, 0, 0.15) !important;
        color: #1f2937 !important;
    }
    
    /* Компактний footer-bottom для mobile */
    footer.site-footer .footer-bottom {
        padding: 4px 0 !important;
        gap: 6px !important;
    }
    
    .offer-badge {
        top: -12px;
        left: 50%;
        transform: translateX(-50%);
        font-size: 0.8rem;
        padding: 4px 10px;
    }
    
    .offer-text {
        font-size: 1.2rem;
        line-height: 1.4;
        font-weight: 700;
    }
    
    .hero-title {
        margin-top: 20px;
        font-size: 1.8rem;
        line-height: 1.3;
        margin-bottom: 15px;
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
    }
    
    .cta-buttons {
        flex-direction: column;
        margin-top: 25px;
        margin-bottom: 20px;
        gap: 15px;
        width: 100%;
    }
}

footer .logo-container {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Стилі для сторінки вакансій */
.section {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.filter-section {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.filter-select {
    padding: 10px;
    border-radius: 5px;
    background-color: #1a2a43;
    color: white;
    border: 1px solid #3a4a63;
    min-width: 150px;
}

.vacancy-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.vacancy-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 20px;
    transition: transform 0.3s ease;
}

.vacancy-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.vacancy-meta {
    display: flex;
    justify-content: space-between;
    margin: 10px 0;
    color: #aaa;
    font-size: 0.9rem;
}

.job-post-form {
    max-width: 800px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

.form-group input, 
.form-group textarea, 
.form-group select {
    width: 100%;
    padding: 10px;
    border-radius: 5px;
    background-color: #1a2a43;
    color: white;
    border: 1px solid #3a4a63;
}

.back-btn {
    margin-top: 20px;
}

/* Адаптивність */
@media (max-width: 768px) {
    .hero {
        flex-direction: column;
        text-align: center;
    }
    
    .features-grid,
    .vacancy-list,
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .cta-buttons {
        flex-direction: column;
        margin-top: 25px;
        gap: 15px;
    }
    
    .btn {
        padding: 12px 25px;
        font-size: 1.1rem;
        width: 100%;
        margin: 5px 0;
    }
    
    .filter-section {
        flex-direction: column;
    }
    
    .filter-select {
        width: 100%;
    }
    
    .special-offer {
        padding: 15px;
        min-height: 60px;
        transform: perspective(600px) rotateX(0.4deg);
        overflow: visible;
    }
    
    .offer-badge {
        font-size: 0.7rem;
        padding: 3px 8px;
        transform: none;
    }
    
    .offer-text {
        font-size: 1rem;
    }
}

.search-columns {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
}

.search-column {
    flex: 1;
    background: rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    border-radius: 8px;
}

.job-description,
.resume-summary {
    width: 100%;
    min-height: 150px;
    padding: 1rem;
    margin-top: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    color: #fff;
    resize: vertical;
}

.resume-upload {
    margin: 1rem 0;
    padding: 2rem;
    border: 2px dashed rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    text-align: center;
}

.resume-input {
    display: none;
}

.resume-label {
    display: block;
    cursor: pointer;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    margin-bottom: 1rem;
}

.resume-label:hover {
    background: rgba(255, 255, 255, 0.15);
}

.file-info {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

.search-button {
    display: block;
    width: 200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
}

.search-button:hover {
    background: #2980b9;
}

#hiring-type {
    width: 100%;
    padding: 10px;
    border-radius: 5px;
    background-color: #1a2a43;
    color: white;
    border: 1px solid #3a4a63;
    cursor: pointer;
}

#hiring-type:hover {
    border-color: #3498db;
}

#hiring-type option {
    background-color: #1a2a43;
}

/* Світла тема - оновлені стилі для кращої читабельності */
body.light-theme {
    background-color: #f0f4f8; /* М'який сіро-блакитний відтінок фону */
    color: #2d3748; /* Насичений темно-сірий текст для кращого контрасту */
}

body.light-theme header {
    background-color: #4299e1;
    padding: 5px 0; /* Зменшено вдвічі з 10px до 5px */
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.1);
}

body.light-theme nav a {
    color: #ffffff; /* Білий колір для навігації */
    font-weight: 500; /* Трохи жирніший текст для кращої видимості */
}

body.light-theme nav a:hover,
body.light-theme nav a.active {
    color: #e2e8f0; /* Світло-сірий для виділення */
    font-weight: 600;
}

body.light-theme .logo-text {
    color: #2ecc71 !important; /* Той самий яскравий зелений колір як у темній темі */
    font-weight: 800; /* Жирніший текст для лого */
    text-shadow: 0 0 8px rgba(46, 204, 113, 0.3);
}

body.light-theme .feature-card,
body.light-theme .contact-card,
body.light-theme .office-card,
body.light-theme .contacts-section,
body.light-theme .support-section,
body.light-theme .support-card,
body.light-theme .benefit-item {
    background-color: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    color: #2d3748; /* Темніший текст в картках */
    border: 1px solid #e2e8f0; /* Додаємо тонку рамку для кращого розділення */
}

body.light-theme .feature-card:hover {
    background-color: #f8fafc;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border-color: #cbd5e0;
}

body.light-theme .section-title,
body.light-theme h1, 
body.light-theme h2, 
body.light-theme h3, 
body.light-theme h4 {
    color: #1a365d; /* Темно-синій для заголовків */
    font-weight: 600; /* Жирніший текст для заголовків */
}

body.light-theme .form-group input,
body.light-theme .form-group textarea,
body.light-theme select {
    background-color: #ffffff;
    border: 1px solid #cbd5e0; /* Темніша рамка */
    color: #2d3748;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05) inset;
}

body.light-theme .form-group label {
    color: #2d3748; /* Темніший колір для міток */
    font-weight: 500; /* Жирніший текст для кращої видимості */
}

body.light-theme footer {
    background-color: #2d3748;
    padding: 5px 0; /* Зменшено вчетверо з 20px до 5px */
    margin-top: 2rem;
    box-shadow: 0 -1px 5px rgba(0, 0, 0, 0.1);
    color: #ffffff;
}

body.light-theme .btn.primary {
    background-color: #3182ce; /* Насичений синій для кнопок */
    font-weight: 500;
    color: white;
}

body.light-theme .btn.secondary {
    background-color: #f7fafc;
    border: 1px solid #2d3748;
    color: #2d3748;
    font-weight: 500;
}

body.light-theme .btn.primary:hover {
    background-color: #2c5282;
}

body.light-theme .btn.secondary:hover {
    background-color: rgba(49, 130, 206, 0.1);
}

body.light-theme .footer-bottom a {
    color: #ffffff;
    font-weight: 500;
}

body.light-theme .mini-globe {
    box-shadow: 0 0 10px rgba(49, 130, 206, 0.5);
}

/* Стилі для відображення теми і перемикача в світлій темі */
body.light-theme .theme-btn {
    background-color: #e2e8f0;
}

body.light-theme .theme-icon {
    color: #2d3748;
}

body.light-theme .tumbler {
    background-color: #2d3748;
}

/* Стилі для спеціальних елементів у світлій темі */
body.light-theme .special-offer {
    background-color: #e74c3c;
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.5);
}

body.light-theme .offer-badge {
    background-color: #FFD700;
    color: #333;
    font-weight: 700;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

body.light-theme .offer-text {
    color: white;
    font-weight: 700;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}

/* Додаткові стилі для таблиць у світлій темі */
body.light-theme table th {
    background-color: #e2e8f0;
    color: #2d3748;
    font-weight: 600;
}

body.light-theme table td {
    color: #2d3748;
    border-bottom: 1px solid #e2e8f0;
}

/* Додаткові стилі для карток підтримки у світлій темі */
body.light-theme .support-icon,
body.light-theme .benefit-icon,
body.light-theme .feature-icon {
    color: #2d3748;
}

/* Стилі для модальних вікон у світлій темі */
body.light-theme .modal-content {
    background-color: #ffffff;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
    color: #2d3748;
}

body.light-theme .modal-close {
    color: #4a5568;
}

body.light-theme .modal-close:hover {
    color: #2d3748;
}

/* Стиль для підсвічування важливої інформації в світлій темі */
body.light-theme .highlight {
    color: #2d3748;
    font-weight: 500;
}

/* Стилі для кнопок зміни фону в світлій темі */
body.light-theme #change-bg-btn {
    background-color: #e2e8f0;
    border: 1px solid #718096;
    color: #2d3748;
    font-weight: 500;
}

body.light-theme #change-bg-btn:hover {
    background-color: #cbd5e0;
    border-color: #4a5568;
}

/* Стилі для перемикача теми */
.theme-switcher {
    position: relative;
    display: flex;
    align-items: center;
    margin-left: 15px;
}

.theme-btn {
    width: 40px;
    height: 20px;
    border-radius: 10px;
    background-color: rgba(255, 255, 255, 0.1);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    transition: background-color 0.3s;
    padding: 0;
}

.tumbler {
    position: absolute;
    height: 16px;
    width: 16px;
    border-radius: 50%;
    background-color: #fff;
    top: 2px;
    left: 2px;
    transition: transform 0.5s;
    z-index: 2;
}

.tumbler--toggled {
    /* 40px switch, 16px knob, 2px side paddings => 20px logical travel */
    transform: translateX(20px) !important;
}

.tumbler--night-n-day {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 4px;
}

.tumbler--night-n-day span {
    line-height: 1;
    font-size: 12px;
}

@media (max-width: 768px) {
    nav {
        flex-wrap: wrap;
    }
    
    nav ul {
        display: flex;
        flex-direction: row;
        width: 100%;
        justify-content: space-between;
        gap: 5px;
        margin-top: 10px;
    }
    
    nav ul li a {
        font-size: 0.9rem;
        padding: 5px;
        white-space: nowrap;
    }
    
    .logo {
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    #change-bg-btn {
        display: none; /* Ховаємо верхню кнопку зміни фону в мобільній версії */
    }
    
    .theme-switcher.desktop-only {
        display: none; /* Ховаємо десктопний перемикач теми */
    }
    
    .mobile-controls {
        display: flex;
        width: 100%;
        justify-content: center;
        align-items: center;
        gap: 15px;
        margin-top: 10px;
    }
    
    .auth-buttons {
        width: 100%;
        display: flex;
        justify-content: center;
        margin-top: 10px;
        gap: 10px;
    }
    
    .auth-buttons .login-button,
    .auth-buttons .register-button {
        font-size: 0.9rem;
        padding: 8px 15px;
    }
}

/* Медіа-запити для світлої теми на мобільних пристроях */
@media (max-width: 768px) {
    body.light-theme .logo-text {
        color: #2ecc71 !important;
        font-weight: 700;
    }
    
    body.light-theme .hamburger-menu span {
        background-color: #2d3748;
    }
    
    body.light-theme nav ul {
        background-color: #ffffff;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        border: 1px solid #e2e8f0;
    }
    
    body.light-theme nav a {
        color: #ffffff;
        border-bottom: 1px solid #e2e8f0;
    }
    
    body.light-theme nav a:hover,
    body.light-theme nav a.active {
        color: #e2e8f0;
        background-color: rgba(255, 255, 255, 0.1);
    }

    /* Стилі для світлої теми mobile-menu визначені нижче в глобальних стилях */

    /* Стилі для випадаючого меню мов у світлій темі */
    body.light-theme .language-flags {
        background-color: #ffffff !important;
        border: 1px solid #e2e8f0 !important;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15) !important;
    }

    body.light-theme .language-flags .language-option {
        color: #1f2937 !important;
    }

    body.light-theme .language-flags .language-option:hover {
        background-color: #f3f4f6 !important;
        color: #111827 !important;
    }

    /* Додаткові стилі для мобільного меню мов */
    @media (max-width: 768px) {
        .language-flags {
            position: fixed !important;
            top: 60px !important;
            right: 10px !important;
            z-index: 10001 !important;
            min-width: 180px !important;
            max-width: 90vw !important;
        }

        body.light-theme .language-flags .language-option {
            color: #1f2937 !important;
        }

        body.light-theme .language-flags .flag-label {
            color: #1f2937 !important;
        }

        body:not(.light-theme) .language-flags .language-option {
            color: #f8fafc !important;
        }

        body:not(.light-theme) .language-flags .flag-label {
            color: #f8fafc !important;
        }
    }
    
    body.light-theme .section-title {
        color: #1a365d;
        font-weight: 700;
    }
    
    body.light-theme .feature-card,
    body.light-theme .support-card,
    body.light-theme .mobile-plan-card,
    body.light-theme .mobile-service-card {
        background-color: #ffffff;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
        border: 1px solid #e2e8f0;
    }
    
    body.light-theme .donation-amount-button {
        margin: 5px !important;
        background-color: #3182ce !important;
        color: white !important;
    }
    
    body.light-theme .modal-content {
        background-color: #ffffff;
    }
    
    body.light-theme footer {
        background-color: #2d3748;
        color: #ffffff;
    }
}

/* Стилі для карток та елементів у світлій темі */
body.light-theme .feature-card,
body.light-theme .vacancy-item,
body.light-theme .contact-card,
body.light-theme .office-card,
body.light-theme .team-member,
body.light-theme .contact-form,
body.light-theme .contacts-section,
body.light-theme .support-section,
body.light-theme .support-card,
body.light-theme .benefit-item,
body.light-theme .section {
    background-color: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    color: #2d3748;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

body.light-theme .feature-card:hover,
body.light-theme .vacancy-item:hover,
body.light-theme .contact-card:hover,
body.light-theme .team-member:hover {
    background-color: #f8fafc;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border-color: #cbd5e0;
    transform: translateY(-5px);
}

/* Стилі для заголовків у світлій темі */
body.light-theme .section-title,
body.light-theme h1, 
body.light-theme h2, 
body.light-theme h3, 
body.light-theme h4,
body.light-theme .vacancy-title,
body.light-theme .plan-name,
body.light-theme .service-name {
    color: #1a365d;
    font-weight: 600;
}

/* Стилі для виділених елементів у світлій темі */
body.light-theme .feature-icon,
body.light-theme .section-icon,
body.light-theme .benefit-icon,
body.light-theme .support-icon,
body.light-theme .highlight,
body.light-theme .special-text,
body.light-theme .job-type {
    color: #ffffff;
}

/* Посилання в основному контенті (картки контактів тощо) не можна форсувати білим — це ламає світлу тему. */
body.light-theme main a:not(.btn),
body.light-theme .contacts-section a:not(.btn),
body.light-theme .contact-card a:not(.btn) {
    color: #2563eb;
}

body.light-theme main a:not(.btn):hover,
body.light-theme .contacts-section a:not(.btn):hover,
body.light-theme .contact-card a:not(.btn):hover {
    color: #1d4ed8;
}

/* Стилі для кнопок у світлій темі */
body.light-theme .btn.primary,
body.light-theme .submit-button,
body.light-theme .search-button,
body.light-theme .donation-amount-button {
    background-color: #3182ce;
    color: white;
    font-weight: 500;
    border: none;
}

body.light-theme .btn.primary:hover,
body.light-theme .submit-button:hover,
body.light-theme .search-button:hover {
    background-color: #2c5282;
}

body.light-theme .btn.secondary {
    background-color: #f7fafc;
    border: 1px solid #3182ce;
    color: #3182ce;
    font-weight: 500;
}

body.light-theme .btn.secondary:hover {
    background-color: rgba(49, 130, 206, 0.1);
}

/* Стилі для фону секцій у світлій темі */
body.light-theme .features,
body.light-theme .about-section {
    background-color: #f0f4f8;
}

/* Стилі для текстових елементів у світлій темі */
body.light-theme p,
body.light-theme .feature-description,
body.light-theme .job-description,
body.light-theme .team-role,
body.light-theme .office-address,
body.light-theme .feature-name {
    color: #4a5568;
}

/* Стилі для інформаційних блоків у світлій темі */
body.light-theme .info-box,
body.light-theme .alert-box,
body.light-theme .notice {
    background-color: #ebf8ff;
    border: 1px solid #bee3f8;
    color: #2c5282;
}

body.light-theme .warning-box {
    background-color: #fffbeb;
    border: 1px solid #fbd38d;
    color: #744210;
}

body.light-theme .success-box {
    background-color: #f0fff4;
    border: 1px solid #c6f6d5;
    color: #276749;
}

/* Стилі для таблиць у світлій темі */
body.light-theme table,
body.light-theme .pricing-table,
body.light-theme .advertising-table {
    border-color: #e2e8f0;
}

body.light-theme table th,
body.light-theme .pricing-table th,
body.light-theme .advertising-table th {
    background-color: #edf2f7;
    color: #2d3748;
    font-weight: 600;
}

body.light-theme table td,
body.light-theme .pricing-table td,
body.light-theme .advertising-table td {
    color: #2d3748;
    border-bottom: 1px solid #e2e8f0;
}

/* Стилі для форм у світлій темі */
body.light-theme input,
body.light-theme textarea,
body.light-theme select,
body.light-theme .form-control {
    background-color: #ffffff;
    border: 1px solid #cbd5e0;
    color: #2d3748;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05) inset;
}

body.light-theme input:focus,
body.light-theme textarea:focus,
body.light-theme select:focus,
body.light-theme .form-control:focus {
    border-color: #3182ce;
    box-shadow: 0 0 0 3px rgba(49, 130, 206, 0.3);
}

body.light-theme label {
    color: #2d3748;
    font-weight: 500;
}

/* Стилі для футера у світлій темі */
body.light-theme footer {
    background-color: #2d3748;
    border-top: 1px solid #e2e8f0;
    color: #ffffff;
}

body.light-theme .footer-bottom {
    border-top: 1px solid #e2e8f0;
}

body.light-theme .footer-bottom p {
    color: #ffffff;
}

body.light-theme .footer-bottom a {
    color: #ffffff;
    font-weight: 500;
}

/* Стилі для навігації у світлій темі */
body.light-theme header {
    background-color: #2d3748;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.07);
}

body.light-theme nav a {
    color: #ffffff;
    font-weight: 600;
}

body.light-theme nav a:hover,
body.light-theme nav a.active {
    color: #e2e8f0;
    font-weight: 700;
}

body.light-theme .logo-text {
    color: #2ecc71 !important;
    font-weight: 800;
}

body.light-theme .mini-globe {
    box-shadow: 0 0 10px rgba(49, 130, 206, 0.5);
}

.change-bg-button {
    background: none; 
    border: 1px solid rgba(255, 255, 255, 0.3); 
    color: white; 
    padding: 5px 15px; 
    margin-top: 5px; 
    cursor: pointer; 
    font-family: 'Montserrat', sans-serif; 
    font-size: 14px; 
    border-radius: 4px; 
    display: block; 
    width: 120px;
}

body.light-theme .change-bg-button {
    background-color: #e2e8f0;
    border: 1px solid #718096;
    color: #2d3748;
    font-weight: 500;
}

body.light-theme .change-bg-button:hover {
    background-color: #cbd5e0;
    border-color: #4a5568;
}

body.light-theme .hero-title,
body.light-theme .hero p {
    color: white;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
    background-color: transparent;
    padding: 0;
    border-radius: 0;
    display: block;
}

body.light-theme .special-offer {
    background-color: #e74c3c;
}

body.light-theme .offer-text {
    color: white;
    font-weight: 600;
}

/* Стилі для сторінки "Ринок спеціалістів" */
.specialist-main-title {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: #ffffff;
}

.specialist-description {
    font-size: 1.2rem;
    color: #f5f5f5;
    max-width: 800px;
    margin: 0 auto;
}

.filters-title {
    margin-top: 0;
    margin-bottom: 20px;
    color: #ffffff;
    text-align: center;
}

.filter-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.filter-select {
    width: 100%;
    padding: 10px;
    border-radius: 5px;
    background-color: #1a2a43;
    color: white;
    border: 1px solid #3a4a63;
}

/* Стилі для світлої теми на сторінці "Ринок спеціалістів" */
body.light-theme .specialist-main-title {
    color: #2d3748;
    font-weight: 700;
    background-color: transparent;
    padding: 0;
    border-radius: 0;
    display: block;
    box-shadow: none;
}

body.light-theme .specialist-description {
    color: #2d3748;
    font-weight: 500;
    background-color: rgba(255, 255, 255, 0.8);
    padding: 10px 15px;
    border-radius: 8px;
    display: inline-block;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

body.light-theme .filters-title {
    color: #2d3748;
    font-weight: 600;
}

/* Стилі для заголовків h2 у світлій темі */
body.light-theme h2 {
    color: #2d3748;
}

body.light-theme .top-actions h2 {
    color: #2d3748;
}

body.light-theme .filter-label {
    color: #2d3748;
    font-weight: 600;
}

body.light-theme .filter-select {
    background-color: #ffffff;
    border: 1px solid #cbd5e0;
    color: #2d3748;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05) inset;
}

/* Стилі для кнопок фільтрації */
.filter-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
}

.apply-btn {
    background-color: #3498db;
    color: white;
}

.apply-btn:hover {
    background-color: #2980b9;
}

.reset-btn {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
}

.reset-btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

/* Стилі кнопок фільтрації для світлої теми */
body.light-theme .filter-btn {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

body.light-theme .apply-btn {
    background-color: #2c5282;
    color: white;
}

body.light-theme .apply-btn:hover {
    background-color: #2a4365;
}

body.light-theme .reset-btn {
    background-color: #e2e8f0;
    color: #4a5568;
    border: 1px solid #cbd5e0;
}

body.light-theme .reset-btn:hover {
    background-color: #cbd5e0;
    color: #2d3748;
}

/* Стилі для карток спеціалістів у світлій темі */
body.light-theme .specialist-card {
    background: #ffffff !important;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    color: #2c3e50 !important;
}

body.light-theme .specialist-card:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

body.light-theme .specialist-name {
    color: #1a202c !important;
}

body.light-theme .specialist-occupation {
    color: #3498db !important;
    font-weight: 600;
}

body.light-theme .specialist-details {
    color: #6c757d !important;
}

body.light-theme .specialist-details .detail {
    color: #6c757d !important;
}

body.light-theme .detail i {
    color: #4a5568 !important;
}

/* Стилі для статусу пошуку роботи в картках спеціалістів */
.specialist-details .detail span[data-status="active"] {
    color: #2ecc71 !important;
    font-weight: 600;
}

.specialist-details .detail span[data-status="passive"] {
    color: #f39c12 !important;
    font-weight: 600;
}

.specialist-details .detail span[data-status="employed"] {
    color: #3498db !important;
    font-weight: 600;
}

.specialist-details .detail span[data-status="paused"] {
    color: #95a5a6 !important;
    font-weight: 600;
}

body.light-theme .specialist-skills h4 {
    color: #2d3748;
}

body.light-theme .skill-tag,
body.light-theme .skill {
    background-color: #edf2f7 !important;
    color: #4a5568 !important;
    border: 1px solid #e2e8f0;
}

body.light-theme .specialist-description {
    color: #4a5568 !important;
}

body.light-theme .contact-specialist {
    background-color: #2c5282;
    color: white;
}

body.light-theme .contact-specialist:hover {
    background-color: #2a4365;
}

body.light-theme .published-date {
    color: #718096;
}

body.light-theme .filters-section {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

/* Покращені стилі для темної теми - спеціалісти */
body.dark-theme .specialist-card {
    background: rgba(255, 255, 255, 0.95) !important;
    color: #2c3e50 !important;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

body.dark-theme .specialist-name {
    color: #1a202c !important;
}

body.dark-theme .specialist-occupation {
    color: #3498db !important;
}

body.dark-theme .specialist-description {
    color: #2d3748 !important;
}

body.dark-theme .specialist-details {
    color: #6c757d !important;
}

body.dark-theme .specialist-details .detail {
    color: #6c757d !important;
}

body.dark-theme .detail i {
    color: #4a5568 !important;
}

body.dark-theme .skill,
body.dark-theme .skill-tag {
    background: rgba(52, 152, 219, 0.1) !important;
    color: #2563eb !important;
}

/* Стилі для статусу пошуку роботи в темній темі */
body.dark-theme .specialist-details .detail span[data-status="active"] {
    color: #2ecc71 !important;
    font-weight: 600;
}

body.dark-theme .specialist-details .detail span[data-status="passive"] {
    color: #f39c12 !important;
    font-weight: 600;
}

body.dark-theme .specialist-details .detail span[data-status="employed"] {
    color: #3498db !important;
    font-weight: 600;
}

body.dark-theme .specialist-details .detail span[data-status="paused"] {
    color: #95a5a6 !important;
    font-weight: 600;
}

/* Спеціальні стилі для світло-сірих фонів у темній темі */
body.dark-theme[style*="background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%)"] .specialist-card,
body.dark-theme[style*="background: linear-gradient(135deg, #e3ffe7 0%, #d9e7ff 100%)"] .specialist-card,
body.dark-theme.light-gray-background .specialist-card {
    background: #ffffff !important;
    border: 2px solid #2c3e50 !important;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2) !important;
}

body.dark-theme[style*="background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%)"] .specialist-card:hover,
body.dark-theme[style*="background: linear-gradient(135deg, #e3ffe7 0%, #d9e7ff 100%)"] .specialist-card:hover,
body.dark-theme.light-gray-background .specialist-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.25) !important;
}

/* УНІВЕРСАЛЬНІ СТИЛІ ДЛЯ СВІТЛИХ ФОНІВ - ЗАГОЛОВКИ ТА ТЕКСТ */
body.dark-theme[style*="background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%)"] h1,
body.dark-theme[style*="background: linear-gradient(135deg, #e3ffe7 0%, #d9e7ff 100%)"] h1,
body.dark-theme.light-gray-background h1,
body.dark-theme[style*="background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%)"] h2,
body.dark-theme[style*="background: linear-gradient(135deg, #e3ffe7 0%, #d9e7ff 100%)"] h2,
body.dark-theme.light-gray-background h2,
.force-dark-cards h1,
.force-dark-cards h2,
body.force-dark-cards h1,
body.force-dark-cards h2 {
    color: #000000 !important;
    font-weight: 800 !important;
    text-shadow: none !important;
}

body.dark-theme[style*="background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%)"] p,
body.dark-theme[style*="background: linear-gradient(135deg, #e3ffe7 0%, #d9e7ff 100%)"] p,
body.dark-theme.light-gray-background p,
.force-dark-cards p,
body.force-dark-cards p {
    color: #333333 !important;
    font-weight: 500 !important;
}

body.dark-theme[style*="background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%)"] label,
body.dark-theme[style*="background: linear-gradient(135deg, #e3ffe7 0%, #d9e7ff 100%)"] label,
body.dark-theme.light-gray-background label,
.force-dark-cards label,
body.force-dark-cards label {
    color: #000000 !important;
    font-weight: 600 !important;
}

body.dark-theme[style*="background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%)"] span,
body.dark-theme[style*="background: linear-gradient(135deg, #e3ffe7 0%, #d9e7ff 100%)"] span,
body.dark-theme.light-gray-background span,
.force-dark-cards span,
body.force-dark-cards span {
    color: #000000 !important;
}

/* Стилі для мобільних пристроїв */
@media (max-width: 768px) {
    nav {
        flex-wrap: wrap;
    }
    
    nav ul {
        display: flex;
        flex-direction: row;
        width: 100%;
        justify-content: space-between;
        gap: 5px;
        margin-top: 10px;
    }
    
    nav ul li a {
        font-size: 0.9rem;
        padding: 5px;
        white-space: nowrap;
    }
    
    .logo {
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    #change-bg-btn {
        display: none; /* Ховаємо верхню кнопку зміни фону в мобільній версії */
    }
    
    .theme-switcher.desktop-only {
        display: none; /* Ховаємо десктопний перемикач теми */
    }
    
    .mobile-controls {
        display: flex;
        width: 100%;
        justify-content: center;
        align-items: center;
        gap: 15px;
        margin-top: 10px;
    }
    
    .auth-buttons {
        width: 100%;
        display: flex;
        justify-content: center;
        margin-top: 10px;
        gap: 10px;
    }
    
    .auth-buttons .login-button,
    .auth-buttons .register-button {
        font-size: 0.9rem;
        padding: 8px 15px;
    }
}

@media (max-width: 768px) {
    .mobile-only {
        display: block !important;
    }
    
    .desktop-only {
        display: none !important;
    }
    
    /* Mobile-menu має бути видимим навіть з класом mobile-only */
    .mobile-menu.mobile-only {
        display: flex !important;
    }
}

@media (min-width: 769px) {
    .mobile-only {
        display: none !important;
    }
    
    .desktop-only {
        display: block;
    }
    
    .mobile-controls {
        display: none;
    }
    
    /* Приховуємо mobile-menu на desktop */
    .mobile-menu {
        display: none !important;
    }
}

/* ДЕСКТОПНИЙ HEADER: горизонтальне розташування (усі сторінки) */
@media (min-width: 769px) {
    /* Вся навігація в один рядок: логотип – меню – контролли справа */
    header nav {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        flex-wrap: nowrap !important;
    }

    /* Логотип зліва в один рядок */
    header nav .logo {
        flex-shrink: 0;
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
    }

    /* Горизонтальне меню сторінок */
    header nav ul.desktop-only {
        display: flex !important;
        flex-direction: row !important;
        list-style: none !important;
        gap: 2rem !important;
        margin: 0 !important;
        padding: 0 !important;
        align-items: center !important;
        flex-wrap: nowrap !important;
    }

    header nav ul.desktop-only li {
        margin: 0 !important;
        padding: 0 !important;
    }

    /* Блок контролів справа (тема, мова, логін) в один рядок */
    header nav .controls.desktop-only {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        gap: 15px !important;
        margin-left: auto !important;
        flex-wrap: nowrap !important;
    }

    header nav .controls.desktop-only > * {
        flex-shrink: 0;
    }
}

/* ====== СТИЛІ ДЛЯ HAMBURGER ТА MOBILE MENU ====== */
.hamburger {
    display: none;
}

@media (max-width: 768px) {
    /* Header - мінімальна висота та центрування, один фон */
    header {
        padding: 0 !important;
        min-height: 44px !important;
        height: 44px !important;
        display: flex !important;
        align-items: center !important;
        background: linear-gradient(135deg, #6c757d 0%, #495057 100%) !important;
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        z-index: 1000 !important;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3) !important;
        overflow: hidden !important; /* усе, включно з глобусом, візуально всередині header */
    }
    
    /* Nav - горизонтальне розташування з центруванням logo, без власного фону */
    header nav {
        justify-content: center !important;
        align-items: center !important;
        padding: 0 1.25rem 0 1rem !important;
        min-height: 44px !important;
        height: 44px !important;
        display: flex !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        background: transparent !important;
        flex-wrap: nowrap !important;
        position: relative !important;
    }
    
    /* Спеціальні правила для dashboard-сторінок з .header-inner
       (jobseeker-dashboard-new.html, employer-dashboard-new.html) */
    /* Для сторінок з .header-inner (кабінети) — все усередині самого header */
    header > .container,
    header .header-inner {
        position: relative !important;
        min-height: 44px !important;
        height: 44px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 0 !important;
        width: 100% !important;
        margin: 0 !important;
    }

    header .header-inner .logo {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        height: 44px !important;
        margin: 0 !important;
        padding: 0 !important;
        position: absolute !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        z-index: 1 !important;
    }

    header .header-inner .logo .logo-text {
        line-height: 44px !important;
        margin: 0 !important;
        padding: 0 !important;
        font-size: 1.5rem !important;
    }

    header .header-inner .logo .mini-globe-container {
        margin: 0 0 0 5px !important;
        padding: 0 !important;
        width: 24px !important;
        height: 24px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    
    /* Logo - центрування по горизонталі та вертикалі екрана */
    header nav .logo {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        height: 44px !important;
        flex-direction: row !important;
        margin: 0 !important;
        padding: 0 !important;
        align-self: center !important;
        flex-shrink: 0 !important;
        order: 1 !important;
        position: absolute !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        overflow: visible !important;
    }
    
    header nav .logo .logo-container {
        display: flex !important;
        align-items: center !important;
        margin: 0 !important;
        padding: 0 !important;
        height: 44px !important;
        margin-bottom: 0 !important;
    }
    
    header nav .logo .logo-container a {
        display: flex !important;
        align-items: center !important;
        height: 44px !important;
        margin: 0 !important;
        padding: 0 !important;
        text-decoration: none !important;
        color: inherit !important;
    }
    
    header nav .logo .logo-text {
        line-height: 44px !important;
        margin: 0 !important;
        padding: 0 !important;
        font-size: 1.5rem !important;
        display: inline-block !important;
        vertical-align: middle !important;
        height: auto !important;
    }
    
    header nav .logo .mini-globe-container {
        margin: 0 0 0 5px !important;
        padding: 0 !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        position: relative !important;
        top: 0 !important;
        vertical-align: middle !important;
        width: 24px !important;
        height: 24px !important;
        flex-shrink: 0 !important;
        overflow: visible !important;
    }
    
    header nav .logo .mini-globe-container .mini-globe {
        width: 100% !important;
        height: 100% !important;
    }
    
    /* Hamburger - справа, на одній лінії з логотипом */
    header nav .hamburger,
    header nav .mobile-only.hamburger,
    .hamburger {
        background: none !important;
        border: none !important;
        font-size: 24px !important;
        color: white !important;
        cursor: pointer !important;
        padding: 0 !important;
        margin-right: 0 !important;
        margin-left: 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        height: 44px !important;
        line-height: 44px !important;
        align-self: center !important;
        order: 999 !important;
        flex-shrink: 0 !important;
        width: auto !important;
        position: absolute !important;
        right: 1.25rem !important;
    }
    
    .hamburger:hover {
        opacity: 0.8;
    }
    
    /* Переконатися, що після header немає зайвих елементів */
    header + * {
        margin-top: 0 !important;
    }
    
    /* Переконатися, що body має правильний padding-top для мобільної версії */
    body {
        padding-top: 44px !important;
    }
    
    /* Переконатися, що desktop-only елементи приховані */
    header nav .desktop-only {
        display: none !important;
    }
}

.mobile-menu {
    position: fixed !important;
    top: 44px !important;
    right: -100% !important;
    width: 28% !important;
    max-width: 130px !important;
    min-width: 120px !important;
    height: auto !important;
    max-height: calc(100vh - 44px) !important;
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%) !important;
    transition: right 0.3s ease !important;
    z-index: 9999 !important;
    padding: 12px 8px !important;
    overflow-y: auto !important;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.3) !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 2px !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* iOS Safari: закрите меню не повинно перехоплювати тачі (z-index високий, блок «висить» за екраном) */
.mobile-menu:not(.open) {
    pointer-events: none !important;
    visibility: hidden !important;
}

.mobile-menu.open {
    right: 0 !important;
    pointer-events: auto !important;
    visibility: visible !important;
}

/* Темна тема для мобільного меню - чорний колір як на index сторінці */
body:not(.light-theme) .mobile-menu {
    background: rgba(40, 45, 50, 0.96) !important;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
    border-left: 1px solid rgba(255, 255, 255, 0.04);
    padding: 10px 8px;
    gap: 2px;
}

/* Стилі для елементів меню в темній темі */
body:not(.light-theme) .mobile-menu ul {
    gap: 2px !important;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

body:not(.light-theme) .mobile-menu ul li {
    margin: 0 !important;
    padding: 0 !important;
}

body:not(.light-theme) .mobile-menu a,
body:not(.light-theme) .mobile-menu button {
    margin: 2px 0 !important;
    padding: 6px 8px !important;
    border-radius: 8px !important;
    box-shadow: none !important;
    border-width: 1px !important;
    border-color: rgba(255, 255, 255, 0.16) !important;
}

body:not(.light-theme) .mobile-menu a:hover,
body:not(.light-theme) .mobile-menu button:hover {
    background-color: rgba(255, 255, 255, 0.06) !important;
}

/* ====== СВІТЛА ТЕМА для мобільного меню ====== */
body.light-theme .mobile-menu {
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15) !important;
    border-left: 1px solid rgba(0, 0, 0, 0.08) !important;
}

/* Прибираємо білу рамку навколо ul в світлій темі */
body.light-theme .mobile-menu ul {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    gap: 2px !important;
}

/* Зменшуємо відстані між пунктами меню в світлій темі */
body.light-theme .mobile-menu ul li {
    margin: 0 !important;
    padding: 0 !important;
}

body.light-theme .mobile-menu ul li a {
    color: #1f2937 !important;
    background: transparent !important;
    border: none !important;
    padding: 6px 8px !important;
    margin: 2px 0 !important;
    border-radius: 6px !important;
}

body.light-theme .mobile-menu ul li a:hover {
    background-color: rgba(0, 0, 0, 0.05) !important;
    color: #111827 !important;
}

/* Кнопки в світлій темі */
body.light-theme .mobile-menu button {
    background: rgba(0, 0, 0, 0.04) !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
    color: #1f2937 !important;
    padding: 6px 8px !important;
    margin: 2px 0 !important;
    border-radius: 6px !important;
}

body.light-theme .mobile-menu button:hover {
    background: rgba(0, 0, 0, 0.08) !important;
    border-color: rgba(0, 0, 0, 0.15) !important;
    color: #111827 !important;
}

.mobile-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.mobile-menu ul li {
    margin-bottom: 0;
}

.mobile-menu ul li a {
    display: block;
    color: white;
    text-decoration: none;
    padding: 6px 5px;
    border-radius: 4px;
    transition: background-color 0.3s ease;
    text-align: left;
    font-size: 13px;
    line-height: 1.2;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
    margin-bottom: 0;
}

.mobile-menu ul li a:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.mobile-menu button {
    width: 100%;
    padding: 6px 5px;
    margin-bottom: 2px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    color: white;
    font-size: 13px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    text-align: left;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
}

.mobile-menu button:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

/* Стилі для футера з посиланнями "Контакти" та "Про нас" */
.footer-contacts a.active {
    font-weight: bold;
    color: #2ecc71;
}

body.light-theme .footer-contacts a.active {
    color: #ffffff;
}

@media (max-width: 768px) {
    .section h2, 
    .specialist-main-title,
    .section-title,
    .contacts-section h2 {
        margin-top: 10px;
        padding-top: 15px;
    }
    
    .container {
        padding-top: 15px;
    }
    
    .specialists-container,
    .vacancies-container,
    .contacts-container {
        padding-top: 20px;
    }
}

/* Змінюємо стилі для заголовків у світлій темі на всіх сторінках */
body.light-theme .section h2,
body.light-theme .specialist-main-title,
body.light-theme .vacancies-container h2,
body.light-theme .contacts-section h2,
body.light-theme .section-title {
    color: #2d3748;
    text-shadow: none;
    background-color: transparent;
    padding: 0;
    border-radius: 0;
    display: block;
    margin-bottom: 15px;
}

body.light-theme .specialist-description,
body.light-theme .section-description {
    color: #2d3748;
    text-shadow: none;
    background-color: transparent;
    padding: 0;
    border-radius: 0;
    display: block;
}

/* Додатковий відступ для заголовків на мобільних пристроях для кращої видимості */
@media (max-width: 768px) {
    body.light-theme .section h2,
    body.light-theme .specialist-main-title,
    body.light-theme .vacancies-container h2,
    body.light-theme .contacts-section h2,
    body.light-theme .section-title {
        margin-top: 20px;
        padding: 0;
        width: 100%;
        text-align: center;
        color: #2d3748;
        background-color: transparent;
    }
    
    body.light-theme .specialist-description,
    body.light-theme .section-description {
        display: block;
        width: 100%;
        text-align: center;
        margin-bottom: 15px;
        color: #2d3748;
        background-color: transparent;
    }
}

/* Стилі для кнопок авторизації в навігаційній панелі */
.auth-buttons {
    display: flex;
    gap: 10px;
    margin-left: 20px;
}

.auth-buttons .btn {
    padding: 8px 15px;
    font-size: 14px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.login-button {
    background-color: transparent;
    border: 1px solid #3498db;
    color: #3498db;
}

.login-button:hover {
    background-color: rgba(52, 152, 219, 0.1);
}

.register-button {
    background-color: #3498db;
    color: white;
    border: 1px solid #3498db;
}

.register-button:hover {
    background-color: #2980b9;
}

body.light-theme .login-button {
    border-color: #2563eb;
    color: #2563eb;
}

body.light-theme .login-button:hover {
    background-color: rgba(37, 99, 235, 0.1);
}

body.light-theme .register-button {
    background-color: #2563eb;
    border-color: #2563eb;
}

body.light-theme .register-button:hover {
    background-color: #1d4ed8;
}

@media (max-width: 768px) {
    .auth-buttons {
        margin-left: 0;
        margin-top: 10px;
        width: 100%;
    }
    
    .auth-buttons .btn {
        flex: 1;
        text-align: center;
    }
}

/* Стилі для форм валідації */
.form-error {
    border-color: #e74c3c !important;
    box-shadow: 0 0 3px rgba(231, 76, 60, 0.5) !important;
    background-color: rgba(231, 76, 60, 0.05);
}

.form-valid {
    border-color: #2ecc71 !important;
    box-shadow: 0 0 3px rgba(46, 204, 113, 0.5) !important;
    background-color: rgba(46, 204, 113, 0.05);
}

.error-message {
    color: #e74c3c;
    font-size: 0.85rem;
    margin-top: 5px;
    padding-left: 5px;
    display: none;
}

body.light-theme .error-message {
    color: #e74c3c;
}

/* Стилі для зірочки обов'язкових полів */
label.required::after {
    content: " *";
    color: #e74c3c;
}

.form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 15px;
}

.form-row .form-group {
    flex: 1;
    min-width: 250px;
}

/* Стилі для опціональних полів */
.optional-field {
    color: #3498db;
    font-size: 0.85rem;
    font-weight: normal;
}

.resume-optional-hint {
    font-size: 0.9rem;
    color: #3498db;
    margin-bottom: 10px;
    font-style: italic;
}

body.light-theme .optional-field {
    color: #2980b9;
}

body.light-theme .resume-optional-hint {
    color: #2980b9;
}

/* Модифікації для світлої теми */
body.light-theme .form-error {
    border-color: #e74c3c !important;
    background-color: rgba(231, 76, 60, 0.05);
}

body.light-theme .form-valid {
    border-color: #2ecc71 !important;
    background-color: rgba(46, 204, 113, 0.05);
}

@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
        gap: 10px;
    }
    
    .form-row .form-group {
        min-width: 100%;
    }
}

/* Auth Pages Styles */
.auth-container {
    max-width: 450px;
    margin: 40px auto;
    padding: 25px;
    background-color: #1e293b;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

body.light-theme .auth-container {
    background-color: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.auth-title {
    font-size: 1.8rem;
    margin-bottom: 10px;
    text-align: center;
    color: #f5f5f5;
}

.auth-subtitle {
    text-align: center;
    color: #94a3b8;
    margin-bottom: 25px;
    font-size: 0.95rem;
}

body.light-theme .auth-title {
    color: #1e293b;
}

body.light-theme .auth-subtitle {
    color: #64748b;
}

.auth-btn {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 5px;
    background-color: #3498db;
    color: white;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s;
    display: block;
    text-align: center;
    margin: 15px 0;
    font-weight: 500;
    text-decoration: none;
}

.auth-btn:hover {
    background-color: #2980b9;
}

.auth-btn.secondary {
    background-color: transparent;
    border: 1px solid #3498db;
    color: #3498db;
}

.auth-btn.secondary:hover {
    background-color: rgba(52, 152, 219, 0.1);
}

.auth-links {
    text-align: center;
    margin: 15px 0;
}

.auth-links a {
    color: #3498db;
    text-decoration: none;
    font-size: 0.9rem;
}

.auth-links a:hover {
    text-decoration: underline;
}

body.light-theme .auth-links a {
    color: #2563eb;
}

.auth-separator {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 20px 0;
}

.auth-separator::before,
.auth-separator::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.auth-separator span {
    padding: 0 10px;
    color: #94a3b8;
    font-size: 0.9rem;
}

body.light-theme .auth-separator::before,
body.light-theme .auth-separator::after {
    border-bottom-color: #e2e8f0;
}

body.light-theme .auth-separator span {
    color: #64748b;
}

.social-login {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 15px;
}

.social-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.3s, background-color 0.3s;
}

.social-btn:hover {
    transform: translateY(-3px);
    background-color: rgba(255, 255, 255, 0.2);
}

.social-btn img {
    width: 24px;
    height: 24px;
}

body.light-theme .social-btn {
    background-color: #f1f5f9;
}

body.light-theme .social-btn:hover {
    background-color: #e2e8f0;
}

.remember-me {
    display: flex;
    align-items: center;
    margin: 15px 0;
}

.remember-me input {
    margin-right: 8px;
}

.remember-me label {
    font-size: 0.9rem;
    color: #94a3b8;
}

body.light-theme .remember-me label {
    color: #64748b;
}

.terms-agreement {
    margin: 15px 0;
    font-size: 0.9rem;
    color: #94a3b8;
    display: flex;
    align-items: flex-start;
}

.terms-agreement input {
    margin-right: 8px;
    margin-top: 3px;
}

.terms-agreement a {
    color: #3498db;
    text-decoration: none;
}

.terms-agreement a:hover {
    text-decoration: underline;
}

body.light-theme .terms-agreement {
    color: #64748b;
}

body.light-theme .terms-agreement a {
    color: #2563eb;
}

/* More compact account type selector */
.account-type-selector {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    width: 100%;
}

.account-type-option {
    flex: 1;
    background-color: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.account-type-option:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
}

.account-type-option.selected {
    border-color: #3498db;
    background-color: rgba(52, 152, 219, 0.1);
    transform: translateY(-3px);
}

.account-type-option .icon {
    font-size: 2rem;
    margin-bottom: 10px;
}

.account-type-option h3 {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.account-type-option p {
    opacity: 0.8;
    font-size: 0.85rem;
}

body.light-theme .account-type-option {
    background-color: #f8fafc;
    border-color: #e2e8f0;
}

body.light-theme .account-type-option:hover {
    background-color: #f1f5f9;
}

body.light-theme .account-type-option.selected {
    border-color: #2563eb;
    background-color: rgba(37, 99, 235, 0.1);
}

/* More compact fields sections */
.jobseeker-fields, .employer-fields {
    padding: 15px;
    background-color: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    margin-bottom: 15px;
}

body.light-theme .jobseeker-fields, 
body.light-theme .employer-fields {
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
}

@media (max-width: 768px) {
    .account-type-selector {
        flex-direction: column;
    }
    
    .auth-container {
        margin: 20px auto;
        padding: 20px 15px;
    }
}

/* Стилі для перемикача мов - оновлені */
.language-switcher {
    position: relative;
    display: inline-block;
    margin-left: 10px;
    z-index: 1001; /* Забезпечуємо, щоб мовний перемикач був над іншими елементами */
}

.language-btn {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 22px;
    color: #fff;
    padding: 4px 14px 4px 8px;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: unset;
    width: auto;
    height: 36px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    transition: all 0.2s ease;
}

.language-btn:hover {
    background: rgba(49, 130, 206, 0.13);
    border-color: #3182ce;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.current-flag {
    font-size: 22px;
    margin-right: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: none;
    box-shadow: none;
}

#lang-arrow {
    font-size: 0.7em;
    color: #aaa;
    margin-left: 2px;
    user-select: none;
    transition: transform 0.2s ease;
}

.language-btn:hover #lang-arrow {
    transform: rotate(180deg);
    color: #fff;
}

/* Нові стилі для випадаючого списку мов */
.language-flags {
    position: absolute;
    top: 100%;
    right: 0;
    width: 200px;
    background-color: #1a2a43;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    max-height: 300px;
    overflow-y: auto;
    margin-top: 8px;
    padding: 8px 0;
    display: none; /* За замовчуванням схований */
    animation: fadeIn 0.2s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.language-option {
    padding: 10px 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: background-color 0.3s;
    color: #f5f5f5;
    white-space: nowrap;
    line-height: 1.2;
}

.language-option:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.flag-emoji {
    font-size: 1.2em;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
}

.flag-label {
    font-size: 0.95em;
    font-weight: 500;
}

/* Стилі для скроллбару у випадаючому списку */
.language-flags::-webkit-scrollbar {
    width: 6px;
}

.language-flags::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 3px;
}

.language-flags::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}

.language-flags::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Стилі випадаючого списку для світлої теми */
body.light-theme .language-flags {
    background-color: #ffffff;
    border-color: #e2e8f0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

body.light-theme .language-flags::-webkit-scrollbar-track {
    background: #f1f5f9;
}

body.light-theme .language-flags::-webkit-scrollbar-thumb {
    background: #cbd5e0;
}

body.light-theme .language-flags::-webkit-scrollbar-thumb:hover {
    background: #a0aec0;
}

body.light-theme .language-option {
    color: #2d3748;
}

body.light-theme .language-option:hover {
    background-color: #f7fafc;
}

body.light-theme .language-btn {
    background: #f7fafc;
    color: #2d3748;
    border: 1px solid #cbd5e0;
}

body.light-theme .language-btn:hover {
    background: #e2e8f0;
    border-color: #3182ce;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

body.light-theme .current-flag {
    background: none;
    color: #2d3748;
    box-shadow: none;
}

body.light-theme #lang-arrow {
    color: #3182ce;
}

body.light-theme .language-btn:hover #lang-arrow {
    color: #2563eb;
}

/* Прапорці (Windows: UA/GB як літери) — темний колір у світлій темі */
body.light-theme .language-flags .flag-emoji,
body.light-theme .current-flag,
body.light-theme header .current-flag,
body.light-theme header .flag-emoji {
    color: #1f2937 !important;
}

body.light-theme .language-flags .language-option,
body.light-theme .language-flags .flag-label {
    color: #1f2937 !important;
}

/* Медіа-запити для мовного перемикача на мобільних пристроях */
@media (max-width: 768px) {
    .language-flags .flag-emoji.mobile-lang-text-flag,
    #mobile-language-toggle .mobile-lang-text-flag {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 24px;
        font-size: 0.72rem;
        font-weight: 700;
        letter-spacing: 0.04em;
        line-height: 1;
        text-align: center;
    }

    .language-btn {
        padding: 3px 10px 3px 6px;
        height: 34px;
        font-size: 16px;
    }
    
    .current-flag {
        font-size: 20px;
        width: 24px;
        height: 24px;
    }
    
    .language-flags {
        width: 180px;
        right: -20px;
    }
    
    .language-option {
        padding: 8px 12px;
    }
    
    .flag-emoji {
        font-size: 1.1em;
    }
    
    .flag-label {
        font-size: 0.9em;
    }
}

/* Стилі для віджету вибору фону */
.color-palette {
    position: absolute;
    top: 45px;
    right: 0;
    background-color: #1a2a43;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    width: 320px;
    padding: 20px;
    animation: fadeIn 0.2s ease-in-out;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Для світлої теми */
body.light-theme .color-palette {
    background-color: #ffffff;
    border-color: #e2e8f0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.palette-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
    text-align: center;
    color: white;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
}

body.light-theme .palette-title {
    color: #2d3748;
    border-bottom-color: #e2e8f0;
}

.colors-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    padding-top: 5px;
    padding-bottom: 5px;
}

.color-option {
    width: 35px;
    height: 35px;
    border-radius: 6px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s ease;
}

.color-option:hover {
    transform: scale(1.1);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.color-option.active {
    border-color: white;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

body.light-theme .color-option:hover {
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

body.light-theme .color-option.active {
    border-color: #3182ce;
    box-shadow: 0 0 10px rgba(49, 130, 206, 0.5);
}

body.light-theme .color-option.active {
    border-color: #3182ce;
    box-shadow: 0 0 10px rgba(49, 130, 206, 0.5);
}

.close-button {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 1.2rem;
    cursor: pointer;
    color: #aaa;
    transition: color 0.3s;
}

.close-button:hover {
    color: #fff;
}

body.light-theme .close-button:hover {
    color: #333;
}

/* Контейнер для кнопки фону та позиціонування */
.bg-button-container {
    position: relative;
}

body.light-theme .auth-main-btn {
    background: linear-gradient(135deg, #5a6c7d, #4a5568);
    color: #fff;
    border: none;
    box-shadow: 0 4px 15px rgba(90, 108, 125, 0.3);
}
body.light-theme .auth-main-btn:hover {
    background: linear-gradient(135deg, #4a5568, #5a6c7d);
    color: #fff;
    box-shadow: 0 6px 20px rgba(90, 108, 125, 0.4);
}

/* === AUTH MODAL GLOBAL STYLES (KuBeyond) === */
/* AUTH MODAL STYLES */
#auth-modal.modal {
    position: fixed !important;
    top: 0; left: 0; right: 0; bottom: 0;
    /* inset:0 вже задає розмір; 100vw може провокувати горизонтальний скрол на Windows */
    width: 100%; height: 100%;
    z-index: 99999;
    background: rgba(0, 0, 0, 0.85);
    display: none;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}
#auth-modal.modal[style*="display: flex"] {
    display: flex !important;
}
.auth-modal-content {
    background: linear-gradient(145deg, #2c3e50 0%, #34495e 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.4), 0 10px 30px rgba(0, 0, 0, 0.2);
    padding: 28px 24px;
    min-width: 420px;
    max-width: 520px;
    width: 90vw;
    max-height: 90vh;
    overflow-y: auto;
    color: #ecf0f1;
    position: relative;
    animation: modalSlideIn 0.4s ease-out;
}
@media (max-width: 600px) {
  .auth-modal-content { 
    padding: 20px 16px; 
    min-width: 0; 
    max-width: 95vw;
    width: 95vw;
    border-radius: 16px;
  }
  #auth-modal .modal-title {
    font-size: 1.4rem;
  }
  #auth-modal .modal-header::after {
    width: 40px;
  }
}
#auth-modal .modal-header { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    margin-bottom: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    padding-bottom: 16px;
    position: relative;
}
#auth-modal .modal-header::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, #3498db, #2980b9);
    border-radius: 1px;
}
#auth-modal .modal-title { 
    font-size: 1.6rem; 
    font-weight: 700; 
    color: #ffffff;
    margin: 0;
    text-shadow: none;
    letter-spacing: 0.5px;
    font-family: 'Montserrat', sans-serif;
}
#auth-modal .modal-close { 
    font-size: 1.8rem; 
    cursor: pointer; 
    color: #bdc3c7;
    transition: all 0.3s ease;
    line-height: 1;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    outline: none;
}
#auth-modal .modal-close:hover {
    color: #ffffff;
    background: rgba(231, 76, 60, 0.9);
    transform: rotate(90deg) scale(1.1);
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.4);
}
#auth-modal .modal-tabs { 
    display: flex; 
    gap: 8px; 
    margin-bottom: 24px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    padding: 6px;
}
#auth-modal .modal-tab { 
    background: none; 
    border: none; 
    color: #bdc3c7; 
    font-weight: 600; 
    font-size: 1rem; 
    padding: 12px 20px; 
    border-radius: 8px; 
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
    text-align: center;
}
#auth-modal .modal-tab.active { 
    background: linear-gradient(135deg, #3498db, #2980b9); 
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.4);
    transform: translateY(-2px);
}
#auth-modal .modal-tab:hover:not(.active) {
    color: #ecf0f1;
    background: rgba(255, 255, 255, 0.1);
}
#auth-modal .auth-form { 
    display: flex; 
    flex-direction: column; 
    gap: 16px; 
}
#auth-modal .auth-btn { 
    background: linear-gradient(135deg, #3498db, #2980b9); 
    color: #ffffff; 
    border: none; 
    border-radius: 10px; 
    padding: 14px 0; 
    font-weight: 600; 
    cursor: pointer;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}
#auth-modal .auth-btn:hover { 
    background: linear-gradient(135deg, #2980b9, #3498db);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
}
#auth-modal .form-group label { 
    color: #ecf0f1; 
    font-weight: 600; 
    font-size: 0.95rem;
    margin-bottom: 8px;
    display: block;
}
#auth-modal .form-group input { 
    width: 100%; 
    padding: 12px 16px; 
    border-radius: 8px; 
    border: 1px solid rgba(255, 255, 255, 0.2); 
    margin-top: 0;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.1);
    color: #ecf0f1;
}
#auth-modal .form-group input:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.3);
    background: rgba(255, 255, 255, 0.15);
}
#auth-modal .form-group input::placeholder {
    color: #bdc3c7;
}
#auth-modal .form-group input[type="checkbox"] { 
    width: auto; 
    margin-right: 8px;
}
#auth-modal .remember-me { 
    display: flex; 
    align-items: center; 
    gap: 8px;
    margin: 12px 0;
}
#auth-modal .remember-me label {
    margin-bottom: 0;
    font-weight: 500;
    color: #bdc3c7;
}
#auth-modal .auth-links { 
    margin-top: 16px; 
    text-align: center;
}
#auth-modal .auth-links a { 
    color: #3498db; 
    text-decoration: none; 
    font-size: 0.9em;
    font-weight: 500;
    transition: all 0.3s ease;
}
#auth-modal .auth-links a:hover {
    color: #5dade2;
    text-decoration: underline;
}
#auth-modal .terms-agreement { 
    font-size: 0.85em; 
    color: #bdc3c7; 
    margin-top: 16px;
    line-height: 1.5;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}
#auth-modal .terms-agreement a {
    color: #3498db;
    text-decoration: none;
}
#auth-modal .terms-agreement a:hover {
    color: #5dade2;
    text-decoration: underline;
}

/* Dark theme support for auth modal */
@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.95);
        filter: blur(5px);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

/* Стилі для вибору типу аккаунту */
#auth-modal .account-type-selector {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    width: 100%;
}

#auth-modal .account-type-option {
    flex: 1;
    background: rgba(255, 255, 255, 0.08);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 20px 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

#auth-modal .account-type-option:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-3px);
    border-color: rgba(52, 152, 219, 0.5);
}

#auth-modal .account-type-option.selected {
    border-color: #3498db;
    background: rgba(52, 152, 219, 0.15);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(52, 152, 219, 0.2);
}

#auth-modal .account-type-option .icon {
    font-size: 2.5rem;
    margin-bottom: 12px;
    display: block;
}

#auth-modal .account-type-option h3 {
    font-size: 1.1rem;
    margin: 0 0 8px 0;
    color: #ecf0f1;
    font-weight: 600;
}

#auth-modal .account-type-option p {
    opacity: 0.8;
    font-size: 0.85rem;
    margin: 0;
    color: #bdc3c7;
}

/* Спеціальні поля для різних типів користувачів */
#auth-modal .jobseeker-fields,
#auth-modal .employer-fields {
    padding: 15px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    margin-top: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Dark theme support - removed as we use unified dark theme */

/* --- Сучасний профіль шукача роботи --- */
.profile-card {
  max-width: 420px;
  margin: 40px auto 0 auto;
  background: #23293a;
  border-radius: 18px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.25);
  padding: 32px 28px;
  color: #fff;
}
.profile-photo-section {
  text-align: center;
  margin-bottom: 18px;
}
.profile-photo {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #4aa3ff;
  margin-bottom: 10px;
  background: #fff;
}
.upload-btn {
  background: #4aa3ff;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 6px 18px;
  cursor: pointer;
  margin-bottom: 10px;
  font-weight: 600;
  font-size: 1rem;
  transition: background 0.2s;
}
.upload-btn:hover {
  background: #3578c7;
}
.profile-fields label {
  display: block;
  margin-top: 12px;
  font-weight: 500;
}
.profile-fields input {
  width: 100%;
  padding: 8px 10px;
  border-radius: 7px;
  border: 1px solid #3a4256;
  background: #1a1f2b;
  color: #fff;
  margin-top: 4px;
  font-size: 1rem;
}
.profile-actions {
  display: flex;
  justify-content: space-between;
  margin-top: 22px;
  gap: 10px;
}
.save-btn, .add-to-specialists-btn {
  background: #4aa3ff;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 10px 18px;
  font-weight: 600;
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.2s;
}
.save-btn:hover, .add-to-specialists-btn:hover {
  background: #3578c7;
}
@media (max-width: 600px) {
  .profile-card {
    padding: 18px 6vw;
    max-width: 98vw;
  }
  .profile-photo {
    width: 80px;
    height: 80px;
  }
  .profile-actions {
    flex-direction: column;
    gap: 12px;
  }
}
/* --- Кінець стилів профілю --- */

/* --- Сучасний вигляд відгуків на вакансії --- */
.application-item {
  background: #23293a;
  border-radius: 14px;
  box-shadow: 0 4px 18px rgba(0,0,0,0.13);
  padding: 22px 20px;
  margin-bottom: 18px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: #fff;
}
.applicant-info {
  flex: 2 1 220px;
  min-width: 180px;
}
.applicant-info h3 {
  margin: 0 0 6px 0;
  font-size: 1.18rem;
  color: #4aa3ff;
}
.applicant-meta {
  font-size: 0.98rem;
  color: #b0b8c9;
  margin-bottom: 2px;
}
.status {
  flex: 0 0 120px;
  text-align: center;
  font-weight: 600;
  border-radius: 8px;
  padding: 7px 0;
  font-size: 1rem;
  background: #1a2130;
  color: #f7c948;
  border: 1px solid #3a425a;
}
.status.approved { background: #2ecc71; color: #fff; border-color: #27ae60; }
.status.rejected { background: #e74c3c; color: #fff; border-color: #c0392b; }
.status.pending { background: #1a2130; color: #f7c948; border-color: #3a425a; }

/* Спеціальна кнопка для перегляду вакансії у блоці "Мої відгуки" */
.application-actions .view-vacancy-btn {
  background: #2563eb;
  color: #ffffff;
  border-radius: 8px;
  padding: 8px 16px;
  border: none;
  cursor: pointer;
  font-weight: 600;
}

.application-actions .view-vacancy-btn:hover {
  background: #1d4ed8;
}
.application-actions {
  flex: 1 1 160px;
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  align-items: center;
}
.view-resume-btn, .remove-application-btn {
  background: #4aa3ff;
  color: #fff;
  border: none;
  border-radius: 7px;
  padding: 7px 18px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s;
}
.view-resume-btn:hover { background: #3578c7; }
.remove-application-btn {
  background: #e74c3c;
  margin-left: 0;
}
.remove-application-btn:hover { background: #c0392b; }
@media (max-width: 700px) {
  .application-item {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 16px 8px;
  }
  .application-actions {
    justify-content: flex-start;
  }
  .status {
    margin-bottom: 8px;
  }
}

/* СТИЛІ ДЛЯ ПАНЕЛІ РОБОТОДАВЦЯ НА СВІТЛО-СІРИХ ФОНАХ */
/* Виправлення видимості форми панелі роботодавця на світлих фонах */
body.dark-theme[style*="background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%)"] .panel-section,
body.dark-theme[style*="background: linear-gradient(135deg, #e3ffe7 0%, #d9e7ff 100%)"] .panel-section,
body.dark-theme.light-gray-background .panel-section,
.force-dark-cards .panel-section,
body.force-dark-cards .panel-section,
[style*="f5f7fa"] .panel-section,
[style*="c3cfe2"] .panel-section,
[style*="e3ffe7"] .panel-section,
[style*="d9e7ff"] .panel-section {
    background: #ffffff !important;
    border: 4px solid #000000 !important;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.5) !important;
    color: #000000 !important;
    position: relative !important;
    z-index: 10 !important;
}

/* Заголовки панелі */
body.dark-theme[style*="background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%)"] .panel-title,
body.dark-theme[style*="background: linear-gradient(135deg, #e3ffe7 0%, #d9e7ff 100%)"] .panel-title,
body.dark-theme.light-gray-background .panel-title,
.force-dark-cards .panel-title,
body.force-dark-cards .panel-title,
[style*="f5f7fa"] .panel-title,
[style*="c3cfe2"] .panel-title,
[style*="e3ffe7"] .panel-title,
[style*="d9e7ff"] .panel-title {
    color: #000000 !important;
    font-weight: 900 !important;
    text-shadow: none !important;
    font-size: 2.2rem !important;
}

/* Заголовки секцій */
body.dark-theme[style*="background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%)"] .panel-section h2,
body.dark-theme[style*="background: linear-gradient(135deg, #e3ffe7 0%, #d9e7ff 100%)"] .panel-section h2,
body.dark-theme.light-gray-background .panel-section h2,
.force-dark-cards .panel-section h2,
body.force-dark-cards .panel-section h2,
[style*="f5f7fa"] .panel-section h2,
[style*="c3cfe2"] .panel-section h2,
[style*="e3ffe7"] .panel-section h2,
[style*="d9e7ff"] .panel-section h2 {
    color: #000000 !important;
    font-weight: 800 !important;
    font-size: 1.6rem !important;
}

/* Мітки форм */
body.dark-theme[style*="background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%)"] .panel-section label,
body.dark-theme[style*="background: linear-gradient(135deg, #e3ffe7 0%, #d9e7ff 100%)"] .panel-section label,
body.dark-theme.light-gray-background .panel-section label,
.force-dark-cards .panel-section label,
body.force-dark-cards .panel-section label,
[style*="f5f7fa"] .panel-section label,
[style*="c3cfe2"] .panel-section label,
[style*="e3ffe7"] .panel-section label,
[style*="d9e7ff"] .panel-section label {
    color: #000000 !important;
    font-weight: 700 !important;
    font-size: 1rem !important;
}

/* Поля вводу */
body.dark-theme[style*="background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%)"] .panel-section input,
body.dark-theme[style*="background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%)"] .panel-section select,
body.dark-theme[style*="background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%)"] .panel-section textarea,
body.dark-theme[style*="background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%)"] .form-control,
body.dark-theme[style*="background: linear-gradient(135deg, #e3ffe7 0%, #d9e7ff 100%)"] .panel-section input,
body.dark-theme[style*="background: linear-gradient(135deg, #e3ffe7 0%, #d9e7ff 100%)"] .panel-section select,
body.dark-theme[style*="background: linear-gradient(135deg, #e3ffe7 0%, #d9e7ff 100%)"] .panel-section textarea,
body.dark-theme[style*="background: linear-gradient(135deg, #e3ffe7 0%, #d9e7ff 100%)"] .form-control,
body.dark-theme.light-gray-background .panel-section input,
body.dark-theme.light-gray-background .panel-section select,
body.dark-theme.light-gray-background .panel-section textarea,
body.dark-theme.light-gray-background .form-control,
.force-dark-cards .panel-section input,
.force-dark-cards .panel-section select,
.force-dark-cards .panel-section textarea,
.force-dark-cards .form-control,
body.force-dark-cards .panel-section input,
body.force-dark-cards .panel-section select,
body.force-dark-cards .panel-section textarea,
body.force-dark-cards .form-control,
[style*="f5f7fa"] .panel-section input,
[style*="f5f7fa"] .panel-section select,
[style*="f5f7fa"] .panel-section textarea,
[style*="f5f7fa"] .form-control,
[style*="c3cfe2"] .panel-section input,
[style*="c3cfe2"] .panel-section select,
[style*="c3cfe2"] .panel-section textarea,
[style*="c3cfe2"] .form-control,
[style*="e3ffe7"] .panel-section input,
[style*="e3ffe7"] .panel-section select,
[style*="e3ffe7"] .panel-section textarea,
[style*="e3ffe7"] .form-control,
[style*="d9e7ff"] .panel-section input,
[style*="d9e7ff"] .panel-section select,
[style*="d9e7ff"] .panel-section textarea,
[style*="d9e7ff"] .form-control {
    background-color: #ffffff !important;
    color: #000000 !important;
    border: 2px solid #374151 !important;
    font-weight: 600 !important;
}

/* Options в select */
body.dark-theme[style*="background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%)"] .panel-section option,
body.dark-theme[style*="background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%)"] .form-control option,
body.dark-theme[style*="background: linear-gradient(135deg, #e3ffe7 0%, #d9e7ff 100%)"] .panel-section option,
body.dark-theme[style*="background: linear-gradient(135deg, #e3ffe7 0%, #d9e7ff 100%)"] .form-control option,
body.dark-theme.light-gray-background .panel-section option,
body.dark-theme.light-gray-background .form-control option,
.force-dark-cards .panel-section option,
.force-dark-cards .form-control option,
body.force-dark-cards .panel-section option,
body.force-dark-cards .form-control option,
[style*="f5f7fa"] .panel-section option,
[style*="f5f7fa"] .form-control option,
[style*="c3cfe2"] .panel-section option,
[style*="c3cfe2"] .form-control option,
[style*="e3ffe7"] .panel-section option,
[style*="e3ffe7"] .form-control option,
[style*="d9e7ff"] .panel-section option,
[style*="d9e7ff"] .form-control option {
    background-color: #ffffff !important;
    color: #000000 !important;
}

/* Кнопки */
body.dark-theme[style*="background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%)"] .search-button,
body.dark-theme[style*="background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%)"] .publish-vacancy-btn,
body.dark-theme[style*="background: linear-gradient(135deg, #e3ffe7 0%, #d9e7ff 100%)"] .search-button,
body.dark-theme[style*="background: linear-gradient(135deg, #e3ffe7 0%, #d9e7ff 100%)"] .publish-vacancy-btn,
body.dark-theme.light-gray-background .search-button,
body.dark-theme.light-gray-background .publish-vacancy-btn,
.force-dark-cards .search-button,
.force-dark-cards .publish-vacancy-btn,
body.force-dark-cards .search-button,
body.force-dark-cards .publish-vacancy-btn,
[style*="f5f7fa"] .search-button,
[style*="f5f7fa"] .publish-vacancy-btn,
[style*="c3cfe2"] .search-button,
[style*="c3cfe2"] .publish-vacancy-btn,
[style*="e3ffe7"] .search-button,
[style*="e3ffe7"] .publish-vacancy-btn,
[style*="d9e7ff"] .search-button,
[style*="d9e7ff"] .publish-vacancy-btn,
body.dark-theme[style*="background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%)"] .publish-btn,
body.dark-theme[style*="background: linear-gradient(135deg, #e3ffe7 0%, #d9e7ff 100%)"] .publish-btn,
body.dark-theme.light-gray-background .publish-btn,
.force-dark-cards .publish-btn,
body.force-dark-cards .publish-btn,
[style*="f5f7fa"] .publish-btn,
[style*="c3cfe2"] .publish-btn,
[style*="e3ffe7"] .publish-btn,
[style*="d9e7ff"] .publish-btn,
body.dark-theme[style*="background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%)"] .reset-btn,
body.dark-theme[style*="background: linear-gradient(135deg, #e3ffe7 0%, #d9e7ff 100%)"] .reset-btn,
body.dark-theme.light-gray-background .reset-btn,
.force-dark-cards .reset-btn,
body.force-dark-cards .reset-btn,
[style*="f5f7fa"] .reset-btn,
[style*="c3cfe2"] .reset-btn,
[style*="e3ffe7"] .reset-btn,
[style*="d9e7ff"] .reset-btn {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%) !important;
    color: #ffffff !important;
    border: 4px solid #000000 !important;
    font-weight: 800 !important;
    font-size: 1.1rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    box-shadow: 0 8px 25px rgba(52, 152, 219, 0.6) !important;
    border-radius: 8px !important;
    padding: 12px 20px !important;
    transition: all 0.3s ease !important;
}

/* Hover ефекти для кнопок */
body.dark-theme[style*="background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%)"] .search-button:hover,
body.dark-theme[style*="background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%)"] .publish-vacancy-btn:hover,
body.dark-theme[style*="background: linear-gradient(135deg, #e3ffe7 0%, #d9e7ff 100%)"] .search-button:hover,
body.dark-theme[style*="background: linear-gradient(135deg, #e3ffe7 0%, #d9e7ff 100%)"] .publish-vacancy-btn:hover,
body.dark-theme.light-gray-background .search-button:hover,
body.dark-theme.light-gray-background .publish-vacancy-btn:hover,
.force-dark-cards .search-button:hover,
.force-dark-cards .publish-vacancy-btn:hover,
body.force-dark-cards .search-button:hover,
body.force-dark-cards .publish-vacancy-btn:hover,
[style*="f5f7fa"] .search-button:hover,
[style*="f5f7fa"] .publish-vacancy-btn:hover,
[style*="c3cfe2"] .search-button:hover,
[style*="c3cfe2"] .publish-vacancy-btn:hover,
[style*="e3ffe7"] .search-button:hover,
[style*="e3ffe7"] .publish-vacancy-btn:hover,
[style*="d9e7ff"] .search-button:hover,
[style*="d9e7ff"] .publish-vacancy-btn:hover,
body.dark-theme[style*="background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%)"] .publish-btn:hover,
body.dark-theme[style*="background: linear-gradient(135deg, #e3ffe7 0%, #d9e7ff 100%)"] .publish-btn:hover,
body.dark-theme.light-gray-background .publish-btn:hover,
.force-dark-cards .publish-btn:hover,
body.force-dark-cards .publish-btn:hover,
[style*="f5f7fa"] .publish-btn:hover,
[style*="c3cfe2"] .publish-btn:hover,
[style*="e3ffe7"] .publish-btn:hover,
[style*="d9e7ff"] .publish-btn:hover,
body.dark-theme[style*="background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%)"] .reset-btn:hover,
body.dark-theme[style*="background: linear-gradient(135deg, #e3ffe7 0%, #d9e7ff 100%)"] .reset-btn:hover,
body.dark-theme.light-gray-background .reset-btn:hover,
.force-dark-cards .reset-btn:hover,
body.force-dark-cards .reset-btn:hover,
[style*="f5f7fa"] .reset-btn:hover,
[style*="c3cfe2"] .reset-btn:hover,
[style*="e3ffe7"] .reset-btn:hover,
[style*="d9e7ff"] .reset-btn:hover {
    background: linear-gradient(135deg, #2980b9 0%, #1f4e79 100%) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 12px 35px rgba(52, 152, 219, 0.8) !important;
}

/* Допоміжний текст */
body.dark-theme[style*="background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%)"] .help-text,
body.dark-theme[style*="background: linear-gradient(135deg, #e3ffe7 0%, #d9e7ff 100%)"] .help-text,
body.dark-theme.light-gray-background .help-text,
.force-dark-cards .help-text,
body.force-dark-cards .help-text,
[style*="f5f7fa"] .help-text,
[style*="c3cfe2"] .help-text,
[style*="e3ffe7"] .help-text,
[style*="d9e7ff"] .help-text {
    color: #6b7280 !important;
    font-weight: 500 !important;
}

/* Контейнер панелі роботодавця */
body.dark-theme[style*="background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%)"] .employer-container,
body.dark-theme[style*="background: linear-gradient(135deg, #e3ffe7 0%, #d9e7ff 100%)"] .employer-container,
body.dark-theme.light-gray-background .employer-container,
.force-dark-cards .employer-container,
body.force-dark-cards .employer-container,
[style*="f5f7fa"] .employer-container,
[style*="c3cfe2"] .employer-container,
[style*="e3ffe7"] .employer-container,
[style*="d9e7ff"] .employer-container {
    background: none !important;
}

/* Checkboxes в списку країн */
body.dark-theme[style*="background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%)"] .countries-list,
body.dark-theme[style*="background: linear-gradient(135deg, #e3ffe7 0%, #d9e7ff 100%)"] .countries-list,
body.dark-theme.light-gray-background .countries-list,
.force-dark-cards .countries-list,
body.force-dark-cards .countries-list,
[style*="f5f7fa"] .countries-list,
[style*="c3cfe2"] .countries-list,
[style*="e3ffe7"] .countries-list,
[style*="d9e7ff"] .countries-list {
    background-color: #ffffff !important;
    border: 2px solid #374151 !important;
    color: #000000 !important;
}

/* Radio кнопки */
body.dark-theme[style*="background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%)"] .radio-option label,
body.dark-theme[style*="background: linear-gradient(135deg, #e3ffe7 0%, #d9e7ff 100%)"] .radio-option label,
body.dark-theme.light-gray-background .radio-option label,
.force-dark-cards .radio-option label,
body.force-dark-cards .radio-option label,
[style*="f5f7fa"] .radio-option label,
[style*="c3cfe2"] .radio-option label,
[style*="e3ffe7"] .radio-option label,
[style*="d9e7ff"] .radio-option label {
    color: #000000 !important;
    font-weight: 600 !important;
}

/* ДОДАТКОВІ ШИРОКІ СЕЛЕКТОРИ ДЛЯ ВСІХ ЕЛЕМЕНТІВ НА СВІТЛО-СІРИХ ФОНАХ */
/* Всі форми та їх елементи (auth-модалка виключена — має власний темний UI) */
body.dark-theme[style*="f5f7fa"] input,
body.dark-theme[style*="f5f7fa"] select,
body.dark-theme[style*="f5f7fa"] textarea,
body.dark-theme[style*="f5f7fa"] button:not(.unified-modal-tab):not(.unified-modal-close):not(.unified-password-toggle):not(.unified-auth-btn),
body.dark-theme[style*="c3cfe2"] input,
body.dark-theme[style*="c3cfe2"] select,
body.dark-theme[style*="c3cfe2"] textarea,
body.dark-theme[style*="c3cfe2"] button:not(.unified-modal-tab):not(.unified-modal-close):not(.unified-password-toggle):not(.unified-auth-btn),
body.dark-theme[style*="e3ffe7"] input,
body.dark-theme[style*="e3ffe7"] select,
body.dark-theme[style*="e3ffe7"] textarea,
body.dark-theme[style*="e3ffe7"] button:not(.unified-modal-tab):not(.unified-modal-close):not(.unified-password-toggle):not(.unified-auth-btn),
body.dark-theme[style*="d9e7ff"] input,
body.dark-theme[style*="d9e7ff"] select,
body.dark-theme[style*="d9e7ff"] textarea,
body.dark-theme[style*="d9e7ff"] button:not(.unified-modal-tab):not(.unified-modal-close):not(.unified-password-toggle):not(.unified-auth-btn),
.force-dark-cards input,
.force-dark-cards select,
.force-dark-cards textarea,
.force-dark-cards button:not(.theme-btn):not(.modal-tab):not(.unified-modal-tab):not(.unified-modal-close):not(.unified-password-toggle):not(.unified-auth-btn):not(.modal-close):not(.specialist-modal-close):not(.view-profile-btn):not(.contact-specialist-btn):not(.create-profile-btn):not(.contact-specialist-btn-large):not(.reset-filters-btn):not(.specialist-card-favorite):not(.favorite-btn):not(.auth-btn):not(.language-btn):not(#language-toggle):not(.education-toggle-btn):not(.btn-secondary):not(.btn-primary) {
    background-color: #ffffff !important;
    color: #000000 !important;
    border: 2px solid #374151 !important;
    font-weight: 600 !important;
}

/* Заголовки та мітки */
body.dark-theme[style*="f5f7fa"] h1,
body.dark-theme[style*="f5f7fa"] h2,
body.dark-theme[style*="f5f7fa"] h3,
body.dark-theme[style*="f5f7fa"] label,
body.dark-theme[style*="c3cfe2"] h1,
body.dark-theme[style*="c3cfe2"] h2,
body.dark-theme[style*="c3cfe2"] h3,
body.dark-theme[style*="c3cfe2"] label,
body.dark-theme[style*="e3ffe7"] h1,
body.dark-theme[style*="e3ffe7"] h2,
body.dark-theme[style*="e3ffe7"] h3,
body.dark-theme[style*="e3ffe7"] label,
body.dark-theme[style*="d9e7ff"] h1,
body.dark-theme[style*="d9e7ff"] h2,
body.dark-theme[style*="d9e7ff"] h3,
body.dark-theme[style*="d9e7ff"] label,
.force-dark-cards h1,
.force-dark-cards h2,
.force-dark-cards h3,
.force-dark-cards label {
    color: #000000 !important;
    font-weight: 700 !important;
}

/* Опції в select елементах */
body.dark-theme[style*="f5f7fa"] option,
body.dark-theme[style*="c3cfe2"] option,
body.dark-theme[style*="e3ffe7"] option,
body.dark-theme[style*="d9e7ff"] option,
.force-dark-cards option {
    background-color: #ffffff !important;
    color: #000000 !important;
}

/* Опції в select елементах */
body.dark-theme[style*="f5f7fa"] option,
body.dark-theme[style*="c3cfe2"] option,
body.dark-theme[style*="e3ffe7"] option,
body.dark-theme[style*="d9e7ff"] option,
.force-dark-cards option {
    background-color: #ffffff !important;
    color: #000000 !important;
}

/* КРИТИЧНІ СЕЛЕКТОРИ З МАКСИМАЛЬНИМ ПРІОРИТЕТОМ */
/* Форсуємо всі форми і їх елементи */
body.dark-theme.force-dark-cards input,
body.dark-theme.force-dark-cards select,
body.dark-theme.force-dark-cards textarea,
body.dark-theme.force-dark-cards .form-control,
body.dark-theme.force-dark-cards .panel-section input,
body.dark-theme.force-dark-cards .panel-section select,
body.dark-theme.force-dark-cards .panel-section textarea,
html body.dark-theme.force-dark-cards input,
html body.dark-theme.force-dark-cards select,
html body.dark-theme.force-dark-cards textarea {
    background-color: #ffffff !important;
    color: #000000 !important;
    border: 2px solid #374151 !important;
    font-weight: 600 !important;
}

/* Панелі секцій - посилене стилювання для світлих фонів */
body.dark-theme[style*="background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%)"] .panel-section,
body.dark-theme[style*="background: linear-gradient(135deg, #e3ffe7 0%, #d9e7ff 100%)"] .panel-section,
body.dark-theme.light-gray-background .panel-section,
.force-dark-cards .panel-section,
body.force-dark-cards .panel-section,
html body.dark-theme.force-dark-cards .panel-section,
[style*="f5f7fa"] .panel-section,
[style*="c3cfe2"] .panel-section,
[style*="e3ffe7"] .panel-section,
[style*="d9e7ff"] .panel-section {
    background: #ffffff !important;
    border: 4px solid #000000 !important;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.6) !important;
    color: #000000 !important;
    position: relative !important;
    z-index: 10 !important;
    border-radius: 10px !important;
    margin: 20px 0 !important;
    padding: 25px !important;
}

/* Заголовки - посилене стилювання для світлих фонів */
body.dark-theme[style*="background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%)"] h1,
body.dark-theme[style*="background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%)"] h2,
body.dark-theme[style*="background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%)"] h3,
body.dark-theme[style*="background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%)"] .section-title,
body.dark-theme[style*="background: linear-gradient(135deg, #e3ffe7 0%, #d9e7ff 100%)"] h1,
body.dark-theme[style*="background: linear-gradient(135deg, #e3ffe7 0%, #d9e7ff 100%)"] h2,
body.dark-theme[style*="background: linear-gradient(135deg, #e3ffe7 0%, #d9e7ff 100%)"] h3,
body.dark-theme[style*="background: linear-gradient(135deg, #e3ffe7 0%, #d9e7ff 100%)"] .section-title,
body.dark-theme.light-gray-background h1,
body.dark-theme.light-gray-background h2,
body.dark-theme.light-gray-background h3,
body.dark-theme.light-gray-background .section-title,
.force-dark-cards h1,
.force-dark-cards h2,
.force-dark-cards h3,
.force-dark-cards .section-title,
body.force-dark-cards h1,
body.force-dark-cards h2,
body.force-dark-cards h3,
body.force-dark-cards .section-title,
body.dark-theme.force-dark-cards h1,
body.dark-theme.force-dark-cards h2,
body.dark-theme.force-dark-cards h3,
body.dark-theme.force-dark-cards label,
body.dark-theme.force-dark-cards .panel-title,
body.dark-theme.force-dark-cards .section-title,
html body.dark-theme.force-dark-cards h1,
html body.dark-theme.force-dark-cards h2,
html body.dark-theme.force-dark-cards h3,
html body.dark-theme.force-dark-cards label,
html body.dark-theme.force-dark-cards .panel-title,
html body.dark-theme.force-dark-cards .section-title,
[style*="f5f7fa"] h1,
[style*="f5f7fa"] h2,
[style*="f5f7fa"] h3,
[style*="f5f7fa"] .section-title,
[style*="c3cfe2"] h1,
[style*="c3cfe2"] h2,
[style*="c3cfe2"] h3,
[style*="c3cfe2"] .section-title,
[style*="e3ffe7"] h1,
[style*="e3ffe7"] h2,
[style*="e3ffe7"] h3,
[style*="e3ffe7"] .section-title,
[style*="d9e7ff"] h1,
[style*="d9e7ff"] h2,
[style*="d9e7ff"] h3,
[style*="d9e7ff"] .section-title {
    color: #000000 !important;
    font-weight: 800 !important;
    font-size: 1.8rem !important;
    text-shadow: none !important;
    margin-bottom: 20px !important;
}

/* Кнопки */
body.dark-theme.force-dark-cards .search-button,
body.dark-theme.force-dark-cards .publish-vacancy-btn,
body.dark-theme.force-dark-cards button[type="button"]:not(.reset-filters-btn):not(.view-profile-btn):not(.contact-specialist-btn):not(.create-profile-btn):not(.specialist-modal-close):not(.specialist-card-favorite):not(.favorite-btn):not(.language-btn):not(#language-toggle):not(.education-toggle-btn):not(.btn-secondary):not(.btn-primary),
html body.dark-theme.force-dark-cards .search-button,
html body.dark-theme.force-dark-cards .publish-vacancy-btn {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%) !important;
    color: #ffffff !important;
    border: 3px solid #000000 !important;
    font-weight: 800 !important;
}
  
/* Labels та форми - посилене стилювання для світлих фонів */
body.dark-theme[style*="background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%)"] label,
body.dark-theme[style*="background: linear-gradient(135deg, #e3ffe7 0%, #d9e7ff 100%)"] label,
body.dark-theme.light-gray-background label,
.force-dark-cards label,
body.force-dark-cards label,
body.dark-theme.force-dark-cards label,
html body.dark-theme.force-dark-cards label,
[style*="f5f7fa"] label,
[style*="c3cfe2"] label,
[style*="e3ffe7"] label,
[style*="d9e7ff"] label {
    color: #000000 !important;
    font-weight: 700 !important;
    font-size: 1.1rem !important;
    margin-bottom: 8px !important;
}

/* Текстові поля та селекти */
body.dark-theme[style*="background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%)"] input,
body.dark-theme[style*="background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%)"] select,
body.dark-theme[style*="background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%)"] textarea,
body.dark-theme[style*="background: linear-gradient(135deg, #e3ffe7 0%, #d9e7ff 100%)"] input,
body.dark-theme[style*="background: linear-gradient(135deg, #e3ffe7 0%, #d9e7ff 100%)"] select,
body.dark-theme[style*="background: linear-gradient(135deg, #e3ffe7 0%, #d9e7ff 100%)"] textarea,
body.dark-theme.light-gray-background input,
body.dark-theme.light-gray-background select,
body.dark-theme.light-gray-background textarea,
.force-dark-cards input,
.force-dark-cards select,
.force-dark-cards textarea,
body.force-dark-cards input,
body.force-dark-cards select,
body.force-dark-cards textarea,
[style*="f5f7fa"] input,
[style*="f5f7fa"] select,
[style*="f5f7fa"] textarea,
[style*="c3cfe2"] input,
[style*="c3cfe2"] select,
[style*="c3cfe2"] textarea,
[style*="e3ffe7"] input,
[style*="e3ffe7"] select,
[style*="e3ffe7"] textarea,
[style*="d9e7ff"] input,
[style*="d9e7ff"] select,
[style*="d9e7ff"] textarea {
    background-color: #ffffff !important;
    color: #000000 !important;
    border: 2px solid #374151 !important;
    border-radius: 8px !important;
    padding: 12px 15px !important;
    font-weight: 600 !important;
    font-size: 1rem !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
}

/* Фокус на полях форми */
body.dark-theme[style*="background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%)"] input:focus,
body.dark-theme[style*="background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%)"] select:focus,
body.dark-theme[style*="background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%)"] textarea:focus,
body.dark-theme[style*="background: linear-gradient(135deg, #e3ffe7 0%, #d9e7ff 100%)"] input:focus,
body.dark-theme[style*="background: linear-gradient(135deg, #e3ffe7 0%, #d9e7ff 100%)"] select:focus,
body.dark-theme[style*="background: linear-gradient(135deg, #e3ffe7 0%, #d9e7ff 100%)"] textarea:focus,
body.dark-theme.light-gray-background input:focus,
body.dark-theme.light-gray-background select:focus,
body.dark-theme.light-gray-background textarea:focus,
.force-dark-cards input:focus,
.force-dark-cards select:focus,
.force-dark-cards textarea:focus,
body.force-dark-cards input:focus,
body.force-dark-cards select:focus,
body.force-dark-cards textarea:focus,
[style*="f5f7fa"] input:focus,
[style*="f5f7fa"] select:focus,
[style*="f5f7fa"] textarea:focus,
[style*="c3cfe2"] input:focus,
[style*="c3cfe2"] select:focus,
[style*="c3cfe2"] textarea:focus,
[style*="e3ffe7"] input:focus,
[style*="e3ffe7"] select:focus,
[style*="e3ffe7"] textarea:focus,
[style*="d9e7ff"] input:focus,
[style*="d9e7ff"] select:focus,
[style*="d9e7ff"] textarea:focus {
    border-color: #3498db !important;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.3) !important;
}

/* Допоміжний текст та інші елементи */
body.dark-theme[style*="background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%)"] .help-text,
body.dark-theme[style*="background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%)"] small,
body.dark-theme[style*="background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%)"] p,
body.dark-theme[style*="background: linear-gradient(135deg, #e3ffe7 0%, #d9e7ff 100%)"] .help-text,
body.dark-theme[style*="background: linear-gradient(135deg, #e3ffe7 0%, #d9e7ff 100%)"] small,
body.dark-theme[style*="background: linear-gradient(135deg, #e3ffe7 0%, #d9e7ff 100%)"] p,
body.dark-theme.light-gray-background .help-text,
body.dark-theme.light-gray-background small,
body.dark-theme.light-gray-background p,
.force-dark-cards .help-text,
.force-dark-cards small,
.force-dark-cards p,
body.force-dark-cards .help-text,
body.force-dark-cards small,
body.force-dark-cards p,
[style*="f5f7fa"] .help-text,
[style*="f5f7fa"] small,
[style*="f5f7fa"] p,
[style*="c3cfe2"] .help-text,
[style*="c3cfe2"] small,
[style*="c3cfe2"] p,
[style*="e3ffe7"] .help-text,
[style*="e3ffe7"] small,
[style*="e3ffe7"] p,
[style*="d9e7ff"] .help-text,
[style*="d9e7ff"] small,
[style*="d9e7ff"] p {
    color: #374151 !important;
    font-weight: 500 !important;
}

/* Радіокнопки та чекбокси */
body.dark-theme[style*="background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%)"] .radio-option label,
body.dark-theme[style*="background: linear-gradient(135deg, #e3ffe7 0%, #d9e7ff 100%)"] .radio-option label,
body.dark-theme.light-gray-background .radio-option label,
.force-dark-cards .radio-option label,
body.force-dark-cards .radio-option label,
[style*="f5f7fa"] .radio-option label,
[style*="c3cfe2"] .radio-option label,
[style*="e3ffe7"] .radio-option label,
[style*="d9e7ff"] .radio-option label {
    color: #000000 !important;
    font-weight: 600 !important;
}

/* Списки країн */
body.dark-theme[style*="background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%)"] .countries-list,
body.dark-theme[style*="background: linear-gradient(135deg, #e3ffe7 0%, #d9e7ff 100%)"] .countries-list,
body.dark-theme.light-gray-background .countries-list,
.force-dark-cards .countries-list,
body.force-dark-cards .countries-list,
[style*="f5f7fa"] .countries-list,
[style*="c3cfe2"] .countries-list,
[style*="e3ffe7"] .countries-list,
[style*="d9e7ff"] .countries-list {
    background: #ffffff !important;
    border: 2px solid #374151 !important;
    border-radius: 8px !important;
    padding: 15px !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
}

/* Опції */
body.dark-theme.force-dark-cards option,
html body.dark-theme.force-dark-cards option,
body.dark-theme[style*="background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%)"] option,
body.dark-theme[style*="background: linear-gradient(135deg, #e3ffe7 0%, #d9e7ff 100%)"] option,
body.dark-theme.light-gray-background option,
.force-dark-cards option,
body.force-dark-cards option,
[style*="f5f7fa"] option,
[style*="c3cfe2"] option,
[style*="e3ffe7"] option,
[style*="d9e7ff"] option {
    background-color: #ffffff !important;
    color: #000000 !important;
    font-weight: 600 !important;
}

/* СПЕЦІАЛЬНІ СТИЛІ ДЛЯ СТОРІНКИ ВАКАНСІЙ В ТЕМНІЙ ТЕМІ З СІРИМИ ФОНАМИ */
/* Коли темна тема + сірі фони - робимо білі картки з чорними рамками */
body.dark-theme[style*="f5f7fa"] .vacancy-item,
body.dark-theme[style*="c3cfe2"] .vacancy-item,
body.dark-theme[style*="e3ffe7"] .vacancy-item,
body.dark-theme[style*="d9e7ff"] .vacancy-item {
    background: #ffffff !important;
    color: #000000 !important;
    border: 1px solid #cbd5e1 !important;
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.08) !important;
    border-radius: 8px !important;
}

/* Секції вакансій також з рамками */
body.dark-theme[style*="f5f7fa"] .section,
body.dark-theme[style*="c3cfe2"] .section,
body.dark-theme[style*="e3ffe7"] .section,
body.dark-theme[style*="d9e7ff"] .section {
    background: rgba(255, 255, 255, 0.95) !important;
    color: #000000 !important;
    border: 2px solid #333333 !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2) !important;
    border-radius: 10px !important;
}

/* Фільтри вакансій з рамками */
body.dark-theme[style*="f5f7fa"] .filter-section,
body.dark-theme[style*="c3cfe2"] .filter-section,
body.dark-theme[style*="e3ffe7"] .filter-section,
body.dark-theme[style*="d9e7ff"] .filter-section {
    background: rgba(255, 255, 255, 0.95) !important;
    color: #000000 !important;
    border: 2px solid #333333 !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2) !important;
    border-radius: 8px !important;
}

/* Поля пошуку ШІ з рамками */
body.dark-theme[style*="f5f7fa"] .search-column,
body.dark-theme[style*="c3cfe2"] .search-column,
body.dark-theme[style*="e3ffe7"] .search-column,
body.dark-theme[style*="d9e7ff"] .search-column {
    background: rgba(255, 255, 255, 0.95) !important;
    color: #000000 !important;
    border: 2px solid #333333 !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2) !important;
    border-radius: 8px !important;
}

/* Заголовки та тексти вакансій чорні */
body.dark-theme[style*="f5f7fa"] .vacancy-item h3,
body.dark-theme[style*="f5f7fa"] .vacancy-item .company-name,
body.dark-theme[style*="f5f7fa"] .vacancy-item p,
body.dark-theme[style*="f5f7fa"] h1,
body.dark-theme[style*="f5f7fa"] h2,
body.dark-theme[style*="c3cfe2"] .vacancy-item h3,
body.dark-theme[style*="c3cfe2"] .vacancy-item .company-name,
body.dark-theme[style*="c3cfe2"] .vacancy-item p,
body.dark-theme[style*="c3cfe2"] h1,
body.dark-theme[style*="c3cfe2"] h2,
body.dark-theme[style*="e3ffe7"] .vacancy-item h3,
body.dark-theme[style*="e3ffe7"] .vacancy-item .company-name,
body.dark-theme[style*="e3ffe7"] .vacancy-item p,
body.dark-theme[style*="e3ffe7"] h1,
body.dark-theme[style*="e3ffe7"] h2,
body.dark-theme[style*="d9e7ff"] .vacancy-item h3,
body.dark-theme[style*="d9e7ff"] .vacancy-item .company-name,
body.dark-theme[style*="d9e7ff"] .vacancy-item p,
body.dark-theme[style*="d9e7ff"] h1,
body.dark-theme[style*="d9e7ff"] h2 {
    color: #000000 !important;
    font-weight: 700 !important;
}

/* Поля введення та селекти вакансій з рамками */
body.dark-theme[style*="f5f7fa"] .filter-select,
body.dark-theme[style*="f5f7fa"] input,
body.dark-theme[style*="c3cfe2"] .filter-select,
body.dark-theme[style*="c3cfe2"] input,
body.dark-theme[style*="e3ffe7"] .filter-select,
body.dark-theme[style*="e3ffe7"] input,
body.dark-theme[style*="d9e7ff"] .filter-select,
body.dark-theme[style*="d9e7ff"] input {
    background: #ffffff !important;
    color: #000000 !important;
    border: 2px solid #333333 !important;
    border-radius: 5px !important;
}

/* Лейбли та тексти чорні */
body.dark-theme[style*="f5f7fa"] label,
body.dark-theme[style*="f5f7fa"] span,
body.dark-theme[style*="c3cfe2"] label,
body.dark-theme[style*="c3cfe2"] span,
body.dark-theme[style*="e3ffe7"] label,
body.dark-theme[style*="e3ffe7"] span,
body.dark-theme[style*="d9e7ff"] label,
body.dark-theme[style*="d9e7ff"] span {
    color: #000000 !important;
    font-weight: 600 !important;
}

body.dark-theme[style*="d9e7ff"] span {
    color: #000000 !important;
    font-weight: 600 !important;
}

/* ДОДАТКОВІ СПЕЦІАЛЬНІ СТИЛІ ДЛЯ ВАКАНСІЙ НА СВІТЛИХ ФОНАХ */

/* Карточки вакансій на всіх світлих фонах з чорними рамками */
body[style*="f5f7fa"] .vacancy-item,
body[style*="c3cfe2"] .vacancy-item,
body[style*="e3ffe7"] .vacancy-item,
body[style*="d9e7ff"] .vacancy-item,
body[style*="ffffff"] .vacancy-item,
body[style*="e2e8f0"] .vacancy-item,
body[style*="cbd5e0"] .vacancy-item,
body.light-background-active .vacancy-item,
.force-black-borders .vacancy-item {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.08) !important;
    color: #000000 !important;
}

/* Заголовки вакансій на світлих фонах */
body[style*="f5f7fa"] .vacancy-item h3,
body[style*="c3cfe2"] .vacancy-item h3,
body[style*="e3ffe7"] .vacancy-item h3,
body[style*="d9e7ff"] .vacancy-item h3,
body[style*="ffffff"] .vacancy-item h3,
body[style*="e2e8f0"] .vacancy-item h3,
body[style*="cbd5e0"] .vacancy-item h3,
body.light-background-active .vacancy-item h3,
.force-black-text .vacancy-item h3 {
    color: #000000 !important;
    font-weight: 800 !important;
    text-shadow: none !important;
}

/* Назви компаній на світлих фонах */
body[style*="f5f7fa"] .vacancy-item .company-name,
body[style*="c3cfe2"] .vacancy-item .company-name,
body[style*="e3ffe7"] .vacancy-item .company-name,
body[style*="d9e7ff"] .vacancy-item .company-name,
body[style*="ffffff"] .vacancy-item .company-name,
body[style*="e2e8f0"] .vacancy-item .company-name,
body[style*="cbd5e0"] .vacancy-item .company-name,
body.light-background-active .vacancy-item .company-name,
.force-black-text .vacancy-item .company-name {
    color: #1d4ed8 !important;
    font-weight: 700 !important;
}

/* Весь текст в картках вакансій на світлих фонах */
body[style*="f5f7fa"] .vacancy-item p,
body[style*="c3cfe2"] .vacancy-item p,
body[style*="e3ffe7"] .vacancy-item p,
body[style*="d9e7ff"] .vacancy-item p,
body[style*="ffffff"] .vacancy-item p,
body[style*="e2e8f0"] .vacancy-item p,
body[style*="cbd5e0"] .vacancy-item p,
body.light-background-active .vacancy-item p,
.force-black-text .vacancy-item p,
body[style*="f5f7fa"] .vacancy-meta,
body[style*="c3cfe2"] .vacancy-meta,
body[style*="e3ffe7"] .vacancy-meta,
body[style*="d9e7ff"] .vacancy-meta,
body[style*="ffffff"] .vacancy-meta,
body[style*="e2e8f0"] .vacancy-meta,
body[style*="cbd5e0"] .vacancy-meta,
body.light-background-active .vacancy-meta,
.force-black-text .vacancy-meta,
body[style*="f5f7fa"] .vacancy-date,
body[style*="c3cfe2"] .vacancy-date,
body[style*="e3ffe7"] .vacancy-date,
body[style*="d9e7ff"] .vacancy-date,
body[style*="ffffff"] .vacancy-date,
body[style*="e2e8f0"] .vacancy-date,
body[style*="cbd5e0"] .vacancy-date,
body.light-background-active .vacancy-date,
.force-black-text .vacancy-date {
    color: #374151 !important;
    font-weight: 500 !important;
}

/* Секції та фільтри на світлих фонах */
body[style*="f5f7fa"] .section,
body[style*="c3cfe2"] .section,
body[style*="e3ffe7"] .section,
body[style*="d9e7ff"] .section,
body[style*="ffffff"] .section,
body[style*="e2e8f0"] .section,
body[style*="cbd5e0"] .section,
body.light-background-active .section,
body[style*="f5f7fa"] .filter-section,
body[style*="c3cfe2"] .filter-section,
body[style*="e3ffe7"] .filter-section,
body[style*="d9e7ff"] .filter-section,
body[style*="ffffff"] .filter-section,
body[style*="e2e8f0"] .filter-section,
body[style*="cbd5e0"] .filter-section,
body.light-background-active .filter-section {
    background: rgba(255, 255, 255, 0.9) !important;
    border: 2px solid #000000 !important;
    color: #000000 !important;
}

/* Заголовки сторінки на світлих фонах */
body[style*="f5f7fa"] h1,
body[style*="c3cfe2"] h1,
body[style*="e3ffe7"] h1,
body[style*="d9e7ff"] h1,
body[style*="ffffff"] h1,
body[style*="e2e8f0"] h1,
body[style*="cbd5e0"] h1,
body.light-background-active h1,
body[style*="f5f7fa"] h2,
body[style*="c3cfe2"] h2,
body[style*="e3ffe7"] h2,
body[style*="d9e7ff"] h2,
body[style*="ffffff"] h2,
body[style*="e2e8f0"] h2,
body[style*="cbd5e0"] h2,
body.light-background-active h2 {
    color: #000000 !important;
    font-weight: 800 !important;
    text-shadow: none !important;
}

/* Всі текстові елементи на світлих фонах стають чорними */
body[style*="f5f7fa"] *:not(button):not(.btn):not(.fa):not(.fas):not(.far):not(.fab):not(i),
body[style*="c3cfe2"] *:not(button):not(.btn):not(.fa):not(.fas):not(.far):not(.fab):not(i),
body[style*="e3ffe7"] *:not(button):not(.btn):not(.fa):not(.fas):not(.far):not(.fab):not(i),
body[style*="d9e7ff"] *:not(button):not(.btn):not(.fa):not(.fas):not(.far):not(.fab):not(i),
body[style*="ffffff"] *:not(button):not(.btn):not(.fa):not(.fas):not(.far):not(.fab):not(i),
body[style*="e2e8f0"] *:not(button):not(.btn):not(.fa):not(.fas):not(.far):not(.fab):not(i),
body[style*="cbd5e0"] *:not(button):not(.btn):not(.fa):not(.fas):not(.far):not(.fab):not(i) {
    color: #000000 !important;
}

/* Покращена видимість заголовків на сірих світлих фонах */
body[style*="f5f7fa"] h1,
body[style*="c3cfe2"] h1,
body[style*="f5f7fa"] h2,
body[style*="c3cfe2"] h2,
body[style*="f5f7fa"] .hero-title,
body[style*="c3cfe2"] .hero-title,
body[style*="f5f7fa"] .section-title,
body[style*="c3cfe2"] .section-title {
    color: #2c3e50 !important;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(248, 249, 250, 0.9)) !important;
    border: 2px solid #3498db !important;
    padding: 12px 20px !important;
    border-radius: 10px !important;
    font-weight: 600 !important;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.8) !important;
    box-shadow: 
        0 3px 12px rgba(52, 152, 219, 0.2),
        0 1px 4px rgba(0, 0, 0, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.8) !important;
    backdrop-filter: blur(6px) !important;
    -webkit-backdrop-filter: blur(6px) !important;
    margin-bottom: 15px !important;
    display: inline-block !important;
}

/* Ефект при наведенні */
body[style*="f5f7fa"] h1:hover,
body[style*="c3cfe2"] h1:hover,
body[style*="f5f7fa"] h2:hover,
body[style*="c3cfe2"] h2:hover,
body[style*="f5f7fa"] .hero-title:hover,
body[style*="c3cfe2"] .hero-title:hover {
    border-color: #2980b9 !important;
    transform: translateY(-1px) !important;
    box-shadow: 
        0 4px 16px rgba(52, 152, 219, 0.3),
        0 2px 6px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.9) !important;
}

body.light-theme .hero,
body.light-theme .container,
body.light-theme .main-content {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%) !important;
}
body.light-theme .hero::before {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%) !important;
    opacity: 1 !important;
}
body.light-theme .hero-title,
body.light-theme .section-title {
    color: #1a237e !important;
    text-shadow: none !important;
}
body.light-theme .cta-buttons .btn.primary {
    background: #2563eb;
    color: #fff;
}
body.light-theme .cta-buttons .btn.primary:hover {
    background: #1d4ed8;
}
body.light-theme .cta-buttons .btn.secondary {
    background: #e0e8f0;
    color: #2563eb;
}
body.light-theme .cta-buttons .btn.secondary:hover {
    background: #c3cfe2;
    color: #1a237e;
}
body.light-theme .special-offer {
    background: #fff3e0;
    color: #e65100;
    border: 1.5px solid #ffe0b2;
}
body.light-theme .special-offer .offer-badge {
    background: #ffe0b2;
    color: #e65100;
}
body.light-theme .special-offer .offer-text {
    color: #e65100;
}

/* Prevent button label overflow in long locales */
button,
.btn,
.auth-main-btn,
.search-button,
.jg-call-btn,
.settings-tab {
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
    line-height: 1.2;
    text-align: center;
}

/* Partner CTA: temporarily hidden — markup kept for future feature (remove rule to show) */
footer .footer-contacts a.support-link.jg-partner-link-hidden,
footer .footer-contacts a.support-link,
a.support-link.jg-partner-link-hidden {
    display: none !important;
}

#mobile-theme-toggle,
#mobile-language-toggle,
.modal-close,
.specialist-modal-close,
.company-modal-close {
    white-space: nowrap;
    overflow-wrap: normal;
    word-break: normal;
}

.mobile-menu button#mobile-language-toggle,
.mobile-menu button#mobile-language-toggle.lang-btn,
#mobile-language-toggle {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-start !important;
    -webkit-box-pack: start !important;
    gap: 6px;
    width: 100% !important;
    min-width: 0;
    text-align: left !important;
    -webkit-appearance: none;
    appearance: none;
    box-sizing: border-box;
}

#mobile-language-toggle .mobile-lang-flag {
    flex: 0 0 auto;
    flex-shrink: 0;
    line-height: 1;
    text-align: left;
}

#mobile-language-toggle .mobile-lang-code {
    flex: 0 0 auto;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    line-height: 1;
    text-align: left;
}

body.language-flags-open .language-flags {
    z-index: 10260 !important;
}
