/* ===== DVA VOLLEYBALL HEADER - SYNCSOFT STYLE ===== */
/* D:\dva\DVA-Volleyball-Website\assets\css\components\header.css */
/* CSS Variables */
:root {
    /* SyncSoft Color Palette */
    --syncsoft-primary: #0066FF;
    --syncsoft-secondary: #00D4AA;
    --syncsoft-accent: #FF6B35;
    --syncsoft-dark: #0A0E1A;
    --syncsoft-dark-light: #1A1F2E;
    --syncsoft-gray: #8B949E;
    --syncsoft-white: #FFFFFF;
    
    /* DVA Brand Colors */
    --dva-primary: #FF6B35;
    --dva-primary-dark: #E65100;
    --dva-primary-light: #FF8A65;
    --dva-secondary: #1E3A8A;
    
    /* Glass Effect */
    --glass-bg: rgba(255, 255, 255, 0.08);
    --glass-border: rgba(255, 255, 255, 0.12);
    --glass-backdrop: blur(20px);
    
    /* Gradients */
    --primary-gradient: linear-gradient(135deg, var(--syncsoft-primary) 0%, var(--syncsoft-secondary) 100%);
    --accent-gradient: linear-gradient(135deg, var(--syncsoft-accent) 0%, #FF8A65 100%);
    --dva-gradient: linear-gradient(135deg, var(--dva-primary) 0%, var(--dva-primary-light) 100%);
    --glass-gradient: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    
    /* Transitions */
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ===== HEADER BASE STYLES ===== */

.syncsoft-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', sans-serif;
    background: var(--syncsoft-dark);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    transition: var(--transition-smooth);
}

.header-glass-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-backdrop);
    -webkit-backdrop-filter: var(--glass-backdrop);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
    position: relative;
    z-index: 2;
}

/* ===== LOGO SECTION ===== */

.logo-section {
    display: flex;
    align-items: center;
}

.logo-link-modern {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 12px;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.logo-link-modern:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-1px);
}

.logo-wrapper {
    position: relative;
    width: 40px;
    height: 40px;
}

.logo-img-modern {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
    object-fit: cover;
}

.logo-glow {
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: var(--accent-gradient);
    border-radius: 12px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.logo-link-modern:hover .logo-glow {
    opacity: 1;
}

.brand-text-modern {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.brand-primary {
    font-size: 20px;
    font-weight: 700;
    color: var(--syncsoft-white);
    letter-spacing: -0.02em;
}

.brand-secondary {
    font-size: 11px;
    font-weight: 500;
    color: var(--syncsoft-gray);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ===== DESKTOP NAVIGATION ===== */

.nav-modern {
    display: flex;
    align-items: center;
}

.nav-glass-container {
    display: flex;
    align-items: center;
    gap: 4px;
    background: var(--glass-gradient);
    backdrop-filter: var(--glass-backdrop);
    -webkit-backdrop-filter: var(--glass-backdrop);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 8px;
}

.nav-item-modern {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    color: var(--syncsoft-gray);
    text-decoration: none;
    border-radius: 10px;
    font-weight: 500;
    font-size: 14px;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    background: none;
    border: none;
    cursor: pointer;
    white-space: nowrap;
}

.nav-item-modern:hover,
.nav-item-modern.active {
    color: var(--syncsoft-white);
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-1px);
}

.nav-item-modern.active {
    background: var(--glass-bg);
    box-shadow: 0 4px 12px rgba(0, 102, 255, 0.15);
}

.nav-indicator {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--primary-gradient);
    border-radius: 1px;
    transition: width 0.3s ease;
}

.nav-item-modern.active .nav-indicator {
    width: 80%;
}

/* ===== DROPDOWN MENU ===== */

.nav-dropdown-modern {
    position: relative;
}

.dropdown-icon {
    display: flex;
    align-items: center;
    transition: transform 0.3s ease;
}

.dropdown-trigger[aria-expanded="true"] .dropdown-icon {
    transform: rotate(180deg);
}

.dropdown-menu-modern {
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px) scale(0.95);
    transition: var(--transition-smooth);
    z-index: 100;
}

.dropdown-menu-modern:not([hidden]) {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.dropdown-glass {
    background: var(--syncsoft-dark-light);
    backdrop-filter: var(--glass-backdrop);
    -webkit-backdrop-filter: var(--glass-backdrop);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.dropdown-item-modern {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: var(--syncsoft-gray);
    text-decoration: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.dropdown-item-modern:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--syncsoft-white);
}

.item-icon {
    font-size: 16px;
    opacity: 0.8;
}

.dropdown-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
    margin: 8px 0;
}

