/* ==========================================================================
   FullBux Store - Premium Dark Purple Liquid Glass Theme (v4.0)
   Apple VisionOS Inspired - Complete Redesign
   ========================================================================== */

/* 1. FONTS & TOKENS
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;500;600;700;800;900&family=Inter:wght@400;500;600;700;800;900&family=Tajawal:wght@400;500;700;800&display=swap');

:root {
    /* Core Palette - Deep Purple & Neon */
    --bg-deep: #030108;
    --bg-dark: #0a0514;
    --bg-gradient: radial-gradient(ellipse at 50% 0%, rgba(88, 28, 135, 0.15) 0%, #030108 70%);

    --primary: #8B5CF6;
    --primary-light: #A78BFA;
    --primary-dark: #6D28D9;
    --primary-glow: rgba(139, 92, 246, 0.5);

    --accent: #EC4899;
    --accent-light: #F472B6;

    --success: #10B981;
    --warning: #F59E0B;
    --error: #EF4444;

    /* Liquid Glass System */
    --glass-bg: rgba(255, 255, 255, 0.02);
    --glass-bg-hover: rgba(255, 255, 255, 0.05);
    --glass-bg-active: rgba(139, 92, 246, 0.08);
    --glass-border: rgba(255, 255, 255, 0.06);
    --glass-border-hover: rgba(139, 92, 246, 0.3);
    --glass-blur: blur(20px);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    --glass-glow: 0 0 40px rgba(139, 92, 246, 0.15);

    /* Typography */
    --text-primary: #FFFFFF;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-muted: rgba(255, 255, 255, 0.4);

    @font-face {
        font-family: 'SF Pro Display';
        src: url('SFPRODISPLAYREGULAR.OTF') format('opentype');
        font-weight: normal;
        font-style: normal;
    }

    --font-ar: 'Cairo',
    'Tajawal',
    sans-serif;
    --font-en: 'SF Pro Display',
    'Inter',
    sans-serif;

    /* Spacing & Radius */
    --radius-xs: 8px;
    --radius-sm: 12px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --radius-pill: 999px;

    --header-height: 72px;
    --container-width: 1280px;

    /* Animations */
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --transition-fast: 0.15s var(--ease-out);
    --transition: 0.3s var(--ease-out);
    --transition-slow: 0.5s var(--ease-out);
}

/* 2. RESET & BASE
   ========================================================================== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

html[dir="rtl"] {
    direction: rtl;
}

html[dir="ltr"] {
    direction: ltr;
}

body {
    font-family: var(--font-ar);
    background: var(--bg-deep);
    background-image: var(--bg-gradient);
    background-attachment: fixed;
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html[dir="ltr"] body,
body[lang="en"] {
    font-family: var(--font-en);
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--primary), var(--primary-dark));
    border-radius: 3px;
}

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

/* Selection */
::selection {
    background: rgba(139, 92, 246, 0.3);
    color: #fff;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul,
ol {
    list-style: none;
}

button,
input,
select,
textarea {
    font-family: inherit;
    font-size: inherit;
    border: none;
    outline: none;
    background: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
}

/* 3. HEADER
   ========================================================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: rgba(3, 1, 8, 0.7);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid var(--glass-border);
    z-index: 1000;
    transition: var(--transition);
}

.header.scrolled {
    background: rgba(3, 1, 8, 0.9);
    box-shadow: var(--glass-shadow), var(--glass-glow);
}

.header-container,
.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Logo */
.logo,
.logo a {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.6rem;
    font-weight: 900;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #fff 0%, var(--primary-light) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 30px var(--primary-glow);
}

.logo-text {
    background: linear-gradient(135deg, #fff 0%, var(--primary-light) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Navigation */
.nav,
.nav-links {
    display: flex;
    gap: 4px;
    background: var(--glass-bg);
    padding: 4px;
    border-radius: var(--radius-pill);
    border: 1px solid var(--glass-border);
}

.nav-link,
.nav-links a {
    padding: 10px 20px;
    border-radius: var(--radius-pill);
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-secondary);
    transition: var(--transition);
    position: relative;
}

.nav-link:hover,
.nav-links a:hover,
.nav-link.active,
.nav-links a.active {
    background: rgba(139, 92, 246, 0.15);
    color: #fff;
}

.nav-link.active::after,
.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 2px;
    background: var(--primary);
    border-radius: 1px;
}

/* Header Actions */
.header-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.cart-btn,
.currency-switcher {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 10px 14px;
    border-radius: var(--radius-md);
    color: var(--text-primary);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    position: relative;
}

.cart-btn:hover,
.currency-switcher:hover {
    background: var(--glass-bg-hover);
    border-color: var(--glass-border-hover);
    box-shadow: 0 0 20px var(--primary-glow);
    transform: translateY(-2px);
}

.cart-btn svg,
.cart-icon {
    width: 20px;
    height: 20px;
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    font-size: 0.7rem;
    font-weight: 800;
    min-width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--bg-deep);
    box-shadow: 0 0 10px var(--primary-glow);
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: white;
    padding: 8px;
    cursor: pointer;
}

.mobile-menu-btn svg {
    width: 24px;
    height: 24px;
}

/* User Menu */
.user-menu {
    display: flex;
    align-items: center;
}

.user-menu a,
.user-menu button {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid var(--primary);
}

/* 4. HERO SECTION
   ========================================================================== */
.hero {
    min-height: 100vh;
    padding-top: calc(var(--header-height) + 60px);
    padding-bottom: 80px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 150%;
    height: 100%;
    background: radial-gradient(ellipse at center top, rgba(139, 92, 246, 0.12) 0%, transparent 60%);
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    top: 20%;
    right: 10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(236, 72, 153, 0.08) 0%, transparent 70%);
    pointer-events: none;
    animation: float 8s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) scale(1);
    }

    50% {
        transform: translateY(-30px) scale(1.05);
    }
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.25);
    border-radius: var(--radius-pill);
    color: var(--primary-light);
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 28px;
    backdrop-filter: blur(10px);
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: var(--success);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(1.2);
    }
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -1px;
}

.gradient-text {
    background: linear-gradient(135deg, #fff 0%, var(--primary-light) 50%, var(--accent-light) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 60px var(--primary-glow);
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 520px;
    line-height: 1.8;
}

.hero-btns {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* 5. BUTTONS
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    opacity: 0;
    transition: var(--transition);
}

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

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    box-shadow: 0 4px 20px var(--primary-glow), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(139, 92, 246, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn-secondary {
    background: var(--glass-bg);
    color: white;
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: var(--glass-bg-hover);
    border-color: var(--glass-border-hover);
    transform: translateY(-3px);
}

.btn svg {
    width: 20px;
    height: 20px;
}

/* 6. PRODUCT CARDS
   ========================================================================== */
.products-section,
.best-sellers {
    padding: 80px 0;
}

.section-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    text-align: center;
    margin-bottom: 50px;
    font-weight: 900;
    background: linear-gradient(135deg, #fff 0%, var(--text-secondary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Slider Wrapper */
.slider-wrapper {
    position: relative;
    padding: 0;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    z-index: 10;
    backdrop-filter: blur(10px);
}

.slider-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    box-shadow: 0 0 20px var(--primary-glow);
}

.slider-btn.prev {
    left: 0;
}

.slider-btn.next {
    right: 0;
}

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

/* Products Grid */
.products-grid,
.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
}

.products-grid {
    display: flex;
    gap: 20px;
    overflow-x: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding: 10px 0;
    -webkit-overflow-scrolling: touch;
}

.products-grid::-webkit-scrollbar {
    display: none;
}

.products-grid .product-card {
    flex: 0 0 280px;
    scroll-snap-align: start;
}

/* Product Card */
.product-card {
    position: relative;
    background: linear-gradient(145deg, rgba(139, 92, 246, 0.08), rgba(20, 10, 40, 0.6), rgba(10, 5, 20, 0.8));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-xl);
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    transition: var(--transition);
    overflow: hidden;
    min-height: 420px;
    cursor: pointer;
    box-shadow:
        0 4px 24px rgba(0, 0, 0, 0.3),
        0 0 40px rgba(139, 92, 246, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 150px;
    background: linear-gradient(180deg, rgba(139, 92, 246, 0.1), rgba(236, 72, 153, 0.03), transparent);
    pointer-events: none;
    transition: var(--transition);
}

.product-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-xl);
    padding: 1px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(139, 92, 246, 0.2), transparent, rgba(236, 72, 153, 0.1));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0.5;
    transition: var(--transition);
}

.product-card:hover {
    transform: translateY(-4px);
    border-color: rgba(139, 92, 246, 0.35);
    box-shadow:
        0 12px 40px rgba(0, 0, 0, 0.4),
        0 0 60px rgba(139, 92, 246, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.product-card:hover::before {
    background: linear-gradient(180deg, rgba(139, 92, 246, 0.15), rgba(236, 72, 153, 0.05), transparent);
}

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

.product-image-container,
.product-image {
    width: 100%;
    aspect-ratio: 1;
    margin-bottom: 16px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.product-image-container img,
.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s var(--ease-out);
}

.product-card:hover .product-image-container img,
.product-card:hover .product-image img {
    transform: scale(1.08);
}

.product-info {
    width: 100%;
    flex: 1;
    display: flex;
    flex-direction: column;
    z-index: 2;
}

.product-name,
.product-name h2 {
    font-weight: 800;
    font-size: 1.5rem;
    color: #fff;
    margin-top: 8px;
    margin-bottom: 10px;
    min-height: 3rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.3;
}

.action-container {
    margin-top: auto;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
}

.price-section {
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.price-value {
    font-weight: 900;
    font-size: 1.6rem;
    color: #fff;
    text-shadow: 0 0 20px var(--primary-glow);
}

.price-currency {
    font-weight: 700;
    color: var(--primary-light);
    font-size: 0.95rem;
}

.btn-add,
.add-to-cart {
    width: 100%;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: var(--transition);
    box-shadow: 0 4px 15px var(--primary-glow);
}

.btn-add:hover,
.add-to-cart:hover {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
    box-shadow: 0 6px 25px rgba(139, 92, 246, 0.5);
    transform: scale(1.02);
}

.btn-add svg,
.add-to-cart svg {
    width: 18px;
    height: 18px;
}

/* 7. GAME CARDS
   ========================================================================== */
.game-selection {
    padding: 80px 0;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 24px;
}


.game-card {
    position: relative;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
    /* Uniform height */
}

.game-card:hover {
    transform: translateY(-6px);
    border-color: var(--glass-border-hover);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3), 0 0 30px var(--primary-glow);
}

.game-image {
    width: 100%;
    aspect-ratio: 1;
    /* Keep square aspect ratio */
    overflow: hidden;
    display: block;
    /* Remove inline gap */
}

.game-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s var(--ease-out);
    display: block;
    /* Remove inline gap */
}

.game-card:hover .game-image img {
    transform: scale(1.1);
}

.game-name {
    padding: 12px;
    font-size: 1rem;
    font-weight: 700;
    text-align: center;
    color: #fff;
    background: transparent;
    /* Remove black gradient */
    /* Removed negative margin */
    /* position: relative; z-index: 2; - Not needed for flow */
    flex-grow: 1;
    /* Ensure text area fills remaining space if any */
    display: flex;
    align-items: center;
    justify-content: center;
}

/* === Robux Card Special Glow Effect === */
.game-card[href="/games/robux"],
a.game-card[href="/games/robux"] {
    background: linear-gradient(145deg, rgba(139, 92, 246, 0.2), rgba(236, 72, 153, 0.1), var(--glass-bg)) !important;
    border: 2px solid rgba(139, 92, 246, 0.5) !important;
    box-shadow:
        0 0 30px rgba(139, 92, 246, 0.4),
        0 0 60px rgba(139, 92, 246, 0.2),
        0 0 100px rgba(236, 72, 153, 0.1),
        inset 0 0 30px rgba(139, 92, 246, 0.1);
    opacity: 1 !important;
    animation: fade-in-up 0.5s var(--ease-out) forwards, robux-glow-pulse 3s ease-in-out 0.5s infinite;
    position: relative;
    z-index: 5;
    transform: scale(1.02);
    order: -1;
    /* Make Robux appear first in grid */
}

.game-card[href="/games/robux"]::before,
a.game-card[href="/games/robux"]::before {
    content: '⭐ الأكثر شعبية';
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 6px 12px;
    border-radius: var(--radius-pill);
    z-index: 10;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.5);
}

