/* ===================== ROOT VARIABLES ===================== */
:root {
    --bg-color: #0e0e10;
    --panel-bg: #1a1a1c;
    --panel-border: #27272a;
    --text-main: #f4f4f5;
    --text-muted: #71717a;
    --primary-color: #dd5a3a;
    --primary-hover: #c24e31;
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --input-bg: #111113;
    --input-border: #27272a;
    --shadow-orange: rgba(221, 90, 58, 0.18);
    --radius: 10px;
    --radius-sm: 6px;
}

/* ===================== PAGE LOADER ===================== */
#page-loader {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: #0e0e10;
    display: flex; align-items: center; justify-content: center;
    z-index: 999999;
    transition: opacity 0.35s ease;
}
#page-loader.hidden { opacity: 0; pointer-events: none; }
.loader-content { text-align: center; }
.loader-spinner {
    width: 40px; height: 40px;
    border: 3px solid rgba(221,90,58,0.15);
    border-top-color: #dd5a3a;
    border-radius: 50%;
    animation: loader-spin 0.7s linear infinite;
    margin: 0 auto 18px;
}
@keyframes loader-spin { to { transform: rotate(360deg); } }
.loader-text { color: #71717a; font-size: 14px; letter-spacing: 0.3px; }

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

html { scroll-behavior: smooth; }

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-family);
    font-size: 14px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
button { font-family: inherit; cursor: pointer; }
img { display: block; max-width: 100%; }

/* ===================== LAYOUT ===================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.page-container {
    max-width: 820px;
    margin: 0 auto;
    padding: 40px 24px;
}

.auth-container {
    max-width: 480px;
    margin: 0 auto;
    padding: 60px 24px;
}

/* ===================== HEADER ===================== */
.header {
    position: sticky;
    top: 0;
    z-index: 200;
    background-color: rgba(14, 14, 16, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--panel-border);
}

.header-inner {
    display: flex;
    align-items: center;
    height: 60px;
    gap: 16px;
}

.logo-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.logo-box {
    width: 32px;
    height: 32px;
    background-color: var(--panel-bg);
    border: 1px solid var(--panel-border);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
}

.logo-box img { width: 100%; height: 100%; object-fit: contain; }
.logo-text { font-weight: 600; font-size: 15px; }

/* ===================== NAV ===================== */
.header-nav {
    display: flex;
    align-items: center;
    gap: 16px; /* increased spacing */
    margin-left: 24px;
    flex: 1;
}

/* Push lang-switch to far right within nav */
.header-nav .lang-switch {
    margin-left: auto;
}

.nav-text {
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    font-size: 14px;
    border: 1px solid transparent;
    margin-right: 4px; /* small right margin */
    transition: color 0.2s, border-color 0.2s;
}

.nav-text:hover, .nav-text.active {
    color: var(--text-main);
    border-color: var(--panel-border);
}

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

.lang-switch {
    display: flex;
    background: var(--input-bg);
    border: 1px solid var(--input-border);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.lang-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 5px 11px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.lang-btn.active {
    background: #2a2a2d;
    color: var(--text-main);
}

.menu-btn {
    display: none;
    background: transparent;
    border: 1px solid var(--panel-border);
    color: var(--text-main);
    padding: 7px 14px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    transition: background 0.2s;
}
.menu-btn:hover { background: var(--panel-bg); }

/* ===================== BUTTONS ===================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    font-weight: 500;
    font-size: 14px;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.15s, box-shadow 0.2s;
    white-space: nowrap;
}

.btn-primary {
    background-color: var(--primary-color);
    color: #fff;
}
.btn-primary:hover {
    background-color: var(--primary-hover);
    box-shadow: 0 4px 16px var(--shadow-orange);
}
.btn-primary:active { transform: scale(0.97); }

.btn-secondary {
    background-color: transparent;
    border: 1px solid var(--panel-border);
    color: var(--text-main);
}
.btn-secondary:hover { background-color: #232325; }

.btn-small {
    padding: 7px 14px;
    font-size: 13px;
    background-color: transparent;
    border: 1px solid var(--panel-border);
    color: var(--text-main);
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-family: inherit;
    font-weight: 500;
    transition: background 0.2s;
}
.btn-small:hover { background: var(--panel-bg); }

.btn-small.btn-primary {
    background-color: var(--primary-color);
    border-color: transparent;
    color: #fff;
}
.btn-small.btn-primary:hover { background-color: var(--primary-hover); }

.btn-full { width: 100%; }

/* ===================== CARDS ===================== */
.card {
    background-color: var(--panel-bg);
    border: 1px solid var(--panel-border);
    border-radius: var(--radius);
    padding: 24px;
}

/* ===================== TYPOGRAPHY ===================== */
.page-title {
    font-size: 48px;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1.1;
    letter-spacing: -1px;
    margin-bottom: 16px;
}

.page-title-white {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 8px;
}

.section-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.section-header .section-title { margin-bottom: 0; }

.subtitle {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 28px;
    max-width: 440px;
}

.card-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
}