/* ===== HEADER ACTIONS ===== */

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.search-btn-modern {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: var(--syncsoft-gray);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.search-btn-modern:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--syncsoft-white);
    transform: translateY(-1px);
}

.cta-btn-modern {
    display: flex;
    align-items: center;
    padding: 12px 24px;
    background: var(--primary-gradient);
    color: var(--syncsoft-white);
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 14px;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 102, 255, 0.3);
}

.cta-btn-modern:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 102, 255, 0.4);
}

.btn-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.cta-btn-modern:hover .btn-shine {
    left: 100%;
}

/* ===== MOBILE MENU BUTTON ===== */

.mobile-menu-btn-modern {
    display: none;
    flex-direction: column;
    gap: 4px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition-smooth);
    position: relative;
    z-index: 10001;
}

.mobile-menu-btn-modern:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
}

.hamburger-line {
    width: 20px;
    height: 2px;
    background: var(--syncsoft-white);
    border-radius: 1px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
}

/* Hamburger Animation */
.mobile-menu-btn-modern.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translateY(6px);
}

.mobile-menu-btn-modern.active .hamburger-line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.mobile-menu-btn-modern.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translateY(-6px);
}

/* ===== MOBILE NAVIGATION ===== */

.mobile-nav-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    height: var(--vh, 100vh) !important; /* Safari fallback */
    z-index: 99999 !important;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-smooth);
    pointer-events: none;
    isolation: isolate;
    /* ✅ CRITICAL: Don't limit height */
    max-height: none !important;
    min-height: 100vh !important;
    min-height: var(--vh, 100vh) !important;
}

.mobile-nav-overlay.active {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: all !important;
}

.mobile-nav-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 14, 26, 0.9);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.mobile-nav-content {
    position: absolute !important;
    top: 0 !important;
    right: 0 !important;
    width: 340px !important;
    /* ✅ CRITICAL: Full height, let content determine scroll */
    height: 100% !important;
    min-height: 100vh !important;
    min-height: var(--vh, 100vh) !important;
    max-height: none !important; /* Remove any height limits */
    background: linear-gradient(180deg, #1A1F2E 0%, #0F1419 100%) !important;
    transform: translateX(100%);
    transition: var(--transition-bounce);
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important; /* Hide content overflow, not scroll */
    box-shadow: -20px 0 60px rgba(0, 0, 0, 0.4);
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    contain: layout style paint;
}

.mobile-nav-overlay.active .mobile-nav-content {
    transform: translateX(0) !important;
}

/* ===== MOBILE HEADER ===== */

.mobile-nav-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 12px 16px !important;
    background: rgba(0, 0, 0, 0.2) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    /* ✅ FIXED HEADER HEIGHT */
    height: 50px !important;
    min-height: 50px !important;
    max-height: 50px !important;
    flex-shrink: 0 !important;
    flex-grow: 0 !important;
}

.mobile-nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.mobile-nav-logo {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    object-fit: cover;
}

.mobile-brand-text {
    font-size: 18px;
    font-weight: 700;
    color: white;
    letter-spacing: -0.02em;
}

.mobile-close-btn {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 44px !important;
    height: 44px !important;
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: 12px !important;
    color: white !important;
    cursor: pointer !important;
    transition: var(--transition-smooth);
    padding: 0;
}

.mobile-close-btn:hover {
    background: rgba(255, 255, 255, 0.2) !important;
    border-color: rgba(255, 255, 255, 0.25) !important;
    transform: scale(1.05);
}

.mobile-close-btn svg {
    width: 20px;
    height: 20px;
}

/* ===== MOBILE MENU BODY ===== */

.mobile-nav-body {
    /* ✅ CRITICAL: Take remaining space and allow scroll */
    flex: 1 1 auto !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important; /* Parent doesn't scroll */
    /* ✅ DYNAMIC HEIGHT: Total - Header - Footer */
    height: calc(100vh - 50px - 70px) !important; /* Header 50px + Footer ~70px */
    height: calc(var(--vh, 100vh) - 50px - 70px) !important; /* Safari */
    min-height: 200px !important; /* Minimum usable space */
    max-height: none !important;
    position: relative !important;
    -webkit-overflow-scrolling: touch !important;
}
.mobile-nav-menu {
    /* ✅ CRITICAL: This is the actual scrollable container */
    flex: 1 1 auto !important;
    padding: 8px 12px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 3px !important;
    /* ✅ ENABLE SCROLLING HERE */
    overflow-y: auto !important;
    overflow-x: hidden !important;
    -webkit-overflow-scrolling: touch !important;
    scroll-behavior: smooth !important;
    /* ✅ CRITICAL: Auto height based on content */
    height: auto !important;
    min-height: 0 !important; /* Allow shrinking */
    max-height: none !important; /* No height limit */
    /* ✅ FORCE SCROLLING CONTEXT */
    overscroll-behavior: contain !important;
}