.game-card[href="/games/robux"]:hover,
a.game-card[href="/games/robux"]:hover {
    transform: scale(1.05) translateY(-8px);
    border-color: rgba(139, 92, 246, 0.8) !important;
    box-shadow:
        0 0 50px rgba(139, 92, 246, 0.6),
        0 0 100px rgba(139, 92, 246, 0.3),
        0 0 150px rgba(236, 72, 153, 0.15),
        0 20px 50px rgba(0, 0, 0, 0.4),
        inset 0 0 40px rgba(139, 92, 246, 0.15);
}

.game-card[href="/games/robux"] .game-name,
a.game-card[href="/games/robux"] .game-name {
    background: linear-gradient(to top, rgba(139, 92, 246, 0.95), rgba(139, 92, 246, 0.3), transparent);
    font-size: 1.1rem;
    font-weight: 900;
    text-shadow: 0 0 20px rgba(139, 92, 246, 0.8);
}

@keyframes robux-glow-pulse {

    0%,
    100% {
        box-shadow:
            0 0 30px rgba(139, 92, 246, 0.4),
            0 0 60px rgba(139, 92, 246, 0.2),
            0 0 100px rgba(236, 72, 153, 0.1),
            inset 0 0 30px rgba(139, 92, 246, 0.1);
    }

    50% {
        box-shadow:
            0 0 40px rgba(139, 92, 246, 0.6),
            0 0 80px rgba(139, 92, 246, 0.3),
            0 0 120px rgba(236, 72, 153, 0.15),
            inset 0 0 40px rgba(139, 92, 246, 0.15);
    }
}

/* 8. FOOTER
   ========================================================================== */
.footer {
    background: linear-gradient(to top, rgba(3, 1, 8, 0.98), rgba(10, 5, 20, 0.9));
    border-top: 1px solid var(--glass-border);
    padding: 80px 0 40px;
    margin-top: 80px;
    backdrop-filter: blur(20px);
}

.footer-content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 50px;
    margin-bottom: 50px;
}

.footer-brand h2 {
    font-size: 1.8rem;
    font-weight: 900;
    background: linear-gradient(135deg, #fff, var(--primary-light));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 16px;
}

.footer-brand p {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 0.95rem;
}

.footer-section h3,
.footer h3 {
    font-size: 1.1rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-section h3::after,
.footer h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), transparent);
    border-radius: 1px;
}

html[dir="rtl"] .footer-section h3::after,
html[dir="rtl"] .footer h3::after {
    left: auto;
    right: 0;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    background: var(--glass-bg);
    border: 1px solid transparent;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-link svg {
    width: 18px;
    height: 18px;
    opacity: 0.7;
}

.footer-link:hover {
    background: var(--glass-bg-hover);
    border-color: var(--glass-border);
    color: #fff;
    transform: translateX(-4px);
}

html[dir="ltr"] .footer-link:hover {
    transform: translateX(4px);
}

.footer-link.whatsapp:hover {
    background: rgba(37, 211, 102, 0.15);
    color: #25D366;
}

/* .footer-link.whatsapp:hover removed to match other links */

.footer-link.discord:hover {
    background: rgba(88, 101, 242, 0.15);
    color: #5865F2;
}

.footer-link.tiktok:hover {
    background: rgba(255, 0, 80, 0.15);
    color: #FF0050;
}

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid var(--glass-border);
}

.footer-copyright {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* 9. CART SIDEBAR
   ========================================================================== */
.cart-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    z-index: 1500;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.cart-overlay.active {
    opacity: 1;
    visibility: visible;
}

.cart-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 400px;
    max-width: 90vw;
    height: 100vh;
    background: linear-gradient(135deg, rgba(10, 5, 20, 0.98), rgba(3, 1, 8, 0.99));
    border-right: 1px solid var(--glass-border);
    z-index: 2000;
    display: flex;
    flex-direction: column;
    transform: translateX(-100%);
    transition: transform 0.4s var(--ease-out);
    backdrop-filter: blur(30px);
}

html[dir="ltr"] .cart-sidebar {
    left: auto;
    right: 0;
    border-right: none;
    border-left: 1px solid var(--glass-border);
    transform: translateX(100%);
}

.cart-sidebar.active {
    transform: translateX(0);
}

.cart-header {
    padding: 24px;
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(139, 92, 246, 0.05);
}

.cart-header h2,
.cart-header h3 {
    font-size: 1.3rem;
    font-weight: 800;
}

.close-cart {
    width: 40px;
    height: 40px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-secondary);
    transition: var(--transition);
}

.close-cart:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: var(--error);
    color: var(--error);
}

.close-cart svg {
    width: 18px;
    height: 18px;
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.cart-item {
    display: flex;
    gap: 15px;
    background: var(--glass-bg);
    padding: 16px;
    border-radius: var(--radius-md);
    margin-bottom: 12px;
    border: 1px solid var(--glass-border);
    transition: var(--transition);
}

.cart-item:hover {
    border-color: var(--glass-border-hover);
}

.cart-item-image {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: rgba(0, 0, 0, 0.3);
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item-info {
    flex: 1;
}

.cart-item-name {
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 4px;
}

.cart-item-price {
    color: var(--primary-light);
    font-weight: 600;
}

.cart-item-quantity {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
}

.cart-item-quantity button {
    width: 28px;
    height: 28px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 6px;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.cart-item-quantity button:hover {
    background: var(--primary);
    border-color: var(--primary);
}

.cart-footer {
    padding: 24px;
    background: rgba(0, 0, 0, 0.3);
    border-top: 1px solid var(--glass-border);
}

.cart-total {
    display: flex;
    justify-content: space-between;
    font-size: 1.2rem;
    font-weight: 800;
    margin-bottom: 20px;
}

.checkout-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: var(--radius-md);
    font-weight: 800;
    font-size: 1.1rem;
    color: white;
    cursor: pointer;
    text-align: center;
    transition: var(--transition);
    display: block;
    border: none;
    box-shadow: 0 4px 20px var(--primary-glow);
}

.checkout-btn:hover {
    box-shadow: 0 8px 30px rgba(139, 92, 246, 0.5);
    transform: translateY(-2px);
}

/* 10. FORMS & INPUTS
   ========================================================================== */
input,
select,
textarea {
    width: 100%;
    padding: 16px 20px;
    background: rgba(10, 5, 20, 0.6);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    color: white;
    font-size: 1rem;
    transition: var(--transition);
}

input::placeholder,
textarea::placeholder {
    color: var(--text-muted);
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.1), 0 0 20px var(--primary-glow);
    background: rgba(20, 10, 35, 0.8);
}

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

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

.required {
    color: var(--error);
}

/* 11. CHECKOUT PAGE
   ========================================================================== */
.page-header {
    text-align: center;
    padding: calc(var(--header-height) + 40px) 0 40px;
}

.page-header h1 {
    font-size: clamp(2rem, 5vw, 2.8rem);
    font-weight: 900;
    margin-bottom: 16px;
    background: linear-gradient(135deg, #fff, var(--primary-light));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
}

.back-link:hover {
    color: var(--primary-light);
}

.back-link svg {
    width: 18px;
    height: 18px;
}

.checkout-section {
    padding: 40px 0 80px;
}

.checkout-grid {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 40px;
    align-items: start;
}

.order-summary,
.checkout-form {
    background: linear-gradient(145deg, rgba(20, 10, 40, 0.5), rgba(10, 5, 20, 0.7));
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    padding: 30px;
    backdrop-filter: var(--glass-blur);
}

.order-summary h2,
.checkout-form h2 {
    font-size: 1.4rem;
    margin-bottom: 24px;
    font-weight: 800;
    color: #fff;
}

.summary-divider {
    height: 1px;
    background: var(--glass-border);
    margin: 20px 0;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    font-size: 0.95rem;
}

.summary-row.discount {
    color: var(--success);
}

.summary-row.total {
    font-size: 1.2rem;
    font-weight: 800;
    padding-top: 15px;
    border-top: 1px solid var(--glass-border);
    margin-top: 10px;
}

/* Payment Options */
.payment-methods h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-secondary);
}

.payment-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.payment-option {
    cursor: pointer;
    position: relative;
}

.payment-option input {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.payment-content {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 16px 20px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    gap: 12px;
    transition: var(--transition);
    font-weight: 600;
}

.payment-option:hover .payment-content {
    border-color: var(--glass-border-hover);
}

.payment-option input:checked+.payment-content {
    background: rgba(139, 92, 246, 0.15);
    border-color: var(--primary);
    box-shadow: 0 0 20px var(--primary-glow);
}

/* Coupon */
.coupon-section {
    margin: 24px 0;
}

.coupon-section h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-secondary);
}

.coupon-input-group {
    display: flex;
    gap: 10px;
}

.coupon-input-group input {
    flex: 1;
}

.coupon-input-group button {
    padding: 0 24px;
    background: var(--primary);
    color: white;
    border-radius: var(--radius-sm);
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.coupon-input-group button:hover {
    background: var(--primary-light);
}

.coupon-message {
    margin-top: 10px;
    font-size: 0.9rem;
    font-weight: 600;
}

.coupon-message.success {
    color: var(--success);
}

.coupon-message.error {
    color: var(--error);
}

.submit-order {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-size: 1.1rem;
    font-weight: 800;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 20px var(--primary-glow);
    margin-top: 20px;
}

.submit-order:hover {
    box-shadow: 0 8px 30px rgba(139, 92, 246, 0.5);
    transform: translateY(-2px);
}

.submit-order:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* 12. LOADING & OVERLAYS
   ========================================================================== */
.order-loading-overlay {
    position: fixed;
    inset: 0;
    background: rgba(3, 1, 8, 0.95);
    backdrop-filter: blur(20px);
    z-index: 3000;
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 20px;
}

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

.order-loading-content {
    text-align: center;
}

.order-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(139, 92, 246, 0.2);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

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

/* 13. TESTIMONIALS
   ========================================================================== */
.testimonials-section {
    padding: 80px 0;
}

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

.testimonial-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 28px;
    border-radius: var(--radius-xl);
    backdrop-filter: blur(10px);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 5rem;
    color: rgba(139, 92, 246, 0.1);
    font-family: Georgia, serif;
    line-height: 1;
}

.testimonial-card:hover {
    background: var(--glass-bg-hover);
    transform: translateY(-5px);
    border-color: var(--glass-border-hover);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3), 0 0 30px var(--primary-glow);
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
}

.testimonial-avatar {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: white;
    font-size: 1.2rem;
    box-shadow: 0 4px 15px var(--primary-glow);
}

.testimonial-info h4 {
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
}

.testimonial-info span {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.testimonial-text {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 0.95rem;
    position: relative;
    z-index: 2;
}

/* 14. REVIEWS PAGE
   ========================================================================== */
.reviews-section {
    padding: 80px 0;
}

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

.review-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 24px;
    border-radius: var(--radius-xl);
    backdrop-filter: blur(10px);
    transition: var(--transition);
}

.review-card:hover {
    transform: translateY(-4px);
    border-color: var(--glass-border-hover);
}

.review-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.review-avatar {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--accent), #DB2777);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: white;
}