.card-desc {
    color: #b4b4bc;
    font-size: 13px;
    line-height: 1.65;
}

/* ===================== FORMS ===================== */
.form-group { margin-bottom: 18px; }

.form-label {
    display: block;
    margin-bottom: 7px;
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
}

.form-input {
    width: 100%;
    background-color: var(--input-bg);
    border: 1px solid var(--input-border);
    color: var(--text-main);
    padding: 11px 14px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
    font-family: inherit;
}
.form-input:focus { border-color: var(--primary-color); }

.form-text-muted {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.6;
}

.text-link { color: var(--primary-color); }
.text-link:hover { text-decoration: underline; }

/* ===================== MAIN CONTENT ===================== */
.main-content {
    padding: 48px 0 80px;
}

/* ===================== HERO SECTION ===================== */
.hero-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 40px;
    padding-bottom: 60px;
    border-bottom: 1px solid var(--panel-border);
    margin-bottom: 60px;
}

.hero-text { padding-right: 20px; }

.info-blocks {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 28px;
}

.info-block {
    background-color: var(--panel-bg);
    border: 1px solid var(--panel-border);
    border-radius: var(--radius-sm);
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.info-label {
    color: var(--text-muted);
    font-size: 11px;
    letter-spacing: 0.5px;
}

.info-value {
    font-weight: 600;
    font-size: 14px;
}

.hero-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.hero-image { position: relative; }

.hero-bg {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    padding-top: 30px;
    overflow: hidden;
    min-height: 320px;
    cursor: pointer;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.hero-bg:hover {
    transform: scale(1.02);
    border-color: var(--primary-color);
    box-shadow: 0 0 30px var(--shadow-orange);
}

.hero-bg img {
    max-height: 320px;
    object-fit: contain;
    transition: transform 0.4s ease;
}
.hero-bg:hover img { transform: scale(1.04); }

/* ===================== SECTIONS SPACING ===================== */
.subscription-section,
.features-section,
.screenshots-section,
.footer-links-section { margin-bottom: 60px; }

/* ===================== SUBSCRIPTION ===================== */
.sub-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.sub-card-left { display: flex; flex-direction: column; gap: 16px; }
.sub-card-right { display: flex; flex-direction: column; justify-content: space-between; gap: 16px; }

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

.tag {
    background-color: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--panel-border);
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 13px;
    color: var(--text-muted);
}

.price-blocks {
    background-color: rgba(0,0,0,0.25);
    border: 1px solid var(--panel-border);
    border-radius: 8px;
    overflow: hidden;
}

.price-block {
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.price-block:not(:last-child) { border-bottom: 1px solid var(--panel-border); }
.price-label { color: var(--text-muted); font-size: 11px; letter-spacing: 0.3px; }
.price-value { font-weight: 600; font-size: 14px; }

/* ===================== FEATURES ===================== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.feature-card { display: flex; flex-direction: column; gap: 10px; }

/* ===================== SCREENSHOTS ===================== */
.screenshots-container {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 20px;
    align-items: start;
}

.screenshot-nav {
    background-color: var(--panel-bg);
    border: 1px solid var(--panel-border);
    border-radius: var(--radius);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.screenshot-count { font-size: 13px; color: var(--text-muted); }

.nav-buttons { display: flex; gap: 8px; }
.nav-buttons .btn-small { flex: 1; text-align: center; }

.nav-indicator {
    height: 3px;
    background-color: var(--panel-border);
    border-radius: 2px;
    overflow: hidden;
}

.indicator-bar {
    height: 100%;
    width: 100%;
    background-color: var(--primary-color);
    border-radius: 2px;
}

.screenshot-display {
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--panel-border);
    aspect-ratio: 16/9;
    background-color: var(--panel-bg);
    cursor: pointer;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.screenshot-display:hover {
    border-color: var(--primary-color);
    box-shadow: 0 0 24px var(--shadow-orange);
    transform: scale(1.01);
}

.screenshot-display img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.screenshot-display:hover img { transform: scale(1.04); }

/* ===================== FOOTER LINKS ===================== */

/* ===================== PROFILE PAGE ===================== */
.profile-header {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 24px;
    background-color: var(--panel-bg);
    border: 1px solid var(--panel-border);
    border-radius: var(--radius);
    margin-bottom: 30px;
}

.profile-avatar {
    width: 80px;
    height: 80px;
    background-color: var(--panel-bg);
    color: var(--text-muted);
    font-size: 36px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 2px solid var(--panel-border);
}

.profile-info h1 {
    margin: 0;
    font-size: 22px;
    color: var(--text-main);
}

.profile-info p {
    margin: 4px 0 0;
    font-size: 14px;
    color: var(--text-muted);
}

.profile-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

.profile-badges .badge {
    background-color: var(--input-bg);
    color: var(--text-muted);
    padding: 2px 8px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    border: 1px solid var(--panel-border);
}

/* Tabs navigation */
.tabs-nav {
    display: flex;
    gap: 12px;
    margin: 24px 0 16px;
    border-bottom: 1px solid var(--panel-border);
}

.tabs-nav a {
    padding: 8px 12px;
    font-size: 14px;
    color: var(--text-muted);
    border-bottom: 2px solid transparent;
    transition: color 0.2s, border-color 0.2s;
}

.tabs-nav a.active {
    color: var(--text-main);
    border-color: var(--primary-color);
}

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

/* Grid for info boxes – three columns on desktop, single column on mobile */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 12px;
    margin-bottom: 24px;
}

.info-box {
    padding: 12px;
    background-color: var(--panel-bg);
    border: 1px solid var(--panel-border);
    border-radius: var(--radius-sm);
    text-align: center;
}

.info-box-label {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.info-box-value {
    font-size: 14px;
    color: var(--text-main);
    font-weight: 500;
}

/* Card adjustments for profile page */
.card {
    margin-bottom: 24px;
}

.btn-full {
    width: 100%;
}

/* Ensure responsive layout for the page container */
@media (max-width: 768px) {
    .profile-header {flex-direction: column; align-items: flex-start;}
    .grid-3 {grid-template-columns: 1fr;}
}

.footer-links-section {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.footer-link-card {
    background-color: var(--panel-bg);
    border: 1px solid var(--panel-border);
    padding: 20px;
    border-radius: var(--radius-sm);
    text-align: center;
    font-size: 15px;
    font-weight: 500;
    color: #e8e8ea;
    transition: background-color 0.2s, border-color 0.2s, transform 0.2s, box-shadow 0.2s;
    display: block;
}

.footer-link-card:hover {
    background-color: #232325;
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--shadow-orange);
}

/* ===================== FOOTER ===================== */
.footer {
    border-top: 1px solid var(--panel-border);
    padding: 24px 0;
    color: var(--text-muted);
    font-size: 13px;
}

/* ===================== LIGHTBOX ===================== */
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    inset: 0;
    background-color: rgba(10, 10, 12, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    align-items: center;
    justify-content: center;
}

.lightbox.open {
    display: flex;
    animation: lbFadeIn 0.25s ease;
}
.lightbox.closing {
    animation: lbFadeOut 0.25s ease forwards;
}

@keyframes lbFadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes lbFadeOut { from { opacity: 1; } to { opacity: 0; } }

.lightbox-content {
    max-width: 92vw;
    max-height: 88vh;
    border-radius: 10px;
    box-shadow: 0 25px 60px rgba(0,0,0,0.8);
    animation: lbZoomIn 0.25s ease;
}
@keyframes lbZoomIn { from { transform: scale(0.92); opacity: 0; } to { transform: scale(1); opacity: 1; } }

.lightbox-close {
    position: absolute;
    top: 18px;
    right: 24px;
    color: #666;
    font-size: 32px;
    font-weight: 300;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s, transform 0.2s;
    user-select: none;
}
.lightbox-close:hover { color: #fff; transform: scale(1.15) rotate(90deg); }

/* ===================== PROFILE ===================== */
.profile-header {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 24px;
}

.profile-avatar {
    width: 60px;
    height: 60px;
    background-color: rgba(221, 90, 58, 0.1);
    color: var(--primary-color);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 700;
    flex-shrink: 0;
}

.profile-info h1 { font-size: 18px; font-weight: 600; margin-bottom: 4px; }
.profile-info p { color: var(--text-muted); font-size: 13px; margin-bottom: 8px; }

.profile-badges { display: flex; gap: 6px; flex-wrap: wrap; }

.badge {
    background-color: #242426;
    border: 1px solid var(--panel-border);
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 11px;
    color: var(--text-muted);
}
.badge.active { color: #fff; background-color: rgba(221, 90, 58, 0.15); border-color: rgba(221, 90, 58, 0.3); }
.badge.success { color: #4ade80; border-color: rgba(74, 222, 128, 0.2); background-color: rgba(74, 222, 128, 0.05); }

.tabs-nav {
    display: flex;
    gap: 4px;
    border-bottom: 1px solid var(--panel-border);
    margin-bottom: 24px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.tabs-nav a {
    padding: 10px 14px;
    color: var(--text-muted);
    font-size: 14px;
    border-bottom: 2px solid transparent;
    white-space: nowrap;
    transition: color 0.2s, border-color 0.2s;
}
.tabs-nav a.active { color: var(--text-main); border-bottom-color: var(--text-main); }
.tabs-nav a:hover { color: var(--text-main); }

.card-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    gap: 8px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.info-box {
    background-color: rgba(0,0,0,0.25);
    border: 1px solid var(--panel-border);
    padding: 14px 16px;
    border-radius: 8px;
}
.info-box-label { color: var(--text-muted); font-size: 11px; letter-spacing: 0.3px; margin-bottom: 4px; }
.info-box-value { font-size: 15px; font-weight: 500; }

/* ===================== BUY PAGE ===================== */
.slider-container {
    background-color: var(--input-bg);
    border: 1px solid var(--input-border);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 16px;
}

.slider-info {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 16px;
}

.slider-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 12px;
    color: var(--text-muted);
    font-size: 12px;
}

.custom-range {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 4px;
    background: #3f3f46;
    border-radius: 2px;
    outline: none;
    cursor: pointer;
}
.custom-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
    border: 3px solid var(--panel-bg);
    box-shadow: 0 0 6px var(--shadow-orange);
    transition: transform 0.2s;
}
.custom-range::-webkit-slider-thumb:hover { transform: scale(1.2); }

/* ===================== SCROLL ANIMATIONS ===================== */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.55s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered child animations */
.features-grid .feature-card:nth-child(1) { transition-delay: 0.05s; }
.features-grid .feature-card:nth-child(2) { transition-delay: 0.12s; }
.features-grid .feature-card:nth-child(3) { transition-delay: 0.19s; }

.footer-links-section .footer-link-card:nth-child(1) { transition-delay: 0.05s; }
.footer-links-section .footer-link-card:nth-child(2) { transition-delay: 0.12s; }
.footer-links-section .footer-link-card:nth-child(3) { transition-delay: 0.19s; }

.glow-hover {
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.glow-hover:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px var(--shadow-orange);
    border-color: var(--primary-color);
}

/* ===================== MOBILE ===================== */
@media (max-width: 900px) {
    .hero-section {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 32px;
    }
    .hero-text { padding-right: 0; }
    .subtitle { max-width: 100%; margin-left: auto; margin-right: auto; }
    .hero-actions { justify-content: center; }
    .hero-bg { min-height: 240px; }
    .hero-bg img { max-height: 240px; }
    .sub-card { grid-template-columns: 1fr; }
    .features-grid { grid-template-columns: 1fr; }
    .footer-links-section { grid-template-columns: 1fr; }
    .screenshots-container { grid-template-columns: 1fr; }
    .grid-3 { grid-template-columns: 1fr; }
    .grid-2 { grid-template-columns: 1fr; }
    .info-blocks { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
    .container { padding: 0 16px; }
    .page-container { padding: 28px 16px; }
    .auth-container { padding: 40px 16px; }
    .main-content { padding: 32px 0 60px; }
    .page-title { font-size: 24px; letter-spacing: -0.3px; }
    .logo-text { font-size: 13px; max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .card { padding: 18px; }
    .hero-section { margin-bottom: 40px; padding-bottom: 40px; }
    .subscription-section, .features-section, .screenshots-section { margin-bottom: 40px; }
    .section-header { flex-direction: column; align-items: flex-start; gap: 10px; }
    .info-blocks { grid-template-columns: 1fr; }
    .card-header-flex { flex-wrap: wrap; }
    .profile-header { flex-direction: column; text-align: center; }
    .profile-badges { justify-content: center; }
    .btn-full { width: 100%; }
    .hero-actions { flex-direction: column; align-items: center; }
    .hero-actions .btn { width: 100%; max-width: 280px; }
}

/* ===================== MENU MOBILE ===================== */
@media (max-width: 768px) {
    .menu-btn { display: flex; }
    .header-nav {
        display: none;
        position: absolute;
        top: 60px;
        left: 0;
        right: 0;
        background: rgba(14, 14, 16, 0.98);
        flex-direction: column;
        padding: 16px;
        border-bottom: 1px solid var(--panel-border);
        box-shadow: 0 12px 24px rgba(0,0,0,0.6);
        z-index: 100;
        gap: 4px;
    }
    .header-nav.mobile-open { display: flex; }
    .header-nav .lang-switch { margin-top: 8px; }
    .header-right { margin-left: auto; }
    .header-right .lang-switch { display: none; }
}

@media (min-width: 769px) {
    .menu-btn { display: none; }
    .header-nav { display: flex; }
}
