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

/* Theme Variables - Light Mode (Default) - Premium Liquid Glass */
:root, :root[data-theme="light"] {
    --primary-color: #6e7afc;
    --primary-dark: #5b68f0;
    --primary-light: #a88bff;
    --secondary-color: #a78bfa;
    --accent-color: #ff72c6;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --green-color: #22c55e;
    --green-dark: #16a34a;
    
    /* Light Mode Colors - Premium Liquid Glass */
    --dark-bg: #f6f8fc;
    --dark-card: rgba(255, 255, 255, 0.92);
    --dark-border: rgba(226, 232, 240, 0.5);
    --text-primary: #0c0e14;
    --text-secondary: #58607a;
    --text-muted: #9aa4bf;
    
    /* Liquid Glass - Premium Enhanced */
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(139, 92, 246, 0.25);
    --glass-shadow: 0 8px 32px 0 rgba(139, 92, 246, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.5);
    --glass-item-bg: rgba(255, 255, 255, 0.5);
    --glass-item-border: rgba(139, 92, 246, 0.2);
    
    --gradient: linear-gradient(135deg, #6e7afc 0%, #a88bff 50%, #ff72c6 100%);
    --gradient-2: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-nav: linear-gradient(135deg, #6e7afc 0%, #a88bff 100%);
    --gradient-glass: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.8) 100%);
    
    --shadow: 0 10px 30px rgba(13, 19, 33, 0.12);
    --shadow-lg: 0 20px 60px rgba(13, 19, 33, 0.16);
    --shadow-sm: 0 2px 10px rgba(13, 19, 33, 0.06);
    --shadow-hover: 0 16px 44px rgba(139, 92, 246, 0.28);
    
    --blur-amount: 20px;
    --bezier: cubic-bezier(0.22, 0.61, 0.36, 1);
    --topbar-h: 44px;
    --navbar-h: 70px;
}

/* Theme Variables - Dark Mode - Premium Liquid Glass */
/* Màu sắc theo hình ảnh FXIFY: Dark blue-black với Purple-blue gradient, Neon Blue, Orange glows */
:root[data-theme="dark"] {
    /* Purple-blue chủ đạo (như nút "Get Funded" trong ảnh) */
    --primary-color: #8b5cf6;
    --primary-dark: #7c3aed;
    --primary-light: #a78bfa;
    
    /* Xanh neon (Neon Blue) - màu sáng trên màn hình điện thoại */
    --secondary-color: #3b82f6;
    --accent-color: #60a5fa;
    
    /* Orange-blue glow cho các hiệu ứng phát sáng (orb bên phải) */
    --orange-glow: #f97316;
    --orange-accent: #fb923c;
    --orange-blue: #ff8c42;
    
    /* Xanh dương đậm cho backgrounds (dark blue-black) */
    --deep-blue: #0f172a;
    --deep-blue-light: #1e293b;
    --dark-blue-black: #0a0e1a;
    
    /* Xanh-tím (Blue-purple) - màu orb lớn bên trái */
    --blue-purple: #6366f1;
    --purple-blue: #8b5cf6;
    
    /* Màu hệ thống */
    --success-color: #34d399;
    --warning-color: #fbbf24;
    --danger-color: #f87171;
    --green-color: #4ade80;
    --green-dark: #22c55e;
    
    /* Dark Mode Colors - Nền dark blue-black (giống ảnh) */
    --dark-bg: #0a0e1a;
    --dark-bg-secondary: #0f1419;
    --dark-card: rgba(15, 23, 42, 0.85);
    --dark-border: rgba(255, 255, 255, 0.12);
    --text-primary: #ffffff;
    --text-secondary: #e2e8f0;
    --text-muted: #94a3b8;
    
    /* Liquid Glass - Premium Enhanced với Purple-blue glow */
    --glass-bg: rgba(15, 23, 42, 0.5);
    --glass-border: rgba(139, 92, 246, 0.25);
    --glass-shadow: 0 8px 32px 0 rgba(99, 102, 241, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    --glass-item-bg: rgba(255, 255, 255, 0.06);
    --glass-item-border: rgba(139, 92, 246, 0.2);
    
    /* Gradients với Purple-blue và Neon Blue (giống nút "Get Funded") */
    --gradient: linear-gradient(135deg, #8b5cf6 0%, #6366f1 50%, #3b82f6 100%);
    --gradient-2: linear-gradient(135deg, #3b82f6 0%, #60a5fa 50%, #8b5cf6 100%);
    --gradient-nav: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%);
    --gradient-glass: linear-gradient(135deg, rgba(15, 23, 42, 0.95) 0%, rgba(30, 41, 59, 0.9) 100%);
    --gradient-orange: linear-gradient(135deg, #f97316 0%, #fb923c 100%);
    --gradient-blue: linear-gradient(135deg, #3b82f6 0%, #60a5fa 100%);
    --gradient-purple-blue: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%);
    
    /* Shadows với Purple-blue glow */
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
    --shadow-lg: 0 20px 60px rgba(99, 102, 241, 0.3);
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.5);
    --shadow-hover: 0 16px 44px rgba(139, 92, 246, 0.4);
    --shadow-purple: 0 0 20px rgba(139, 92, 246, 0.5);
    --shadow-blue: 0 0 20px rgba(59, 130, 246, 0.4);
    --shadow-orange: 0 0 20px rgba(249, 115, 22, 0.4);
    
    --blur-amount: 24px;
    --bezier: cubic-bezier(0.22, 0.61, 0.36, 1);
    --topbar-h: 44px;
    --navbar-h: 70px;
}

/* Smooth theme transition */
body.theme-transitioning,
body.theme-transitioning * {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease !important;
}

/* Tối ưu rendering performance cho scroll mượt */
* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Tối ưu GPU acceleration cho các section chính */
.hero-section,
.transition-video-section,
.feature-video-section,
.features-section,
.main-content {
    transform: translateZ(0);
    backface-visibility: hidden;
    perspective: 1000px;
    will-change: transform;
}

html {
    scroll-behavior: auto; /* Tắt smooth mặc định để dùng Lenis */
    width: 100%;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    overflow-x: hidden; /* Tránh cuộn ngang */
    /* Ẩn thanh cuộn nhưng vẫn giữ khả năng cuộn */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE và Edge */
}

/* Ẩn thanh cuộn trên Webkit browsers (Chrome, Safari, Edge) */
html::-webkit-scrollbar {
    display: none;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: var(--dark-bg);
    color: var(--text-primary);
    line-height: 1.55;
    letter-spacing: -0.01em;
    min-height: 100vh;
    background-image: 
        radial-gradient(900px 700px at 20% 30%, rgba(139, 92, 246, 0.22), transparent 70%),
        radial-gradient(600px 500px at 85% 60%, rgba(249, 115, 22, 0.15), transparent 65%),
        radial-gradient(500px 500px at 50% 50%, rgba(59, 130, 246, 0.12), transparent 60%),
        var(--dark-bg);
    background-attachment: fixed;
    transition: background-color 0.3s var(--bezier);
    overflow-x: hidden; /* Tránh cuộn ngang */
    scroll-behavior: auto; /* Tắt smooth mặc định để dùng Lenis */
    -webkit-tap-highlight-color: transparent;
    width: 100%;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    /* Ẩn thanh cuộn nhưng vẫn giữ khả năng cuộn */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE và Edge */
}

/* Ẩn thanh cuộn trên Webkit browsers (Chrome, Safari, Edge) */
body::-webkit-scrollbar {
    display: none;
}

/* Dark mode background với Purple-blue orb lớn bên trái, Orange-blue orb bên phải (giống ảnh) */
:root[data-theme="dark"] body {
    background-image: 
        radial-gradient(900px 700px at 20% 30%, rgba(139, 92, 246, 0.28), transparent 70%),
        radial-gradient(600px 500px at 85% 60%, rgba(249, 115, 22, 0.18), transparent 65%),
        radial-gradient(500px 500px at 50% 50%, rgba(59, 130, 246, 0.15), transparent 60%),
        radial-gradient(300px 300px at 10% 80%, rgba(99, 102, 241, 0.12), transparent 55%),
        var(--dark-bg);
}

/* Video Transition Overlay */
.video-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.video-overlay.active {
    display: flex;
    opacity: 1;
}

.transition-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
}

/* Text Overlay on Video */
.video-text-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10002;
    width: 100%;
    max-width: 70%;
    text-align: center;
    pointer-events: none;
}

.video-text {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-size: clamp(16px, 4vw, 32px);
    font-weight: 700;
    line-height: 1.3;
    color: #ffffff;
    text-shadow: 
        0 2px 8px rgba(0, 0, 0, 0.8),
        0 4px 16px rgba(0, 0, 0, 0.6),
        0 0 20px rgba(139, 92, 246, 0.4);
    margin: 0;
    padding: 0;
    letter-spacing: -0.02em;
    white-space: nowrap;
    display: inline-block;
    
    /* Ban đầu ẩn hoàn toàn */
    opacity: 0;
    transform: translateY(12px) scale(0.97);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

/* Khi có class .show, text xuất hiện */
.video-text.show {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Responsive adjustments for text */
@media (max-width: 768px) {
    .video-text-overlay {
        max-width: 85%;
    }
    
    .video-text {
        font-size: clamp(16px, 5vw, 20px);
        white-space: normal;
        line-height: 1.4;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .video-text {
        font-size: clamp(20px, 3vw, 28px);
    }
}

/* Loading Spinner for Video */
.video-loading-spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10001;
    opacity: 1;
    transition: opacity 0.2s ease;
}

.video-loading-spinner.hidden {
    opacity: 0;
    pointer-events: none;
}

.video-loading-spinner .spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.2);
    border-top-color: rgba(139, 92, 246, 0.8);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Scroll Progress Bar */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0%;
    background: var(--gradient);
    box-shadow: 0 0 10px rgba(139, 92, 246, 0.6);
    transition: width 0.1s linear;
    z-index: 9999;
    pointer-events: none;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

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

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

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

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.8;
    }
}

/* Theme Toggle Button - HIDDEN (Theme locked to dark mode) */
.theme-toggle-wrapper,
.theme-toggle {
    display: none !important;
    visibility: hidden !important;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

/* Top Bar - Enhanced Professional Styling */
.top-bar {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.96) 0%, rgba(139, 92, 246, 0.96) 100%);
    backdrop-filter: saturate(180%) blur(16px);
    -webkit-backdrop-filter: saturate(180%) blur(16px);
    color: white;
    padding: 12px 0;
    font-size: 0.875rem;
    box-shadow: 0 2px 16px rgba(99, 102, 241, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    position: relative;
    z-index: 1001;
}

.top-bar-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.support-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.top-bar-label {
    font-weight: 600;
    opacity: 0.95;
    margin-right: 4px;
}

.support-link {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 6px 12px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.08);
}

.support-link:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.support-icon {
    font-size: 1.1em;
}

.support-text {
    font-size: 0.9em;
}

.separator {
    color: rgba(255, 255, 255, 0.5);
    margin: 0 6px;
    font-weight: 300;
}

.business-hours {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.12);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.875rem;
}

@media (min-width: 1024px) {
    /* Thêm padding-top cho body để bù cho top-bar fixed */
    body {
        padding-top: 32px;
    }

    .top-bar {
        height: 32px;
        padding: 0;
        background: rgba(6, 8, 18, 0.65);
        backdrop-filter: blur(18px);
        -webkit-backdrop-filter: blur(18px);
        box-shadow: none;
        border-bottom: 1px solid rgba(112, 122, 208, 0.12);
    }

    .top-bar-content {
        height: 100%;
        padding: 0 clamp(24px, 5vw, 56px);
        display: flex;
        align-items: center;
        justify-content: center;
        gap: clamp(12px, 2vw, 22px);
        font-size: 0.72rem;
        color: rgba(237, 241, 255, 0.78);
        letter-spacing: 0.08em;
    }

    .support-info {
        display: inline-flex;
        align-items: center;
        gap: clamp(10px, 1.6vw, 16px);
    }

    .top-bar-label {
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.18em;
        font-size: 0.68rem;
        color: rgba(225, 229, 255, 0.7);
    }

    .support-link {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        padding: 6px 12px;
        border-radius: 8px;
        background: transparent;
        border: none;
        box-shadow: none;
        backdrop-filter: none;
        transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
        font-size: 0.75rem;
        color: rgba(244, 246, 255, 0.92);
        position: relative;
    }

    .support-link:hover {
        opacity: 1;
        background: rgba(255, 255, 255, 0.08);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        color: rgba(255, 255, 255, 1);
        transform: translateY(-1px);
    }

    .support-icon {
        font-size: 0.85rem;
        filter: drop-shadow(0 0 6px rgba(115, 135, 255, 0.4));
        transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .support-link:hover .support-icon {
        transform: scale(1.05);
        filter: drop-shadow(0 0 8px rgba(115, 135, 255, 0.6));
    }

    .support-text {
        font-size: 0.75rem;
        font-weight: 500;
        transition: color 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .business-hours {
        display: none;
    }

    /* Top bar scroll hide animation - Desktop only */
    .top-bar {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        width: 100%;
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        transform: translateY(0);
        opacity: 1;
    }

    .top-bar.top-bar-hidden {
        transform: translateY(-100%);
        opacity: 0;
        pointer-events: none;
    }

    /* Navbar nằm ngay dưới top-bar khi hiển thị */
    .navbar {
        position: sticky;
        top: 32px;
        transition: top 0.3s ease;
        margin-top: 0 !important;
        z-index: 1000;
    }

    /* Khi top-bar ẩn, đẩy navbar lên sát mép trên để luôn hiển thị đầy đủ */
    body.top-bar-scrolled .navbar {
        top: 0;
        margin-top: 0 !important;
        transform: none !important;
    }

    .hours-icon {
        display: none;
    }

    .hours-text strong {
        font-weight: 600;
        letter-spacing: 0.01em;
        color: #ffffff;
    }

    .separator {
        margin-inline: clamp(0px, 0.6vw, 6px);
        color: rgba(255, 255, 255, 0.4);
    }

    .navbar {
        background: rgba(6, 8, 18, 0.3);
        backdrop-filter: blur(22px);
        -webkit-backdrop-filter: blur(22px);
        box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.04);
        border-bottom: 1px solid rgba(102, 116, 214, 0.18);
    }
}

.hours-icon {
    font-size: 1.1em;
}

.hours-text {
    font-weight: 400;
}

.hours-text strong {
    font-weight: 700;
    margin-left: 4px;
}

@media (max-width: 768px) {
    .top-bar-content {
        padding: 0 16px;
        gap: 12px;
        font-size: 0.8rem;
    }
    
    .business-hours {
        font-size: 0.75rem;
        padding: 5px 10px;
    }
    
    .support-text {
        display: none;
    }
}

.arrow {
    font-size: 0.55rem;
    margin-left: 3px;
    display: inline-block;
    vertical-align: middle;
    line-height: 1;
    white-space: nowrap;
    flex-shrink: 0;
    opacity: 0.75;
    transition: opacity 0.2s ease, transform 0.2s ease;
    transform: translateY(-1px);
}

.nav-link:hover .arrow {
    opacity: 1;
}

/* Ensure arrow stays inline on all screen sizes */
@media (max-width: 768px) {
    .nav-link {
        padding: 12px 16px;
        gap: 3px;
    }
    
    .arrow {
        font-size: 0.5rem;
        margin-left: 2px;
    }
}

/* Navigation Bar - Premium Liquid Glass */
.navbar {
    background: var(--glass-bg);
    backdrop-filter: saturate(180%) blur(var(--blur-amount));
    -webkit-backdrop-filter: saturate(180%) blur(var(--blur-amount));
    padding: 0;
    box-shadow: var(--glass-shadow);
    border-bottom: 1px solid var(--glass-border);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: transform 0.35s var(--bezier);
}

.nav-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.logo-section {
    padding: 15px 0;
}

.logo-link {
    text-decoration: none;
}

.logo {
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    margin: 0;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.12);
    transition: transform 0.3s var(--bezier);
}