/* ===== MOBILE NAV ITEMS ===== */

.mobile-nav-item {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 8px 12px !important;
    color: rgba(255, 255, 255, 0.7) !important;
    text-decoration: none !important;
    font-weight: 500 !important;
    font-size: 12px !important; /* Smaller for more items */
    border-radius: 6px !important;
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    margin-bottom: 1px !important;
    /* ✅ COMPACT HEIGHT */
    min-height: 28px !important;
    max-height: 28px !important;
    height: 28px !important;
    transition: var(--transition-smooth) !important;
    position: relative;
    overflow: hidden;
    flex-shrink: 0 !important;
    will-change: transform !important;
}

.mobile-nav-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 107, 53, 0.1), transparent);
    transition: left 0.6s ease;
}

.mobile-nav-item:hover::before {
    left: 100%;
}

.mobile-nav-item:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    color: white !important;
    transform: translateX(8px) !important;
    border-color: rgba(255, 107, 53, 0.3) !important;
}

.mobile-nav-item.active {
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.2) 0%, rgba(255, 107, 53, 0.1) 100%) !important;
    color: #FF6B35 !important;
    border-color: rgba(255, 107, 53, 0.5) !important;
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.2);
}

.mobile-nav-icon {
    font-size: 16px !important; /* Smaller icon */
    width: 18px !important;
    text-align: center;
    flex-shrink: 0;
}

.mobile-nav-text {
    flex: 1;
    font-weight: 600;
    white-space: nowrap; /* Prevent wrapping */
    overflow: hidden;
    text-overflow: ellipsis;
}

.mobile-nav-arrow {
    font-size: 14px !important; /* Smaller arrow */
    color: rgba(255, 255, 255, 0.4);
    transition: var(--transition-smooth);
    flex-shrink: 0;
}

.mobile-nav-item:hover .mobile-nav-arrow,
.mobile-nav-item.active .mobile-nav-arrow {
    color: #FF6B35;
    transform: translateX(4px);
}

/* ===== MOBILE MENU FOOTER - FIXED POSITIONING ===== */

.mobile-nav-footer {
    flex-shrink: 0 !important;
    flex-grow: 0 !important;
    padding: 8px 12px 12px 12px !important;
    background: rgba(0, 0, 0, 0.3) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
    /* ✅ AUTO HEIGHT BASED ON CONTENT */
    height: auto !important;
    min-height: 60px !important;
    max-height: none !important;
    margin-top: auto !important; /* Stick to bottom if content is short */
    position: relative !important;
}

.mobile-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    margin-bottom: 10px !important; /* Smaller margin */
}

