/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Tajawal', sans-serif;
}

:root {
    --primary: #0ea5e9;
    /* Vibrant Blue */
    --primary-hover: #38bdf8;
    --primary-glow: rgba(14, 165, 233, 0.5);
    --bg-dark: #020617;
    /* Deepest Navy */
    --bg-gradient: radial-gradient(circle at top right, #0c4a6e, #020617 60%);
    --card-bg: rgba(255, 255, 255, 0.03);
    --card-border: rgba(255, 255, 255, 0.05);
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --whatsapp: #25d366;
    --gold: #fbbf24;
    --transition: cubic-bezier(0.25, 1, 0.5, 1);
}

body {
    background-color: #020617;
    color: var(--text-main);
    min-height: 100vh;
    overflow-x: hidden;
    width: 100%;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    font-family: 'Inter', sans-serif;
    position: relative;
    max-width: 100vw;
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(2, 6, 23, 0.7), rgba(2, 6, 23, 0.7)),
        url('WepImge/BackGround.png') no-repeat center center;
    background-size: cover;
    z-index: -1;
    pointer-events: none;
    will-change: transform;
}


html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    width: 100%;
}

/* Scroll Lock Utility */
.no-scroll {
    overflow: hidden !important;
    touch-action: none;
    -ms-touch-action: none;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}

/* Global Loader */
.loader-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(2, 6, 23, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.loader-content {
    text-align: center;
}

.loader-logo-wrapper {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loader-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 0 20px var(--primary-glow));
    animation: logoPulse 2s infinite ease-in-out;
    mix-blend-mode: screen;
}

.loader-glow {
    position: absolute;
    width: 150%;
    height: 150%;
    background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
    z-index: 1;
    animation: glowRotate 4s infinite linear;
    opacity: 0.6;
}

.loader-text {
    font-size: 24px;
    font-weight: 900;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #fff 0%, var(--primary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.loader-subtext {
    color: var(--text-muted);
    font-size: 14px;
    letter-spacing: 0.5px;
}

@keyframes logoPulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.9;
    }

    50% {
        transform: scale(1.1);
        opacity: 1;
    }
}

@keyframes glowRotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Premium Glass Support Bar */
.top-bar {
    background: rgba(2, 6, 23, 0.4);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(14, 165, 233, 0.1);
    text-align: center;
    padding: 6px 0;
    font-size: 13px;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1001;
    display: flex;
    justify-content: center;
    align-items: center;
    letter-spacing: 0.3px;
}

/* Currency Custom Dropdown */
.currency-dropdown {
    position: relative;
    margin-right: 15px;
}

.currency-trigger {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(14, 165, 233, 0.2);
    border-radius: 50px;
    padding: 6px 15px;
    color: white;
    cursor: pointer;
    font-size: 12px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.currency-trigger:hover {
    background: rgba(14, 165, 233, 0.1);
    border-color: var(--primary);
}

.currency-trigger i:first-child {
    color: var(--gold);
}

.currency-trigger i:last-child {
    font-size: 10px;
    opacity: 0.5;
}

.currency-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 150px;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 8px;
    display: none;
    flex-direction: column;
    z-index: 2000;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    animation: menuFadeIn 0.3s ease;
}

.currency-menu.active {
    display: flex;
}

.currency-option {
    padding: 10px 15px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.2s ease;
    text-align: right;
}

.currency-option:hover {
    background: rgba(14, 165, 233, 0.1);
    color: var(--primary);
}

@keyframes menuFadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.support-link {
    color: #fff;
    text-decoration: none;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 4px 20px;
    border-radius: 100px;
    background: rgba(37, 211, 102, 0.1);
    border: 1px solid rgba(37, 211, 102, 0.2);
    transition: all 0.3s var(--transition);
}

.support-link i {
    color: var(--whatsapp);
    font-size: 16px;
    animation: whatsappPulse 2s infinite ease-in-out;
}

.support-link:hover {
    background: rgba(37, 211, 102, 0.2);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.15);
}

@keyframes whatsappPulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.2);
        opacity: 0.8;
    }
}