.logo:hover {
    transform: scale(1.05);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 0;
    margin: 0;
    padding: 0;
}

.nav-item {
    position: relative;
}

.nav-link {
    color: var(--text-primary);
    text-decoration: none;
    padding: 12px 18px;
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    transition: all 0.18s var(--bezier);
    font-weight: 500;
    font-size: 0.875rem;
    border-radius: 10px;
    white-space: nowrap;
    gap: 6px;
    line-height: 1;
    flex-wrap: nowrap;
    opacity: 0.92;
}

.nav-link > * {
    flex-shrink: 0;
}

.nav-link:hover,
.nav-link.active {
    background: rgba(139, 92, 246, 0.15);
    color: var(--text-primary);
    opacity: 1;
    transform: translateY(-1px);
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    background: var(--glass-bg);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    min-width: 220px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--glass-border);
    border-radius: 14px;
    overflow: hidden;
    z-index: 1000;
    padding: 8px;
    opacity: 0;
    transform: translateY(-10px) scale(0.95);
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.dropdown-menu.show {
    display: block;
    opacity: 1;
    transform: translateY(0) scale(1);
}

.dropdown-menu li {
    list-style: none;
}

.dropdown-menu a {
    color: var(--text-primary);
    text-decoration: none;
    padding: 12px 16px;
    display: block;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 500;
    font-size: 0.875rem;
    border-radius: 10px;
    margin-bottom: 4px;
    background: var(--glass-item-bg);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border: 1px solid var(--glass-item-border);
    box-shadow: 0 4px 16px rgba(139, 92, 246, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.6);
    opacity: 0;
    transform: translateY(-5px);
    animation: slideInFade 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.dropdown-menu a:nth-child(1) { animation-delay: 0.05s; }
.dropdown-menu a:nth-child(2) { animation-delay: 0.1s; }
.dropdown-menu a:nth-child(3) { animation-delay: 0.15s; }
.dropdown-menu a:nth-child(4) { animation-delay: 0.2s; }
.dropdown-menu a:nth-child(5) { animation-delay: 0.25s; }
.dropdown-menu a:nth-child(6) { animation-delay: 0.3s; }

.dropdown-menu a:hover {
    background: rgba(139, 92, 246, 0.2);
    backdrop-filter: saturate(180%) blur(24px);
    -webkit-backdrop-filter: saturate(180%) blur(24px);
    border-color: rgba(139, 92, 246, 0.35);
    color: var(--text-primary);
    transform: translateX(6px) translateY(-2px);
    box-shadow: 0 8px 24px rgba(139, 92, 246, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.dropdown-menu a:active {
    transform: translateX(4px) translateY(0);
    transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Warning Banner - Removed */

/* Hero Section - Premium Professional */
.hero-section {
    position: relative;
    min-height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 60px 20px 80px;
    margin-top: calc(var(--topbar-h, 44px) + var(--navbar-h, 70px));
    background: var(--dark-bg);
    transition: all 0.4s var(--bezier);
}

/* Hide hero section when products are shown */
.hero-section.hidden {
    display: none;
}

/* Compact hero section when products are active */
.hero-section.compact {
    min-height: 0;
    padding: 60px 20px 40px;
    margin-top: calc(var(--topbar-h, 44px) + var(--navbar-h, 70px));
}

.hero-background {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.hero-video-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 0;
    filter: saturate(110%) contrast(105%);
    pointer-events: none;
    opacity: 0;
    animation: heroVideoFadeIn 1.2s cubic-bezier(0.4, 0, 0.2, 1) 0.3s forwards;
    transition: opacity 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: opacity, transform;
}

@keyframes heroVideoFadeIn {
    from {
        opacity: 0;
        transform: scale(1.05);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    pointer-events: none;
    transition: opacity 1s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    filter: saturate(1.25) brightness(1.1) contrast(1.05);
}

.hero-video-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.55) 0%, rgba(10, 10, 10, 0.35) 40%, rgba(0, 0, 0, 0.6) 100%);
    mix-blend-mode: multiply;
    pointer-events: none;
    opacity: 0;
    animation: heroOverlayFadeIn 1s cubic-bezier(0.4, 0, 0.2, 1) 0.5s forwards;
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes heroOverlayFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Overlay tối dần khi cuộn xuống thấy clip tên lửa */
.hero-scroll-darken {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: rgba(5, 8, 20, 0);
    pointer-events: none;
    transition: background-color 1s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    opacity: 1;
    will-change: background-color, opacity;
}

/* Hiệu ứng fade out mượt khi hero tối dần */
.hero-video-bg.fading-out {
    transform: scale(0.98);
    transition: opacity 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    /* Opacity được điều khiển bởi JavaScript */
}

.hero-video-overlay.fading-out {
    opacity: 0.2;
    transition: opacity 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.hero-gradient-1 {
    position: absolute;
    width: 1000px;
    height: 1000px;
    top: -300px;
    right: -300px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.35), transparent 65%);
    border-radius: 50%;
    animation: float 20s ease-in-out infinite;
    filter: blur(60px);
}

.hero-gradient-2 {
    position: absolute;
    width: 800px;
    height: 800px;
    bottom: -200px;
    left: -200px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.30), transparent 65%);
    border-radius: 50%;
    animation: float 15s ease-in-out infinite reverse;
    filter: blur(60px);
}

.hero-gradient-3 {
    position: absolute;
    width: 700px;
    height: 700px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(249, 115, 22, 0.25), transparent 65%);
    border-radius: 50%;
    animation: pulse 10s ease-in-out infinite;
    filter: blur(80px);
}

.hero-particles {
    position: absolute;
    inset: 0;
    background-image: 
        radial-gradient(3px 3px at 15% 25%, rgba(139, 92, 246, 0.4), transparent),
        radial-gradient(3px 3px at 65% 75%, rgba(99, 102, 241, 0.4), transparent),
        radial-gradient(2px 2px at 35% 55%, rgba(59, 130, 246, 0.4), transparent),
        radial-gradient(2px 2px at 80% 20%, rgba(139, 92, 246, 0.3), transparent),
        radial-gradient(2px 2px at 25% 80%, rgba(249, 115, 22, 0.3), transparent);
    background-size: 300% 300%;
    animation: particles 25s linear infinite;
    opacity: 0.7;
    pointer-events: none;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(30px, -30px) rotate(180deg); }
}

@keyframes pulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.15; }
    50% { transform: translate(-50%, -50%) scale(1.2); opacity: 0.25; }
}

@keyframes particles {
    0% { background-position: 0% 0%; }
    100% { background-position: 100% 100%; }
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    width: 100%;
    isolation: isolate;
    padding-top: 0;
    margin-top: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: var(--glass-bg);
    backdrop-filter: saturate(180%) blur(var(--blur-amount));
    -webkit-backdrop-filter: saturate(180%) blur(var(--blur-amount));
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 24px;
    margin-top: 0;
    box-shadow: var(--shadow);
    animation: fadeInUp 0.8s var(--bezier) both;
    position: relative;
    overflow: hidden;
    order: 1;
}

.hero-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.2), transparent);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% { left: -100%; }
    50%, 100% { left: 100%; }
}

.badge-icon {
    font-size: 1.2rem;
    animation: bounce 2s ease-in-out infinite;
}

.hero-title {
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 24px;
    margin-top: 0;
    letter-spacing: -0.04em;
    order: 2;
}

.hero-title-line {
    display: block;
}

.hero-title .gradient-text {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.hero-description {
    font-size: clamp(1.125rem, 2.5vw, 1.375rem);
    color: var(--text-secondary);
    max-width: 800px;
    margin: 0 auto 48px;
    margin-top: 0;
    line-height: 1.8;
    font-weight: 400;
    order: 3;
}

.hero-description strong {
    color: var(--primary-color);
    font-weight: 700;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 24px;
    max-width: 800px;
    margin: 0 auto 48px;
    margin-top: 0;
    order: 4;
}

/* Ensure 2 columns on mobile phones (including S8) */
@media (max-width: 640px) {
    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: clamp(12px, 3vw, 20px);
        max-width: 100%;
    }
}

.hero-stat {
    padding: 24px;
    background: var(--glass-bg);
    backdrop-filter: saturate(180%) blur(var(--blur-amount));
    -webkit-backdrop-filter: saturate(180%) blur(var(--blur-amount));
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    box-shadow: var(--shadow);
    transition: all 0.35s var(--bezier);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 120px;
}

.hero-stat:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(139, 92, 246, 0.3);
}

.stat-number {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 900;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
    line-height: 1;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 0;
    order: 5;
}

/* Hero Decorations */
.hero-decorations {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.hero-decoration-item {
    position: absolute;
    font-size: 2rem;
    opacity: 0.3;
    animation: floatDecoration 15s ease-in-out infinite;
    filter: blur(1px);
}

.decoration-1 {
    top: 15%;
    left: 10%;
    animation-delay: 0s;
    font-size: 2.5rem;
}

.decoration-2 {
    top: 25%;
    right: 15%;
    animation-delay: 2s;
    font-size: 2rem;
}

.decoration-3 {
    bottom: 30%;
    left: 20%;
    animation-delay: 4s;
    font-size: 1.8rem;
}

.decoration-4 {
    bottom: 20%;
    right: 25%;
    animation-delay: 6s;
    font-size: 2.2rem;
}

.decoration-5 {
    top: 50%;
    left: 5%;
    animation-delay: 8s;
    font-size: 1.5rem;
}

@keyframes floatDecoration {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg) scale(1);
        opacity: 0.2;
    }
    25% {
        transform: translate(20px, -30px) rotate(90deg) scale(1.2);
        opacity: 0.4;
    }
    50% {
        transform: translate(-15px, -50px) rotate(180deg) scale(0.9);
        opacity: 0.3;
    }
    75% {
        transform: translate(30px, -20px) rotate(270deg) scale(1.1);
        opacity: 0.35;
    }
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 32px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s var(--bezier);
    border: 2px solid transparent;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--gradient);
    color: white;
    box-shadow: 0 8px 24px rgba(139, 92, 246, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(139, 92, 246, 0.5);
}

.btn-primary svg {
    transition: transform 0.3s var(--bezier);
}

.btn-primary:hover svg {
    transform: translateX(4px);
}

.btn-outline {
    background: var(--glass-bg);
    backdrop-filter: saturate(180%) blur(var(--blur-amount));
    -webkit-backdrop-filter: saturate(180%) blur(var(--blur-amount));
    border: 2px solid var(--glass-border);
    color: var(--text-primary);
}

.btn-outline:hover {
    background: rgba(139, 92, 246, 0.1);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

/* Reveal Animations */
.reveal-fade-in {
    opacity: 0;
    animation: fadeInUp 0.8s var(--bezier) 0.2s forwards;
}

.reveal-slide-up {
    opacity: 0;
    transform: translateY(30px);
    animation: slideUpFade 0.8s var(--bezier) 0.4s forwards;
}

.reveal-scale {
    opacity: 0;
    transform: scale(0.9);
    animation: scaleFade 0.8s var(--bezier) 0.6s forwards;
}

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

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

@keyframes scaleFade {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Trust Badges Section */
/* Feature Video Section (4 cards with video background) */
.feature-video-section {
    position: relative;
    width: 100%;
    overflow: hidden;
    margin-top: 0;
    padding: 60px 0 80px;
}

/* Lớp overlay fade mạnh ở trên và dưới để loại bỏ đường cắt hoàn toàn */
.feature-video-section::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 2;
    
    /* Gradient fade mạnh: trên và dưới rất tối, giữa mới trong suốt */
    background: linear-gradient(
        to bottom,
        rgba(5, 8, 20, 1) 0%,
        rgba(5, 8, 20, 1) 8%,
        rgba(5, 8, 20, 0.95) 12%,
        rgba(5, 8, 20, 0.7) 20%,
        rgba(5, 8, 20, 0.3) 30%,
        rgba(5, 8, 20, 0) 40%,
        rgba(5, 8, 20, 0) 60%,
        rgba(5, 8, 20, 0.2) 70%,
        rgba(5, 8, 20, 0.6) 80%,
        rgba(5, 8, 20, 0.9) 88%,
        rgba(5, 8, 20, 1) 92%,
        rgba(5, 8, 20, 1) 100%
    );
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Overlay fade động để điều chỉnh khi hero tối dần */
.feature-video-section .dynamic-fade-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 3;
    background: linear-gradient(
        to bottom,
        rgba(5, 8, 20, 1) 0%,
        rgba(5, 8, 20, 1) 8%,
        rgba(5, 8, 20, 0.95) 12%,
        rgba(5, 8, 20, 0.7) 20%,
        rgba(5, 8, 20, 0.3) 30%,
        rgba(5, 8, 20, 0) 40%,
        rgba(5, 8, 20, 0) 60%,
        rgba(5, 8, 20, 0.2) 70%,
        rgba(5, 8, 20, 0.6) 80%,
        rgba(5, 8, 20, 0.9) 88%,
        rgba(5, 8, 20, 1) 92%,
        rgba(5, 8, 20, 1) 100%
    );
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 1;
}

.feature-bg-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 0;
    pointer-events: none;
}