.review-author {
    font-weight: 700;
    color: white;
}

.review-stars {
    color: #FCD34D;
    font-size: 0.85rem;
    letter-spacing: 2px;
}

.review-text {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* 15. ABOUT PAGE
   ========================================================================== */
.about-section {
    padding: 80px 0;
}

.about-content {
    max-width: 800px;
    margin: 0 auto 60px;
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.9;
}

.about-content p {
    margin-bottom: 20px;
}

.about-content strong {
    color: white;
}

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

.feature-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 32px;
    border-radius: var(--radius-xl);
    text-align: center;
    backdrop-filter: blur(10px);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-6px);
    background: var(--glass-bg-hover);
    border-color: var(--glass-border-hover);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3), 0 0 30px var(--primary-glow);
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.15), rgba(139, 92, 246, 0.05));
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--primary-light);
}

.feature-icon svg {
    width: 32px;
    height: 32px;
}

.feature-card h3 {
    font-size: 1.2rem;
    font-weight: 800;
    margin-bottom: 12px;
    color: white;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* 16. GAME BANNER
   ========================================================================== */
.game-banner-placeholder {
    height: 320px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    margin-top: var(--header-height);
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(3, 1, 8, 0.9));
}

.game-banner-placeholder img.banner-image {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.35;
    mask-image: linear-gradient(to bottom, black 0%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 0%, transparent 100%);
}

.game-banner-content {
    position: relative;
    z-index: 2;
}

.game-banner-content h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 900;
    margin-bottom: 16px;
    background: linear-gradient(135deg, #fff, var(--primary-light));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 60px var(--primary-glow);
}

/* 17. ACCOUNT PAGE
   ========================================================================== */
.account-section {
    padding: 40px 0 80px;
}

.not-logged-in,
.login-prompt {
    max-width: 450px;
    margin: 0 auto;
    text-align: center;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    padding: 50px 40px;
    backdrop-filter: blur(20px);
}

.login-prompt svg {
    width: 80px;
    height: 80px;
    color: var(--primary-light);
    margin-bottom: 24px;
}

.login-prompt h2 {
    font-size: 1.5rem;
    margin-bottom: 12px;
    font-weight: 800;
}

.login-prompt p {
    color: var(--text-secondary);
    margin-bottom: 30px;
}

.google-login-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 16px 24px;
    background: white;
    color: #333;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 1rem;
    transition: var(--transition);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.google-login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.google-login-btn svg {
    width: 20px;
    height: 20px;
}

/* Profile Card */
.profile-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    padding: 30px;
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 40px;
    backdrop-filter: blur(20px);
    flex-wrap: wrap;
}

.profile-picture {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid var(--primary);
    box-shadow: 0 0 20px var(--primary-glow);
}

.profile-info h2 {
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 4px;
}

.profile-info p {
    color: var(--text-muted);
}

.profile-actions {
    margin-left: auto;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

html[dir="rtl"] .profile-actions {
    margin-left: 0;
    margin-right: auto;
}

.admin-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: rgba(139, 92, 246, 0.15);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: var(--radius-sm);
    color: var(--primary-light);
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
}

.admin-link:hover {
    background: rgba(139, 92, 246, 0.25);
    border-color: var(--primary);
}

.logout-btn {
    padding: 10px 18px;
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: var(--radius-sm);
    color: var(--error);
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
}

.logout-btn:hover {
    background: rgba(239, 68, 68, 0.25);
    border-color: var(--error);
}

/* Orders Section */
.orders-section {
    margin-top: 20px;
}

.orders-section .section-title {
    text-align: left;
    font-size: 1.5rem;
    margin-bottom: 24px;
}

html[dir="rtl"] .orders-section .section-title {
    text-align: right;
}

.orders-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.order-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 24px;
    transition: var(--transition);
}

.order-card:hover {
    border-color: var(--glass-border-hover);
}

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

.order-id {
    font-weight: 700;
    color: var(--primary-light);
}

.order-status {
    padding: 6px 14px;
    border-radius: var(--radius-pill);
    font-size: 0.8rem;
    font-weight: 700;
}

.status-pending {
    background: rgba(245, 158, 11, 0.2);
    color: #F59E0B;
}

.status-processing {
    background: rgba(59, 130, 246, 0.2);
    color: #3B82F6;
}

.status-completed {
    background: rgba(16, 185, 129, 0.2);
    color: #10B981;
}

.status-cancelled {
    background: rgba(239, 68, 68, 0.2);
    color: #EF4444;
}

.order-items {
    margin-bottom: 16px;
}

.order-item-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.order-footer {
    display: flex;
    justify-content: space-between;
    padding-top: 12px;
    border-top: 1px solid var(--glass-border);
    font-size: 0.9rem;
}

.order-date {
    color: var(--text-muted);
}

.order-total {
    font-weight: 700;
    color: white;
}

.loading-orders,
.no-orders {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.loading-orders .spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--glass-border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 16px;
}

.no-orders svg {
    width: 60px;
    height: 60px;
    margin-bottom: 16px;
    color: var(--text-muted);
}

.shop-now-btn {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 28px;
    background: var(--primary);
    color: white;
    border-radius: var(--radius-md);
    font-weight: 700;
    transition: var(--transition);
}

.shop-now-btn:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
}

/* 18. CHAT PAGE
   ========================================================================== */
.chat-page {
    min-height: 90vh;
    padding-top: calc(var(--header-height) + 40px);
    display: flex;
    align-items: center;
}

.chat-container {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 30px;
    padding: 40px 20px;
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
}

.chat-card {
    background: linear-gradient(145deg, rgba(20, 10, 40, 0.6), rgba(10, 5, 20, 0.8));
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    height: 600px;
    display: flex;
    flex-direction: column;
    backdrop-filter: var(--glass-blur);
    overflow: hidden;
}

.chat-header {
    background: rgba(139, 92, 246, 0.05);
    padding: 20px;
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    gap: 15px;
}

.support-avatar {
    position: relative;
    width: 50px;
    height: 50px;
}

.support-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary);
}

.online-status {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 14px;
    height: 14px;
    background: var(--success);
    border: 3px solid var(--bg-deep);
    border-radius: 50%;
}

.support-info h2 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 2px;
}

.support-info p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.chat-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.message.system-message {
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.2);
    color: white;
    padding: 16px;
    border-radius: var(--radius-lg) var(--radius-lg) var(--radius-lg) 4px;
    align-self: flex-start;
    max-width: 85%;
    line-height: 1.7;
}

.chat-input-area {
    padding: 20px;
    background: rgba(0, 0, 0, 0.3);
    border-top: 1px solid var(--glass-border);
    display: flex;
    gap: 10px;
    align-items: center;
}

.chat-input-area input {
    background: var(--glass-bg);
    border-radius: var(--radius-pill);
    flex: 1;
}

.send-btn,
.attach-btn {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.attach-btn {
    background: transparent;
    color: var(--text-muted);
}

.attach-btn:hover {
    background: var(--glass-bg-hover);
    color: white;
}

.send-btn {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    box-shadow: 0 4px 15px var(--primary-glow);
}

.send-btn:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 25px rgba(139, 92, 246, 0.5);
}

.send-btn svg,
.attach-btn svg {
    width: 20px;
    height: 20px;
}

.chat-sidebar-info,
.info-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 30px;
    border-radius: var(--radius-xl);
    text-align: center;
    height: fit-content;
}

.info-card h3 {
    margin-bottom: 16px;
}

/* .btn-whatsapp removed to unify design */

/* 19. PAYMENT METHODS BAR
   ========================================================================== */
.payment-methods-bar {
    background: rgba(3, 1, 8, 0.9);
    border-top: 1px solid var(--glass-border);
    padding: 24px 0;
    margin-top: 60px;
}

.payment-text {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 16px;
    font-size: 0.9rem;
}

.payment-logos {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
}

.payment-logo svg {
    height: 28px;
    width: auto;
    opacity: 0.6;
    transition: var(--transition);
}

.payment-logo:hover svg {
    opacity: 1;
}

/* 20. PRODUCT SUGGESTIONS
   ========================================================================== */
.product-suggestions {
    padding: 60px 20px;
    max-width: var(--container-width);
    margin: 0 auto;
}

.suggestions-grid {
    display: flex;
    gap: 20px;
    overflow-x: hidden;
    padding: 10px 0;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.suggestions-grid::-webkit-scrollbar {
    display: none;
}

.suggestions-grid .product-card {
    flex: 0 0 260px;
    scroll-snap-align: start;
    min-height: 380px;
}

/* 21. 404 PAGE
   ========================================================================== */
.error-page {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: calc(var(--header-height) + 40px) 20px 80px;
}

.error-content h1 {
    font-size: 8rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
    margin-bottom: 20px;
}

.error-content h2 {
    font-size: 1.8rem;
    margin-bottom: 16px;
}

.error-content p {
    color: var(--text-secondary);
    margin-bottom: 30px;
}

/* 22. RESPONSIVE DESIGN
   ========================================================================== */
@media (max-width: 1024px) {
    .checkout-grid {
        grid-template-columns: 1fr;
    }

    .order-summary {
        order: 2;
    }

    .checkout-form {
        order: 1;
    }

    .chat-container {
        grid-template-columns: 1fr;
    }

    .chat-sidebar-info {
        display: none;
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: 64px;
    }

    .nav,
    .nav-links {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .hero {
        padding-top: calc(var(--header-height) + 40px);
        min-height: auto;
        padding-bottom: 60px;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .hero-btns {
        flex-direction: column;
    }

    .hero-btns .btn {
        width: 100%;
    }

    .section {
        padding: 50px 0;
    }

    .section-title {
        font-size: 1.6rem;
        margin-bottom: 30px;
    }

    .slider-wrapper {
        padding: 0 10px;
    }

    .slider-btn {
        width: 36px;
        height: 36px;
    }

    .slider-btn.prev {
        left: -5px;
    }

    .slider-btn.next {
        right: -5px;
    }

    .games-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .products-grid .product-card {
        flex: 0 0 220px;
        min-height: 360px;
        padding: 16px;
    }

    .product-name,
    .product-name h2 {
        font-size: 1.35rem;
        margin-top: 8px;
    }

    .price-value {
        font-size: 1.3rem;
    }

    .footer-content-grid {
        gap: 30px;
    }

    .profile-card {
        flex-direction: column;
        text-align: center;
    }

    .profile-actions {
        margin: 20px auto 0;
        justify-content: center;
    }

    .page-header {
        padding: calc(var(--header-height) + 20px) 0 30px;
    }

    .page-header h1 {
        font-size: 1.8rem;
    }

    .order-summary,
    .checkout-form {
        padding: 20px;
    }

    .game-banner-placeholder {
        height: 250px;
    }

    .game-banner-content h1 {
        font-size: 2rem;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .chat-card {
        height: 500px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .header-content,
    .header-container {
        padding: 0 16px;
    }

    .logo,
    .logo a {
        font-size: 1.3rem;
    }

    .cart-btn,
    .currency-switcher {
        padding: 8px 10px;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

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

    .game-card {
        border-radius: var(--radius-lg);
    }

    .game-name {
        font-size: 0.85rem;
        padding: 12px;
    }

    .products-grid .product-card {
        flex: 0 0 180px;
        min-height: 320px;
        padding: 12px;
        border-radius: var(--radius-lg);
    }

    .product-name,
    .product-name h2 {
        font-size: 1.2rem;
        min-height: 2.8rem;
        margin-top: 8px;
    }

    .price-value {
        font-size: 1.2rem;
    }

    .btn-add,
    .add-to-cart {
        padding: 10px 12px;
        font-size: 0.85rem;
    }

    .footer {
        padding: 50px 0 30px;
    }

    .testimonial-card,
    .review-card,
    .feature-card {
        padding: 20px;
    }

    .order-summary,
    .checkout-form {
        border-radius: var(--radius-lg);
    }

    .checkout-grid {
        gap: 24px;
    }
}

/* 23. ANIMATIONS & UTILITIES
   ========================================================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

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

@keyframes glow {

    0%,
    100% {
        box-shadow: 0 0 20px var(--primary-glow);
    }

    50% {
        box-shadow: 0 0 40px var(--primary-glow);
    }
}

.animate-fade-in {
    animation: fadeInUp 0.5s var(--ease-out);
}

.hidden {
    display: none !important;
}

.text-center {
    text-align: center;
}

.text-muted {
    color: var(--text-muted);
}

/* Toast Notifications */
.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    padding: 16px 24px;
    border-radius: var(--radius-md);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 9999;
    opacity: 0;
    transition: var(--transition);
    backdrop-filter: blur(10px);
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.toast.success {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.9), rgba(5, 150, 105, 0.9));
    color: white;
    box-shadow: 0 10px 40px rgba(16, 185, 129, 0.4);
}

.toast.warning {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.9), rgba(217, 119, 6, 0.9));
    color: white;
    box-shadow: 0 10px 40px rgba(245, 158, 11, 0.4);
}

.toast.error {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.9), rgba(220, 38, 38, 0.9));
    color: white;
    box-shadow: 0 10px 40px rgba(239, 68, 68, 0.4);
}