/* Floating Neon Glass Navbar */
.navbar {
    position: fixed;
    top: 40px;
    left: 0;
    right: 0;
    margin: 0 auto;
    width: max-content;
    max-width: 95%;
    /* Keep some padding from edges */
    background: rgba(2, 6, 23, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(6, 182, 212, 0.3);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6), 0 0 15px rgba(6, 182, 212, 0.15) inset;
    border-radius: 50px;
    padding: 12px 30px;
    z-index: 1000;
    transition: all 0.4s var(--transition);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo a {
    color: #fff;
    font-size: 26px;
    font-weight: 900;
    text-decoration: none;
    letter-spacing: 1px;
    background: linear-gradient(to right, #fff, var(--primary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 10px rgba(6, 182, 212, 0.5));
    white-space: nowrap;
    display: flex;
    align-items: center;
}

.nav-logo a.has-image {
    background: none;
    -webkit-text-fill-color: initial;
    filter: none;
}

.site-image-logo {
    max-height: 60px;
    /* Increased to touch edges of the desktop navbar */
    width: auto;
    object-fit: contain;
    mix-blend-mode: screen;
    /* Magically removes the black background! */
    margin-left: 15px;
    /* Create space between logo and buttons */
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 25px;
    /* Increased gap between items */
}

.nav-links a.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s var(--transition);
    padding: 10px 20px;
    border-radius: 30px;
    display: flex;
    align-items: center;
    gap: 12px;
    /* Increased gap between icon and text */
    font-size: 15px;
    white-space: nowrap;
}

.nav-links a.nav-link:hover,
.nav-links a.nav-link.active {
    background: rgba(14, 165, 233, 0.15);
    color: #fff;
    box-shadow: 0 0 15px rgba(14, 165, 233, 0.3);
    border: 1px solid rgba(14, 165, 233, 0.3);
}

/* Ensure icon has space in RTL */
.nav-links a.nav-link i {
    margin-left: 5px;
    font-size: 16px;
}

.nav-actions {
    display: flex;
    gap: 15px;
}

.icon-btn {
    background: transparent;
    border: none;
    color: var(--text-main);
    font-size: 20px;
    cursor: pointer;
    position: relative;
    transition: var(--transition);
}

.icon-btn:hover {
    color: var(--primary);
}

.cart-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: red;
    color: white;
    font-size: 12px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 50%;
}

.mobile-only {
    display: none;
    color: #fff;
    /* Ensure hamburger is white, not blue/default link color */
}

/* Mobile Menu */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background: linear-gradient(165deg, #020617, #082f49);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    z-index: 2000;
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 40px;
    transition: right 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
    border-left: 1px solid rgba(14, 165, 233, 0.2);
}

.mobile-menu-overlay.active {
    right: 0;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.mobile-menu-title {
    font-size: 22px;
    font-weight: 900;
    color: #fff;
    background: linear-gradient(to left, #fff, var(--primary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.mobile-menu-overlay .close-btn {
    align-self: flex-start;
    position: relative;
    top: 0;
    left: 0;
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    cursor: pointer;
    transition: var(--transition);
}

.mobile-menu-overlay .close-btn:hover {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border-color: #ef4444;
}

.mobile-nav-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mobile-nav-links li {
    transform: translateX(20px);
    opacity: 0;
    transition: all 0.4s ease;
}

.mobile-menu-overlay.active .mobile-nav-links li {
    transform: translateX(0);
    opacity: 1;
}

/* Stagger item entrance */
.mobile-menu-overlay.active .mobile-nav-links li:nth-child(1) {
    transition-delay: 0.1s;
}

.mobile-menu-overlay.active .mobile-nav-links li:nth-child(2) {
    transition-delay: 0.15s;
}

.mobile-menu-overlay.active .mobile-nav-links li:nth-child(3) {
    transition-delay: 0.2s;
}

.mobile-menu-overlay.active .mobile-nav-links li:nth-child(4) {
    transition-delay: 0.25s;
}

.mobile-menu-overlay.active .mobile-nav-links li:nth-child(5) {
    transition-delay: 0.3s;
}

.mobile-menu-overlay.active .mobile-nav-links li:nth-child(6) {
    transition-delay: 0.35s;
}

.mobile-nav-links .nav-link {
    color: #fff !important;
    text-decoration: none;
    font-size: 18px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    transition: all 0.3s var(--transition);
}

.mobile-nav-links .nav-link i {
    width: 30px;
    height: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(14, 165, 233, 0.1);
    border-radius: 8px;
    color: var(--primary);
    font-size: 16px;
    transition: var(--transition);
}

.mobile-nav-links .nav-link:hover,
.mobile-nav-links .nav-link.active {
    background: rgba(14, 165, 233, 0.15);
    border-color: var(--primary);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2), 0 0 10px rgba(14, 165, 233, 0.1);
    transform: scale(1.02);
}

.mobile-nav-links .nav-link:active {
    transform: scale(0.98);
}

/* Main Content Padding */
main {
    padding-top: 140px;
    padding-bottom: 50px;
    width: 90%;
    max-width: 1200px;
    /* Constrain massive stretching */
    margin: 0 auto;
}

/* Hero Section - Cinematic Split-Screen */
.hero-section {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 40px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
    background: #0f0a1c;
    /* Deep space background */
    height: 400px;
}

.hero-slider {
    display: flex;
    height: 100%;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: transform;
}

.hero-slide {
    min-width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
}

/* 
  The gradient mask creates the "Cinematic Fade" effect.
  It fades out the image on the right side (where the text is) 
  so the image perfectly blends into the dark background.
*/
.hero-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 60%;
    /* Image takes up left side */
    height: 100%;
    -webkit-mask-image: linear-gradient(to right, rgba(0, 0, 0, 1) 50%, rgba(0, 0, 0, 0) 100%);
    mask-image: linear-gradient(to right, rgba(0, 0, 0, 1) 50%, rgba(0, 0, 0, 0) 100%);
}

.hero-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Cover works here because we mask the awkward edges */
    object-position: center;
}

.slide-content {
    position: relative;
    z-index: 2;
    width: 50%;
    /* Removed margin-right: auto to fix RTL overlap bug */
    padding: 40px 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    text-align: right;
}