@media (min-width: 1024px) {
    .feature-bg-video {
        object-position: center 92%;
    }
}

/* Wrapper chứa riêng video bgnen.mp4 */
#bgnen-wrapper {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

/* Giữ video hiển thị đúng như cũ */
#bgnen-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    pointer-events: none;
}

@media (min-width: 1024px) {
    #bgnen-video {
        object-position: center 92%;
    }
}

/* Vignette mạnh, mờ viền rất đậm để hòa nền hoàn toàn */
#bgnen-wrapper::after {
    content: "";
    pointer-events: none;
    position: absolute;
    inset: -80px; /* phủ rất rộng để fade mượt hoàn toàn */
    
    /* Vignette mạnh: trong trong, ngoài rất tối, lan rộng mạnh */
    background: radial-gradient(
        ellipse 140% 120% at 50% 50%,
        rgba(0, 0, 0, 0) 0%,
        rgba(0, 0, 0, 0) 30%,
        rgba(2, 6, 23, 0.5) 50%,
        rgba(2, 6, 23, 0.75) 70%,
        rgba(2, 6, 23, 0.9) 85%,
        rgba(2, 6, 23, 1) 95%,
        rgba(2, 6, 23, 1) 100%
    );

    /* Đảm bảo nằm trên video nhưng dưới overlay fade và content */
    z-index: 1;
}

/* Đảm bảo mọi nội dung/box nằm trên vignette */
#bgnen-wrapper > * {
    position: relative;
    z-index: 0;
}

.feature-content {
    position: relative;
    z-index: 3; /* Đảm bảo nội dung nổi lên trên tất cả overlay */
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Keep old class names for backward compatibility */
.trust-section {
    padding: 60px 20px;
    background: linear-gradient(180deg, transparent, var(--dark-bg));
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
}

.trust-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: var(--glass-bg);
    backdrop-filter: saturate(180%) blur(var(--blur-amount));
    -webkit-backdrop-filter: saturate(180%) blur(var(--blur-amount));
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    transition: all 0.35s var(--bezier);
    box-shadow: var(--shadow-sm);
}

.trust-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
    border-color: rgba(139, 92, 246, 0.3);
}

.trust-icon {
    font-size: 2.5rem;
    flex-shrink: 0;
    filter: drop-shadow(0 4px 8px rgba(139, 92, 246, 0.2));
}

.trust-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.trust-text strong {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
}

.trust-text span {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* Ecosystem Section - Vòng quanh hệ sinh thái 2T Mall */
.ecosystem-section {
    position: relative;
    overflow: hidden;
    padding: 80px 0;
    z-index: 1;
}

.ecosystem-video-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
}

.ecosystem-video-bg video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: brightness(0.9);
    transform: translate3d(0, 0, 0);
    min-height: 100%;
    min-width: 100%;
}

.ecosystem-video-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(
        ellipse at center,
        rgba(5, 8, 22, 0.4) 0%,
        rgba(5, 8, 22, 0.55) 100%
    );
    z-index: 0;
    pointer-events: none;
}

.ecosystem-inner {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    z-index: 1;
}

/* Ecosystem Heading */
.ecosystem-heading {
    text-align: center;
    margin-bottom: 40px;
}

.ecosystem-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 16px;
    border-radius: 999px;
    font-size: 13px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    background: radial-gradient(circle at top, #4D5BFF, #261b67);
    color: #fff;
    opacity: 0.9;
}

.ecosystem-heading h2 {
    margin-top: 16px;
    margin-bottom: 12px;
    font-size: 32px;
    font-weight: 700;
    color: #ffffff;
}

.ecosystem-heading p {
    max-width: 640px;
    margin: 0 auto;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.72);
}

/* Mobile adjustments for ecosystem section */
@media (max-width: 768px) {
    .ecosystem-section {
        padding: 48px 0;
    }
    
    .ecosystem-inner {
        padding: 0 20px;
    }
    
    .ecosystem-video-bg {
        min-height: 100%;
    }
    
    .ecosystem-video-bg video {
        min-height: 100vh;
        min-width: 100vw;
    }
    
    .ecosystem-heading {
        margin-bottom: 28px;
    }
    
    .ecosystem-heading h2 {
        font-size: 24px;
    }
    
    .ecosystem-heading p {
        font-size: 14px;
    }
}

/* Feature Cards Video Section - FXIFY Style */
.why-choose-grid {
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
    position: relative;
}

/* Top row: 2 large cards (each spans 3 columns) */
.why-card-1,
.why-card-2 {
    grid-column: span 6;
}

/* Bottom row: 3 medium cards (each spans 2 columns) */
.why-card-3,
.why-card-4,
.why-card-5 {
    grid-column: span 6;
}

/* Desktop layout */
@media (min-width: 768px) {
    .why-card-1,
    .why-card-2 {
        grid-column: span 3;
    }
    
    .why-card-3,
    .why-card-4,
    .why-card-5 {
        grid-column: span 2;
    }
}

.why-card {
    position: relative;
    overflow: visible;
    border-radius: 24px;
    background: #050512;
    cursor: pointer;
    transition: transform 0.4s ease-out, opacity 0.4s ease-out;
    opacity: 0;
    transform: translateY(30px);
    border: 2px solid transparent;
    min-height: 320px;
}

/* Aspect ratios based on exact video dimensions */
.why-card-1 {
    aspect-ratio: 1142 / 802; /* 1.424 */
}

.why-card-2 {
    aspect-ratio: 1132 / 794; /* 1.426 */
}

.why-card-3,
.why-card-4,
.why-card-5 {
    aspect-ratio: 746 / 960; /* 0.777 */
}

.why-card video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 24px;
    display: block;
    pointer-events: none;
    position: relative;
    z-index: 1;
}

/* FXIFY-style glow for .fx-card wrapper */
.fx-card {
    width: 100%;
    height: 100%;
    border-radius: 24px;
    box-sizing: border-box;
    position: relative;
    box-shadow: none;
    transition: box-shadow 0.25s ease-in;
}

/* Glow on hover - FXIFY style */
.why-card:hover .fx-card,
.fx-card:hover {
    box-shadow: 0 0 28px rgba(77, 91, 255, 0.55), 
                0 0 55px rgba(77, 91, 255, 0.35);
    transition: box-shadow 0.3s ease-out;
}

/* Ecosystem card hover effects - FXIFY style */
.why-card:hover .ecosystem-card {
    box-shadow: 0 0 50px rgba(77, 91, 255, 0.35);
    filter: brightness(1.06);
}

.why-card:hover .ecosystem-card video {
    filter: brightness(1.06);
    transition: filter 0.3s ease-out;
}

.why-card:hover .ecosystem-card-overlay {
    background: linear-gradient(
        to bottom,
        rgba(139, 92, 246, 0.15),
        rgba(7, 10, 30, 0.25)
    );
}

/* Ecosystem Card Overlay */
.ecosystem-card {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    isolation: isolate;
    box-shadow: 0 0 40px rgba(77, 91, 255, 0.15);
    transition: box-shadow 0.3s ease-out, filter 0.3s ease-out;
}

.ecosystem-card video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: filter 0.3s ease-out;
}

.ecosystem-card-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 32px 40px;
    color: #ffffff;
    z-index: 2;
    pointer-events: none;
    background: linear-gradient(
        to bottom,
        rgba(7, 10, 30, 0.30),
        rgba(7, 10, 30, 0.35)
    );
    transition: background 0.3s ease-out;
}

.ecosystem-card-icon {
    font-size: 28px;
    margin-bottom: 12px;
}

.ecosystem-card-overlay h3 {
    margin: 0 0 8px;
    font-size: 22px;
    font-weight: 600;
}

.ecosystem-card-overlay p {
    margin: 0;
    max-width: 280px;
    font-size: 15px;
    line-height: 1.5;
    opacity: 0.9;
}

/* Mobile adjustments for ecosystem card overlay */
@media (max-width: 768px) {
    .why-card {
        min-height: 280px;
    }
    
    .ecosystem-card-overlay {
        padding: 24px 28px;
    }
    
    .ecosystem-card-overlay h3 {
        font-size: 19px;
    }
    
    .ecosystem-card-overlay p {
        font-size: 14px;
        max-width: 260px;
    }
}

/* Scroll animations with delays */
.why-card-1.visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease-out 0.1s, transform 0.6s ease-out 0.1s;
}

.why-card-2.visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease-out 0.2s, transform 0.6s ease-out 0.2s;
}

.why-card-3.visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease-out 0.3s, transform 0.6s ease-out 0.3s;
}

.why-card-4.visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease-out 0.4s, transform 0.6s ease-out 0.4s;
}

.why-card-5.visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease-out 0.5s, transform 0.6s ease-out 0.5s;
}

/* Transition Video Section */
.transition-video-section {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    background: #050816;
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    overflow: hidden;
    min-height: 200px;
}
.bg2-wrapper {
    width: 100%;
    position: relative;
    overflow: hidden;
    margin: 0;
    padding: 0;
    z-index: 1;
    height: clamp(500px, 70vw, 1100px);
}
.bg2-wrapper::before,
.bg2-wrapper::after {
    content: "";
    position: absolute;
    left: 0;
    width: 100%;
    height: clamp(80px, 12vw, 160px);
    pointer-events: none;
    z-index: 2;
    opacity: 1;
    filter: blur(26px);
    will-change: opacity, filter;
}
.bg2-wrapper::before {
    top: 0;
    transform: translateY(-14px);
    background: linear-gradient(180deg, rgba(5, 8, 22, 0.98) 0%, rgba(5, 8, 22, 0.6) 55%, rgba(5, 8, 22, 0.1) 92%, rgba(5, 8, 22, 0) 100%);
}
.bg2-wrapper::after {
    bottom: 0;
    transform: translateY(20px);
    background: linear-gradient(0deg, 
        rgba(5, 8, 22, 1) 0%,
        rgba(5, 8, 22, 0.95) 20%,
        rgba(5, 8, 22, 0.85) 40%,
        rgba(5, 8, 22, 0.65) 60%,
        rgba(5, 8, 22, 0.4) 75%,
        rgba(5, 8, 22, 0.15) 88%,
        rgba(5, 8, 22, 0) 100%);
    filter: blur(32px);
    height: clamp(120px, 18vw, 220px);
}

.bg2-video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    transform: translate(-50%, -50%);
    object-fit: cover;
    object-position: center 85%;
    pointer-events: none;
    z-index: 1;
}

@media (max-width: 768px) {
    .bg2-wrapper {
        height: clamp(420px, 140vw, 780px);
    }
    .bg2-video {
        transform: translate(-50%, -60%) scale(1.15);
        object-position: center 80%;
    }
    
    /* Why Choose Grid Responsive */
    .why-choose-grid {
        margin: 80px auto;
        padding: 0 20px;
        gap: 16px;
    }
}

@media (max-width: 480px) {
    .why-choose-grid {
        margin: 60px auto;
        padding: 0 16px;
        gap: 12px;
    }
}


.transition-video-section .transition-video {
    width: auto;
    max-width: 100%;
    height: auto;
    object-fit: contain;
    object-position: center;
    display: block;
    margin: 0 auto;
}

/* Mobile: Zoom to video như hero */
@media (max-width: 1023px) {
    .transition-video-section {
        min-height: 50vh;
        position: relative;
    }
    
    .transition-video-section .transition-video {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
        margin: 0;
    }
}
.transition-video-section::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 140px;
    pointer-events: none;
    background: linear-gradient(to bottom,
        rgba(5, 8, 20, 0.95) 0%,
        rgba(5, 8, 20, 0.65) 45%,
        rgba(5, 8, 20, 0) 100%);
    z-index: 2;
}

.transition-video-section .transition-video {
    position: relative;
    z-index: 0;
}

/* Video tên lửa quay ngược trong hero - ẩn trên desktop */
.hero-rocket-mirror {
    display: none;
}

/* Hero section và video quay ngược trên mobile */
@media (max-width: 1023px) {
    .hero-section {
        position: relative;
        --rocket-opacity: 0;
    }
    
    .hero-video-bg {
        transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
        opacity: calc(1 - var(--rocket-opacity, 0));
        transform: translateY(calc(-15px * var(--rocket-opacity, 0))) scale(calc(1 - 0.05 * var(--rocket-opacity, 0)));
    }
    
    .hero-rocket-mirror {
        display: block;
        position: absolute;
        inset: 0;
        z-index: 1;
        pointer-events: none;
        opacity: clamp(0, calc(var(--rocket-opacity, 0) * 3.8), 1);
        transition:
            opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1),
            filter 0.6s cubic-bezier(0.4, 0, 0.2, 1);
        filter: saturate(calc(1 + var(--rocket-opacity, 0) * 1.6))
                brightness(calc(1 + var(--rocket-opacity, 0) * 1.9))
                contrast(calc(1 + var(--rocket-opacity, 0) * 0.75));
    }
    
    .hero-rocket-mirror-video {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
        transform: scaleY(-1); /* Quay ngược theo chiều dọc */
    }
    
    .hero-section .hero-content {
        position: relative;
        z-index: 2;
    }
}

.hero-section::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 160px;
    pointer-events: none;
    z-index: 1;
    background: linear-gradient(to bottom,
        rgba(5, 8, 20, 0) 0%,
        rgba(5, 8, 20, 0.55) 55%,
        rgba(5, 8, 20, 0.95) 100%);
}

/* Features Section */
.features-section {
    padding: 100px 20px;
    background: var(--dark-bg);
    position: relative;
    overflow: hidden;
    min-height: 420px;
}