/* Alert/Message Boxes */
.alert {
    padding: 16px 20px;
    border-radius: var(--radius-md);
    margin-bottom: 20px;
    font-weight: 600;
}

.alert-success {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: var(--success);
}

.alert-error {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: var(--error);
}

.alert-warning {
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: var(--warning);
}

/* Print Styles */
@media print {

    .header,
    .footer,
    .cart-sidebar,
    .cart-overlay {
        display: none !important;
    }

    body {
        background: white;
        color: black;
    }
}

/* ==========================================================================
   ADDITIONAL FIXES & ENHANCEMENTS (v4.1)
   ========================================================================== */

/* 24. ENHANCED GLASSMORPHISM
   ========================================================================== */

/* Stronger glass effect for cards */
.product-card,
.game-card,
.testimonial-card,
.review-card,
.feature-card,
.order-card,
.profile-card,
.info-card,
.chat-card,
.step-card {
    background: linear-gradient(145deg,
            rgba(139, 92, 246, 0.08) 0%,
            rgba(20, 10, 40, 0.6) 50%,
            rgba(10, 5, 20, 0.85) 100%);
    backdrop-filter: blur(25px) saturate(1.2);
    -webkit-backdrop-filter: blur(25px) saturate(1.2);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.05),
        0 0 0 1px rgba(139, 92, 246, 0.03);
}

.product-card:hover,
.game-card:hover,
.testimonial-card:hover,
.review-card:hover,
.feature-card:hover {
    background: linear-gradient(145deg,
            rgba(139, 92, 246, 0.12) 0%,
            rgba(25, 15, 50, 0.7) 50%,
            rgba(15, 8, 30, 0.9) 100%);
    border-color: rgba(139, 92, 246, 0.3);
    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.4),
        0 0 60px rgba(139, 92, 246, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* Glass buttons */
.btn-secondary,
.cart-btn,
.currency-switcher,
.close-cart,
.slider-btn {
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Glass header enhancement */
.header {
    background: rgba(3, 1, 8, 0.6);
    backdrop-filter: blur(30px) saturate(1.5);
    -webkit-backdrop-filter: blur(30px) saturate(1.5);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* 25. MOBILE MENU (BURGER MENU)
   ========================================================================== */
.mobile-menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Mobile nav active state */
@media (max-width: 768px) {

    .nav,
    .nav-links {
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        background: linear-gradient(180deg, rgba(10, 5, 20, 0.98), rgba(3, 1, 8, 0.99));
        backdrop-filter: blur(30px);
        -webkit-backdrop-filter: blur(30px);
        border-bottom: 1px solid var(--glass-border);
        padding: 20px;
        flex-direction: column;
        gap: 8px;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.4s var(--ease-out);
        z-index: 999;
        box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    }

    .nav.active,
    .nav-links.active {
        display: flex !important;
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-link,
    .nav-links a {
        width: 100%;
        padding: 14px 20px;
        text-align: center;
        border-radius: var(--radius-md);
        background: var(--glass-bg);
        font-size: 1rem;
    }

    .nav-link:hover,
    .nav-links a:hover {
        background: rgba(139, 92, 246, 0.15);
    }

    .mobile-menu-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        background: var(--glass-bg);
        border: 1px solid var(--glass-border);
        border-radius: var(--radius-md);
        color: white;
        cursor: pointer;
        transition: var(--transition);
    }

    .mobile-menu-btn:hover {
        background: var(--glass-bg-hover);
        border-color: var(--primary);
    }

    .mobile-menu-btn svg {
        width: 22px;
        height: 22px;
    }
}

/* 26. BEST SELLERS - HIDE ARROWS & CENTER CARDS
   ========================================================================== */
.best-sellers .slider-btn,
.best-sellers .slider-wrapper .slider-btn {
    display: none !important;
}

.best-sellers .slider-wrapper {
    padding: 0;
}

.best-sellers .products-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
    overflow-x: visible;
    scroll-snap-type: none;
}

.best-sellers .products-grid .product-card {
    flex: 0 0 calc(25% - 18px);
    min-width: 260px;
    max-width: 300px;
}

@media (max-width: 1200px) {
    .best-sellers .products-grid .product-card {
        flex: 0 0 calc(33.333% - 16px);
    }
}

@media (max-width: 900px) {
    .best-sellers .products-grid .product-card {
        flex: 0 0 calc(50% - 12px);
    }
}

@media (max-width: 600px) {
    .best-sellers .products-grid .product-card {
        flex: 0 0 calc(50% - 10px);
        min-width: 150px;
    }
}

/* 27. TESTIMONIALS - DARK PURPLE AVATAR BACKGROUND
   ========================================================================== */
.testimonial-avatar,
.review-avatar {
    background: linear-gradient(135deg, #5B21B6, #3B0764) !important;
    box-shadow: 0 4px 20px rgba(91, 33, 182, 0.4);
}

.testimonial-card::before {
    color: rgba(91, 33, 182, 0.15);
}

/* 28. FOOTER FIXES
   ========================================================================== */
/* Payment methods bar - attach to footer */
.payment-methods-bar {
    margin-top: 0;
    padding: 30px 0;
    background: rgba(10, 5, 20, 0.95);
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
}

.footer {
    margin-top: 0;
    padding-top: 50px;
}

/* Chat logo in footer - resize */
.footer .chat-logo,
.footer .chat-widget,
.footer img[src*="chat"],
.footer svg.chat-icon {
    max-width: 40px !important;
    max-height: 40px !important;
    width: 40px;
    height: 40px;
}

/* Footer brand spacing */
.footer-brand {
    margin-bottom: 0;
}

.footer-content-grid {
    gap: 40px;
    padding-bottom: 30px;
}

/* 29. CUSTOMER SERVICE PAGE STYLING
   ========================================================================== */
.chat-page {
    min-height: calc(100vh - var(--header-height));
    padding-top: calc(var(--header-height) + 60px);
    padding-bottom: 80px;
    position: relative;
}

.chat-background {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.chat-background .blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
}

.chat-background .blob-1 {
    width: 400px;
    height: 400px;
    background: rgba(139, 92, 246, 0.3);
    top: 10%;
    left: 10%;
    animation: float 10s ease-in-out infinite;
}

.chat-background .blob-2 {
    width: 300px;
    height: 300px;
    background: rgba(236, 72, 153, 0.2);
    bottom: 20%;
    right: 15%;
    animation: float 12s ease-in-out infinite reverse;
}

.chat-container {
    position: relative;
    z-index: 2;
}

.chat-card {
    background: linear-gradient(145deg,
            rgba(139, 92, 246, 0.06) 0%,
            rgba(20, 10, 40, 0.7) 50%,
            rgba(10, 5, 20, 0.9) 100%);
    backdrop-filter: blur(30px) saturate(1.3);
    -webkit-backdrop-filter: blur(30px) saturate(1.3);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow:
        0 25px 60px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.chat-header {
    background: linear-gradient(90deg, rgba(139, 92, 246, 0.1), transparent);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.chat-messages {
    background: rgba(0, 0, 0, 0.15);
}

.message.system-message {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.15), rgba(91, 33, 182, 0.1));
    border: 1px solid rgba(139, 92, 246, 0.2);
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.1);
}

.chat-input-area {
    background: rgba(0, 0, 0, 0.25);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.chat-input-area input {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.chat-input-area input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.2);
}

.chat-sidebar-info .info-card,
.info-card {
    background: linear-gradient(145deg,
            rgba(139, 92, 246, 0.08) 0%,
            rgba(20, 10, 40, 0.6) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.info-card .icon-box {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(91, 33, 182, 0.1));
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--primary-light);
}

.info-card .icon-box svg {
    width: 28px;
    height: 28px;
}

.info-card h3 {
    margin-bottom: 12px;
    font-weight: 700;
}

.info-card p {
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.7;
}

/* 30. GAME PAGE - MULTI-ROW PRODUCTS
   ========================================================================== */
#productsGrid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
    overflow: visible;
    flex-wrap: wrap;
}

/* Game page products - force grid layout */
.section #productsGrid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

/* Mobile: 2 columns */
@media (max-width: 768px) {
    #productsGrid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    #productsGrid .product-card {
        min-height: 340px;
    }
}

@media (max-width: 480px) {
    #productsGrid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    #productsGrid .product-card {
        min-height: 300px;
        padding: 12px;
    }
}

/* Remove slider arrows from game page */
.section:has(#productsGrid) .slider-btn {
    display: none !important;
}

/* 31. LOGIN MODAL STYLING
   ========================================================================== */
.login-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-modal {
    background: linear-gradient(145deg, rgba(20, 10, 40, 0.95), rgba(10, 5, 20, 0.98));
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    padding: 40px;
    max-width: 420px;
    width: 100%;
    position: relative;
    backdrop-filter: blur(20px);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5), 0 0 80px rgba(139, 92, 246, 0.1);
}

.login-modal .close-modal {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.login-modal .close-modal:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: var(--error);
    color: var(--error);
}

.login-modal-content {
    text-align: center;
}

.login-modal .login-icon {
    width: 70px;
    height: 70px;
    color: var(--primary-light);
    margin-bottom: 24px;
}

.login-modal h2 {
    font-size: 1.4rem;
    margin-bottom: 12px;
}

.login-modal p {
    color: var(--text-secondary);
    margin-bottom: 28px;
}

/* 32. HEADER LOGIN BUTTON
   ========================================================================== */
.login-btn-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
}

.login-btn-header:hover {
    background: var(--glass-bg-hover);
    border-color: var(--primary);
    color: #fff;
}

.login-btn-header svg {
    width: 18px;
    height: 18px;
}

/* 33. EMPTY CART STYLING
   ========================================================================== */