.slide-content h2 {
    font-size: 48px;
    font-weight: 900;
    margin-bottom: 20px;
    color: #fff;
    line-height: 1.2;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
}

.hero-action-btn {
    background: linear-gradient(135deg, var(--primary), #0284c7);
    color: #fff;
    padding: 12px 35px;
    border: none;
    border-radius: 30px;
    font-size: 18px;
    cursor: pointer;
    font-weight: 800;
    box-shadow: 0 10px 25px rgba(14, 165, 233, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-action-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(14, 165, 233, 0.6);
}

@media (max-width: 768px) {
    .hero-section {
        height: 350px;
    }

    .hero-image-wrapper {
        width: 100%;
        /* Fade out at the bottom on mobile to make room for text */
        -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 40%, rgba(0, 0, 0, 0.1) 100%);
        mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 40%, rgba(0, 0, 0, 0.1) 100%);
    }

    .slide-content {
        width: 100%;
        margin: 0;
        padding: 30px;
        align-items: center;
        text-align: center;
        justify-content: flex-end;
        height: 100%;
    }

    .slide-content h2 {
        font-size: 32px;
    }
}


.slider-controls {
    position: absolute;
    bottom: 20px;
    right: 20px;
    display: flex;
    gap: 10px;
}

.slider-controls button {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    backdrop-filter: blur(5px);
}

/* Trust Badges - Neon Glass */
.trust-badges-section {
    margin-bottom: 50px;
}

.badges-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.badge-item {
    background: rgba(20, 15, 35, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(14, 165, 233, 0.1);
    border-radius: 20px;
    padding: 25px 20px;
    text-align: right;
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    justify-content: center;
    gap: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
    transition: all 0.4s var(--transition);
}

.badge-item:hover {
    transform: translateY(-5px);
    border-color: rgba(14, 165, 233, 0.4);
    box-shadow: 0 10px 25px rgba(168, 85, 247, 0.2);
}

.badge-item i {
    font-size: 30px;
    color: var(--primary);
    filter: drop-shadow(0 0 10px rgba(14, 165, 233, 0.5));
    animation: iconBounce 3s infinite ease-in-out;
}

.badge-text {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.badge-item span {
    font-weight: 800;
    font-size: 16px;
    letter-spacing: 0.5px;
    color: #fff;
}

.badge-item small {
    font-size: 11px;
    color: #94a3b8;
    margin-top: 2px;
}

@keyframes iconBounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

/* Sections & Typography */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.section-header h2 {
    font-size: 28px;
    font-weight: 900;
    display: flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(to right, #fff, var(--primary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 15px rgba(168, 85, 247, 0.2));
}

.view-all-btn {
    background: rgba(14, 165, 233, 0.1);
    border: 1px solid rgba(14, 165, 233, 0.3);
    color: #fff;
    padding: 8px 20px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s var(--transition);
    font-weight: 700;
}

.view-all-btn:hover {
    background: var(--primary);
    box-shadow: 0 0 15px rgba(14, 165, 233, 0.5);
    transform: scale(1.05);
}

/* Category View Back Button */
.category-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-light);
}

.back-btn {
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.2), rgba(2, 6, 23, 0.6));
    color: var(--text-main);
    border: 1px solid rgba(14, 165, 233, 0.3);
    padding: 8px 18px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(5px);
}

.back-btn i {
    color: var(--primary);
    font-size: 16px;
    transition: transform 0.4s ease;
}

.back-btn:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: translateX(-5px);
    /* Move towards the left since it is an 'arrow' back */
    box-shadow: 0 0 20px rgba(14, 165, 233, 0.6);
}

.back-btn:hover i {
    color: white;
    transform: scale(1.2);
}

/* Fix for Right-to-Left arrow orientation */
[dir="rtl"] .back-btn i {
    transform: rotate(180deg);
}

[dir="rtl"] .back-btn:hover i {
    transform: rotate(180deg) scale(1.2);
}

[dir="rtl"] .back-btn:hover {
    transform: translateX(5px);
}

.games-scroller-container {
    position: relative;
    display: flex;
    align-items: center;
    margin-bottom: 50px;
    width: 100%;
}

.games-row {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 30px 40px;
    /* Ample space for hover/shadows */
    scrollbar-width: none;
    width: 100%;
    min-width: 0;
    margin-bottom: -15px;
    cursor: grab;
    user-select: none;
    /* Prevent text selection during drag */
}

.games-row:active {
    cursor: grabbing;
}

.games-row::-webkit-scrollbar {
    display: none;
}

.scroll-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    z-index: 10;
    cursor: pointer;
}

.scroll-btn.right {
    right: -20px;
}

.scroll-btn.left {
    left: -20px;
}

/* Premium Neon Glass Cards */
.game-card {
    min-width: 260px;
    background: rgba(25, 20, 45, 0.95);
    /* Opaque dark background replacing blur */
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    overflow: hidden;
    transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
    cursor: pointer;
    position: relative;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
}

/* Internal Glow Effect on Hover */
.game-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(14, 165, 233, 0.15) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
    z-index: 1;
}