.features-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
        rgba(5, 8, 22, 0.75) 0%,
        rgba(5, 8, 22, 0.6) 15%,
        rgba(5, 8, 22, 0.45) 30%,
        rgba(5, 8, 22, 0.35) 50%,
        rgba(5, 8, 22, 0.25) 70%,
        rgba(5, 8, 22, 0.15) 100%);
    z-index: 1;
    pointer-events: none;
}

.features-section::after {
    content: "";
    position: absolute;
    bottom: -80px;
    left: 0;
    width: 100%;
    height: clamp(140px, 20vw, 260px);
    background: linear-gradient(180deg,
        rgba(5, 8, 22, 0.05) 0%,
        rgba(5, 8, 22, 0.2) 25%,
        rgba(5, 8, 22, 0.45) 55%,
        rgba(5, 8, 22, 0.8) 85%,
        rgba(5, 8, 22, 1) 100%);
    z-index: 1;
    pointer-events: none;
    filter: blur(26px);
}

.features-bg-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 0;
}

.features-content {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    padding-top: 40px;
    padding-bottom: 80px;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    margin-bottom: 16px;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
}

.section-description {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.feature-card {
    padding: 32px;
    background: var(--glass-bg);
    backdrop-filter: saturate(180%) blur(var(--blur-amount));
    -webkit-backdrop-filter: saturate(180%) blur(var(--blur-amount));
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    text-align: center;
    transition: all 0.35s var(--bezier);
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s var(--bezier);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(139, 92, 246, 0.3);
}

.feature-icon {
    font-size: 3.5rem;
    margin-bottom: 20px;
    display: inline-block;
    filter: drop-shadow(0 4px 12px rgba(139, 92, 246, 0.3));
    transition: transform 0.35s var(--bezier);
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
}

.feature-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.feature-card p {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Main Content */
.content-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 60px 20px;
    width: 100%;
    box-sizing: border-box;
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 40px;
    gap: 24px;
    flex-wrap: wrap;
}

.page-header-content {
    flex: 1;
    min-width: 0;
}

.page-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-top: 8px;
    line-height: 1.6;
}

.page-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    margin-bottom: 8px;
    color: var(--text-primary);
    position: relative;
    padding-left: 24px;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.page-actions {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

/* Search Bar */
.search-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--glass-bg);
    backdrop-filter: saturate(180%) blur(var(--blur-amount));
    -webkit-backdrop-filter: saturate(180%) blur(var(--blur-amount));
    border: 2px solid var(--glass-border);
    border-radius: 12px;
    padding: 4px 4px 4px 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 280px;
}

.search-bar:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.1);
}

.search-input {
    flex: 1;
    border: none;
    background: transparent;
    color: var(--text-primary);
    font-size: 0.9375rem;
    font-weight: 500;
    outline: none;
    padding: 8px 0;
    min-width: 0;
}

.search-input::placeholder {
    color: var(--text-muted);
    font-weight: 400;
}

.search-btn {
    background: var(--gradient);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
}

.search-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(139, 92, 246, 0.4);
}

.search-btn:active {
    transform: scale(0.95);
}

@media (max-width: 768px) {
    .search-bar {
        min-width: 200px;
        flex: 1;
        max-width: 100%;
    }
}

.view-toggle {
    display: flex;
    gap: 4px;
    background: var(--glass-bg);
    backdrop-filter: saturate(180%) blur(var(--blur-amount));
    -webkit-backdrop-filter: saturate(180%) blur(var(--blur-amount));
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    padding: 4px;
}

.view-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s var(--bezier);
}

.view-btn:hover {
    background: rgba(139, 92, 246, 0.1);
    color: var(--text-primary);
}

.view-btn.active {
    background: var(--gradient);
    color: white;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

.page-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
    height: 70%;
    background: var(--gradient);
    border-radius: 4px;
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.5);
}

/* Main Content */
.main-content {
    margin-bottom: 40px;
    padding-top: 0;
    transition: all 0.4s var(--bezier);
}

/* When products are shown, reduce top spacing */
.main-content.active {
    padding-top: 20px;
    margin-top: 0;
}

/* Products Layout with Filters */
.products-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 24px;
    width: 100%;
    box-sizing: border-box;
}

/* Filters overlay - hidden on desktop */
.filters-overlay {
    display: none;
}

.products-main {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.products-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.filters-toggle-btn {
    display: none;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: var(--glass-bg);
    backdrop-filter: saturate(180%) blur(var(--blur-amount));
    -webkit-backdrop-filter: saturate(180%) blur(var(--blur-amount));
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    color: var(--text-primary);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s var(--bezier);
}

.filters-toggle-btn:hover {
    background: rgba(139, 92, 246, 0.1);
    border-color: var(--primary-color);
}

.products-count {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    font-weight: 500;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
    width: 100%;
    box-sizing: border-box;
}

/* Filters Sidebar */
.filters-sidebar {
    background: var(--glass-bg);
    backdrop-filter: saturate(180%) blur(var(--blur-amount));
    -webkit-backdrop-filter: saturate(180%) blur(var(--blur-amount));
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 24px;
    height: fit-content;
    position: sticky;
    top: calc(var(--topbar-h, 44px) + var(--navbar-h, 70px) + 20px);
    box-shadow: var(--shadow);
    transition: all 0.3s var(--bezier);
}

.filters-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--glass-border);
}

.filters-header h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.filters-close {
    display: none;
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.2s var(--bezier);
}

.filters-close:hover {
    background: rgba(139, 92, 246, 0.1);
    color: var(--text-primary);
}

.filters-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.filter-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.filter-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.filter-option {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.2s var(--bezier);
}

.filter-option:hover {
    background: rgba(139, 92, 246, 0.05);
}

.filter-option input[type="radio"],
.filter-option input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--primary-color);
}

.filter-option span {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    user-select: none;
}

.filter-option input:checked + span {
    color: var(--text-primary);
    font-weight: 500;
}

.filter-reset-btn {
    width: 100%;
    padding: 12px;
    background: transparent;
    border: 2px solid var(--glass-border);
    border-radius: 10px;
    color: var(--text-primary);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s var(--bezier);
    margin-top: 8px;
}

.filter-reset-btn:hover {
    background: rgba(139, 92, 246, 0.1);
    border-color: var(--primary-color);
}

/* Ensure products grid fills available space */
.main-content .content-wrapper {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 60px 20px;
    box-sizing: border-box;
}

/* Ensure no empty space on right side */
.main-content {
    width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
}

/* Fix any potential layout issues */
.page-header {
    width: 100%;
    box-sizing: border-box;
}

/* Product Card - Premium Liquid Glass Enhanced */
.product-card {
    background: var(--glass-bg) !important;
    backdrop-filter: saturate(180%) blur(var(--blur-amount)) !important;
    -webkit-backdrop-filter: saturate(180%) blur(var(--blur-amount)) !important;
    border-radius: 20px;
    padding: 28px;
    box-shadow: var(--glass-shadow);
    border: 1px solid var(--glass-border) !important;
    transition: all 0.4s var(--bezier);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    isolation: isolate;
    display: flex;
    flex-direction: column;
}

/* Out of Stock Overlay */
.out-of-stock-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    border-radius: 20px;
}

.out-of-stock-overlay span {
    background: var(--danger-color);
    color: white;
    padding: 12px 32px;
    border-radius: 12px;
    font-size: 1.2rem;
    font-weight: 700;
    box-shadow: 0 8px 24px rgba(239, 68, 68, 0.4);
    transform: rotate(-8deg);
}

/* Hot Badge */
.hot-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: linear-gradient(135deg, #ff6b6b 0%, #ff8e53 100%);
    color: white;
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 1.3rem;
    font-weight: 700;
    box-shadow: 0 4px 16px rgba(255, 107, 107, 0.5);
    z-index: 5;
    animation: hotPulse 2s ease-in-out infinite;
    display: flex;
    align-items: center;
    gap: 4px;
}

@keyframes hotPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 4px 16px rgba(255, 107, 107, 0.5);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 6px 20px rgba(255, 107, 107, 0.7);
    }
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s var(--bezier);
    z-index: 1;
    border-radius: 18px 18px 0 0;
}

.product-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at top right, rgba(139, 92, 246, 0.08), transparent 70%);
    opacity: 0;
    transition: opacity 0.4s var(--bezier);
    pointer-events: none;
    z-index: 0;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(139, 92, 246, 0.3);
}

.product-card:hover::before {
    transform: scaleX(1);
}

.product-card:hover::after {
    opacity: 1;
}

.product-image {
    width: 100%;
    height: 220px;
    aspect-ratio: 4 / 3;
    border-radius: 16px;
    margin-bottom: 24px;
    background: var(--gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4.5rem;
    position: relative;
    overflow: hidden;
    transition: all 0.4s var(--bezier);
    box-shadow: 0 4px 16px rgba(139, 92, 246, 0.2);
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    border-radius: 16px;
}

.product-card:hover .product-image {
    transform: scale(1.05) rotate(2deg);
    box-shadow: 0 8px 24px rgba(139, 92, 246, 0.3);
}

/* Badges removed */

.product-rating-mini {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.stars-mini {
    color: #fbbf24;
    font-size: 0.9rem;
}

.rating-text-mini {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.product-meta-mini {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.no-products {
    text-align: center;
    padding: 80px 20px;
    color: var(--text-secondary);
    font-size: 1.125rem;
    background: var(--glass-bg);
    backdrop-filter: saturate(180%) blur(var(--blur-amount));
    -webkit-backdrop-filter: saturate(180%) blur(var(--blur-amount));
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.no-products::before {
    content: '🔍';
    font-size: 4rem;
    display: block;
    margin-bottom: 24px;
    opacity: 0.6;
    animation: bounce 2s ease-in-out infinite;
}

.product-title {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary);
    letter-spacing: -0.01em;
    line-height: 1.3;
    min-height: 2.6em;
    display: -webkit-box;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-description {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    margin-bottom: 16px;
    line-height: 1.6;
    opacity: 0.85;
}

.product-details {
    list-style: none;
    margin-bottom: 20px;
}

.product-details li {
    color: var(--text-secondary);
    font-size: 0.9rem;
    padding: 5px 0;
    display: flex;
    align-items: center;
}

.product-details li::before {
    content: '✓';
    color: var(--success-color);
    margin-right: 8px;
    font-weight: bold;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid var(--glass-border);
    gap: 15px;
    flex-wrap: nowrap;
}

.product-card:hover .product-footer {
    border-top-color: rgba(139, 92, 246, 0.3);
}

.product-price {
    font-size: clamp(1.4rem, 2.2vw, 1.9rem);
    font-weight: 800;
    color: var(--text-primary);
    white-space: nowrap;
    flex-shrink: 0;
    display: inline-flex;
    align-items: baseline;
    gap: 4px;
    line-height: 1.1;
    letter-spacing: -0.03em;
    min-width: 0;
    overflow: visible;
}

.product-price span {
    font-size: 0.6em;
    font-weight: 600;
    opacity: 0.75;
    vertical-align: baseline;
    line-height: inherit;
    margin-left: 1px;
}

.buy-btn {
    background: var(--gradient);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 12px;
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.18s var(--bezier);
    box-shadow: 0 8px 22px rgba(139, 92, 246, 0.35);
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    flex-shrink: 0;
    min-width: fit-content;
    isolation: isolate;
}

.buy-btn.disabled {
    background: var(--text-muted);
    cursor: not-allowed;
    opacity: 0.6;
    box-shadow: none;
}

.buy-btn.disabled:hover {
    transform: none;
    box-shadow: none;
}

.buy-btn::before {
    content: '';
    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 var(--bezier);
    z-index: 1;
}

.buy-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(139, 92, 246, 0.45);
}

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

.buy-btn:active {
    transform: translateY(0);
}

.buy-btn > * {
    position: relative;
    z-index: 2;
}

/* Footer - Premium Liquid Glass */
.footer {
    margin-top: 80px;
    padding: 50px 20px 30px;
    background: linear-gradient(180deg, transparent, var(--dark-bg));
    border-top: 1px solid var(--glass-border);
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--gradient);
    opacity: 0.3;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
}

.footer-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    padding: 6px 12px;
    border-radius: 8px;
    transition: all 0.18s var(--bezier);
    opacity: 0.85;
}

.footer-link:hover {
    color: var(--primary-color);
    background: rgba(139, 92, 246, 0.1);
    opacity: 1;
    transform: translateY(-1px);
}

.footer-separator {
    color: var(--text-muted);
    font-size: 0.75rem;
    opacity: 0.5;
}

.footer-copyright {
    color: var(--text-muted);
    font-size: 0.8125rem;
    margin-top: 16px;
    opacity: 0.7;
    letter-spacing: 0.02em;
}

/* Modal Body Styling */
.modal-body {
    margin-top: 20px;
    line-height: 1.7;
}

.modal-body h3 {
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 700;
    margin-top: 24px;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--glass-border);
}

.modal-body h3:first-child {
    margin-top: 0;
}

.modal-body p {
    color: var(--text-secondary);
    margin-bottom: 16px;
    font-size: 0.9375rem;
}

.modal-body ul {
    color: var(--text-secondary);
    margin-left: 20px;
    margin-bottom: 16px;
    font-size: 0.9375rem;
}

.modal-body li {
    margin-bottom: 8px;
    line-height: 1.6;
}

.modal-body a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.18s var(--bezier);
}

.modal-body a:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

.modal-body strong {
    color: var(--text-primary);
    font-weight: 700;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1300;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    animation: fadeIn 0.3s var(--bezier);
    overflow-y: auto;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-content {
    background: var(--glass-bg);
    backdrop-filter: saturate(180%) blur(var(--blur-amount));
    -webkit-backdrop-filter: saturate(180%) blur(var(--blur-amount));
    border-radius: 24px;
    padding: 36px;
    max-width: 700px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--glass-border);
    position: relative;
    animation: slideUp 0.4s var(--bezier);
}

.modal-content h2 {
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 8px;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
}

.close {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 2rem;
    font-weight: bold;
    color: var(--text-secondary);
    cursor: pointer;
    transition: color 0.3s ease;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
}

.close:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.2);
}