.empty-cart {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.empty-cart svg {
    width: 60px;
    height: 60px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.empty-cart p {
    font-size: 1.1rem;
}

/* 34. CART ITEM DETAILS
   ========================================================================== */
.cart-item-details {
    flex: 1;
}

.cart-item-name {
    font-weight: 700;
    margin-bottom: 4px;
}

.cart-item-price {
    color: var(--primary-light);
    font-weight: 600;
    font-size: 0.9rem;
}

.qty-btn {
    width: 28px;
    height: 28px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 6px;
    color: white;
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.qty-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
}

.qty-value {
    min-width: 30px;
    text-align: center;
    font-weight: 600;
}

.remove-item {
    width: 32px;
    height: 32px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    border-radius: 6px;
}

.remove-item:hover {
    background: rgba(239, 68, 68, 0.2);
    color: var(--error);
}

.remove-item svg {
    width: 18px;
    height: 18px;
}

/* 35. NO PRODUCTS MESSAGE
   ========================================================================== */
.no-products {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* 36. PLACEHOLDER BOX FOR MISSING IMAGES
   ========================================================================== */
.placeholder-box {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(91, 33, 182, 0.05));
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px dashed rgba(139, 92, 246, 0.3);
}

.placeholder-text {
    color: var(--text-muted);
    font-size: 0.8rem;
    text-align: center;
    line-height: 1.4;
}

/* ==========================================================================
   UI FIXES & MODERN ANIMATIONS (v4.2)
   ========================================================================== */

/* 37. BURGER MENU - COMPLETE FIX
   ========================================================================== */
@media (max-width: 768px) {

    /* Hide desktop nav */
    .nav,
    .nav-links {
        display: none !important;
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        background: rgba(10, 5, 20, 0.98);
        backdrop-filter: blur(30px);
        -webkit-backdrop-filter: blur(30px);
        border: none;
        border-bottom: 1px solid var(--glass-border);
        border-radius: 0;
        padding: 16px;
        flex-direction: column;
        gap: 8px;
        z-index: 999;
        max-height: calc(100vh - var(--header-height));
        overflow-y: auto;
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
        transform: translateY(-20px);
        opacity: 0;
        transition: all 0.3s var(--ease-out);
    }

    .nav.active,
    .nav-links.active {
        display: flex !important;
        transform: translateY(0);
        opacity: 1;
    }

    .nav-link,
    .nav-links a {
        display: block;
        width: 100%;
        padding: 16px 20px;
        text-align: center;
        border-radius: var(--radius-md);
        background: rgba(139, 92, 246, 0.08);
        border: 1px solid rgba(139, 92, 246, 0.15);
        font-size: 1rem;
        font-weight: 600;
        color: white;
    }

    .nav-link:hover,
    .nav-links a:hover,
    .nav-link.active,
    .nav-links a.active {
        background: rgba(139, 92, 246, 0.2);
        border-color: var(--primary);
        transform: scale(1.02);
    }

    .mobile-menu-btn {
        display: flex !important;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        background: var(--glass-bg);
        border: 1px solid var(--glass-border);
        border-radius: var(--radius-md);
        color: white;
        cursor: pointer;
        transition: var(--transition);
    }

    .mobile-menu-btn:hover {
        background: rgba(139, 92, 246, 0.15);
        border-color: var(--primary);
    }
}

/* 38. BEST SELLERS MOBILE - HORIZONTAL SCROLL
   ========================================================================== */
/* Remove ALL slider arrows globally */
.slider-btn {
    display: none !important;
}

.slider-wrapper {
    padding: 0 !important;
}

/* Best sellers - horizontal scroll on all screens */
.best-sellers .products-grid,
#bestSellersGrid {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: hidden !important;
    overflow-y: hidden;
    gap: 16px;
    padding: 10px 5px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.best-sellers .products-grid::-webkit-scrollbar,
#bestSellersGrid::-webkit-scrollbar {
    display: none;
}

.best-sellers .products-grid .product-card,
#bestSellersGrid .product-card {
    flex: 0 0 280px;
    min-width: 280px;
    scroll-snap-align: start;
}

@media (max-width: 768px) {

    .best-sellers .products-grid .product-card,
    #bestSellersGrid .product-card {
        flex: 0 0 200px;
        min-width: 200px;
        min-height: 340px;
    }
}

@media (max-width: 480px) {

    .best-sellers .products-grid .product-card,
    #bestSellersGrid .product-card {
        flex: 0 0 160px;
        min-width: 160px;
        min-height: 300px;
        padding: 12px;
    }

    .best-sellers .product-name,
    #bestSellersGrid .product-name {
        font-size: 1.15rem;
        min-height: 2.6rem;
        margin-top: 8px;
    }

    .best-sellers .price-value,
    #bestSellersGrid .price-value {
        font-size: 1.2rem;
    }

    .best-sellers .btn-add,
    #bestSellersGrid .btn-add {
        padding: 10px;
        font-size: 0.8rem;
    }
}

/* 39. GAME PAGE PRODUCTS - TWO PER ROW ON MOBILE
   ========================================================================== */
#productsGrid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    overflow: visible !important;
}

@media (max-width: 768px) {
    #productsGrid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px;
    }

    #productsGrid .product-card {
        min-height: auto;
        padding: 12px;
    }

    #productsGrid .product-image-container,
    #productsGrid .product-image {
        aspect-ratio: 1;
    }

    #productsGrid .product-name {
        font-size: 1.15rem;
        min-height: 2.6rem;
        margin-top: 8px;
    }

    #productsGrid .price-value {
        font-size: 1.1rem;
    }

    #productsGrid .btn-add {
        padding: 10px;
        font-size: 0.8rem;
    }
}

@media (max-width: 400px) {
    #productsGrid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px;
    }

    #productsGrid .product-card {
        padding: 10px;
        border-radius: var(--radius-lg);
    }
}

/* 40. ADD TO CART BUTTON - ENHANCED STYLING
   ========================================================================== */
.btn-add,
.add-to-cart,
.add-cart-large,
button[onclick*="addToCart"] {
    position: relative;
    width: 100%;
    padding: 14px 20px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.4);
    overflow: hidden;
    z-index: 10;
    transition: all 0.3s var(--ease-spring);
}

.btn-add::before,
.add-to-cart::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 ease;
}

.btn-add:hover::before,
.add-to-cart:hover::before {
    left: 100%;
}

.btn-add:hover,
.add-to-cart:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 30px rgba(139, 92, 246, 0.6);
}

.btn-add:active,
.add-to-cart:active {
    transform: translateY(0) scale(0.98);
}

.btn-add svg,
.add-to-cart svg {
    width: 18px;
    height: 18px;
    transition: transform 0.3s var(--ease-spring);
}

.btn-add:hover svg,
.add-to-cart:hover svg {
    transform: rotate(90deg) scale(1.1);
}

/* Product page add to cart button */
.product-details-section .btn-add,
.product-details-section .add-to-cart,
.add-cart-large {
    padding: 18px 32px;
    font-size: 1.1rem;
    border-radius: var(--radius-lg);
}

/* 41. REMOVE CHAT ICON FROM FOOTER
   ========================================================================== */
.footer .chat-widget,
.footer .chat-icon,
.footer .chat-logo,
.footer img[src*="chat"],
.footer a[href*="chat"] img,
.chat-bubble,
#chatWidget,
.widget-chat,
.footer>img:last-child,
footer>img:last-child {
    display: none !important;
}

/* 42. MODERN ANIMATIONS & MICRO-INTERACTIONS
   ========================================================================== */

/* Staggered fade-in animation for cards */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

@keyframes gentleFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

@keyframes glowPulse {

    0%,
    100% {
        box-shadow: 0 0 20px var(--primary-glow);
    }

    50% {
        box-shadow: 0 0 40px var(--primary-glow), 0 0 60px rgba(139, 92, 246, 0.2);
    }
}

@keyframes borderGlow {

    0%,
    100% {
        border-color: rgba(139, 92, 246, 0.2);
    }

    50% {
        border-color: rgba(139, 92, 246, 0.5);
    }
}

/* Apply animations to elements */
.product-card {
    animation: fadeInUp 0.6s var(--ease-out) backwards;
}

.product-card:nth-child(1) {
    animation-delay: 0.05s;
}

.product-card:nth-child(2) {
    animation-delay: 0.1s;
}

.product-card:nth-child(3) {
    animation-delay: 0.15s;
}

.product-card:nth-child(4) {
    animation-delay: 0.2s;
}

.product-card:nth-child(5) {
    animation-delay: 0.25s;
}

.product-card:nth-child(6) {
    animation-delay: 0.3s;
}

.game-card {
    animation: fadeInScale 0.5s var(--ease-out) backwards;
}

.game-card:nth-child(1) {
    animation-delay: 0.05s;
}

.game-card:nth-child(2) {
    animation-delay: 0.1s;
}

.game-card:nth-child(3) {
    animation-delay: 0.15s;
}

.game-card:nth-child(4) {
    animation-delay: 0.2s;
}

.game-card:nth-child(5) {
    animation-delay: 0.25s;
}

.game-card:nth-child(6) {
    animation-delay: 0.3s;
}

/* Enhanced hover effects */
.product-card {
    transition: transform 0.4s var(--ease-spring),
        box-shadow 0.4s var(--ease-out),
        border-color 0.3s ease;
}

.product-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4),
        0 0 50px rgba(139, 92, 246, 0.2);
}

.game-card {
    transition: transform 0.4s var(--ease-spring),
        box-shadow 0.4s var(--ease-out);
}

.game-card:hover {
    transform: translateY(-10px) scale(1.03);
}

/* Image zoom on hover with smooth transition */
.product-image-container img,
.product-image img,
.game-image img {
    transition: transform 0.6s var(--ease-out);
}

.product-card:hover .product-image-container img,
.product-card:hover .product-image img {
    transform: scale(1.12);
}

.game-card:hover .game-image img {
    transform: scale(1.15);
}

/* Button hover pulse effect */
.btn-primary {
    animation: glowPulse 3s ease-in-out infinite;
}

.btn-primary:hover {
    animation: none;
    box-shadow: 0 10px 40px rgba(139, 92, 246, 0.6);
}

/* Input focus animation */
input:focus,
select:focus,
textarea:focus {
    animation: borderGlow 2s ease-in-out infinite;
}

/* Hero badge floating animation */
.hero-badge {
    animation: gentleFloat 4s ease-in-out infinite;
}

/* Cart button bounce on count change */
.cart-count {
    animation: fadeInScale 0.3s var(--ease-spring);
}

/* Smooth link underline animation */
.nav-link::after,
.footer-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: all 0.3s var(--ease-out);
    transform: translateX(-50%);
}

.nav-link:hover::after,
.footer-link:hover::after {
    width: 60%;
}

/* Page load animation */
main {
    animation: fadeInUp 0.5s var(--ease-out);
}

/* Section reveal animation */
.section,
.best-sellers,
.game-selection,
.testimonials-section {
    animation: fadeInUp 0.6s var(--ease-out);
}

/* Smooth scroll indicator */
@keyframes scrollHint {

    0%,
    100% {
        opacity: 1;
        transform: translateX(0);
    }

    50% {
        opacity: 0.5;
        transform: translateX(10px);
    }
}

/* Mobile touch feedback */
@media (hover: none) {

    .product-card:active,
    .game-card:active,
    .btn:active {
        transform: scale(0.97);
        transition: transform 0.1s ease;
    }
}

/* Reduced motion for accessibility */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* 43. TESTIMONIAL CARD ANIMATION
   ========================================================================== */
.testimonial-card {
    animation: fadeInUp 0.6s var(--ease-out) backwards;
    transition: transform 0.4s var(--ease-spring),
        box-shadow 0.4s var(--ease-out);
}

.testimonial-card:nth-child(1) {
    animation-delay: 0.1s;
}

.testimonial-card:nth-child(2) {
    animation-delay: 0.2s;
}

.testimonial-card:nth-child(3) {
    animation-delay: 0.3s;
}

.testimonial-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3),
        0 0 40px rgba(139, 92, 246, 0.15);
}

/* 44. CART SIDEBAR ANIMATION
   ========================================================================== */
.cart-sidebar {
    transition: transform 0.4s var(--ease-out);
}

.cart-sidebar.active {
    transform: translateX(0);
}

.cart-item {
    animation: fadeInUp 0.3s var(--ease-out) backwards;
}