.mobile-cta-btn {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    width: 100% !important;
    padding: 10px 20px !important; /* Compact padding */
    background: linear-gradient(135deg, #0066FF 0%, #00D4AA 100%) !important;
    color: white !important;
    text-decoration: none !important;
    border-radius: 12px !important;
    font-weight: 600 !important;
    font-size: 13px !important; /* Smaller text */
    transition: var(--transition-smooth) !important;
    box-shadow: 0 4px 16px rgba(0, 102, 255, 0.3) !important;
    margin-bottom: 10px !important; /* Smaller margin */
    border: none !important;
    cursor: pointer !important;
    min-height: 40px !important; /* Fixed height */
    max-height: 40px !important;
}

.mobile-app-info {
    text-align: center;
    margin-top: 6px !important; /* Smaller margin */
}

.app-version {
    font-size: 10px !important; /* Smaller text */
    color: rgba(255, 255, 255, 0.6);
    margin: 0 0 2px 0 !important;
    font-weight: 500;
}

.app-copyright {
    font-size: 9px !important; /* Smaller text */
    color: rgba(255, 255, 255, 0.4);
    margin: 0 !important;
}

/* ===== RESPONSIVE MOBILE FIXES ===== */

@media (max-width: 768px) {
    .mobile-nav-content {
        width: 300px !important;
    }
    
    .mobile-nav-item {
        padding: 10px 14px !important;
        font-size: 13px !important;
        min-height: 40px !important;
        max-height: 40px !important;
    }
    
    .mobile-nav-menu {
        padding: 12px 16px 16px 16px !important;
        gap: 3px !important;
    }
}

@media (max-width: 480px) {
    .mobile-nav-content {
        width: 100vw !important;
        border-left: none;
    }
    
    .mobile-nav-header {
        padding: 14px 16px !important;
        height: 60px !important;
    }
    
    .mobile-nav-body {
        height: calc(100vh - 60px) !important;
        max-height: calc(100vh - 60px) !important;
    }
    
    .mobile-nav-item {
        padding: 8px 12px !important;
        font-size: 12px !important;
        min-height: 36px !important;
        max-height: 36px !important;
    }
    
    .mobile-nav-icon {
        font-size: 14px !important;
        width: 16px !important;
    }
    
    .mobile-cta-btn {
        padding: 8px 16px !important;
        font-size: 12px !important;
        min-height: 36px !important;
        max-height: 36px !important;
    }
}


/* ===== HEADER GRADIENT ===== */

.header-gradient {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--primary-gradient);
    opacity: 0.6;
}

/* ===== SCROLL EFFECTS ===== */

.syncsoft-header.scrolled {
    background: rgba(10, 14, 26, 0.95);
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

.syncsoft-header.scrolled .header-glass-bg {
    background: rgba(255, 255, 255, 0.05);
}

/* ===== FOCUS STATES ===== */

.nav-item-modern:focus-visible,
.cta-btn-modern:focus-visible,
.search-btn-modern:focus-visible,
.mobile-close-btn:focus-visible {
    outline: 2px solid var(--syncsoft-primary);
    outline-offset: 2px;
}

/* ===== ANIMATIONS ===== */

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

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

.nav-glass-container {
    animation: fadeInUp 0.6s ease-out 0.2s both;
}

.header-actions {
    animation: fadeInUp 0.6s ease-out 0.4s both;
}

/* Mobile menu items animation */
.mobile-nav-overlay.active .mobile-nav-item {
    animation: slideInRight 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    opacity: 0;
    transform: translateX(30px);
}

.mobile-nav-overlay.active .mobile-nav-item:nth-child(1) { animation-delay: 0.1s; }
.mobile-nav-overlay.active .mobile-nav-item:nth-child(2) { animation-delay: 0.15s; }
.mobile-nav-overlay.active .mobile-nav-item:nth-child(3) { animation-delay: 0.2s; }
.mobile-nav-overlay.active .mobile-nav-item:nth-child(4) { animation-delay: 0.25s; }
.mobile-nav-overlay.active .mobile-nav-item:nth-child(5) { animation-delay: 0.3s; }
.mobile-nav-overlay.active .mobile-nav-item:nth-child(6) { animation-delay: 0.35s; }
.mobile-nav-overlay.active .mobile-nav-item:nth-child(7) { animation-delay: 0.4s; }

/* ===== SCROLLBAR STYLING ===== */

.mobile-nav-body::-webkit-scrollbar {
    width: 4px;
}

.mobile-nav-body::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

.mobile-nav-body::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
}

.mobile-nav-body::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* ✅ SAFARI SPECIFIC FIXES */
@supports (-webkit-touch-callout: none) {
    /* Safari-specific styles */
    .mobile-nav-overlay {
        /* ✅ Safari viewport fix */
        height: -webkit-fill-available !important;
    }
    
    .mobile-nav-content {
        height: -webkit-fill-available !important;
    }
    
    .mobile-nav-body {
        /* ✅ Safari flex fix */
        min-height: min-content !important;
        -webkit-transform: translateZ(0) !important;
        transform: translateZ(0) !important;
    }
    
    .mobile-nav-menu {
        /* ✅ Safari scroll momentum */
        -webkit-overflow-scrolling: touch !important;
        -webkit-transform: translate3d(0,0,0) !important;
        transform: translate3d(0,0,0) !important;
    }
}
/* ✅ iOS SAFARI SPECIFIC FIXES */
@media screen and (-webkit-min-device-pixel-ratio: 1) {
    .mobile-nav-overlay {
        /* Fix for iOS Safari viewport issues */
        min-height: -webkit-fill-available !important;
    }
}
/* ✅ RESPONSIVE MOBILE FIXES - SAFARI OPTIMIZED */
@media (max-width: 768px) {
    .mobile-nav-content {
        width: 300px !important;
    }
    
    .mobile-nav-item {
        padding: 8px 12px !important;
        font-size: 12px !important;
        min-height: 32px !important;
        max-height: 32px !important;
        height: 32px !important;
    }
    
    .mobile-nav-menu {
        padding: 8px 12px !important;
        gap: 2px !important;
    }
    
    .mobile-nav-footer {
        min-height: 60px !important;
        padding: 8px 12px 12px 12px !important;
    }
}