.payment-container h2 {
    margin-bottom: 20px;
    font-size: 1.8rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.account-info {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 25px;
    border: 1px solid var(--glass-border);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.1);
}

.info-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

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

.label {
    color: var(--text-secondary);
    font-weight: 500;
}

.value {
    color: var(--text-primary);
    font-weight: 600;
}

.value.price {
    font-size: 1.5rem;
    color: var(--text-primary);
    font-weight: 700;
}

.qr-section {
    text-align: center;
    margin-bottom: 25px;
}

.qr-section h3 {
    margin-bottom: 20px;
    color: var(--text-primary);
    font-size: 1.3rem;
}

.qr-container {
    background: white;
    padding: 20px;
    border-radius: 12px;
    display: inline-block;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.qr-container img {
    max-width: 250px;
    height: auto;
    display: block;
}

.transfer-info {
    text-align: left;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 20px;
    margin-top: 20px;
    border: 1px solid var(--glass-border);
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.1);
}

.bank-info,
.amount-info {
    margin-bottom: 15px;
}

.bank-info p,
.amount-info p {
    margin-bottom: 8px;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.bank-info strong,
.amount-info strong {
    color: var(--text-primary);
}

#transferAmount {
    color: var(--text-primary);
    font-weight: 700;
    font-size: 1.1rem;
}

.content-box {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

#transferContent {
    flex: 1;
    padding: 12px;
    background: var(--dark-bg);
    border: 1px solid var(--dark-border);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 600;
    font-family: 'Courier New', monospace;
}

.copy-btn {
    padding: 12px 20px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.copy-btn:hover {
    background: var(--primary-dark);
    transform: scale(1.05);
}

.copy-btn:active {
    transform: scale(0.98);
}

.instructions {
    margin-top: 25px;
}

.warning-box {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.1);
}

.warning-box h4 {
    color: var(--warning-color);
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.warning-box ul {
    list-style: none;
    margin-bottom: 15px;
    padding-left: 0;
}

.warning-box ul li {
    color: var(--text-secondary);
    margin-bottom: 8px;
    padding-left: 25px;
    position: relative;
}

.warning-box ul li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--warning-color);
    font-size: 1.5rem;
    line-height: 1;
}

.contact-info {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin: 15px 0;
}

.contact-btn {
    flex: 1;
    min-width: 150px;
    padding: 12px 20px;
    border-radius: 12px;
    text-decoration: none;
    text-align: center;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.contact-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.contact-btn:hover::before {
    opacity: 1;
}

.contact-btn.facebook {
    background: linear-gradient(135deg, #1877f2 0%, #0d5dbf 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(24, 119, 242, 0.3);
}

.contact-btn.facebook:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(24, 119, 242, 0.5);
}

.contact-btn.telegram {
    background: linear-gradient(135deg, #0088cc 0%, #006699 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(0, 136, 204, 0.3);
}

.contact-btn.telegram:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 136, 204, 0.5);
}

.note {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 15px;
    line-height: 1.6;
}

/* Loading Overlay */
.loading-overlay {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    justify-content: center;
    align-items: center;
}

.loading-overlay.active {
    display: flex;
}

.spinner {
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

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

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

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 10;
}

.mobile-menu-toggle span {
    width: 30px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 10px;
    transition: all 0.3s ease;
    transform-origin: center;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

.logo-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    gap: 12px;
    position: relative;
}

.theme-toggle-mobile {
    display: none !important;
    visibility: hidden !important;
}

.logo-section .mobile-menu-toggle {
    order: 3;
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }
    
    .logo-section {
        padding: 15px 0;
        flex-wrap: nowrap;
        justify-content: space-between;
    }
    
    .logo-section .logo {
        order: 1;
        flex: 1;
        margin: 0;
    }
    
    .nav-content {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    /* Theme toggle hidden - locked to dark mode */
    .nav-content > .theme-toggle-wrapper,
    .logo-section .theme-toggle-mobile,
    .theme-toggle-wrapper {
        display: none !important;
        visibility: hidden !important;
    }
    
    .nav-menu {
        order: 4;
        width: 100%;
    }
    
    /* Theme toggle hidden - locked to dark mode */
    .logo-section .theme-toggle {
        display: none !important;
        visibility: hidden !important;
    }
    
    .logo-section .mobile-menu-toggle {
        order: 3;
        flex-shrink: 0;
    }
}

/* Responsive */
/* Responsive Design - Mobile First */
@media (max-width: 768px) {
    .logo {
        font-size: 1.5rem;
    }
    
    .nav-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--glass-bg);
        backdrop-filter: blur(var(--blur-amount));
        -webkit-backdrop-filter: blur(var(--blur-amount));
        border-top: 1px solid var(--glass-border);
        box-shadow: var(--glass-shadow);
        z-index: 1000;
        max-height: calc(100vh - 100px);
        overflow-y: auto;
        overflow-x: hidden;
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .nav-item {
        width: 100%;
        position: relative;
        border-bottom: 1px solid var(--glass-border);
    }
    
    .nav-item:last-child {
        border-bottom: none;
    }
    
    .nav-link {
        width: 100%;
        justify-content: space-between;
        padding: clamp(14px, 3.5vw, 18px) clamp(16px, 4vw, 20px);
        font-size: clamp(0.95rem, 2.8vw, 1.05rem);
        font-weight: 600;
        border-radius: 0;
    }
    
    .nav-link .arrow {
        margin-left: auto;
        font-size: clamp(0.6rem, 1.8vw, 0.7rem);
        transition: transform 0.3s ease;
        flex-shrink: 0;
    }
    
    .nav-item.dropdown.active .nav-link .arrow,
    .nav-link.active .arrow {
        transform: rotate(180deg);
    }
    
    .nav-link.active {
        background: rgba(139, 92, 246, 0.15);
        color: var(--primary-color);
    }
    
    /* Dropdown menu on mobile - hiển thị đầy đủ */
    .nav-item.dropdown .nav-link.active + .dropdown-menu,
    .nav-item.dropdown.active .dropdown-menu {
        display: block !important;
        opacity: 1;
        transform: translateY(0);
    }
    
    /* Mobile dropdown - hiển thị đầy đủ */
    .dropdown-menu {
        position: static !important;
        display: none;
        width: 100%;
        min-width: 100%;
        margin: 0;
        padding: clamp(8px, 2vw, 12px) clamp(12px, 3vw, 16px);
        border-radius: 0;
        border: none;
        border-top: 1px solid var(--glass-border);
        box-shadow: none;
        background: rgba(0, 0, 0, 0.2);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        opacity: 1;
        transform: none;
        animation: slideDown 0.3s ease;
        max-height: none;
        overflow: visible;
        visibility: visible;
    }
    
    @keyframes slideDown {
        from {
            opacity: 0;
            max-height: 0;
            padding-top: 0;
            padding-bottom: 0;
        }
        to {
            opacity: 1;
            max-height: 1000px;
            padding-top: clamp(8px, 2vw, 12px);
            padding-bottom: clamp(8px, 2vw, 12px);
        }
    }
    
    .dropdown-menu.show {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .nav-item.dropdown.active .dropdown-menu,
    .nav-item.dropdown .nav-link.active + .dropdown-menu {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .dropdown-menu li {
        width: 100%;
        list-style: none;
        margin: 0;
        padding: 0;
    }
    
    .dropdown-menu a {
        width: 100%;
        padding: clamp(14px, 3.5vw, 18px) clamp(20px, 5vw, 28px);
        font-size: clamp(0.9rem, 2.5vw, 1rem);
        border-radius: clamp(8px, 2vw, 10px);
        margin-bottom: clamp(8px, 2vw, 10px);
        display: flex;
        align-items: center;
        gap: clamp(12px, 3vw, 16px);
        color: var(--text-primary);
        text-decoration: none;
        font-weight: 500;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        background: var(--glass-item-bg);
        backdrop-filter: saturate(180%) blur(20px);
        -webkit-backdrop-filter: saturate(180%) blur(20px);
        border: 1px solid var(--glass-item-border);
        box-shadow: 0 4px 16px rgba(139, 92, 246, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.5);
        box-sizing: border-box;
        white-space: normal;
        word-wrap: break-word;
        overflow: visible;
        min-height: clamp(44px, 11vw, 52px);
        opacity: 0;
        transform: translateY(-5px);
        animation: slideInFade 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    }
    
    .dropdown-menu a:nth-child(1) { animation-delay: 0.05s; }
    .dropdown-menu a:nth-child(2) { animation-delay: 0.1s; }
    .dropdown-menu a:nth-child(3) { animation-delay: 0.15s; }
    .dropdown-menu a:nth-child(4) { animation-delay: 0.2s; }
    .dropdown-menu a:nth-child(5) { animation-delay: 0.25s; }
    .dropdown-menu a:nth-child(6) { animation-delay: 0.3s; }
    
    .dropdown-menu a:hover,
    .dropdown-menu a:active {
        transform: translateX(6px) translateY(-2px);
        background: rgba(139, 92, 246, 0.25);
        backdrop-filter: saturate(180%) blur(24px);
        -webkit-backdrop-filter: saturate(180%) blur(24px);
        border-color: rgba(139, 92, 246, 0.35);
        color: var(--text-primary);
        box-shadow: 0 8px 24px rgba(139, 92, 246, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.6);
    }
    
    .dropdown-menu a:active {
        transform: translateX(4px) translateY(0);
        transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    .dropdown-menu a:last-child {
        margin-bottom: 0;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: clamp(10px, 2.5vw, 16px);
    }
    
    .product-card {
        padding: 20px;
    }

    .modal-content {
        padding: 20px;
        margin: 10px;
        max-width: 95%;
    }

    .contact-info {
        flex-direction: column;
    }

    .contact-btn {
        width: 100%;
    }

    .content-box {
        flex-direction: column;
    }

    .copy-btn {
        width: 100%;
    }
    
    .top-bar-content {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .theme-toggle-wrapper,
    .theme-toggle {
        display: none !important;
        visibility: hidden !important;
    }
    
    .support-info {
        order: 1;
        width: 100%;
        text-align: center;
        margin-bottom: 8px;
    }
    
    /* Theme toggle hidden - locked to dark mode */
    body > .theme-toggle {
        display: none !important;
        visibility: hidden !important;
    }
    
    .product-footer {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    
    .product-price {
        font-size: 1.5rem;
        width: 100%;
        justify-content: flex-start;
        white-space: nowrap;
    }
    
    .buy-btn {
        width: 100%;
        justify-content: center;
    }
    
    .page-title {
        font-size: 1.5rem;
    }
    
    .container {
        padding: 15px;
    }
}

/* Scrollbar Styling */
/* Hide scrollbar on mobile devices */
@media (max-width: 768px) {
    /* Hide scrollbar for Chrome, Safari and Opera */
    ::-webkit-scrollbar {
        width: 0px;
        background: transparent;
        display: none;
    }
    
    /* Hide scrollbar for IE, Edge and Firefox */
    * {
        -ms-overflow-style: none;  /* IE and Edge */
        scrollbar-width: none;  /* Firefox */
    }
    
    html {
        -ms-overflow-style: none;
        scrollbar-width: none;
    }
    
    body {
        -ms-overflow-style: none;
        scrollbar-width: none;
    }
}

/* Desktop scrollbar styling */
@media (min-width: 769px) {
    ::-webkit-scrollbar {
        width: 8px;
    }

    ::-webkit-scrollbar-track {
        background: var(--dark-bg);
    }

    ::-webkit-scrollbar-thumb {
        background: var(--dark-border);
        border-radius: 4px;
    }

    ::-webkit-scrollbar-thumb:hover {
        background: var(--primary-color);
    }
}

/* Product Detail Page */
.product-detail-page {
    max-width: 1400px;
    margin: 0 auto;
    padding: 30px 20px;
}

.product-detail-container {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 30px;
    background: var(--glass-bg);
    backdrop-filter: blur(var(--blur-amount));
    -webkit-backdrop-filter: blur(var(--blur-amount));
    border-radius: 20px;
    padding: 30px;
    box-shadow: var(--glass-shadow);
    border: 1px solid var(--glass-border);
}

.product-image-section {
    position: relative;
}

.product-image-wrapper {
    position: relative;
    background: var(--glass-bg);
    backdrop-filter: saturate(180%) blur(var(--blur-amount));
    -webkit-backdrop-filter: saturate(180%) blur(var(--blur-amount));
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 20px;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--glass-shadow);
}

.product-image-main {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
}

.product-image-main img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    object-fit: contain;
    max-height: 600px;
    overflow: hidden;
}

/* Product badges removed */

.favorite-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s;
    z-index: 10;
}

.favorite-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.product-info-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
    overflow: visible;
}

.product-header {
    border-bottom: 1px solid var(--dark-border);
    padding-bottom: 15px;
}

.product-category {
    color: var(--green-color);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
}

.product-title {
    font-size: 2rem;
    font-weight: 700;
    margin-top: 10px;
    color: var(--text-primary);
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.stars {
    color: #fbbf24;
    font-size: 1.2rem;
}

.rating-text,
.sold-text,
.complaints-text {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.separator {
    color: var(--text-secondary);
    margin: 0 5px;
}

.product-short-description {
    color: var(--text-secondary);
    font-size: 1rem;
    margin: 10px 0;
}

.seller-info {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    padding: 15px;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.seller-label {
    color: var(--text-secondary);
}

.seller-name {
    color: var(--text-primary);
    font-weight: 600;
}

.seller-status {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
}

.seller-status.online {
    background: var(--success-color);
    color: white;
}

.seller-status.offline {
    background: var(--text-secondary);
    color: white;
}

.seller-verified {
    color: var(--success-color);
    font-size: 0.8rem;
    font-weight: 600;
}

.product-meta {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    gap: 10px;
}

.meta-label {
    color: var(--text-secondary);
}

.meta-value {
    color: var(--text-primary);
    font-weight: 600;
}

.product-price-section {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.price-label {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.product-price-large {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.product-variants {
    margin-top: 20px;
    width: 100%;
    overflow: visible;
}

.variants-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text-primary);
    text-transform: uppercase;
}

.variants-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    max-height: none;
    overflow: visible;
}

.variant-item {
    padding: 15px;
    background: var(--dark-bg);
    border: 2px solid var(--dark-border);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.variant-item:hover {
    border-color: var(--primary-color);
    background: rgba(99, 102, 241, 0.1);
}

.variant-item.active {
    border-color: var(--green-color);
    background: rgba(34, 197, 94, 0.1);
}

.variant-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.variant-name {
    color: var(--text-primary);
    font-weight: 500;
    flex: 1;
}

.variant-price {
    color: var(--green-color);
    font-weight: 600;
    font-size: 1.1rem;
}

.quantity-section {
    margin-top: 20px;
}

.quantity-label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--text-primary);
    text-transform: uppercase;
    font-size: 0.9rem;
}

.quantity-selector {
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 200px;
}

.quantity-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    font-size: 1.3rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    user-select: none;
    -webkit-user-select: none;
}

.quantity-btn:hover {
    background: var(--primary-dark);
    transform: scale(1.08);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.4);
}