.cart-overlay {
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* 45. HEADER SCROLL EFFECT
   ========================================================================== */
.header {
    transition: background 0.3s ease,
        box-shadow 0.3s ease,
        backdrop-filter 0.3s ease;
}

.header.scrolled {
    background: rgba(3, 1, 8, 0.95);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5),
        0 0 50px rgba(139, 92, 246, 0.1);
}

/* 46. LOADING SHIMMER EFFECT
   ========================================================================== */
.loading-shimmer {
    background: linear-gradient(90deg,
            rgba(139, 92, 246, 0.1) 0%,
            rgba(139, 92, 246, 0.2) 50%,
            rgba(139, 92, 246, 0.1) 100%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

/* 47. NOTIFICATION ANIMATION
   ========================================================================== */
.notification,
.toast {
    animation: fadeInUp 0.4s var(--ease-spring);
}

.notification.hide,
.toast.hide {
    animation: fadeInUp 0.3s var(--ease-out) reverse forwards;
}

/* ==========================================================================
   FINAL FIXES (v4.3) - Scroll, Notification, Chat Page
   ========================================================================== */

/* 48. FIX RTL HORIZONTAL SCROLL
   ========================================================================== */
.best-sellers .products-grid,
#bestSellersGrid,
.products-grid {
    direction: ltr;
    /* Force LTR for proper scroll behavior */
    scroll-behavior: smooth;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
    /* Changed from mandatory for easier control */
}

/* Ensure cards maintain RTL text */
.best-sellers .products-grid .product-card,
#bestSellersGrid .product-card,
.products-grid .product-card {
    direction: rtl;
}

/* Fix scroll padding for smoother experience */
html[dir="rtl"] .products-grid {
    scroll-padding-right: 20px;
    scroll-padding-left: 20px;
}

/* 49. NOTIFICATION STYLING - FIXED BACKGROUND
   ========================================================================== */
.notification {
    position: fixed !important;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: linear-gradient(135deg, #8B5CF6 0%, #6D28D9 100%) !important;
    color: white !important;
    padding: 16px 28px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    font-size: 1rem;
    z-index: 9999;
    box-shadow: 0 10px 40px rgba(139, 92, 246, 0.5),
        0 4px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    animation: slideUpNotification 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.notification svg {
    width: 24px !important;
    height: 24px !important;
    color: white !important;
    stroke: white !important;
    flex-shrink: 0;
}

.notification span {
    color: white !important;
}

@keyframes slideUpNotification {
    from {
        transform: translateX(-50%) translateY(100px);
        opacity: 0;
    }

    to {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }
}

/* 50. GEMINI-STYLE CHAT PAGE
   ========================================================================== */
.chat-page {
    min-height: 100vh;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--bg-deep);
    background-image:
        radial-gradient(ellipse at 50% 20%, rgba(139, 92, 246, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(236, 72, 153, 0.05) 0%, transparent 40%);
    position: relative;
    overflow: hidden;
}

/* Hide old chat elements */
.chat-page .chat-container,
.chat-page .chat-card,
.chat-page .chat-sidebar-info {
    display: none;
}

/* Gemini-style centered layout */
.chat-page::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 30% 20%, rgba(139, 92, 246, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 70% 80%, rgba(236, 72, 153, 0.08) 0%, transparent 30%);
    pointer-events: none;
}

.chat-page main,
.chat-page>.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - var(--header-height));
    padding-top: var(--header-height);
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
    position: relative;
    z-index: 2;
}

/* Welcome message - Gemini style */
.chat-page .chat-messages,
.chat-page #chatMessages {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-bottom: 60px;
    padding: 40px 20px;
}

.chat-page .message.system-message {
    background: transparent;
    border: none;
    box-shadow: none;
    max-width: 100%;
    padding: 0;
}

.chat-page .message.system-message p {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    background: linear-gradient(135deg, #fff 0%, var(--primary-light) 50%, var(--accent-light) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 16px;
    line-height: 1.3;
}

.chat-page .message.system-message .time {
    display: none;
}

/* Subtitle under welcome */
.chat-page .support-info p,
.chat-page .chat-header p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-top: -10px;
}

/* Input area - Gemini style centered */
.chat-page .chat-input-area {
    position: fixed;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 700px;
    padding: 0 20px;
    background: transparent;
    border: none;
    display: flex;
    gap: 12px;
    align-items: center;
    z-index: 100;
}

.chat-page .chat-input-area input {
    flex: 1;
    padding: 18px 24px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 28px;
    color: white;
    font-size: 1rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.chat-page .chat-input-area input::placeholder {
    color: var(--text-muted);
}

.chat-page .chat-input-area input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.15),
        0 0 30px rgba(139, 92, 246, 0.2);
    background: rgba(255, 255, 255, 0.05);
}

.chat-page .send-btn {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s var(--ease-spring);
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.4);
    border: none;
}

.chat-page .send-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(139, 92, 246, 0.6);
}

.chat-page .send-btn svg {
    width: 22px;
    height: 22px;
    color: white;
}

/* Hide attach button for cleaner look */
.chat-page .attach-btn {
    display: none;
}

/* Quick action chips - Gemini style */
.chat-page .chat-header {
    background: transparent;
    border: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 30px;
}

.chat-page .support-avatar {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
}

.chat-page .support-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 3px solid var(--primary);
    box-shadow: 0 0 30px var(--primary-glow);
}

.chat-page .online-status {
    width: 18px;
    height: 18px;
    bottom: 4px;
    right: 4px;
    border-width: 3px;
}

.chat-page .support-info {
    text-align: center;
}

.chat-page .support-info h2 {
    font-size: 1.5rem;
    margin-bottom: 8px;
    background: linear-gradient(135deg, #fff, var(--primary-light));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Floating decorative elements */
.chat-page::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.05) 0%, transparent 70%);
    pointer-events: none;
    animation: gentlePulse 8s ease-in-out infinite;
}

@keyframes gentlePulse {

    0%,
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.5;
    }

    50% {
        transform: translate(-50%, -50%) scale(1.1);
        opacity: 0.8;
    }
}

/* Hide background blobs from old design */
.chat-page .chat-background {
    display: none;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .chat-page .chat-input-area {
        bottom: 20px;
        padding: 0 16px;
    }

    .chat-page .chat-input-area input {
        padding: 16px 20px;
        font-size: 0.95rem;
    }

    .chat-page .send-btn {
        width: 48px;
        height: 48px;
    }

    .chat-page .message.system-message p {
        font-size: 1.8rem;
    }
}

/* Info card styling for sidebar */
.chat-page .info-card {
    display: none;
}

/* WhatsApp quick link at bottom */
.chat-page .btn-whatsapp {
    position: fixed;
    bottom: 110px;
    left: 50%;
    transform: translateX(-50%);
    padding: 12px 24px;
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: white;
    border-radius: 24px;
    font-weight: 700;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.3);
    transition: all 0.3s var(--ease-spring);
    z-index: 50;
}

.chat-page .btn-whatsapp:hover {
    transform: translateX(-50%) translateY(-3px);
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.4);
}

/* 51. FIX CHAT PAGE - SHOW CONTAINER
   ========================================================================== */
/* Override the hide rule - show container */
.chat-page .chat-container {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - var(--header-height) - 100px);
    padding: 20px;
    padding-bottom: 140px;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

.chat-page .chat-card {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    width: 100%;
    height: auto !important;
    min-height: auto;
}

.chat-page .chat-sidebar-info {
    display: none !important;
}

/* Center the welcome message */
.chat-page .chat-messages {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    flex: none !important;
    overflow: visible !important;
}

/* Large welcome text like Gemini */
.chat-page .message.system-message {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    max-width: 100%;
    padding: 0;
    text-align: center;
}

.chat-page .message.system-message p {
    font-size: clamp(2.2rem, 5vw, 3.5rem) !important;
    font-weight: 800 !important;
    background: linear-gradient(135deg, #fff 0%, var(--primary-light) 50%, var(--accent-light) 100%) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    margin-bottom: 16px;
    line-height: 1.2 !important;
}

.chat-page .message .time {
    display: none !important;
}

/* Input centered at bottom */
.chat-page .chat-input-area {
    position: fixed !important;
    bottom: 30px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: calc(100% - 40px) !important;
    max-width: 700px !important;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    display: flex !important;
    gap: 12px;
}

.chat-page .chat-input-area input {
    flex: 1;
    padding: 18px 24px !important;
    background: rgba(20, 10, 40, 0.6) !important;
    border: 1px solid rgba(139, 92, 246, 0.3) !important;
    border-radius: 28px !important;
    font-size: 1rem;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.chat-page .chat-input-area input:focus {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.15), 0 0 30px rgba(139, 92, 246, 0.2) !important;
}

.chat-page .send-btn {
    width: 52px !important;
    height: 52px !important;
    min-width: 52px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark)) !important;
    border-radius: 50% !important;
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.4) !important;
}

.chat-page .attach-btn {
    display: none !important;
}