.game-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.7), 0 0 20px rgba(14, 165, 233, 0.2);
    border-color: rgba(14, 165, 233, 0.4);
}

.game-card:hover::after {
    opacity: 1;
}

.game-img {
    width: 90%;
    aspect-ratio: 1/1;
    object-fit: cover;
    object-position: top center;
    border-radius: 18px;
    /* More rounded image */
    margin: 15px auto 5px;
    /* Centered with top/bottom margin */
    position: relative;
    z-index: 2;
    transition: transform 0.4s ease;
    will-change: transform;
    background-color: #111;
}

.game-card:hover .game-img {
    transform: scale(1.05);
}

.game-info {
    padding: 22px 20px;
    position: relative;
    z-index: 2;
    background: linear-gradient(to top, rgba(10, 5, 18, 0.95), rgba(20, 15, 35, 0.5));
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.game-title {
    font-size: 19px;
    font-weight: 800;
    margin-bottom: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.game-price {
    color: var(--primary);
    font-weight: 900;
    font-size: 22px;
    margin-bottom: 15px;
    text-shadow: 0 0 10px rgba(14, 165, 233, 0.3);
}

.add-to-cart-btn {
    width: 100%;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    color: white;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.add-to-cart-btn:hover {
    background: linear-gradient(135deg, var(--primary), #90cef1);
    border-color: transparent;
    box-shadow: 0 5px 15px rgba(14, 165, 233, 0.4);
    transform: translateY(-2px);
}

.tag {
    position: absolute;
    top: 15px;
    right: 0;
    z-index: 10;
    background: linear-gradient(-90deg, #f59e0b 0%, #d97706 100%);
    color: #fff;
    padding: 6px 15px 6px 25px;
    /* Extra padding on chevron side to center text */
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.5px;
    clip-path: polygon(100% 0, 0 0, 15% 50%, 0 100%, 100% 100%);
    box-shadow: -2px 4px 10px rgba(0, 0, 0, 0.3);
    pointer-events: none;
    text-transform: uppercase;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 125px;
}

.game-card:hover .tag {
    background: linear-gradient(-90deg, #fbbf24 0%, #f59e0b 100%);
}

/* Game Tags - Sleek Badge */
.game-card {
    position: relative;
}

.game-tag {
    position: absolute;
    top: 15px;
    left: 0;
    z-index: 10;
    background: linear-gradient(90deg, var(--primary) 0%, #0369a1 100%);
    color: #fff;
    padding: 6px 25px 6px 15px;
    /* Extra padding on chevron side to center text */
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.5px;
    clip-path: polygon(0 0, 100% 0, 85% 50%, 100% 100%, 0 100%);
    box-shadow: 2px 4px 10px rgba(0, 0, 0, 0.3);
    pointer-events: none;
    text-transform: uppercase;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 125px;
}

.game-card:hover .game-tag {
    background: linear-gradient(90deg, var(--primary-hover) 0%, var(--primary) 100%);
}

.modal-game-tag {
    background: var(--primary);
    color: #fff;
    padding: 6px 18px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 900;
    box-shadow: 0 4px 15px rgba(14, 165, 233, 0.3);
    margin-bottom: 15px;
    display: inline-block;
}


/* New Arrivals Grid (4 items) */
.new-arrivals-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 50px;
}

/* Bundles Grid */
.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 50px;
    padding-top: 10px;
    /* Minimal padding for hover */
}

/* Neon Glass Reviews & FAQ */
.info-section {
    margin-bottom: 60px;
}

.info-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.reviews-scroller {
    height: 350px;
    overflow: hidden;
    position: relative;
    border-radius: 20px;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 10%, black 90%, transparent 100%);
    mask-image: linear-gradient(to bottom, transparent 0%, black 10%, black 90%, transparent 100%);
}

.reviews-track {
    display: flex;
    flex-direction: column;
    gap: 20px;
    animation: scrollReviews 25s linear infinite;
    will-change: transform;
}

@keyframes scrollReviews {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(-50%);
    }
}

.review-card {
    background: rgba(20, 15, 35, 0.9);
    /* Solid color instead of blur */
    border: 1px solid rgba(14, 165, 233, 0.15);
    padding: 20px;
    border-radius: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, border-color 0.3s ease;
    transform: translateZ(0);
    /* Force GPU */
}

.review-card:hover {
    transform: translateX(-10px);
    border-color: rgba(14, 165, 233, 0.4);
}

.review-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    color: var(--text-muted);
    font-size: 15px;
    font-weight: 600;
}

.review-stars {
    color: var(--gold);
    margin-bottom: 8px;
    font-size: 14px;
}

/* FAQ Accordion - Neon Glass */
.accordion-item {
    background: rgba(20, 15, 35, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(14, 165, 233, 0.15);
    border-radius: 16px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.accordion-item:hover {
    border-color: rgba(14, 165, 233, 0.4);
}

.accordion-header {
    width: 100%;
    text-align: right;
    padding: 20px;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 17px;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    transition: color 0.3s;
}

.accordion-header:hover {
    color: var(--primary-hover);
}

.accordion-body {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.25, 1, 0.5, 1), padding 0.4s;
    color: var(--text-muted);
    line-height: 1.6;
    color: var(--text-muted);
}

.accordion-item.active .accordion-body {
    padding: 15px;
    max-height: 200px;
}

/* Overlay Modals */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.9);
    z-index: 3000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
    transition: opacity 0.3s ease;
    overscroll-behavior: contain;
}

.hidden {
    display: none !important;
    opacity: 0;
    pointer-events: none;
}

.overlay-content {
    background: var(--bg-dark);
    border: 1px solid var(--border-light);
    border-radius: 20px;
    padding: 30px;
    width: 90%;
    max-width: 600px;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}

.close-btn {
    position: absolute;
    top: 15px;
    left: 15px;
    background: transparent;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    z-index: 10;
}

/* Ensure cart close button is only visible when sidebar is open */
.cart-sidebar .close-btn {
    position: static;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
}

/* Search */
.search-box {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 10px 15px;
    margin-bottom: 20px;
}

.search-box input {
    background: transparent;
    border: none;
    color: white;
    width: 100%;
    outline: none;
    margin-right: 10px;
    font-size: 16px;
}

.search-results {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Toast Notification */
.toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--primary);
    color: white;
    padding: 15px 25px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    z-index: 4000;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: opacity 0.4s ease, transform 0.4s ease;
    transform: translateY(100px);
    opacity: 0;
    pointer-events: none;
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

/* Cart Sidebar */
.cart-sidebar {
    position: fixed;
    top: 0;
    left: -400px;
    width: 400px;
    height: 100vh;
    background: rgba(15, 12, 41, 0.98);
    z-index: 3000;
    padding: 30px;
    transition: left 0.4s cubic-bezier(0.1, 0.7, 0.1, 1);
    border-right: 1px solid var(--border-light);
    display: flex;
    flex-direction: column;
    will-change: left;
    overscroll-behavior: contain;
}

.cart-sidebar.open {
    left: 0;
    display: flex !important;
    opacity: 1;
    pointer-events: auto;
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.cart-items {
    flex-grow: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.cart-item {
    display: flex;
    gap: 10px;
    background: rgba(2, 6, 23, 0.8);
    padding: 10px;
    border-radius: 10px;
}

.cart-item img {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
}

.cart-item-info {
    flex-grow: 1;
}

.cart-item-title {
    font-weight: bold;
    font-size: 14px;
}

.cart-item-price {
    color: var(--primary);
}

.remove-item {
    background: transparent;
    border: none;
    color: #ef4444;
    cursor: pointer;
}

.cart-footer {
    margin-top: 20px;
    border-top: 1px solid var(--border-light);
    padding-top: 20px;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 15px;
}

.checkout-btn {
    width: 100%;
    background: var(--primary);
    color: white;
    border: none;
    padding: 15px;
    border-radius: 10px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
}

/* Game Details Fullscreen Product Page */
.game-details-card {
    max-width: none !important;
    width: 100% !important;
    height: 100% !important;
    border-radius: 0 !important;
    margin: 0 !important;
    padding: 60px 5% !important;
    background: #050510 !important;
    overflow-y: auto !important;
    border: none !important;
    scrollbar-width: none;
    -ms-overflow-style: none;
    overscroll-behavior: contain;
}

.game-details-card::-webkit-scrollbar {
    display: none;
}

.details-layout {
    display: flex;
    gap: 60px;
    max-width: 1300px;
    margin: 40px auto;
    align-items: flex-start;
    padding: 0 20px;
}

.details-img-container {
    flex: 0 0 380px;
    /* Reduced further for a more compact look */
    position: sticky;
    top: 40px;
}

.details-img-container img {
    width: 100%;
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.details-info {
    flex: 1;
    text-align: right;
}

@media (max-width: 1100px) {
    .details-layout {
        flex-direction: column;
        align-items: center;
        gap: 40px;
    }

    .details-img-container {
        flex: 0 0 auto;
        width: 100%;
        max-width: 340px;
        position: static;
    }
}

.details-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0.15;
    z-index: -1;
    transform: scale(1.05);
}

.close-btn {
    position: fixed;
    top: 30px;
    left: 30px;
    z-index: 1000;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: all 0.3s ease;
}

.close-btn:hover {
    background: var(--primary);
    transform: rotate(90deg);
}

/* Upsell Promotion Modal - Premium Redesign */
.promo-card {
    background: linear-gradient(145deg, #0f172a 0%, #020617 100%) !important;
    max-width: 900px !important;
    width: 92% !important;
    padding: 60px 40px !important;
    border-radius: 32px !important;
    border: 1px solid rgba(14, 165, 233, 0.2) !important;
    position: relative;
    text-align: center;
    box-shadow: 0 50px 100px -20px rgba(0, 0, 0, 0.7), 0 0 40px rgba(14, 165, 233, 0.1);
    animation: promoAppear 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes promoAppear {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.promo-close-btn {
    position: absolute;
    top: 25px;
    left: 25px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.promo-close-btn:hover {
    background: #ef4444;
    border-color: #ef4444;
    transform: rotate(90deg);
}

.promo-header .promo-icon {
    width: 90px;
    height: 90px;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.1) 0%, rgba(14, 165, 233, 0) 100%);
    border: 1px solid rgba(14, 165, 233, 0.3);
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 36px;
    color: var(--primary);
    box-shadow: 0 0 30px rgba(14, 165, 233, 0.2);
}

.promo-header h1 {
    font-size: 36px;
    font-weight: 900;
    margin-bottom: 12px;
    background: linear-gradient(135deg, #fff 0%, #bae6fd 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.5px;
}

.promo-header p {
    color: #94a3b8;
    margin-bottom: 40px;
    font-size: 18px;
}

.promo-categories {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 50px;
}

.promo-cat-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 35px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    color: #fff;
    position: relative;
    overflow: hidden;
}

.promo-cat-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--primary) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.promo-cat-card:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--primary);
    transform: translateY(-10px);
}

.promo-cat-card:hover::before {
    opacity: 0.1;
}

.promo-cat-card i:not(.arrow-right):not(.arrow-left) {
    font-size: 32px;
    color: var(--primary);
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 0 10px rgba(14, 165, 233, 0.4));
}

.promo-cat-card span {
    font-size: 16px;
    font-weight: 600;
    position: relative;
    z-index: 1;
}

.promo-cat-card .arrow-right,
.promo-cat-card .arrow-left {
    position: absolute;
    color: var(--primary);
    opacity: 0.3;
    font-size: 12px;
}

.promo-cat-card .arrow-right {
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
}

.promo-cat-card .arrow-left {
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
}

.promo-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 30px;
    color: #64748b;
    font-size: 14px;
}