.quantity-btn:active {
    transform: scale(0.95);
}

.quantity-input {
    flex: 1;
    padding: 10px 12px;
    background: var(--dark-bg);
    border: 2px solid var(--dark-border);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 1.1rem;
    text-align: center;
    font-weight: 600;
    min-width: 60px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.quantity-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

.discount-section {
    margin-top: 20px;
}

.discount-label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--text-primary);
    text-transform: uppercase;
    font-size: 0.9rem;
}

.discount-input-wrapper {
    display: flex;
    gap: 10px;
    max-width: 400px;
}

.discount-input {
    flex: 1;
    padding: 12px;
    background: var(--dark-bg);
    border: 1px solid var(--dark-border);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 1rem;
}

.discount-btn {
    padding: 12px 20px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s;
}

.discount-btn:hover {
    background: var(--primary-dark);
}

.action-buttons {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.action-btn {
    flex: 1;
    min-width: 150px;
    padding: 15px 30px;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.buy-btn {
    background: var(--green-color);
    color: white;
}

.buy-btn:hover {
    background: var(--green-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(34, 197, 94, 0.3);
}

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

.preorder-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

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

.message-btn:hover {
    background: #7c3aed;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
}

.total-price-section {
    margin-top: 20px;
    padding: 20px;
    background: rgba(34, 197, 94, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(34, 197, 94, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.total-label {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
}

.total-price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--green-color);
}

/* Tools Page */
.tools-page {
    max-width: 1400px;
    margin: 0 auto;
    padding: 30px 20px;
}

.tools-container {
    background: var(--dark-card);
    border-radius: 16px;
    padding: 30px;
    box-shadow: var(--shadow);
    border: 1px solid var(--dark-border);
}

.tools-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 30px;
    color: var(--text-primary);
}

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

.tool-card {
    background: var(--dark-bg);
    border-radius: 12px;
    padding: 25px;
    border: 1px solid var(--dark-border);
    transition: all 0.3s;
}

.tool-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.tool-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.tool-description {
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.6;
}

.tool-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.tool-btn:hover {
    background: var(--primary-dark);
    transform: scale(1.05);
}

.tool-content {
    margin-top: 30px;
}

.fa-tool-container {
    background: var(--dark-card);
    border-radius: 16px;
    padding: 40px;
    border: 1px solid var(--dark-border);
    box-shadow: var(--shadow);
    max-width: 800px;
    margin: 0 auto;
}

.tool-subtitle {
    color: var(--text-secondary);
    margin-bottom: 30px;
    font-size: 1rem;
}

.fa-form {
    margin-bottom: 30px;
}

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

.form-group label {
    display: block;
    margin-bottom: 10px;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.95rem;
}

.form-hint {
    display: block;
    margin-top: 5px;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.form-input,
.form-select {
    width: 100%;
    padding: 14px;
    background: var(--dark-bg);
    border: 2px solid var(--dark-border);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.3s;
}

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

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.tool-btn.primary {
    background: var(--gradient);
    color: white;
    padding: 14px 28px;
    font-size: 1.1rem;
    width: 100%;
}

.tool-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}

.fa-code-display {
    background: var(--dark-bg);
    border-radius: 12px;
    padding: 30px;
    margin: 20px 0;
    border: 2px solid var(--dark-border);
    text-align: center;
}

.fa-code {
    font-size: 3rem;
    font-weight: 700;
    color: var(--green-color);
    font-family: 'Courier New', monospace;
    letter-spacing: 8px;
    margin-bottom: 15px;
    display: block;
}

.fa-timer {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 10px;
}

.fa-actions {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.refresh-btn {
    background: var(--secondary-color);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.refresh-btn:hover {
    background: #7c3aed;
    transform: translateY(-2px);
}

.fa-warning {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 8px;
    padding: 15px;
    margin-top: 20px;
    color: var(--warning-color);
    font-size: 0.9rem;
}

.fa-info {
    background: rgba(99, 102, 241, 0.1);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.fa-info h4 {
    margin-bottom: 15px;
    color: var(--text-primary);
}

.fa-info ul {
    list-style: none;
    padding-left: 0;
}

.fa-info li {
    color: var(--text-secondary);
    margin-bottom: 10px;
    padding-left: 25px;
    position: relative;
}

.fa-info li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-size: 1.5rem;
    line-height: 1;
}

/* Responsive for product detail */
@media (max-width: 1024px) {
    .product-detail-container {
        grid-template-columns: 1fr;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .action-btn {
        width: 100%;
    }
}

/* ===== Product Detail Page - Mobile Scaling ===== */
@media (max-width: 768px) {
    .product-detail-page {
        padding: clamp(20px, 5vw, 30px) clamp(12px, 3vw, 20px);
    }
    
    .product-detail-container {
        grid-template-columns: 1fr;
        gap: clamp(20px, 5vw, 30px);
        padding: clamp(16px, 4vw, 30px);
        border-radius: clamp(16px, 4vw, 20px);
        overflow: visible;
        min-height: auto;
        height: auto;
    }
    
    .product-detail-page {
        overflow: visible;
        min-height: auto;
    }
    
    .product-image-section {
        width: 100%;
        overflow: visible;
    }
    
    .product-image-wrapper {
        padding: clamp(12px, 3vw, 16px);
        min-height: auto;
        border-radius: clamp(10px, 2.5vw, 12px);
        width: 100%;
        box-sizing: border-box;
        background: var(--glass-bg);
        backdrop-filter: saturate(180%) blur(var(--blur-amount));
        -webkit-backdrop-filter: saturate(180%) blur(var(--blur-amount));
        border: 1px solid var(--glass-border);
        box-shadow: var(--glass-shadow);
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .product-image-main {
        font-size: clamp(4rem, 12vw, 6rem);
        width: 100%;
        display: block;
        border-radius: clamp(10px, 2.5vw, 12px);
        overflow: hidden;
    }
    
    .product-image-main img {
        width: 100%;
        height: auto;
        display: block;
        border-radius: clamp(10px, 2.5vw, 12px);
        object-fit: cover;
        object-position: center center;
        aspect-ratio: 4 / 3;
        overflow: hidden;
    }
    
    .favorite-btn {
        width: clamp(36px, 9vw, 40px);
        height: clamp(36px, 9vw, 40px);
        top: clamp(12px, 3vw, 20px);
        right: clamp(12px, 3vw, 20px);
        font-size: clamp(1.2rem, 3vw, 1.5rem);
    }
    
    .product-info-section {
        gap: clamp(16px, 4vw, 20px);
        width: 100%;
        overflow: visible;
        min-height: auto;
    }
    
    .product-header {
        padding-bottom: clamp(12px, 3vw, 15px);
    }
    
    .product-category {
        font-size: clamp(0.8rem, 2.2vw, 0.9rem);
    }
    
    .product-title {
        font-size: clamp(1.5rem, 5vw, 2rem);
        margin-top: clamp(8px, 2vw, 10px);
        line-height: 1.3;
        word-break: break-word;
    }
    
    .product-rating {
        gap: clamp(8px, 2vw, 10px);
        flex-wrap: wrap;
        width: 100%;
    }
    
    .product-rating > * {
        flex-shrink: 0;
    }
    
    .stars {
        font-size: clamp(1rem, 3vw, 1.2rem);
    }
    
    .rating-text,
    .sold-text,
    .complaints-text {
        font-size: clamp(0.8rem, 2.2vw, 0.9rem);
    }
    
    .separator {
        margin: 0 clamp(4px, 1vw, 5px);
    }
    
    .product-short-description {
        font-size: clamp(0.9rem, 2.5vw, 1rem);
        margin: clamp(8px, 2vw, 10px) 0;
    }
    
    .seller-info {
        padding: clamp(12px, 3vw, 15px);
        gap: clamp(8px, 2vw, 10px);
        border-radius: clamp(6px, 1.5vw, 8px);
        flex-wrap: wrap;
        width: 100%;
        box-sizing: border-box;
    }
    
    .seller-info > * {
        flex-shrink: 0;
    }
    
    .seller-label {
        font-size: clamp(0.85rem, 2.3vw, 0.9rem);
    }
    
    .seller-name {
        font-size: clamp(0.9rem, 2.5vw, 1rem);
    }
    
    .seller-status {
        padding: clamp(3px, 0.8vw, 4px) clamp(6px, 1.5vw, 8px);
        font-size: clamp(0.7rem, 2vw, 0.8rem);
        border-radius: clamp(3px, 0.8vw, 4px);
    }
    
    .seller-verified {
        font-size: clamp(0.7rem, 2vw, 0.8rem);
    }
    
    .product-meta {
        gap: clamp(16px, 4vw, 20px);
        flex-wrap: wrap;
        width: 100%;
    }
    
    .meta-item {
        flex-shrink: 0;
        min-width: 0;
    }
    
    .meta-item {
        gap: clamp(8px, 2vw, 10px);
    }
    
    .meta-label,
    .meta-value {
        font-size: clamp(0.85rem, 2.3vw, 0.95rem);
    }
    
    .product-price-section {
        padding: clamp(16px, 4vw, 20px);
        gap: clamp(12px, 3vw, 15px);
        border-radius: clamp(6px, 1.5vw, 8px);
        flex-wrap: wrap;
        width: 100%;
        box-sizing: border-box;
    }
    
    .product-price-section > * {
        flex-shrink: 0;
    }
    
    .price-label {
        font-size: clamp(1rem, 2.8vw, 1.1rem);
    }
    
    .product-price-large {
        font-size: clamp(1.75rem, 6vw, 2.5rem);
    }
    
    .variants-title {
        font-size: clamp(1rem, 2.8vw, 1.1rem);
        margin-bottom: clamp(12px, 3vw, 15px);
    }
    
    .variants-list {
        gap: clamp(8px, 2vw, 10px);
        width: 100%;
        max-height: none;
        overflow: visible;
        display: flex;
        flex-direction: column;
    }
    
    .product-variants {
        width: 100%;
        overflow: visible;
        margin-top: clamp(16px, 4vw, 20px);
    }
    
    .variant-item {
        padding: clamp(12px, 3vw, 15px);
        border-radius: clamp(6px, 1.5vw, 8px);
        width: 100%;
        box-sizing: border-box;
        min-height: auto;
    }
    
    .variant-content {
        width: 100%;
        flex-wrap: wrap;
        gap: clamp(8px, 2vw, 10px);
    }
    
    .variant-name {
        font-size: clamp(0.9rem, 2.5vw, 1rem);
        word-break: break-word;
        flex: 1;
        min-width: 0;
    }
    
    .variant-price {
        font-size: clamp(1rem, 2.8vw, 1.1rem);
        white-space: nowrap;
        flex-shrink: 0;
    }
    
    .quantity-section {
        margin-top: clamp(16px, 4vw, 20px);
        width: 100%;
    }
    
    .discount-section {
        width: 100%;
        margin-top: clamp(16px, 4vw, 20px);
    }
    
    .quantity-label,
    .discount-label {
        font-size: clamp(0.85rem, 2.3vw, 0.9rem);
        margin-bottom: clamp(8px, 2vw, 10px);
    }
    
    .quantity-selector {
        max-width: 100%;
        gap: clamp(8px, 2vw, 10px);
    }
    
    .quantity-btn {
        width: clamp(40px, 10vw, 44px);
        height: clamp(40px, 10vw, 44px);
        font-size: clamp(1.1rem, 3vw, 1.3rem);
        border-radius: clamp(8px, 2vw, 10px);
    }
    
    .quantity-input {
        padding: clamp(8px, 2vw, 10px) clamp(10px, 2.5vw, 12px);
        font-size: clamp(1rem, 2.8vw, 1.1rem);
        border-radius: clamp(8px, 2vw, 10px);
        min-width: clamp(50px, 12vw, 60px);
    }
    
    .discount-input-wrapper {
        max-width: 100%;
        gap: clamp(8px, 2vw, 10px);
    }
    
    .discount-input {
        padding: clamp(10px, 2.5vw, 12px);
        font-size: clamp(0.9rem, 2.5vw, 1rem);
        border-radius: clamp(6px, 1.5vw, 8px);
    }
    
    .discount-btn {
        padding: clamp(10px, 2.5vw, 12px) clamp(16px, 4vw, 20px);
        font-size: clamp(1rem, 2.8vw, 1.2rem);
        border-radius: clamp(6px, 1.5vw, 8px);
    }
    
    .action-buttons {
        gap: clamp(12px, 3vw, 15px);
        margin-top: clamp(24px, 6vw, 30px);
        flex-direction: column;
        width: 100%;
    }
    
    .action-btn {
        width: 100%;
        padding: clamp(12px, 3vw, 15px) clamp(24px, 6vw, 30px);
        font-size: clamp(1rem, 2.8vw, 1.1rem);
        border-radius: clamp(6px, 1.5vw, 8px);
        box-sizing: border-box;
    }
    
    .total-price-section {
        margin-top: clamp(16px, 4vw, 20px);
        padding: clamp(16px, 4vw, 20px);
        border-radius: clamp(6px, 1.5vw, 8px);
        flex-wrap: wrap;
        width: 100%;
        box-sizing: border-box;
    }
    
    .total-price-section > * {
        flex-shrink: 0;
    }
    
    .total-label {
        font-size: clamp(1.1rem, 3vw, 1.2rem);
    }
    
    .total-price {
        font-size: clamp(1.75rem, 6vw, 2rem);
    }
}

/* Extra small phones - Product Detail */
@media (max-width: 374px) {
    .product-detail-page {
        padding: 16px 10px;
    }
    
    .product-detail-container {
        padding: 14px;
        gap: 16px;
    }
    
    .product-image-wrapper {
        min-height: 220px;
        padding: 12px;
    }
    
    .product-title {
        font-size: 1.25rem;
    }
    
    .product-price-large {
        font-size: 1.5rem;
    }
    
    .total-price {
        font-size: 1.5rem;
    }
}

/* Small phones - Product Detail */
@media (min-width: 375px) and (max-width: 413px) {
    .product-detail-container {
        padding: 18px;
    }
    
    .product-image-wrapper {
        min-height: 280px;
    }
}

/* Medium phones - Product Detail */
@media (min-width: 414px) and (max-width: 479px) {
    .product-detail-container {
        padding: 22px;
    }
    
    .product-image-wrapper {
        min-height: 320px;
    }
}

/* Large phones - Product Detail */
@media (min-width: 480px) and (max-width: 639px) {
    .product-detail-container {
        padding: 24px;
    }
    
    .product-image-wrapper {
        min-height: 350px;
    }
}

/* Responsive updates */
@media (max-width: 768px) {
    .top-bar-content {
        flex-direction: column;
        text-align: center;
    }
    
    .nav-menu {
        flex-direction: column;
        width: 100%;
    }
    
    .nav-item {
        width: 100%;
    }
    
    .dropdown-menu {
        position: static;
        width: 100%;
    }
    
    .product-detail-container {
        padding: 20px;
    }
    
    .quantity-selector {
        max-width: 100%;
    }
    
    .discount-input-wrapper {
        max-width: 100%;
    }
    
    /* Footer responsive */
    .footer {
        margin-top: 60px;
        padding: 40px 20px 24px;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 8px;
    }
    
    .footer-separator {
        display: none;
    }
    
    .footer-link {
        padding: 8px 16px;
    }
    
    .modal-content {
        padding: 24px;
        margin: 12px;
        max-width: calc(100% - 24px);
    }
    
    .modal-content h2 {
        font-size: 1.5rem;
    }
    
    .modal-body h3 {
        font-size: 1rem;
    }
    
    /* Hero Section responsive */
    .hero-section {
        min-height: 80vh;
        padding: 60px 20px 80px;
        margin-top: calc(var(--topbar-h, 44px) + var(--navbar-h, 70px));
    }
    
    .hero-title {
        font-size: clamp(2rem, 7vw, 4rem);
        margin-bottom: 20px;
    }
    
    .hero-description {
        font-size: clamp(1rem, 2vw, 1.125rem);
        margin-bottom: 32px;
    }
    
    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: clamp(12px, 3vw, 20px);
        margin-bottom: clamp(24px, 6vw, 48px);
        max-width: 100%;
    }
    
    .hero-stat {
        padding: clamp(16px, 4vw, 20px);
        min-height: clamp(100px, 25vw, 130px);
    }
    
    .stat-number {
        font-size: clamp(1.5rem, 3vw, 2.5rem);
    }
    
    .hero-actions {
        flex-direction: column;
        width: 100%;
        gap: 12px;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
        padding: 14px 24px;
    }
    
    .hero-badge {
        font-size: 0.875rem;
        padding: 10px 20px;
        margin-bottom: 24px;
    }
    
    /* Trust Section responsive - 2 columns on mobile */
    .trust-content {
        grid-template-columns: repeat(2, 1fr);
        gap: clamp(12px, 3vw, 20px);
    }
    
    .trust-item {
        padding: clamp(14px, 3.5vw, 20px);
        flex-direction: column;
        text-align: center;
        gap: clamp(10px, 2.5vw, 14px);
    }
    
    .trust-icon {
        margin: 0 auto;
    }
    
    /* Features Section responsive - 2 columns on larger phones */
    .features-section {
        padding: clamp(50px, 10vw, 100px) clamp(16px, 4vw, 20px);
        min-height: 420px;
    }
    
    .features-content {
        padding-top: 40px;
        padding-bottom: 80px;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: clamp(16px, 4vw, 24px);
    }
    
    .feature-card {
        padding: clamp(20px, 5vw, 32px);
    }
    
    .section-header {
        margin-bottom: 40px;
    }
    
    /* Page header responsive */
    .page-header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .page-actions {
        justify-content: flex-start;
    }
    
    /* Products layout responsive */
    .products-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .filters-sidebar {
        position: fixed;
        top: 0;
        left: -100%;
        width: 320px;
        max-width: 85vw;
        height: 100vh;
        z-index: 2000;
        border-radius: 0;
        border-left: none;
        border-top: none;
        border-bottom: none;
        overflow-y: auto;
        transition: left 0.3s var(--bezier);
        box-shadow: var(--shadow-lg);
    }
    
    .filters-sidebar.active {
        left: 0;
    }
    
    .filters-close {
        display: block;
    }
    
    .filters-toggle-btn {
        display: flex;
    }
    
    .filters-overlay {
        display: none;
    }
    
    .filters-overlay.active {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        backdrop-filter: blur(4px);
        -webkit-backdrop-filter: blur(4px);
        z-index: 1999;
        opacity: 1;
        animation: fadeIn 0.3s var(--bezier);
    }
    
    .products-toolbar {
        flex-direction: column;
        align-items: stretch;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: clamp(12px, 3vw, 20px);
    }
}

/* ===== Mobile Scaling - Smooth & Uniform for All Phone Models ===== */
/* Base mobile styles - applies to all phones */
@media (max-width: 768px) {
    /* Use viewport units for smooth scaling */
    html {
        font-size: clamp(14px, 4vw, 16px);
    }
    
    body {
        font-size: clamp(14px, 4vw, 16px);
        line-height: 1.6;
    }
    
    /* Hero Section - Smooth scaling */
    .hero-section {
        padding: clamp(40px, 8vw, 60px) clamp(16px, 4vw, 20px) clamp(60px, 12vw, 80px);
        min-height: auto;
    }
    
    .hero-badge {
        font-size: clamp(0.75rem, 3vw, 0.9375rem);
        padding: clamp(8px, 2vw, 12px) clamp(16px, 4vw, 24px);
        margin-bottom: clamp(16px, 4vw, 24px);
    }
    
    .hero-title {
        font-size: clamp(1.75rem, 8vw, 3rem);
        line-height: 1.1;
        margin-bottom: clamp(16px, 4vw, 24px);
    }
    
    .hero-description {
        font-size: clamp(0.9375rem, 3.5vw, 1.125rem);
        line-height: 1.7;
        margin-bottom: clamp(24px, 6vw, 48px);
        padding: 0 clamp(8px, 2vw, 0);
    }
    
    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: clamp(12px, 3vw, 20px);
        margin-bottom: clamp(24px, 6vw, 48px);
        max-width: 100%;
    }
    
    .hero-stat {
        padding: clamp(16px, 4vw, 24px);
        min-height: clamp(100px, 25vw, 140px);
        border-radius: clamp(12px, 3vw, 16px);
    }
    
    .stat-number {
        font-size: clamp(1.5rem, 5vw, 2.5rem);
        margin-bottom: clamp(4px, 1vw, 8px);
    }
    
    .stat-label {
        font-size: clamp(0.75rem, 2.5vw, 0.875rem);
    }
    
    .hero-actions {
        gap: clamp(10px, 2.5vw, 16px);
        width: 100%;
        padding: 0 clamp(8px, 2vw, 0);
    }
    
    .btn {
        padding: clamp(12px, 3vw, 16px) clamp(24px, 6vw, 32px);
        font-size: clamp(0.9375rem, 3vw, 1rem);
        border-radius: clamp(10px, 2.5vw, 12px);
    }
    
    /* Feature Video Section responsive */
    .feature-video-section {
        margin-top: 0;
        padding: clamp(40px, 8vw, 60px) 0 clamp(60px, 10vw, 80px);
    }
    
    .feature-content {
        padding: 0 clamp(16px, 4vw, 20px);
    }
    
    /* Trust Section */
    .trust-section {
        padding: clamp(40px, 8vw, 60px) clamp(16px, 4vw, 20px);
    }
    
    .trust-content {
        grid-template-columns: repeat(2, 1fr);
        gap: clamp(12px, 3vw, 20px);
    }
    
    .trust-item {
        padding: clamp(14px, 3.5vw, 20px);
        flex-direction: column;
        text-align: center;
        gap: clamp(10px, 2.5vw, 14px);
    }
    
    .trust-icon {
        font-size: clamp(2rem, 5vw, 2.5rem);
        margin: 0 auto;
    }
    
    .trust-text {
        align-items: center;
    }
    
    .trust-text strong {
        font-size: clamp(0.9375rem, 2.5vw, 1rem);
    }
    
    .trust-text span {
        font-size: clamp(0.8125rem, 2vw, 0.875rem);
    }
    
    /* Transition Video Section responsive */
    .transition-video-section {
        padding: 0;
        min-height: 50vh;
    }
    
    .transition-video-section .transition-video {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
        margin: 0;
    }
    
    /* Features Section */
    .features-section {
        padding: clamp(50px, 10vw, 100px) clamp(16px, 4vw, 20px);
        min-height: 420px;
    }
    
    .features-content {
        padding-top: 40px;
        padding-bottom: 80px;
    }
    
    .section-title {
        font-size: clamp(1.75rem, 6vw, 2.5rem);
        margin-bottom: clamp(12px, 3vw, 16px);
    }
    
    .section-description {
        font-size: clamp(0.9375rem, 3vw, 1.125rem);
        padding: 0 clamp(8px, 2vw, 0);
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: clamp(16px, 4vw, 24px);
    }
    
    .feature-card {
        padding: clamp(20px, 5vw, 32px);
    }
    
    .feature-icon {
        font-size: clamp(2.5rem, 7vw, 3.5rem);
        margin-bottom: clamp(16px, 4vw, 20px);
    }
    
    .feature-card h3 {
        font-size: clamp(1.25rem, 4vw, 1.5rem);
        margin-bottom: clamp(10px, 2.5vw, 12px);
    }
    
    .feature-card p {
        font-size: clamp(0.875rem, 2.5vw, 0.9375rem);
    }
    
    /* Products Section */
    .content-wrapper {
        padding: clamp(40px, 8vw, 60px) clamp(16px, 4vw, 20px);
    }
    
    .page-title {
        font-size: clamp(1.5rem, 5vw, 2rem);
        padding-left: clamp(16px, 4vw, 24px);
    }
    
    .page-subtitle {
        font-size: clamp(0.9375rem, 3vw, 1.125rem);
        margin-top: clamp(6px, 1.5vw, 8px);
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: clamp(12px, 3vw, 20px);
    }
    
    .product-card {
        padding: clamp(18px, 4.5vw, 28px);
        border-radius: clamp(16px, 4vw, 20px);
    }
    
    .product-image {
        height: auto;
        aspect-ratio: 4 / 3;
        min-height: clamp(160px, 40vw, 200px);
        margin-bottom: clamp(18px, 4.5vw, 24px);
        border-radius: clamp(12px, 3vw, 16px);
        font-size: clamp(3.5rem, 9vw, 4.5rem);
    }
    
    .product-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center top;
        border-radius: clamp(12px, 3vw, 16px);
    }
    
    .product-title {
        font-size: clamp(1.125rem, 3.5vw, 1.35rem);
        margin-bottom: clamp(10px, 2.5vw, 12px);
        min-height: auto;
    }
    
    .product-description {
        font-size: clamp(0.875rem, 2.5vw, 0.9375rem);
        margin-bottom: clamp(12px, 3vw, 16px);
    }
    
    .product-price {
        font-size: clamp(1.25rem, 4vw, 1.9rem);
    }
    
    .buy-btn {
        padding: clamp(10px, 2.5vw, 12px) clamp(20px, 5vw, 24px);
        font-size: clamp(0.875rem, 2.5vw, 0.9375rem);
        border-radius: clamp(10px, 2.5vw, 12px);
    }
    
    /* Navbar */
    .navbar {
        padding: 0;
    }
    
    .logo {
        font-size: clamp(1.25rem, 4vw, 1.75rem);
    }
    
    .nav-link {
        font-size: clamp(0.8125rem, 2.5vw, 0.875rem);
        padding: clamp(10px, 2.5vw, 12px) clamp(14px, 3.5vw, 18px);
    }
    
    /* Footer */
    .footer {
        padding: clamp(30px, 7vw, 50px) clamp(16px, 4vw, 20px) clamp(20px, 5vw, 30px);
    }
    
    .footer-link {
        font-size: clamp(0.8125rem, 2.5vw, 0.875rem);
        padding: clamp(6px, 1.5vw, 8px) clamp(12px, 3vw, 16px);
    }
    
    /* Modal */
    .modal-content {
        padding: clamp(20px, 5vw, 36px);
        margin: clamp(10px, 2.5vw, 20px);
        border-radius: clamp(18px, 4.5vw, 24px);
        max-width: calc(100% - clamp(20px, 5vw, 40px));
    }
    
    .modal-content h2 {
        font-size: clamp(1.5rem, 5vw, 1.75rem);
    }
    
    /* Payment Modal specific */
    .payment-modal {
        max-height: 90vh;
        overflow-y: auto;
    }
    
    .account-info {
        padding: clamp(16px, 4vw, 20px);
        border-radius: clamp(12px, 3vw, 16px);
        margin-bottom: clamp(20px, 5vw, 25px);
    }
    
    .info-item {
        margin-bottom: clamp(8px, 2vw, 10px);
        font-size: clamp(0.9rem, 2.5vw, 1rem);
    }
    
    .qr-section h3 {
        font-size: clamp(1.1rem, 3vw, 1.3rem);
        margin-bottom: clamp(16px, 4vw, 20px);
    }
    
    .qr-container {
        padding: clamp(16px, 4vw, 20px);
        border-radius: clamp(10px, 2.5vw, 12px);
        margin-bottom: clamp(16px, 4vw, 20px);
    }
    
    .qr-container img {
        max-width: clamp(200px, 50vw, 250px);
    }
    
    .transfer-info {
        padding: clamp(16px, 4vw, 20px);
        border-radius: clamp(12px, 3vw, 16px);
        margin-top: clamp(16px, 4vw, 20px);
    }
    
    .bank-info p,
    .amount-info p {
        font-size: clamp(0.85rem, 2.3vw, 0.95rem);
        margin-bottom: clamp(6px, 1.5vw, 8px);
    }
    
    #transferAmount {
        font-size: clamp(1rem, 2.8vw, 1.1rem);
    }
    
    .content-box {
        gap: clamp(8px, 2vw, 10px);
        margin-top: clamp(8px, 2vw, 10px);
    }
    
    #transferContent {
        padding: clamp(10px, 2.5vw, 12px);
        font-size: clamp(0.9rem, 2.5vw, 1rem);
        border-radius: clamp(6px, 1.5vw, 8px);
    }
    
    .copy-btn {
        padding: clamp(10px, 2.5vw, 12px) clamp(16px, 4vw, 20px);
        font-size: clamp(0.9rem, 2.5vw, 1rem);
        border-radius: clamp(6px, 1.5vw, 8px);
    }
    
    .warning-box {
        padding: clamp(16px, 4vw, 20px);
        border-radius: clamp(12px, 3vw, 16px);
    }
    
    .warning-box h4 {
        font-size: clamp(1rem, 2.8vw, 1.1rem);
        margin-bottom: clamp(12px, 3vw, 15px);
    }
    
    .warning-box ul li {
        font-size: clamp(0.85rem, 2.3vw, 0.95rem);
        margin-bottom: clamp(6px, 1.5vw, 8px);
        padding-left: clamp(20px, 5vw, 25px);
    }
    
    .contact-info {
        gap: clamp(10px, 2.5vw, 15px);
        margin: clamp(12px, 3vw, 15px) 0;
    }
    
    .contact-btn {
        padding: clamp(10px, 2.5vw, 12px) clamp(16px, 4vw, 20px);
        font-size: clamp(0.9rem, 2.5vw, 1rem);
        border-radius: clamp(10px, 2.5vw, 12px);
        min-width: auto;
    }
    
    .note {
        font-size: clamp(0.85rem, 2.3vw, 0.9rem);
        margin-top: clamp(12px, 3vw, 15px);
    }
    
    /* Tools Page */
    .tools-page {
        padding: clamp(20px, 5vw, 30px) clamp(12px, 3vw, 20px);
    }
    
    .tools-container {
        padding: clamp(20px, 5vw, 30px);
        border-radius: clamp(12px, 3vw, 16px);
    }
    
    .tools-title {
        font-size: clamp(1.5rem, 5vw, 2rem);
        margin-bottom: clamp(20px, 5vw, 30px);
    }
    
    .tools-section {
        grid-template-columns: repeat(2, 1fr);
        gap: clamp(12px, 3vw, 20px);
    }
    
    /* Extra small phones - Tools */
    @media (max-width: 374px) {
        .tools-section {
            grid-template-columns: 1fr;
        }
    }
    
    .tool-card {
        padding: clamp(18px, 4.5vw, 25px);
        border-radius: clamp(10px, 2.5vw, 12px);
    }
    
    .tool-title {
        font-size: clamp(1.1rem, 3.5vw, 1.3rem);
        margin-bottom: clamp(8px, 2vw, 10px);
    }
    
    .tool-description {
        font-size: clamp(0.875rem, 2.5vw, 0.95rem);
        margin-bottom: clamp(16px, 4vw, 20px);
    }
    
    .tool-btn {
        padding: clamp(10px, 2.5vw, 12px) clamp(20px, 5vw, 24px);
        font-size: clamp(0.9rem, 2.5vw, 1rem);
        border-radius: clamp(6px, 1.5vw, 8px);
    }
    
    .fa-tool-container {
        padding: clamp(24px, 6vw, 40px);
        border-radius: clamp(12px, 3vw, 16px);
    }
    
    .tool-subtitle {
        font-size: clamp(0.9rem, 2.5vw, 1rem);
        margin-bottom: clamp(20px, 5vw, 30px);
    }
    
    .form-group {
        margin-bottom: clamp(20px, 5vw, 25px);
    }
    
    .form-group label {
        font-size: clamp(0.9rem, 2.5vw, 0.95rem);
        margin-bottom: clamp(8px, 2vw, 10px);
    }
    
    .form-hint {
        font-size: clamp(0.8rem, 2.2vw, 0.85rem);
        margin-top: clamp(4px, 1vw, 5px);
    }
    
    .form-input,
    .form-select {
        padding: clamp(12px, 3vw, 14px);
        font-size: clamp(0.9rem, 2.5vw, 1rem);
        border-radius: clamp(8px, 2vw, 10px);
    }
    
    .form-row {
        gap: clamp(16px, 4vw, 20px);
    }
    
    .tool-btn.primary {
        padding: clamp(12px, 3vw, 14px) clamp(24px, 6vw, 28px);
        font-size: clamp(1rem, 2.8vw, 1.1rem);
    }
    
    .fa-code {
        font-size: clamp(2rem, 6vw, 3rem);
        letter-spacing: clamp(4px, 1vw, 8px);
        margin-bottom: clamp(12px, 3vw, 15px);
    }
    
    .fa-timer {
        font-size: clamp(0.85rem, 2.3vw, 0.9rem);
        margin-top: clamp(8px, 2vw, 10px);
    }
    
    .fa-actions {
        gap: clamp(12px, 3vw, 15px);
        margin-top: clamp(16px, 4vw, 20px);
    }
    
    .refresh-btn {
        padding: clamp(10px, 2.5vw, 12px) clamp(20px, 5vw, 24px);
        font-size: clamp(0.9rem, 2.5vw, 1rem);
        border-radius: clamp(6px, 1.5vw, 8px);
    }
    
    .fa-warning {
        padding: clamp(12px, 3vw, 15px);
        margin-top: clamp(16px, 4vw, 20px);
        font-size: clamp(0.85rem, 2.3vw, 0.9rem);
        border-radius: clamp(6px, 1.5vw, 8px);
    }
    
    .fa-info {
        padding: clamp(16px, 4vw, 20px);
        border-radius: clamp(10px, 2.5vw, 12px);
    }
    
    .fa-info h4 {
        font-size: clamp(1rem, 2.8vw, 1.1rem);
        margin-bottom: clamp(12px, 3vw, 15px);
    }
    
    .fa-info li {
        font-size: clamp(0.85rem, 2.3vw, 0.95rem);
        margin-bottom: clamp(8px, 2vw, 10px);
        padding-left: clamp(20px, 5vw, 25px);
    }
    
    /* Search Bar */
    .search-bar {
        min-width: auto;
        width: 100%;
        padding: clamp(4px, 1vw, 4px) clamp(4px, 1vw, 4px) clamp(4px, 1vw, 4px) clamp(12px, 3vw, 16px);
    }
    
    .search-input {
        font-size: clamp(0.875rem, 2.5vw, 0.9375rem);
        padding: clamp(6px, 1.5vw, 8px) 0;
    }
    
    .search-btn {
        width: clamp(36px, 9vw, 40px);
        height: clamp(36px, 9vw, 40px);
    }
}

/* Extra small phones (320px - 374px) */
@media (max-width: 374px) {
    html {
        font-size: 14px;
    }
    
    .hero-section {
        padding: 32px 12px 50px;
    }
    
    .hero-title {
        font-size: 1.5rem;
    }
    
    .hero-description {
        font-size: 0.875rem;
    }
    
    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: clamp(8px, 2vw, 12px);
    }
    
    .hero-stat {
        padding: clamp(12px, 3vw, 16px);
    }
    
    .stat-number {
        font-size: clamp(1.25rem, 4vw, 1.75rem);
    }
    
    .stat-label {
        font-size: clamp(0.7rem, 2vw, 0.8rem);
    }
    
    .btn {
        padding: 12px 20px;
        font-size: 0.875rem;
    }
    
    .product-card {
        padding: clamp(14px, 3.5vw, 18px);
    }
    
    .product-image {
        aspect-ratio: 4 / 3;
        min-height: clamp(140px, 35vw, 180px);
    }
    
    .product-image img {
        object-fit: cover;
        object-position: center top;
    }
    
    .content-wrapper {
        padding: 32px 12px;
    }
    
    .trust-content {
        grid-template-columns: repeat(2, 1fr);
        gap: clamp(8px, 2vw, 12px);
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: clamp(12px, 3vw, 16px);
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: clamp(10px, 2.5vw, 14px);
    }
}

/* Small phones (375px - 413px) - iPhone SE, iPhone 8, etc. */
@media (min-width: 375px) and (max-width: 413px) {
    .hero-section {
        padding: 40px 16px 60px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: clamp(12px, 3vw, 18px);
    }
}

/* Medium phones (414px - 479px) - iPhone 11 Pro, iPhone 12, etc. */
@media (min-width: 414px) and (max-width: 479px) {
    .hero-section {
        padding: 50px 18px 70px;
    }
    
    .hero-title {
        font-size: 2.25rem;
    }
    
    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: clamp(16px, 4vw, 22px);
    }
}