/* Header styling */
.chat-page .chat-header {
    background: transparent !important;
    border: none !important;
    padding: 30px 20px !important;
    display: flex !important;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.chat-page .support-avatar {
    width: 100px !important;
    height: 100px !important;
    margin-bottom: 20px;
}

.chat-page .support-avatar img {
    border: 3px solid var(--primary) !important;
    box-shadow: 0 0 40px var(--primary-glow) !important;
}

.chat-page .support-info {
    text-align: center;
}

.chat-page .support-info h2 {
    font-size: 1.6rem !important;
    background: linear-gradient(135deg, #fff, var(--primary-light)) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
}

.chat-page .support-info p {
    color: var(--text-secondary) !important;
    font-size: 1.1rem !important;
}

/* 52. CHAT PAGE - GRADIENT TEXT ENHANCEMENT
   ========================================================================== */
/* Target the actual HTML structure */
.chat-page .chat-messages .message p,
.chat-page .message.system-message p,
.chat-page #chatMessages .message p {
    font-size: clamp(2rem, 5vw, 3rem) !important;
    font-weight: 800 !important;
    background: linear-gradient(135deg, #ffffff 0%, #A78BFA 50%, #F472B6 100%) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    text-shadow: none !important;
    line-height: 1.3 !important;
}

/* WhatsApp button positioning */
.chat-page .info-card .btn-whatsapp,
.chat-page .chat-sidebar-info .btn-whatsapp {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    padding: 14px 28px;
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: white;
    border-radius: 28px;
    font-weight: 700;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.35);
    z-index: 50;
    transition: all 0.3s var(--ease-spring);
}

.chat-page .info-card .btn-whatsapp:hover,
.chat-page .chat-sidebar-info .btn-whatsapp:hover {
    transform: translateX(-50%) translateY(-4px);
    box-shadow: 0 10px 35px rgba(37, 211, 102, 0.45);
}

/* Hide chat sidebar but show whatsapp button */
.chat-page .chat-sidebar-info {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    display: block !important;
    background: transparent;
    border: none;
    pointer-events: none;
}

.chat-page .chat-sidebar-info .info-card {
    display: none !important;
}

.chat-page .chat-sidebar-info .btn-whatsapp {
    pointer-events: auto;
}

/* ==========================================================================
   COMPREHENSIVE FIXES (v5.0) - Final Polish
   ========================================================================== */

/* 53. CUSTOM SF FONTS
   ========================================================================== */
@font-face {
    font-family: 'SF Arabic';
    src: url('/SFArabic-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'SF Pro Display';
    src: url('/SFPRODISPLAYREGULAR.OTF') format('opentype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

:root {
    --font-ar: 'SF Arabic', 'Cairo', 'Tajawal', sans-serif;
    --font-en: 'SF Pro Display', 'Inter', sans-serif;
}

body {
    font-family: var(--font-ar);
}

html[dir="ltr"] body,
body[lang="en"],
.english-text {
    font-family: var(--font-en);
}

/* 54. NOTIFICATION - COMPLETE REDESIGN
   ========================================================================== */
.notification,
.toast-notification,
#notification,
[class*="notification"] {
    position: fixed !important;
    bottom: 30px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    background: linear-gradient(135deg, #8B5CF6 0%, #6D28D9 100%) !important;
    color: white !important;
    padding: 16px 24px !important;
    border-radius: 16px !important;
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    font-weight: 600 !important;
    font-size: 0.95rem !important;
    z-index: 99999 !important;
    box-shadow: 0 10px 40px rgba(139, 92, 246, 0.4),
        0 4px 15px rgba(0, 0, 0, 0.3) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    animation: notificationSlideUp 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards !important;
    max-width: 90vw !important;
}

.notification *,
.toast-notification *,
[class*="notification"] * {
    color: white !important;
}

.notification svg,
.toast-notification svg,
[class*="notification"] svg {
    width: 22px !important;
    height: 22px !important;
    stroke: white !important;
    fill: none !important;
    flex-shrink: 0 !important;
}

@keyframes notificationSlideUp {
    0% {
        transform: translateX(-50%) translateY(100px);
        opacity: 0;
    }

    100% {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }
}

/* 55. BEST SELLERS SCROLL - FIXED FOR RTL
   ========================================================================== */
.best-sellers .products-grid,
#bestSellersGrid {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: scroll !important;
    overflow-y: hidden !important;
    gap: 16px !important;
    padding: 15px 20px !important;
    scroll-behavior: smooth !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
    direction: ltr !important;
    overscroll-behavior-x: contain !important;
}

.best-sellers .products-grid::-webkit-scrollbar,
#bestSellersGrid::-webkit-scrollbar {
    display: none !important;
}

.best-sellers .products-grid .product-card,
#bestSellersGrid .product-card {
    flex: 0 0 auto !important;
    width: 260px !important;
    min-width: 260px !important;
    direction: rtl !important;
}

@media (max-width: 768px) {

    .best-sellers .products-grid .product-card,
    #bestSellersGrid .product-card {
        width: 180px !important;
        min-width: 180px !important;
    }
}

/* 56. PRODUCT SUGGESTIONS - GRID ON DESKTOP, SCROLL ON MOBILE
   ========================================================================== */
.product-suggestions .products-grid,
.suggestions-grid,
.slider-wrapper .products-grid:not(#bestSellersGrid) {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)) !important;
    gap: 20px !important;
    overflow: visible !important;
    padding: 10px 0 !important;
}

.product-suggestions .products-grid .product-card,
.suggestions-grid .product-card {
    width: 100% !important;
    min-width: auto !important;
    flex: none !important;
}

@media (max-width: 768px) {

    .product-suggestions .products-grid,
    .suggestions-grid,
    .slider-wrapper .products-grid:not(#bestSellersGrid) {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        scroll-snap-type: x proximity !important;
        -webkit-overflow-scrolling: touch !important;
        gap: 12px !important;
        padding: 10px 15px !important;
    }

    .product-suggestions .products-grid .product-card,
    .suggestions-grid .product-card {
        flex: 0 0 auto !important;
        width: 160px !important;
        min-width: 160px !important;
    }
}

/* 57. CHAT PAGE - COMPLETE REDESIGN
   ========================================================================== */
.chat-page {
    min-height: 100vh;
    padding: 0;
    background: var(--bg-deep);
    background-image: radial-gradient(ellipse at 50% 30%, rgba(139, 92, 246, 0.1) 0%, transparent 60%);
    display: flex;
    flex-direction: column;
}

.chat-page .chat-background {
    display: none !important;
}

.chat-page .chat-container {
    flex: 1;
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: calc(var(--header-height) + 40px) 20px 160px;
    max-width: 750px;
    margin: 0 auto;
    width: 100%;
}

.chat-page .chat-card {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    width: 100%;
    padding: 0 !important;
}

.chat-page .chat-header {
    background: transparent !important;
    border: none !important;
    padding: 20px !important;
    display: flex !important;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.chat-page .support-avatar {
    width: 80px !important;
    height: 80px !important;
    margin-bottom: 16px;
    position: relative;
}

.chat-page .support-avatar img {
    width: 100% !important;
    height: 100% !important;
    border-radius: 50% !important;
    border: 3px solid var(--primary) !important;
    box-shadow: 0 0 30px var(--primary-glow) !important;
    object-fit: cover;
}

.chat-page .online-status {
    position: absolute;
    bottom: 4px;
    right: 4px;
    width: 16px;
    height: 16px;
    background: var(--success);
    border-radius: 50%;
    border: 3px solid var(--bg-deep);
}

.chat-page .support-info {
    text-align: center;
}

.chat-page .support-info h2 {
    font-size: 1.4rem !important;
    margin-bottom: 4px;
    color: white !important;
    -webkit-text-fill-color: white !important;
    background: none !important;
}

.chat-page .support-info p {
    color: var(--text-secondary) !important;
    font-size: 0.95rem !important;
}

.chat-page .chat-messages {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    padding: 40px 20px !important;
    background: transparent !important;
    overflow: visible !important;
    flex: none !important;
    height: auto !important;
}

.chat-page .message.system-message {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    text-align: center;
    max-width: 100%;
}

.chat-page .message.system-message p {
    font-size: clamp(1.8rem, 4vw, 2.8rem) !important;
    font-weight: 700 !important;
    background: linear-gradient(135deg, #fff 0%, #A78BFA 60%, #F472B6 100%) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    line-height: 1.4 !important;
    margin: 0 !important;
}

.chat-page .message .time {
    display: none !important;
}

.chat-page .chat-input-area {
    position: fixed !important;
    bottom: 25px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: calc(100% - 40px) !important;
    max-width: 650px !important;
    background: rgba(20, 10, 40, 0.8) !important;
    border: 1px solid rgba(139, 92, 246, 0.25) !important;
    border-radius: 28px !important;
    padding: 8px 8px 8px 16px !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4) !important;
}

.chat-page .chat-input-area input {
    flex: 1 !important;
    padding: 12px 16px !important;
    background: transparent !important;
    border: none !important;
    font-size: 1rem !important;
    color: white !important;
}

.chat-page .chat-input-area input::placeholder {
    color: var(--text-muted) !important;
}

.chat-page .chat-input-area input:focus {
    outline: none !important;
    box-shadow: none !important;
}

.chat-page .attach-btn {
    display: none !important;
}

.chat-page .send-btn {
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark)) !important;
    border: none !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    transition: all 0.3s var(--ease-spring) !important;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4) !important;
}

.chat-page .send-btn:hover {
    transform: scale(1.1) !important;
    box-shadow: 0 6px 25px rgba(139, 92, 246, 0.5) !important;
}

.chat-page .send-btn svg {
    width: 20px !important;
    height: 20px !important;
    color: white !important;
    stroke: white !important;
}

.chat-page .chat-sidebar-info {
    display: none !important;
}

/* 58. FLOATING CHAT BOX - BOTTOM RIGHT
   ========================================================================== */




/* Hide the old chat logo in footer */
footer img[src*="chat"],
footer .chat-logo,
.footer img[src*="chat"],
.footer .chat-logo {
    display: none !important;
}

/* 59. REMOVE ALL SLIDER ARROWS
   ========================================================================== */
.slider-btn,
.slider-btn.prev,
.slider-btn.next,
button.prev,
button.next {
    display: none !important;
}

.slider-wrapper {
    padding: 0 !important;
}

/* 60. MOBILE IMPROVEMENTS
   ========================================================================== */
@media (max-width: 768px) {

    .notification,
    [class*="notification"] {
        bottom: 20px !important;
        padding: 14px 20px !important;
        font-size: 0.9rem !important;
        max-width: calc(100vw - 40px) !important;
    }

    /* === CART SIDEBAR MOBILE FIXES === */
    .cart-sidebar {
        max-width: 100vw !important;
        width: 100vw !important;
    }

    .cart-header {
        padding: 20px 16px !important;
    }

    .cart-header h2,
    .cart-header h3 {
        font-size: 1.1rem !important;
    }

    .cart-items {
        padding: 16px !important;
        /* Ensure items area doesn't push footer down */
        max-height: calc(100vh - 200px) !important;
        overflow-y: auto !important;
    }

    .cart-item {
        padding: 12px !important;
        gap: 12px !important;
    }

    .cart-item-image {
        width: 50px !important;
        height: 50px !important;
    }

    .cart-item-name {
        font-size: 0.9rem !important;
    }

    .cart-item-price {
        font-size: 0.85rem !important;
    }

    /* === CART FOOTER - CRITICAL FIX === */
    .cart-footer {
        position: sticky !important;
        bottom: 0 !important;
        padding: 16px !important;
        background: rgba(3, 1, 8, 0.98) !important;
        backdrop-filter: blur(20px) !important;
        border-top: 2px solid var(--glass-border) !important;
        z-index: 100 !important;
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.5) !important;
    }

    .cart-total {
        font-size: 1rem !important;
        margin-bottom: 12px !important;
    }

    .checkout-btn {
        padding: 14px !important;
        font-size: 1rem !important;
    }

    /* === BUTTON SIZE FIXES === */
    .btn,
    .btn-primary,
    .btn-secondary {
        padding: 12px 20px !important;
        font-size: 0.9rem !important;
    }

    .btn-add,
    .add-to-cart {
        padding: 10px 14px !important;
        font-size: 0.85rem !important;
    }

    .btn-add svg,
    .add-to-cart svg {
        width: 16px !important;
        height: 16px !important;
    }

    /* === HERO BUTTONS === */
    .hero-btns .btn {
        padding: 12px 24px !important;
        font-size: 0.95rem !important;
    }

    /* === HEADER ADJUSTMENTS === */
    .header {
        height: 60px !important;
    }

    .logo,
    .logo a {
        font-size: 1.3rem !important;
    }

    .nav-link,
    .nav-links a {
        padding: 8px 14px !important;
        font-size: 0.85rem !important;
    }

    /* === PRODUCT CARDS === */
    .product-card {
        min-height: 350px !important;
        padding: 16px !important;
    }

    .product-name,
    .product-name h2 {
        font-size: 1.2rem !important;
        min-height: 2.5rem !important;
    }

    .price-value {
        font-size: 1.3rem !important;
    }

    .price-currency {
        font-size: 0.85rem !important;
    }

    /* === GAME CARDS === */
    .games-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)) !important;
        gap: 16px !important;
    }

    .game-card {
        min-height: auto !important;
    }

    .game-name {
        padding: 12px !important;
        font-size: 0.9rem !important;
        margin-top: -30px !important;
    }

    /* === FORMS === */
    input,
    select,
    textarea {
        padding: 12px 16px !important;
        font-size: 0.95rem !important;
    }

    /* === SPACING === */
    .section {
        padding: 50px 0 !important;
    }

    .hero {
        padding-top: calc(60px + 40px) !important;
        padding-bottom: 50px !important;
    }

    .container {
        padding: 0 16px !important;
    }
}

/* 61. FLOATING CHAT BUTTON - FIXED STYLING
   ========================================================================== */
.floating-chat-btn {
    position: fixed !important;
    bottom: 25px !important;
    right: 25px !important;
    left: auto !important;
    top: auto !important;
    width: 60px !important;
    height: 60px !important;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark)) !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 6px 25px rgba(139, 92, 246, 0.4) !important;
    z-index: 9998 !important;
    transition: all 0.3s var(--ease-spring) !important;
    text-decoration: none !important;
}

.floating-chat-btn svg {
    width: 26px !important;
    height: 26px !important;
    color: white !important;
    stroke: white !important;
    fill: none !important;
}

.floating-chat-btn:hover {
    transform: scale(1.1) !important;
    box-shadow: 0 10px 35px rgba(139, 92, 246, 0.5) !important;
}