.dont-show-again {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: color 0.3s ease;
}

.dont-show-again:hover {
    color: #fff;
}

.dont-show-again input {
    width: 22px;
    height: 22px;
    accent-color: var(--primary);
    border-radius: 6px;
    cursor: pointer;
}

.promo-expiry {
    font-weight: 500;
    background: rgba(14, 165, 233, 0.1);
    padding: 6px 16px;
    border-radius: 100px;
    color: var(--primary);
}

@media (max-width: 768px) {
    .promo-categories {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .promo-card {
        padding: 40px 20px !important;
    }

    .promo-header h1 {
        font-size: 24px;
    }
}

.modal-section-title {
    font-size: 20px;
    font-weight: 900;
    margin-bottom: 15px;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 10px;
    border-right: 4px solid var(--primary);
    padding-right: 12px;
    margin-top: 30px;
}

.details-layout {
    display: flex;
    gap: 30px;
}

.details-img-container {
    flex: 1;
}

.details-img-container img {
    width: 100%;
    border-radius: 15px;
}

.details-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.details-price {
    font-size: 28px;
    color: var(--primary);
    font-weight: 900;
}

.details-desc {
    color: var(--text-muted);
    line-height: 1.8;
    font-size: 16px;
    margin-bottom: 20px;
}

/* Related Products & Reviews inside Modal */
.modal-grid-section {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.related-scroller {
    margin: 0 -10px;
    padding: 10px;
}

.modal-reviews-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.modal-review-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 15px;
}

.small-card {
    min-width: 150px !important;
    padding: 10px !important;
}

.small-card img {
    height: 120px !important;
}

/* Footer */
.site-footer {
    text-align: center;
    padding: 30px;
    background: rgba(0, 0, 0, 0.5);
    margin-top: 50px;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 15px;
}

.social-icon {
    color: white;
    font-size: 24px;
    transition: var(--transition);
}

.social-icon:hover {
    color: var(--primary);
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .mobile-only {
        display: block;
    }

    .scroll-btn {
        display: none !important;
    }

    .navbar {
        width: 95%;
        left: 2.5%;
        padding: 15px;
        top: 35px;
    }

    .hero-slide {
        height: 250px;
        padding: 20px;
    }

    .slide-content h2 {
        font-size: 24px;
    }

    .badges-container {
        grid-template-columns: 1fr;
    }

    .new-arrivals-grid {
        grid-template-columns: 1fr 1fr;
    }

    .info-container {
        grid-template-columns: 1fr;
    }

    .details-layout {
        flex-direction: column;
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .cart-sidebar {
        width: 100%;
        left: -100%;
    }
}

/* Checkout Page Modal (Large) */
.checkout-card-large {
    max-width: 900px !important;
    width: 95%;
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.checkout-layout {
    display: flex;
    flex-wrap: wrap;
}

.checkout-order-summary {
    flex: 1;
    min-width: 300px;
    background: rgba(0, 0, 0, 0.2);
    padding: 30px;
    border-left: 1px solid var(--border-light);
}

.checkout-order-summary h3 {
    margin-bottom: 20px;
    font-size: 22px;
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 10px;
}

.checkout-payment-section {
    flex: 1.5;
    min-width: 350px;
    padding: 40px 30px;
}

.checkout-items-list {
    max-height: 250px;
    overflow-y: auto;
    margin-bottom: 20px;
    padding-right: 10px;
}

.checkout-item {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    align-items: center;
}

.checkout-item img {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    object-fit: cover;
}

.checkout-item-title {
    font-size: 14px;
    font-weight: bold;
    flex: 1;
}

.checkout-item-price {
    color: var(--primary);
    font-weight: bold;
}

.checkout-total-row {
    display: flex;
    justify-content: space-between;
    font-size: 20px;
    font-weight: 900;
    border-top: 1px solid var(--border-light);
    padding-top: 20px;
}

/* Payment Form */
.checkout-payment-section h3 {
    margin-bottom: 25px;
    font-size: 22px;
}

.payment-methods {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
}

.payment-method-box {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    border: 1px solid var(--border-light);
    border-radius: 12px;
    cursor: pointer;
    background: rgba(2, 6, 23, 0.8);
    transition: var(--transition);
}

.payment-method-box:hover {
    border-color: var(--primary);
    background: rgba(157, 78, 221, 0.1);
}

.payment-method-box input[type="radio"] {
    margin-left: 15px;
    accent-color: var(--primary);
    width: 18px;
    height: 18px;
}

.method-details {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 600;
}

.method-details i {
    font-size: 24px;
    color: #fff;
}

.pay-now-btn {
    width: 100%;
    background: var(--primary);
    color: white;
    border: none;
    padding: 18px;
    border-radius: 12px;
    font-size: 20px;
    font-weight: 900;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(14, 165, 233, 0.4);
}

.pay-now-btn:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(157, 78, 221, 0.5);
}

/* Under Construction Area */
.under-construction-area {
    text-align: center;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.construction-icon {
    font-size: 50px;
    color: var(--gold);
    margin-bottom: 15px;
}

.under-construction-area h2 {
    font-size: 24px;
    margin-bottom: 10px;
}

.under-construction-area .temp-text {
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 30px;
}

/* Premium Whatsapp Button */
.whatsapp-premium-btn {
    display: flex;
    align-items: center;
    width: 100%;
    background: linear-gradient(135deg, #128C7E, #25D366);
    border: none;
    border-radius: 15px;
    padding: 15px 20px;
    cursor: pointer;
    text-decoration: none;
    color: white;
    box-shadow: 0 10px 20px rgba(37, 211, 102, 0.3);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    margin-bottom: 20px;
}

.whatsapp-premium-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.3), transparent);
    transform: skewX(-20deg);
    animation: shine 3s infinite;
}

@keyframes shine {
    100% {
        left: 200%;
    }
}

.whatsapp-premium-btn:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 30px rgba(37, 211, 102, 0.5);
}