/* Large phones (480px - 639px) - iPhone 14 Pro Max, Samsung Galaxy, etc. */
@media (min-width: 480px) and (max-width: 639px) {
    .hero-section {
        padding: 55px 20px 75px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: clamp(18px, 4.5vw, 24px);
    }
    
    .hero-stat {
        padding: clamp(18px, 4.5vw, 22px);
        min-height: clamp(110px, 27vw, 135px);
    }
    
    .stat-number {
        font-size: 2.25rem;
    }
    
    .products-grid {
        gap: 20px;
    }
}

/* Very large phones (640px - 767px) - Large Android phones */
@media (min-width: 640px) and (max-width: 767px) {
    .hero-section {
        padding: 60px 20px 80px;
    }
    
    .hero-title {
        font-size: 2.75rem;
    }
    
    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: clamp(20px, 5vw, 26px);
    }
    
    .hero-stat {
        padding: clamp(20px, 5vw, 24px);
        min-height: clamp(115px, 28vw, 140px);
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .products-grid {
        gap: 24px;
    }
    
    .product-card {
        padding: 24px;
    }
}

/* Landscape orientation on phones */
@media (max-width: 767px) and (orientation: landscape) {
    .hero-section {
        min-height: auto;
        padding: 30px 20px 50px;
    }
    
    .hero-title {
        font-size: clamp(1.75rem, 6vw, 2.5rem);
    }
    
    .hero-stats {
        grid-template-columns: repeat(4, 1fr);
        gap: 12px;
    }
    
    .hero-stat {
        padding: clamp(12px, 3vw, 16px);
        min-height: clamp(90px, 22vw, 120px);
    }
    
    .stat-number {
        font-size: clamp(1.25rem, 4vw, 2rem);
    }
}