@media (max-width: 768px) {
    .floating-chat-btn {
        bottom: 20px !important;
        right: 20px !important;
        width: 55px !important;
        height: 55px !important;
    }

    .floating-chat-btn svg {
        width: 24px !important;
        height: 24px !important;
    }
}

/* Hide on chat page */
.chat-page~.floating-chat-btn,
.chat-page .floating-chat-btn {
    display: none !important;
}

/* ==========================================================================
   62. PRODUCT DISPLAY TYPES - UNIFIED CLASSES
   ========================================================================== */

/*
   Usage:
   - .single-row-grid = Type 1 (Best Sellers, Similar Products)
     Desktop: All products in one row, fill width, NO horizontal scroll
     Mobile: Horizontal scroll enabled
   
   - .multi-row-grid = Type 2 (Game Products)
     Desktop: Normal grid with multiple rows
     Mobile: Minimum 2 products per row
*/

/* -------------------------------------------------------------------------
   TYPE 1: .single-row-grid
   Desktop: All products in ONE row, fill width, NO horizontal scroll
   Mobile: Horizontal scroll enabled
   ------------------------------------------------------------------------- */

.single-row-grid {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    gap: 16px;
    overflow: visible !important;
    justify-content: center;
    align-items: stretch;
    padding: 15px 5px;
    width: 100%;
}

.single-row-grid .product-card {
    flex: 1 1 0 !important;
    /* Grow and shrink equally */
    min-width: 0 !important;
    /* KEY: Allow shrinking below content size */
    max-width: none;
    /* No max limit - fill available space */
}

/* Mobile: Enable horizontal scroll */
@media (max-width: 992px) {
    .single-row-grid {
        overflow-x: auto !important;
        overflow-y: visible !important;
        justify-content: flex-start;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x proximity;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .single-row-grid::-webkit-scrollbar {
        display: none;
    }

    .single-row-grid .product-card {
        flex: 0 0 220px !important;
        min-width: 220px !important;
        max-width: 220px;
        scroll-snap-align: start;
    }
}

/* -------------------------------------------------------------------------
   TYPE 2: .multi-row-grid
   ------------------------------------------------------------------------- */
.multi-row-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    padding: 10px 0;
}

/* Mobile: Force minimum 2 columns */
@media (max-width: 768px) {
    .multi-row-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .multi-row-grid .product-card {
        min-width: 0;
        padding: 12px;
        min-height: 320px;
    }

    .multi-row-grid .product-card .product-name h2 {
        font-size: 1.2rem;
        min-height: 2.6rem;
        margin-top: 8px;
    }

    .multi-row-grid .product-card .price-value {
        font-size: 1.2rem;
    }

    .multi-row-grid .product-card .btn-add {
        padding: 10px 12px;
        font-size: 0.85rem;
    }
}

/* Very small screens */
@media (max-width: 400px) {
    .multi-row-grid {
        gap: 8px;
    }

    .multi-row-grid .product-card {
        padding: 10px;
        min-height: 280px;
    }
}

/* ==========================================================================
   63. FORCE #bestSellersGrid TO USE SINGLE-ROW-GRID BEHAVIOR
   This overrides all previous #bestSellersGrid rules
   ========================================================================== */
#bestSellersGrid,
.best-sellers .single-row-grid,
section.best-sellers .single-row-grid {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    gap: 16px !important;
    overflow: visible !important;
    overflow-x: visible !important;
    overflow-y: visible !important;
    justify-content: center !important;
    align-items: stretch !important;
    padding: 15px 5px !important;
    width: 100% !important;
}

#bestSellersGrid .product-card,
.best-sellers .single-row-grid .product-card {
    flex: 1 1 0 !important;
    min-width: 0 !important;
    max-width: none !important;
}

/* Mobile: Enable scroll for Best Sellers */
@media (max-width: 992px) {

    #bestSellersGrid,
    .best-sellers .single-row-grid {
        overflow-x: auto !important;
        justify-content: flex-start !important;
        -webkit-overflow-scrolling: touch !important;
        scroll-snap-type: x proximity !important;
        scrollbar-width: none !important;
        -ms-overflow-style: none !important;
    }

    #bestSellersGrid::-webkit-scrollbar,
    .best-sellers .single-row-grid::-webkit-scrollbar {
        display: none !important;
    }

    #bestSellersGrid .product-card,
    .best-sellers .single-row-grid .product-card {
        flex: 0 0 220px !important;
        min-width: 220px !important;
        max-width: 220px !important;
        scroll-snap-align: start !important;
    }
}

/* ==========================================================================
   62. CREATIVE ANIMATIONS - Premium Interactive Effects
   ========================================================================== */

/* === Rotating Plus Icon on Hover === */
.btn-add svg,
.add-to-cart svg {
    transition: transform 0.4s var(--ease-spring), opacity 0.3s ease;
}

.btn-add:hover svg,
.add-to-cart:hover svg {
    transform: rotate(180deg) scale(1.2);
}

/* === Success State - Plus becomes Checkmark === */
.btn-add.added,
.add-to-cart.added {
    background: linear-gradient(135deg, var(--success) 0%, #059669 100%) !important;
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.4) !important;
}

.btn-add.added svg,
.add-to-cart.added svg {
    transform: rotate(360deg) scale(1.1);
}

/* === Ripple Click Effect === */
.btn-add,
.add-to-cart,
.btn,
.game-card,
.product-card {
    position: relative;
    overflow: hidden;
}

.ripple-effect {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    transform: scale(0);
    animation: ripple-anim 0.6s ease-out forwards;
    pointer-events: none;
}

@keyframes ripple-anim {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* === Glowing Pulse for Primary Buttons === */
.btn-primary,
.checkout-btn {
    animation: glow-pulse 3s ease-in-out infinite;
}

@keyframes glow-pulse {

    0%,
    100% {
        box-shadow: 0 4px 20px var(--primary-glow), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    }

    50% {
        box-shadow: 0 4px 35px rgba(139, 92, 246, 0.6), 0 0 20px rgba(139, 92, 246, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.15);
    }
}

/* === Shimmer Effect on Product Cards === */
.product-card::before {
    background-size: 200% 100%;
}

.product-card:hover::before {
    animation: shimmer 1.5s ease-in-out infinite;
}

@keyframes shimmer {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* === Bouncing Icons on Hover === */
.nav-link svg,
.footer-link svg,
.header-actions svg {
    transition: transform 0.3s var(--ease-spring);
}

.nav-link:hover svg,
.footer-link:hover svg {
    animation: icon-bounce 0.5s var(--ease-spring);
}

@keyframes icon-bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    25% {
        transform: translateY(-4px);
    }

    50% {
        transform: translateY(2px);
    }

    75% {
        transform: translateY(-2px);
    }
}

/* === Cart Button Shake on Add === */
.cart-btn.shake {
    animation: cart-shake 0.5s var(--ease-spring);
}

@keyframes cart-shake {

    0%,
    100% {
        transform: translateX(0) rotate(0);
    }

    20% {
        transform: translateX(-3px) rotate(-5deg);
    }

    40% {
        transform: translateX(3px) rotate(5deg);
    }

    60% {
        transform: translateX(-2px) rotate(-3deg);
    }

    80% {
        transform: translateX(2px) rotate(3deg);
    }
}

/* === Floating Animation for Hero Elements === */
.hero-badge {
    animation: float-gentle 4s ease-in-out infinite;
}

@keyframes float-gentle {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

/* === Gradient Border Animation === */
.product-card:hover::after {
    animation: gradient-rotate 3s linear infinite;
}

@keyframes gradient-rotate {
    0% {
        background: linear-gradient(0deg, rgba(139, 92, 246, 0.3), transparent, rgba(236, 72, 153, 0.2));
    }

    25% {
        background: linear-gradient(90deg, rgba(139, 92, 246, 0.3), transparent, rgba(236, 72, 153, 0.2));
    }

    50% {
        background: linear-gradient(180deg, rgba(139, 92, 246, 0.3), transparent, rgba(236, 72, 153, 0.2));
    }

    75% {
        background: linear-gradient(270deg, rgba(139, 92, 246, 0.3), transparent, rgba(236, 72, 153, 0.2));
    }

    100% {
        background: linear-gradient(360deg, rgba(139, 92, 246, 0.3), transparent, rgba(236, 72, 153, 0.2));
    }
}

/* === Scale Pop on Click === */
.btn-add:active,
.add-to-cart:active,
.btn:active {
    transform: scale(0.95);
    transition: transform 0.1s ease;
}

/* === Magnetic Hover for Cards === */
.game-card {
    transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}

.game-card:hover {
    transform: translateY(-8px) scale(1.02);
}

/* === Text Reveal Animation === */
.gradient-text {
    background-size: 200% auto;
    animation: gradient-shift 4s ease-in-out infinite;
}

@keyframes gradient-shift {

    0%,
    100% {
        background-position: 0% center;
    }

    50% {
        background-position: 100% center;
    }
}

/* === Stagger Animation for Grid Items === */
.products-grid .product-card,
.games-grid .game-card {
    opacity: 0;
    animation: fade-in-up 0.5s var(--ease-out) forwards;
}

.products-grid .product-card:nth-child(1),
.games-grid .game-card:nth-child(1) {
    animation-delay: 0.05s;
}

.products-grid .product-card:nth-child(2),
.games-grid .game-card:nth-child(2) {
    animation-delay: 0.1s;
}

.products-grid .product-card:nth-child(3),
.games-grid .game-card:nth-child(3) {
    animation-delay: 0.15s;
}

.products-grid .product-card:nth-child(4),
.games-grid .game-card:nth-child(4) {
    animation-delay: 0.2s;
}

.products-grid .product-card:nth-child(5),
.games-grid .game-card:nth-child(5) {
    animation-delay: 0.25s;
}

.products-grid .product-card:nth-child(6),
.games-grid .game-card:nth-child(6) {
    animation-delay: 0.3s;
}

@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* === Neon Glow on Focus === */
.btn:focus-visible,
.btn-add:focus-visible,
input:focus-visible,
select:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.3), 0 0 20px rgba(139, 92, 246, 0.2);
}

/* === Price Highlight Pulse === */
.price-value {
    transition: transform 0.3s var(--ease-spring), text-shadow 0.3s ease;
}

.product-card:hover .price-value {
    transform: scale(1.05);
    text-shadow: 0 0 30px var(--primary-glow);
}

/* === Loading Skeleton Animation === */
.skeleton {
    background: linear-gradient(90deg,
            rgba(255, 255, 255, 0.03) 25%,
            rgba(255, 255, 255, 0.08) 50%,
            rgba(255, 255, 255, 0.03) 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s ease-in-out infinite;
}

@keyframes skeleton-loading {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* === Smooth Image Scale on Load === */
.product-image-container img,
.game-image img {
    transition: transform 0.5s var(--ease-out), opacity 0.3s ease;
}

.product-image-container img:hover,
.game-image img:hover {
    transform: scale(1.08);
}

/* === Cart Count Pop Animation === */
.cart-count {
    transition: transform 0.3s var(--ease-spring);
}

.cart-count.pop {
    animation: count-pop 0.4s var(--ease-spring);
}

@keyframes count-pop {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.4);
    }

    100% {
        transform: scale(1);
    }
}

/* === Button Text Slide Effect === */
.btn-add span,
.add-to-cart span {
    display: inline-block;
    transition: transform 0.3s var(--ease-out);
}

.btn-add:hover span,
.add-to-cart:hover span {
    transform: translateX(3px);
}

/* === Floating Particles Background (for hero section) === */
.hero::before {
    animation: particles-float 20s ease-in-out infinite;
}

@keyframes particles-float {

    0%,
    100% {
        transform: translateX(-50%) translateY(0);
        opacity: 0.8;
    }

    50% {
        transform: translateX(-50%) translateY(-20px);
        opacity: 1;
    }
}