
        /* Internet Status Toast */
.internet-toast {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(-120px);
    z-index: 99999;
    padding: 14px 28px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    pointer-events: none;
    white-space: nowrap;
    backdrop-filter: blur(10px);
}

.internet-toast.show {
    transform: translateX(-50%) translateY(0);
}

.internet-toast.offline {
    background: #ef4444;
    color: white;
}

.internet-toast.online {
    background: #2563eb;
    color: white;
}

.internet-toast i {
    font-size: 1.2rem;
}

.internet-toast .toast-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    animation: pulse-dot 1.5s infinite;
}

.internet-toast.offline .toast-dot {
    background: #fca5a5;
}

.internet-toast.online .toast-dot {
    background: #93c5fd;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.5); }
}
        .search-section-title {
    padding: 10px 20px 6px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 6px;
    border-top: 1px solid #f1f5f9;
}
.search-section-title:first-child {
    border-top: none;
}
.search-icon-circle {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    flex-shrink: 0;
}
        
        ::-webkit-scrollbar { width: 6px; }
        ::-webkit-scrollbar-track { background: #f1f5f9; }
        ::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 10px; }
        
        .header {
            position: fixed;
            top: 0; left: 0; right: 0;
            z-index: 1000;
            transition: all 0.3s ease;
        }
        .header-top {
            background: #1e293b;
            padding: 6px 0;
            font-size: 12px;
            transition: all 0.3s ease;
        }
        .header-top.hidden { transform: translateY(-100%); height: 0; padding: 0; opacity: 0; }
        .header-main {
            background: rgba(255, 255, 255, 0.95);
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            box-shadow: 0 1px 3px rgba(0,0,0,0.05);
            transition: all 0.3s ease;
        }
        .header.scrolled .header-main { box-shadow: 0 4px 20px rgba(0,0,0,0.08); }
        
        .nav-link {
            position: relative;
            font-weight: 500;
            color: #475569;
            transition: all 0.2s ease;
            padding: 6px 2px;
            font-size: 0.85rem;
            text-decoration: none;
        }
        .nav-link::after {
            content: '';
            position: absolute;
            bottom: -2px; left: 0;
            width: 0; height: 2px;
            background: #2563eb;
            border-radius: 2px;
            transition: width 0.3s ease;
        }
        .nav-link:hover { color: #2563eb; }
        .nav-link:hover::after,
        .nav-link.active::after { width: 100%; }
        .nav-link.active { color: #2563eb; font-weight: 600; }
        
        .btn-sm {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            padding: 8px 16px;
            border-radius: 8px;
            font-weight: 600;
            font-size: 0.8rem;
            text-decoration: none;
            transition: all 0.2s ease;
            cursor: pointer;
            border: none;
            white-space: nowrap;
            letter-spacing: 0.01em;
        }
        .btn-primary-sm {
            background: #2563eb;
            color: white;
            box-shadow: 0 2px 8px rgba(37,99,235,0.2);
        }
        .btn-primary-sm:hover { background: #1d4ed8; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(37,99,235,0.3); }
        .btn-outline-sm {
            border: 1.5px solid #d1d5db;
            color: #475569;
            background: white;
        }
        .btn-outline-sm:hover { border-color: #2563eb; color: #2563eb; background: #f8fafc; }
        
        .dropdown { position: relative; }
        .dropdown-menu {
            opacity: 0; visibility: hidden;
            transform: translateY(-8px);
            transition: all 0.2s ease;
            background: white;
            border-radius: 12px;
            box-shadow: 0 10px 40px rgba(0,0,0,0.12);
            padding: 6px;
            min-width: 200px;
            position: absolute;
            right: 0;
            top: 100%;
            margin-top: 8px;
            z-index: 100;
        }
        .dropdown:hover .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
        .dropdown-item {
            display: flex; align-items: center; gap: 10px;
            padding: 9px 14px; border-radius: 8px;
            color: #475569; text-decoration: none;
            font-size: 0.82rem; font-weight: 500;
            transition: all 0.15s ease;
        }
        .dropdown-item:hover { background: #f1f5f9; color: #2563eb; }
        .dropdown-item.danger { color: #ef4444; }
        .dropdown-item.danger:hover { background: #fef2f2; }
        
        .user-avatar-sm {
            width: 32px; height: 32px;
            border-radius: 50%;
            background: linear-gradient(135deg, #2563eb, #3b82f6);
            color: white;
            display: flex; align-items: center; justify-content: center;
            font-weight: 700; font-size: 0.75rem;
            flex-shrink: 0;
        }
        
        .lang-switcher { position: relative; }
        .lang-btn {
            display: flex; align-items: center; gap: 6px;
            padding: 6px 12px; border-radius: 8px;
            background: #f1f5f9; border: 1px solid #e2e8f0;
            cursor: pointer; font-size: 0.8rem; font-weight: 600;
            color: #475569; transition: all 0.2s ease;
        }
        .lang-btn:hover { border-color: #2563eb; color: #2563eb; background: white; }
        .lang-dropdown {
            position: absolute; top: 100%; right: 0; margin-top: 8px;
            background: white; border-radius: 12px;
            box-shadow: 0 10px 40px rgba(0,0,0,0.15);
            padding: 8px; min-width: 200px;
            opacity: 0; visibility: hidden;
            transform: translateY(-10px);
            transition: all 0.2s ease;
            z-index: 100;
            border: 1px solid #e2e8f0;
        }
        .lang-switcher:hover .lang-dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
        .lang-option {
            display: flex; align-items: center; gap: 10px;
            padding: 8px 12px; border-radius: 8px;
            cursor: pointer; font-size: 0.8rem; font-weight: 500;
            color: #475569; transition: all 0.15s ease;
            text-decoration: none;
        }
        .lang-option:hover { background: #f1f5f9; color: #2563eb; }
        .lang-option.active { background: #eff6ff; color: #2563eb; font-weight: 600; }
        .lang-flag { font-size: 1.2rem; }
        .lang-name { flex: 1; }
        
        .search-trigger {
            display: flex; align-items: center; gap: 8px;
            padding: 8px 16px; border-radius: 50px;
            background: #f1f5f9; border: 1.5px solid #e2e8f0;
            cursor: pointer; font-size: 0.85rem; font-weight: 500;
            color: #64748b; transition: all 0.2s ease;
            min-width: 200px;
        }
        .search-trigger:hover { border-color: #2563eb; background: white; transform: translateY(-1px); }
        .search-trigger i { font-size: 0.9rem; color: #94a3b8; }
        .search-trigger .shortcut {
            margin-left: auto;
            background: #e2e8f0;
            padding: 2px 8px;
            border-radius: 4px;
            font-size: 0.65rem;
            font-weight: 700;
            color: #64748b;
        }
        
        .search-overlay {
            position: fixed;
            inset: 0;
            background: rgba(0,0,0,0.6);
            backdrop-filter: blur(4px);
            z-index: 2000;
            opacity: 0;
            visibility: hidden;
            transition: all 0.2s ease;
            display: flex;
            align-items: flex-start;
            justify-content: center;
            padding-top: 15vh;
        }
        .search-overlay.active { opacity: 1; visibility: visible; }
        
        .search-modal {
            background: white;
            border-radius: 20px;
            width: 100%;
            max-width: 600px;
            box-shadow: 0 20px 60px rgba(0,0,0,0.2);
            overflow: hidden;
            animation: searchSlideIn 0.3s ease;
        }
        @keyframes searchSlideIn {
            from { opacity: 0; transform: translateY(-20px) scale(0.95); }
            to { opacity: 1; transform: translateY(0) scale(1); }
        }
        
        .search-input-wrap {
            display: flex; align-items: center;
            padding: 16px 20px;
            border-bottom: 1px solid #e2e8f0;
            gap: 12px;
        }
        .search-input-wrap i { font-size: 1.2rem; color: #94a3b8; }
        .search-input-wrap input {
            flex: 1; border: none; outline: none;
            font-size: 1rem; color: #1e293b;
            background: transparent;
        }
        .search-input-wrap input::placeholder { color: #94a3b8; }
        .search-close {
            width: 32px; height: 32px;
            border-radius: 50%;
            border: none;
            background: #f1f5f9;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            color: #64748b;
            transition: all 0.2s;
            flex-shrink: 0;
        }
        .search-close:hover { background: #e2e8f0; color: #1e293b; }
        
        .search-results {
            max-height: 400px;
            overflow-y: auto;
        }
        .search-result-item {
            display: flex; align-items: center; gap: 12px;
            padding: 12px 20px;
            cursor: pointer;
            transition: background 0.15s;
            text-decoration: none;
            border-bottom: 1px solid #f1f5f9;
        }
        .search-result-item:hover { background: #f8fafc; }
        .search-result-item img {
            width: 48px; height: 48px;
            object-fit: cover;
            border-radius: 8px;
        }
        .search-result-info { flex: 1; min-width: 0; }
        .search-result-info h4 {
            font-size: 0.9rem;
            font-weight: 600;
            color: #1e293b;
            margin-bottom: 2px;
        }
        .search-result-info p {
            font-size: 0.75rem;
            color: #64748b;
        }
        .search-result-price {
            font-weight: 700;
            color: #2563eb;
            font-size: 0.9rem;
            white-space: nowrap;
        }
        .search-no-results { text-align: center; padding: 30px; color: #94a3b8; font-size: 0.9rem; }
        .search-loading { text-align: center; padding: 20px; color: #94a3b8; }
        
        .mobile-menu-btn {
            display: none;
            width: 36px; height: 36px;
            border-radius: 8px;
            background: #f8fafc;
            border: 1px solid #e2e8f0;
            cursor: pointer;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 4px;
            transition: all 0.2s ease;
        }
        @media (max-width: 1024px) { .mobile-menu-btn { display: flex; } }
        .mobile-menu-btn span {
            display: block;
            width: 18px; height: 2px;
            background: #475569;
            border-radius: 2px;
            transition: all 0.3s ease;
        }
        .mobile-menu-btn.active { background: #2563eb; border-color: #2563eb; }
        .mobile-menu-btn.active span { background: white; }
        .mobile-menu-btn.active span:nth-child(1) { transform: rotate(45deg) translate(4px, 4px); }
        .mobile-menu-btn.active span:nth-child(2) { opacity: 0; }
        .mobile-menu-btn.active span:nth-child(3) { transform: rotate(-45deg) translate(4px, -4px); }
        
        .mobile-overlay {
            position: fixed;
            inset: 0;
            background: rgba(0,0,0,0.5);
            z-index: 998;
            opacity: 0;
            visibility: hidden;
            transition: all 0.3s ease;
        }
        .mobile-overlay.active { opacity: 1; visibility: visible; }
        
        .mobile-bottom-sheet {
            position: fixed;
            bottom: 0; left: 0; right: 0;
            background: white;
            border-radius: 24px 24px 0 0;
            z-index: 999;
            max-height: 85vh;
            overflow-y: auto;
            transform: translateY(100%);
            transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
            box-shadow: 0 -10px 50px rgba(0,0,0,0.15);
            padding: 0;
        }
        .mobile-bottom-sheet.active { transform: translateY(0); }
        
        .sheet-handle {
            width: 40px; height: 4px;
            background: #d1d5db;
            border-radius: 2px;
            margin: 12px auto 8px;
        }
        
        .sheet-user-info {
            display: flex; align-items: center; gap: 12px;
            padding: 12px 20px;
            background: linear-gradient(135deg, #2563eb, #3b82f6);
            margin: 0 16px;
            border-radius: 16px;
            color: white;
        }
        .sheet-avatar {
            width: 44px; height: 44px;
            border-radius: 50%;
            background: rgba(255,255,255,0.2);
            display: flex; align-items: center; justify-content: center;
            font-weight: 700; font-size: 1rem;
            flex-shrink: 0;
        }
        
        .sheet-nav { padding: 16px; }
        .sheet-item {
            display: flex; align-items: center; gap: 14px;
            padding: 14px 16px; border-radius: 12px;
            color: #334155; text-decoration: none;
            font-weight: 500; font-size: 0.95rem;
            transition: all 0.15s ease;
            margin-bottom: 2px;
        }
        .sheet-item:hover, .sheet-item:active { background: #f1f5f9; }
        .sheet-item.active { background: #eff6ff; color: #2563eb; }
        .sheet-item i { width: 22px; text-align: center; font-size: 1.1rem; }
        .sheet-divider { height: 1px; background: #e2e8f0; margin: 8px 0; }
        .sheet-lang { display: flex; gap: 8px; padding: 8px 16px; flex-wrap: wrap; }
        .sheet-lang-btn {
            flex: 1; text-align: center; padding: 10px;
            border-radius: 10px; font-size: 0.8rem; font-weight: 600;
            border: 1px solid #e2e8f0; background: white;
            color: #64748b; cursor: pointer; transition: all 0.2s;
        }
        .sheet-lang-btn.active { background: #2563eb; color: white; border-color: #2563eb; }
        
        @media (max-width: 1024px) { 
            .desktop-menu { display: none; } 
            .search-trigger { min-width: auto; padding: 8px 12px; } 
            .search-trigger span { display: none; } 
        }
        @media (min-width: 1025px) { .mobile-menu-btn { display: none; } }
        
        /* Language Popup */
        .lang-popup-overlay {
            position: fixed;
            inset: 0;
            background: rgba(0, 0, 0, 0.75);
            backdrop-filter: blur(16px);
            -webkit-backdrop-filter: blur(16px);
            z-index: 100000;
            display: none;
            align-items: center;
            justify-content: center;
            padding: 20px;
        }
        .lang-popup-overlay.active {
            display: flex;
            animation: langPopupFadeIn 0.4s ease;
        }
        
        @keyframes langPopupFadeIn {
            from { opacity: 0; }
            to { opacity: 1; }
        }
        
        @keyframes langPopupSlideUp {
            from { opacity: 0; transform: translateY(40px) scale(0.95); }
            to { opacity: 1; transform: translateY(0) scale(1); }
        }
        
        .lang-popup-container {
            background: linear-gradient(145deg, #ffffff, #f8fafc);
            border-radius: 32px;
            max-width: 560px;
            width: 100%;
            padding: 40px 35px;
            box-shadow: 0 50px 80px rgba(0, 0, 0, 0.4);
            position: relative;
            overflow: hidden;
            max-height: 90vh;
            overflow-y: auto;
            animation: langPopupSlideUp 0.5s ease;
            border: 1px solid rgba(255,255,255,0.2);
        }
        
        .lang-popup-container::before {
            content: '';
            position: absolute;
            top: -50%;
            right: -50%;
            width: 100%;
            height: 100%;
            background: radial-gradient(circle, rgba(37, 99, 235, 0.04) 0%, transparent 70%);
            pointer-events: none;
        }
        
        .lang-popup-header {
            text-align: center;
            margin-bottom: 28px;
            position: relative;
        }
        
        .lang-popup-logo {
            width: 76px;
            height: 76px;
            margin: 0 auto 14px;
            background: linear-gradient(135deg, #2563eb, #1d4ed8);
            border-radius: 24px;
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 16px 40px rgba(37, 99, 235, 0.35);
        }
        
        .lang-popup-logo img {
            width: 46px;
            height: 46px;
            object-fit: contain;
            filter: brightness(0) invert(1);
        }
        
        .lang-popup-title {
            font-size: 26px;
            font-weight: 800;
            color: #0f172a;
            margin-bottom: 4px;
            letter-spacing: -0.5px;
        }
        
        .lang-popup-subtitle {
            font-size: 15px;
            color: #64748b;
            font-weight: 400;
        }
        
        .lang-popup-divider {
            width: 50px;
            height: 3px;
            background: linear-gradient(90deg, #2563eb, #3b82f6);
            border-radius: 3px;
            margin: 10px auto 0;
        }
        
        .lang-popup-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
            gap: 12px;
            margin: 20px 0 24px;
            position: relative;
        }
        
        .lang-popup-option {
            background: white;
            border: 2.5px solid #e2e8f0;
            border-radius: 16px;
            padding: 14px 10px;
            cursor: pointer;
            transition: all 0.3s ease;
            text-align: center;
            position: relative;
            user-select: none;
        }
        
        .lang-popup-option:hover {
            border-color: #93c5fd;
            transform: translateY(-3px);
            box-shadow: 0 8px 25px rgba(37, 99, 235, 0.12);
        }
        
        .lang-popup-option.selected {
            border-color: #2563eb;
            background: #eff6ff;
            box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
            transform: translateY(-2px);
        }
        
        .lang-popup-option .lang-flag {
            font-size: 30px;
            display: block;
            margin-bottom: 4px;
            line-height: 1.2;
        }
        
        .lang-popup-option .lang-name {
            font-size: 14px;
            font-weight: 600;
            color: #0f172a;
            display: block;
        }
        
        .lang-popup-option .lang-native {
            font-size: 11px;
            color: #94a3b8;
            font-weight: 400;
            display: block;
            margin-top: 2px;
        }
        
        .lang-popup-option .check-mark {
            position: absolute;
            top: -6px;
            right: -6px;
            background: #2563eb;
            color: white;
            border-radius: 50%;
            width: 22px;
            height: 22px;
            display: none;
            align-items: center;
            justify-content: center;
            font-size: 11px;
            box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
        }
        
        .lang-popup-option.selected .check-mark {
            display: flex;
        }
        
        .lang-popup-footer {
            display: flex;
            gap: 12px;
            margin-top: 4px;
            position: relative;
        }
        
        .lang-popup-btn {
            flex: 1;
            padding: 14px 20px;
            border: none;
            border-radius: 16px;
            font-weight: 700;
            font-size: 16px;
            cursor: pointer;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
            font-family: inherit;
        }
        
        .lang-popup-btn-primary {
            background: linear-gradient(135deg, #2563eb, #1d4ed8);
            color: white;
            box-shadow: 0 8px 30px rgba(37, 99, 235, 0.35);
        }
        
        .lang-popup-btn-secondary {
            background: #f1f5f9;
            color: #475569;
            border: 2px solid #e2e8f0;
        }
        
        .lang-popup-skip {
            text-align: center;
            margin-top: 16px;
        }
        
        .lang-popup-skip a {
            color: #94a3b8;
            font-size: 13px;
            text-decoration: none;
            transition: color 0.3s ease;
            font-weight: 500;
        }
        
        .lang-popup-skip a:hover {
            color: #2563eb;
        }
        
        @media (max-width: 640px) {
            .lang-popup-container {
                padding: 28px 20px;
                border-radius: 24px;
                margin: 10px;
            }
            .lang-popup-title {
                font-size: 20px;
            }
            .lang-popup-grid {
                grid-template-columns: repeat(3, 1fr);
                gap: 8px;
            }
            .lang-popup-option {
                padding: 12px 6px;
                border-radius: 12px;
            }
            .lang-popup-option .lang-flag {
                font-size: 24px;
            }
            .lang-popup-option .lang-name {
                font-size: 11px;
            }
            .lang-popup-btn {
                font-size: 14px;
                padding: 12px 16px;
            }
            .lang-popup-logo {
                width: 64px;
                height: 64px;
                border-radius: 20px;
            }
        }
        
        @media (max-width: 400px) {
            .lang-popup-grid {
                grid-template-columns: repeat(2, 1fr);
            }
            .lang-popup-footer {
                flex-direction: column;
            }
        }