/* Prevent horizontal overflow on all mobile devices */
@media (max-width: 768px) {
    img, video, iframe, embed, object {
        max-width: 100%;
        height: auto;
    }
    
    /* Ensure text doesn't overflow */
    p, span, h1, h2, h3, h4, h5, h6 {
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    /* Fix for long words */
    .product-title,
    .hero-title,
    .page-title {
        word-break: break-word;
        hyphens: auto;
    }
    
    /* Ensure buttons and inputs fit */
    .btn,
    .buy-btn,
    .search-input,
    input[type="text"],
    input[type="email"],
    input[type="number"],
    button {
        max-width: 100%;
        box-sizing: border-box;
    }
    
    /* Container max-width - allow vertical scroll */
    .container,
    .content-wrapper,
    .hero-content {
        max-width: 100%;
        overflow-x: hidden;
        overflow-y: visible;
    }
    
    /* Product detail specific - ensure all content visible */
    .product-detail-page,
    .product-detail-container,
    .product-info-section,
    .product-variants,
    .variants-list {
        overflow-x: hidden;
        overflow-y: visible;
        max-height: none;
    }
    
    /* Prevent horizontal scroll */
    body {
        overflow-x: hidden;
        overflow-y: auto;
        width: 100%;
    }
    
    html {
        overflow-x: hidden;
        overflow-y: auto;
        width: 100%;
    }
    
    /* Ensure grid items don't overflow */
    .products-grid,
    .features-grid,
    .trust-content {
        width: 100%;
        overflow-x: hidden;
        overflow-y: visible;
    }
}

/* Admin/Product Manager Styles */
.admin-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--dark-border);
    padding-bottom: 10px;
}

.admin-tab {
    padding: 10px 20px;
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    color: var(--text-secondary);
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    margin-bottom: -2px;
}

.admin-tab:hover {
    color: var(--primary-color);
}

.admin-tab.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.admin-form {
    padding: 20px 0;
}

.admin-form h3 {
    margin-bottom: 20px;
    color: var(--text-primary);
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-primary);
    font-weight: 500;
    font-size: 0.9rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--dark-border);
    border-radius: 8px;
    background: var(--glass-bg);
    color: var(--text-primary);
    font-size: 0.95rem;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

.form-group small {
    display: block;
    margin-top: 6px;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.radio-group {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.radio-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-weight: normal;
}

.radio-group input[type="radio"] {
    width: auto;
    margin: 0;
}

.form-actions {
    display: flex;
    gap: 10px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--dark-border);
}

.btn-primary,
.btn-secondary {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

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

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

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

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

/* ===== Mobile color harmony overrides (appended) ===== */
@media (max-width: 768px) {
    .product-card {
        background: var(--bg-secondary) !important;
        border: 1px solid var(--border-color) !important;
        box-shadow: var(--shadow-md) !important;
    }
    .product-image {
        background: var(--bg-tertiary) !important;
    }
    .nav-item .dropdown-menu {
        background: var(--bg-secondary) !important;
        border: 1px solid var(--border-color) !important;
        box-shadow: 0 12px 28px rgba(0,0,0,.35) !important;
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
    }
    .dropdown-menu a {
        background: rgba(255,255,255,0.03) !important;
        border-color: var(--border-color) !important;
        color: var(--text-primary) !important;
        transform: none !important;
    }
    .dropdown-menu a:hover {
        background: rgba(99,102,241,0.15) !important;
        border-color: rgba(99,102,241,0.35) !important;
        transform: none !important;
    }
    .action-buttons .action-btn,
    .product-actions .buy-btn,
    .product-actions .btn-outline {
        min-width: 42%;
    }
}