@media (max-width: 480px) {
    .mobile-nav-content {
        width: 100vw !important;
        border-left: none;
    }
    
    .mobile-nav-header {
        padding: 12px 16px !important;
        height: 50px !important;
        min-height: 50px !important;
        max-height: 50px !important;
    }
    
    .mobile-nav-body {
        height: calc(100% - 50px) !important;
    }
    
    .mobile-nav-item {
        padding: 6px 10px !important;
        font-size: 11px !important;
        min-height: 28px !important;
        max-height: 28px !important;
        height: 28px !important;
        gap: 8px !important;
    }
    
    .mobile-nav-icon {
        font-size: 12px !important;
        width: 14px !important;
    }
    
    .mobile-cta-btn {
        padding: 6px 12px !important;
        font-size: 11px !important;
        min-height: 28px !important;
        max-height: 28px !important;
        height: 28px !important;
    }
    
    .mobile-nav-footer {
        min-height: 50px !important;
        padding: 6px 10px 8px 10px !important;
    }
}

/* ===== RESPONSIVE DESIGN ===== */

@media (max-width: 1024px) {
    .nav-modern {
        display: none !important;
    }
    
    .mobile-menu-btn-modern {
        display: flex !important;
    }
    
    .header-actions .search-btn-modern {
        display: none;
    }
}

@media (max-width: 768px) {
    .header-container {
        padding: 0 16px;
        height: 64px;
    }
    
    .brand-text-modern {
        display: none;
    }
    
    .header-actions .cta-btn-modern {
        display: none;
    }
    
    .mobile-nav-content {
        width: 320px !important;
    }
}

@media (max-width: 480px) {
    .mobile-nav-content {
        width: 100vw !important;
        border-left: none;
    }
    
    .mobile-nav-header {
        padding: 16px 20px !important;
    }
    
    .mobile-nav-item {
        padding: 16px 18px !important;
        font-size: 15px !important;
    }
}

/* ===== PRINT STYLES ===== */

@media print {
    .syncsoft-header {
        display: none;
    }
}

/* ===== ACCESSIBILITY ===== */

@media (prefers-reduced-motion: reduce) {
    * {
        transition: none !important;
        animation: none !important;
    }
}

@media (prefers-contrast: high) {
    .syncsoft-header {
        background: #000000;
        border-bottom: 3px solid #FFFFFF;
    }
    
    .nav-item-modern,
    .mobile-nav-item {
        border: 1px solid rgba(255, 255, 255, 0.5);
    }
}

/* ===== END OF HEADER CSS ===== */

/* ===== FORCE LAYOUT DEBUG ===== */

/* Temporary - để debug layout */
/* ✅ REMOVE DEBUG BORDERS */
.mobile-nav-menu {
    border: none !important; /* Remove debug border */
}

.mobile-nav-footer {
    border: none !important; /* Remove debug border */
}
/* ✅ SCROLLBAR STYLING FOR SAFARI */
.mobile-nav-menu::-webkit-scrollbar {
    width: 3px !important;
    background: transparent !important;
}

.mobile-nav-menu::-webkit-scrollbar-track {
    background: transparent !important;
}

.mobile-nav-menu::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2) !important;
    border-radius: 2px !important;
}

.mobile-nav-menu::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3) !important;
}

/* ✅ FORCE SCROLLING INDICATOR ON SAFARI */
.mobile-nav-menu {
    /* Show scroll indicator on Safari iOS */
    scrollbar-width: thin !important;
    scrollbar-color: rgba(255, 255, 255, 0.2) transparent !important;
}
.mobile-nav-menu {
    /* Temporarily show scroll area */
    border: 1px solid rgba(255, 0, 0, 0.2) !important;
}

.mobile-nav-footer {
    /* Temporarily show footer area */
    border: 1px solid rgba(0, 255, 0, 0.2) !important;
}