.wa-icon-wrapper {
    background: rgba(255, 255, 255, 0.2);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 28px;
    margin-left: 15px;
    flex-shrink: 0;
}

.wa-text-wrapper {
    text-align: right;
    display: flex;
    flex-direction: column;
}

.wa-title {
    font-size: 18px;
    font-weight: 900;
    margin-bottom: 3px;
}

.wa-sub {
    font-size: 13px;
    opacity: 0.9;
}

.back-to-payment-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 14px;
    text-decoration: underline;
}

.back-to-payment-btn:hover {
    color: white;
}

@media (max-width: 768px) {
    .checkout-layout {
        flex-direction: column;
    }

    .checkout-order-summary {
        border-left: none;
        border-bottom: 1px solid var(--border-light);
        padding: 20px;
    }

    .checkout-payment-section {
        padding: 25px 20px;
    }
}

/* Footer - Neon Glass Pro */
.site-footer {
    background: #0a0514;
    /* Solid color, no blur */
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 60px 20px 40px;
    text-align: center;
    position: relative;
    z-index: 10;
    transform: translateZ(0);
    /* Force GPU */
}

.payment-footer {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.payment-footer img {
    height: 35px;
    width: auto;
    object-fit: contain;
    background: #fff;
    padding: 5px 10px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
    /* Simplified transition */
    transform: translateZ(0);
}

.payment-footer img:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 8px 20px rgba(14, 165, 233, 0.4);
    border-color: var(--primary);
    filter: grayscale(0);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
    text-align: right;
}

.footer-col h3 {
    color: #fff;
    margin-bottom: 25px;
    font-size: 20px;
    font-weight: 800;
    position: relative;
    padding-bottom: 10px;
    white-space: nowrap;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 40px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
}

.footer-links,
.footer-contact {
    list-style: none;
    padding: 0;
}

.footer-links li,
.footer-contact li {
    margin-bottom: 15px;
    color: var(--text-muted);
    font-weight: 500;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary);
    padding-right: 5px;
}

.footer-contact li i {
    color: var(--primary);
    margin-left: 10px;
    width: 20px;
}

.social-links {
    display: flex;
    gap: 15px;
    justify-content: flex-start;
    /* Right-aligned in RTL */
    margin-top: 5px;
}

.social-icon {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    text-decoration: none;
    font-size: 20px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.social-icon:hover {
    background: var(--primary);
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(14, 165, 233, 0.4);
    color: #fff;
}




#footerCopyright {
    color: var(--text-muted);
    font-size: 14px;
    letter-spacing: 0.5px;
}

/* --- Minimal Apple-Style Search Modal --- */
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    /* Centered visually */
    opacity: 1;
    visibility: visible;
    transition: opacity 0.2s ease;
}

.search-overlay.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.minimal-search-modal {
    width: 90%;
    max-width: 650px;
    background: linear-gradient(145deg, rgba(2, 6, 23, 0.95), rgba(1, 4, 15, 0.95));
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(14, 165, 233, 0.3), 0 0 30px rgba(14, 165, 233, 0.15);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    margin-top: -10vh;
    /* Push slightly up to feel lighter */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.search-modal-header {
    display: flex;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid rgba(168, 85, 247, 0.2);
    background: rgba(0, 0, 0, 0.2);
}

.search-icon {
    font-size: 18px;
    color: var(--text-muted);
    margin-left: 15px;
    /* RTL space */
}

.minimal-search-input {
    flex: 1;
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 18px;
    outline: none;
}

.minimal-search-input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.search-close-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 20px;
    cursor: pointer;
    padding: 5px;
    transition: color 0.2s;
}

.search-close-btn:hover {
    color: #ff4d4d;
}

.search-results-list {
    max-height: 450px;
    overflow-y: auto;
    background: transparent;
}

.minimal-result-item {
    display: flex;
    align-items: center;
    padding: 15px 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    cursor: pointer;
    transition: all 0.3s ease;
}

.minimal-result-item:hover {
    background: rgba(14, 165, 233, 0.1);
    padding-right: 30px;
    /* Slight indent effect */
}

.minimal-result-item img {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    object-fit: cover;
    margin-left: 20px;
    /* RTL */
    border: 1px solid rgba(14, 165, 233, 0.3);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.item-details {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.item-name {
    color: #fff;
    font-size: 15px;
    font-weight: 500;
    margin-bottom: 4px;
}

.item-price {
    color: var(--primary);
    font-size: 13px;
    font-weight: bold;
}

.minimal-no-results {
    padding: 30px 20px;
    text-align: center;
    color: rgba(255, 255, 255, 0.4);
    font-size: 15px;
}

@media (max-width: 768px) {
    .search-overlay {
        align-items: flex-start;
        padding-top: 5vh;
    }

    .minimal-search-modal {
        width: 100%;
        height: 100vh;
        border-radius: 0;
        max-width: none;
        margin-top: 0;
    }

    .search-results-list {
        max-height: calc(100vh - 70px);
    }

    /* Mobile Layout Overhauls */
    .navbar {
        width: 95%;
        max-width: 100%;
        padding: 10px 15px;
        top: 15px;
        border-radius: 20px;
    }

    .nav-container {
        width: 100%;
    }

    .nav-logo a {
        font-size: 20px;
        margin: 0;
    }

    .site-image-logo {
        max-height: 40px;
        /* Increased to touch edges of the mobile navbar */
        mix-blend-mode: screen;
        margin-left: 10px;
    }

    .nav-links {
        display: none;
        /* Hide desktop links on mobile */
    }

    .mobile-only {
        display: inline-flex;
    }

    .nav-actions {
        gap: 10px;
    }

    main {
        width: 100%;
        /* Take full width on mobile */
        padding-top: 80px;
    }

    #categoryView {
        padding-top: 140px;
        /* Extra clearance for back button on mobile */
    }

    .hero-section {
        height: auto;
        min-height: auto;
        padding-top: 20px;
    }

    .hero-slide {
        flex-direction: column;
        justify-content: flex-start;
        gap: 20px;
    }

    .hero-image-wrapper {
        position: relative;
        width: 100%;
        height: 280px;
        /* Give the image more dedicated space */
        -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 60%, rgba(0, 0, 0, 0) 100%);
        mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 60%, rgba(0, 0, 0, 0) 100%);
    }

    .slide-content {
        width: 100%;
        padding: 0 20px 40px 20px;
        /* Pad bottom for buttons */
        text-align: center;
        align-items: center;
        position: relative;
        z-index: 5;
        margin-top: -80px;
        /* Pull text up over the faded image */
    }

    .slide-content h2 {
        font-size: 28px;
        margin-bottom: 25px;
        text-shadow: 0 4px 10px rgba(0, 0, 0, 0.9);
    }

    .hero-action-btn {
        font-size: 16px;
        padding: 10px 30px;
    }

    .slider-controls {
        bottom: 20px;
        top: auto;
        right: 20px;
        z-index: 10;
    }

    .trust-badges-section {
        margin-top: 30px;
        margin-bottom: 40px;
    }

    .badges-container {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }

    .badge-item {
        padding: 12px 8px;
        gap: 8px;
        flex-direction: column;
        text-align: center;
    }

    .badge-text {
        align-items: center;
    }

    .badge-item i {
        font-size: 18px;
    }

    .badge-item span {
        font-size: 11px;
    }

    .badge-item small {
        font-size: 8px;
    }

    .new-arrivals-grid {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 20px;
        scroll-behavior: smooth;
        scrollbar-width: none;
    }

    .new-arrivals-grid::-webkit-scrollbar {
        display: none;
    }

    .info-container {
        grid-template-columns: 1fr;
    }

    .checkout-layout {
        flex-direction: column;
    }

    .checkout-order-summary {
        border-left: none;
        border-bottom: 1px solid var(--border-light);
        padding: 20px;
    }

    .checkout-payment-section {
        padding: 25px 20px;
    }
}