/* =========================================================
   index.css — Amades Store Homepage Styles
   ========================================================= */

/* --- Self-hosted Fonts (no Google Fonts needed) --- */
@font-face {
    font-family: 'Plus Jakarta Sans';
    src: url('../fonts/Plus_Jakarta_Sans/PlusJakartaSans-VariableFont_wght.ttf') format('truetype');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Plus Jakarta Sans';
    src: url('../fonts/Plus_Jakarta_Sans/PlusJakartaSans-Italic-VariableFont_wght.ttf') format('truetype');
    font-weight: 100 900;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Orbitron';
    src: url('../fonts/Orbitron/Orbitron-VariableFont_wght.ttf') format('truetype');
    font-weight: 400 900;
    font-style: normal;
    font-display: swap;
}


:root {
    --primary: #6c5ce7;
    --primary-glow: rgba(108, 92, 231, 0.4);
    --secondary: #00cec9;
    --secondary-glow: rgba(0, 206, 201, 0.4);
    --accent: #fd79a8;
    --dark-bg: #0a0b10;
    --card-bg: rgba(255, 255, 255, 0.03);
    --card-border: rgba(255, 255, 255, 0.08);
    --text-main: #f5f6fa;
    --text-dim: rgba(245, 246, 250, 0.6);
    --header-height: 80px;
    --glass: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.07);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--dark-bg);
    background-image: url('../images/background-batik.webp');
    background-size: cover;
    background-position: center top;
    background-attachment: fixed;
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    position: relative;
}

/* Dark overlay + gradient glows on top of the background image */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -1;
    background-image: 
        /* Dark overlay so text stays readable */
        linear-gradient(to bottom, rgba(10, 11, 16, 0.82) 0%, rgba(10, 11, 16, 0.75) 50%, rgba(10, 11, 16, 0.90) 100%),
        /* Noise Texture */
        url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.04'/%3E%3C/svg%3E"),
        /* Vibrant Glows */
        radial-gradient(circle at 0% 0%, rgba(108, 92, 231, 0.2) 0%, transparent 35%),
        radial-gradient(circle at 100% 0%, rgba(0, 206, 201, 0.15) 0%, transparent 35%),
        radial-gradient(circle at 50% 100%, rgba(253, 121, 168, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 100% 100%, rgba(108, 92, 231, 0.12) 0%, transparent 30%);
    pointer-events: none;
}

/* --- Animations --- */
@keyframes float {

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

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

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

    20% {
        left: 100%;
    }

    100% {
        left: 100%;
    }
}

@keyframes pulse-slow {
    from {
        transform: scale(1) rotate(0deg);
        opacity: 0.02;
    }

    to {
        transform: scale(1.1) rotate(5deg);
        opacity: 0.04;
    }
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

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

.animate-float {
    animation: float 3s ease-in-out infinite;
}

/* --- Hero Carousel Styles --- */
.hero-carousel {
    position: relative;
    width: 100%;
    max-width: 1400px;
    margin: 125px auto 10px;
    padding: 0 2rem;
    z-index: 10;
}

.carousel-container {
    position: relative;
    width: 100%;
    aspect-ratio: 1400 / 400; /* Maintains exact poster proportions */
    height: auto;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    background: #0d0e15;
}

.carousel-track {
    width: 100%;
    height: 100%;
    position: relative;
}

.carousel-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.6s ease-in-out, transform 0.6s ease-in-out;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    padding: 0 5rem;
    pointer-events: none;
    transform: scale(1.01);
}

.carousel-slide.active {
    opacity: 1;
    pointer-events: auto;
    transform: scale(1);
}

.slide-content {
    max-width: 600px;
    transform: translateY(15px);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.6s;
    opacity: 0;
    transition-delay: 0.15s;
    text-align: left;
}

.carousel-slide.active .slide-content {
    transform: translateY(0);
    opacity: 1;
}

.slide-badge {
    background: rgba(108, 92, 231, 0.18);
    border: 1px solid rgba(108, 92, 231, 0.3);
    padding: 6px 14px;
    border-radius: 100px;
    font-size: 0.72rem;
    font-weight: 800;
    color: var(--secondary);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 1.2rem;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    font-family: 'Orbitron', sans-serif;
}

.carousel-slide h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    line-height: 1.25;
    font-weight: 900;
    margin-bottom: 0.8rem;
    background: linear-gradient(135deg, #ffffff 30%, #c7c1ff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.carousel-slide p {
    font-size: clamp(0.9rem, 1.2vw, 1.05rem);
    color: var(--text-dim);
    margin-bottom: 1.8rem;
    line-height: 1.6;
}

/* Controls */
.carousel-prev, .carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(10, 11, 16, 0.5);
    border: 1px solid var(--glass-border);
    color: white;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    z-index: 15;
    backdrop-filter: blur(8px);
}

.carousel-prev:hover, .carousel-next:hover {
    background: var(--primary);
    border-color: var(--primary);
    box-shadow: 0 0 15px var(--primary-glow);
}

.carousel-prev { left: 20px; }
.carousel-next { right: 20px; }

.carousel-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 15;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s;
}

.dot.active {
    background: var(--primary);
    width: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px var(--primary-glow);
}

/* Mobile Responsive Carousel */
@media (max-width: 768px) {
    .hero-carousel {
        margin-top: 95px;
        margin-bottom: 15px;
        padding: 0 1.5rem;
    }
    .carousel-container {
        border-radius: 16px;
    }
    .carousel-slide {
        padding: 0 2rem;
    }
    .carousel-prev, .carousel-next {
        display: none; /* Hide arrows on mobile for clean screen */
    }
    .carousel-slide h2 {
        font-size: 1.5rem;
    }
    .carousel-slide p {
        font-size: 0.82rem;
        margin-bottom: 1.2rem;
    }
}

/* --- Buttons --- */
.btn-modern {
    padding: 16px 32px;
    border-radius: 16px;
    font-weight: 800;
    font-size: 1rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: #fff !important;
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.2);
    border: 1px solid rgba(37, 211, 102, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 30px rgba(37, 211, 102, 0.4);
    filter: brightness(1.1);
}

.btn-secondary {
    background: linear-gradient(135deg, #833ab4 0%, #fd1d1d 50%, #fcb045 100%);
    color: #fff !important;
    box-shadow: 0 8px 20px rgba(253, 29, 29, 0.2);
    border: 1px solid rgba(253, 29, 29, 0.3);
}

.btn-secondary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 30px rgba(253, 29, 29, 0.4);
    filter: brightness(1.1);
}

.qr-container-hover:hover {
    transform: translateY(-5px) rotate(1deg);
    border-color: rgba(108, 92, 231, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 40px rgba(108, 92, 231, 0.3);
}

.btn-primary-neon {
    background: linear-gradient(135deg, #fd79a8, #e84393);
    color: white !important;
    border: none;
    box-shadow: 0 0 30px rgba(253, 121, 168, 0.4), inset 0 0 8px rgba(255, 255, 255, 0.2);
    text-shadow: 0 1px 2px rgba(0,0,0,0.15);
}

.btn-primary-neon:hover {
    transform: translateY(-5px) scale(1.03);
    box-shadow: 0 0 40px rgba(253, 121, 168, 0.65), inset 0 0 10px rgba(255, 255, 255, 0.35);
    filter: brightness(1.1);
}

.btn-secondary-neon {
    background: rgba(255, 255, 255, 0.02);
    color: white !important;
    border: 1px solid rgba(255, 255, 255, 0.07);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-secondary-neon:hover {
    background: rgba(255, 255, 255, 0.06);
    transform: translateY(-5px);
}

.btn-games:hover {
    border-color: var(--secondary);
    box-shadow: 0 0 25px rgba(0, 206, 201, 0.3);
}

.btn-calc:hover {
    border-color: #00cec9;
    box-shadow: 0 0 25px rgba(0, 206, 201, 0.3);
}

.btn-gift:hover {
    border-color: var(--accent);
    box-shadow: 0 0 25px rgba(253, 121, 168, 0.3);
}

/* --- Section Styling --- */
section {
    padding: 80px 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.section-header {
    margin-bottom: 3.5rem;
    text-align: center;
}

.section-title {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.section-title span {
    color: var(--primary);
}

/* --- Flash Sale Card --- */
/* ── Flash Sale V2 ── */
.flash-card-v2 {
    background: linear-gradient(165deg, rgba(108, 92, 231, 0.04) 0%, rgba(0, 206, 201, 0.01) 100%), rgba(10, 11, 16, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 32px;
    padding: 3rem;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4), inset 0 0 30px rgba(108, 92, 231, 0.05);
}

/* Animated glowing dots in background of Flash Card */
.flash-card-v2::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 75% 75%, rgba(108, 92, 231, 0.08) 0%, transparent 40%),
                radial-gradient(circle at 25% 25%, rgba(0, 206, 201, 0.05) 0%, transparent 40%);
    pointer-events: none;
    z-index: 0;
}

.flash-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    position: relative;
    z-index: 1;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 1.5rem;
}

.flash-grid-v2 {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 24px;
    margin-top: 2.5rem;
    position: relative;
    z-index: 1;
}

.product-mini-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    padding: 24px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.product-mini-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(108, 92, 231, 0.08), rgba(0, 206, 201, 0.08));
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
}

.product-mini-card:hover {
    transform: translateY(-8px);
    border-color: rgba(108, 92, 231, 0.35);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 25px rgba(108, 92, 231, 0.15);
    background: rgba(255, 255, 255, 0.04);
}

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

.card-badge-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.region-pill {
    background: rgba(0, 206, 201, 0.12);
    color: #00cec9;
    border: 1px solid rgba(0, 206, 201, 0.25);
    padding: 4px 12px;
    border-radius: 30px;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 6px;
    text-shadow: 0 0 5px rgba(0, 206, 201, 0.2);
}

.discount-badge {
    background: linear-gradient(135deg, #ff4757, #ff6b81);
    color: white;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.72rem;
    font-weight: 900;
    padding: 4px 10px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(255, 71, 87, 0.3);
    letter-spacing: 0.5px;
}

.card-main-content {
    display: flex;
    align-items: center;
    gap: 16px;
    width: 100%;
}

.game-thumb {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    flex-shrink: 0;
}

.product-mini-card:hover .game-thumb {
    transform: scale(1.08) rotate(3deg);
    border-color: rgba(108, 92, 231, 0.4);
    box-shadow: 0 8px 20px rgba(108, 92, 231, 0.3);
}

.product-details {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.product-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}

.price-row {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.price-current {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.35rem;
    font-weight: 900;
    color: #ffffff;
    letter-spacing: 0.5px;
}

.price-old {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.85rem;
    color: var(--text-dim);
    text-decoration: line-through;
}

.btn-flash-buy {
    width: 100%;
    padding: 14px;
    border-radius: 16px;
    border: none;
    background: linear-gradient(135deg, var(--primary) 0%, #a29bfe 100%);
    color: #ffffff !important;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 6px 20px rgba(108, 92, 231, 0.25);
    margin-top: 8px;
}

.btn-flash-buy:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(108, 92, 231, 0.45);
    background: linear-gradient(135deg, #7d5fff 0%, #c7c1ff 100%);
}

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

.btn-flash-buy i {
    font-size: 0.85rem;
    transition: transform 0.3s;
}

.btn-flash-buy:hover i {
    transform: translateX(4px);
}

.flash-timer-v2 {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, rgba(255, 71, 87, 0.15), rgba(255, 107, 129, 0.15));
    color: #ff4757;
    padding: 10px 24px;
    border-radius: 30px;
    font-family: 'Orbitron', sans-serif;
    font-weight: 900;
    font-size: 1.15rem;
    border: 1px solid rgba(255, 71, 87, 0.3);
    box-shadow: 0 0 25px rgba(255, 71, 87, 0.2), inset 0 0 10px rgba(255, 71, 87, 0.1);
    letter-spacing: 1px;
    text-shadow: 0 0 8px rgba(255, 71, 87, 0.5);
    animation: timerPulse 2s infinite alternate;
}

@keyframes timerPulse {
    from {
        box-shadow: 0 0 20px rgba(255, 71, 87, 0.15), inset 0 0 10px rgba(255, 71, 87, 0.05);
    }
    to {
        box-shadow: 0 0 35px rgba(255, 71, 87, 0.35), inset 0 0 15px rgba(255, 71, 87, 0.2);
    }
}

/* --- Games Grid --- */
.games-grid-v2 {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 25px;
}

.game-card-v2 {
    position: relative;
    border: none;
    background: transparent;
    box-shadow: none;
    overflow: visible;
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    will-change: transform, opacity;
    backface-visibility: hidden;
}

.game-card-v2 img {
    width: 100%;
    height: auto !important;
    aspect-ratio: 1 / 1 !important;
    border-radius: 28px;
    object-fit: cover;
    border: 2px solid rgba(108, 92, 231, 0.25);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: block;
}

.game-card-v2::after {
    content: 'TOP UP';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    aspect-ratio: 1/1;
    border-radius: 28px;
    background: rgba(10, 11, 16, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.9rem;
    font-weight: 900;
    color: var(--secondary);
    letter-spacing: 2px;
    opacity: 0;
    z-index: 2;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    pointer-events: none;
    box-sizing: border-box;
    border: 2px solid var(--primary);
    box-shadow: inset 0 0 20px rgba(108, 92, 231, 0.4);
}

.game-card-v2 .game-info {
    position: static;
    background: transparent;
    border: none;
    padding: 0;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    width: 100%;
    transition: color 0.3s ease;
}

.game-card-v2 h3 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    color: #f5f6fa;
    text-align: center;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0;
    text-shadow: none;
    text-transform: none;
    letter-spacing: 0;
}

@media (hover: hover) {
    .game-card-v2:hover {
        transform: translateY(-8px);
    }

    .game-card-v2:hover::after {
        opacity: 1;
    }

    .game-card-v2:hover img {
        border-color: transparent;
        box-shadow: 0 15px 30px rgba(108, 92, 231, 0.4), 0 0 15px rgba(108, 92, 231, 0.2);
        transform: scale(1.04);
        filter: blur(2px) brightness(0.6);
    }

    .game-card-v2:hover h3 {
        color: var(--secondary);
    }
}

/* --- Regional Modal --- */
.modal-v2 {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(15px);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-v2.show {
    display: flex;
    opacity: 1;
}

.modal-content-v2 {
    background: linear-gradient(145deg, #101126 0%, #080911 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    width: 100%;
    max-width: 650px;
    border-radius: 28px;
    padding: 40px 30px;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6), 0 0 50px rgba(108, 92, 231, 0.15);
    display: flex;
    flex-direction: column;
}

.modal-content-v2 h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(1.3rem, 4vw, 1.7rem);
    font-weight: 800;
    text-align: center;
    background: linear-gradient(135deg, #ffffff 30%, #a29bfe 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 5px;
    letter-spacing: 0.5px;
}

.modal-v2.show .modal-content-v2 {
    transform: scale(1);
}

.region-grid-v2 {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(165px, 1fr));
    gap: 16px;
    margin-top: 30px;
    max-height: 55vh;
    overflow-y: auto;
    padding: 5px 8px 5px 0;
}

/* Custom scrollbar for region grid */
.region-grid-v2::-webkit-scrollbar {
    width: 5px;
}
.region-grid-v2::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.01);
}
.region-grid-v2::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}
.region-grid-v2::-webkit-scrollbar-thumb:hover {
    background: rgba(108, 92, 231, 0.4);
}

.region-item-v2 {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    padding: 22px 14px;
    border-radius: 18px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 90px;
    box-sizing: border-box;
}

.region-item-v2 span {
    display: block;
    font-weight: 800;
    font-family: 'Orbitron', sans-serif;
    font-size: 1.15rem;
    color: var(--secondary);
    margin-bottom: 6px;
    letter-spacing: 0.5px;
    transition: all 0.3s;
}

.region-item-v2 p {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.5);
    margin: 0;
    line-height: 1.3;
    transition: color 0.3s;
}

.region-item-v2:hover {
    background: linear-gradient(135deg, rgba(108, 92, 231, 0.15) 0%, rgba(0, 206, 201, 0.1) 100%);
    border-color: rgba(108, 92, 231, 0.5);
    box-shadow: 0 12px 24px rgba(108, 92, 231, 0.2), 0 0 20px rgba(108, 92, 231, 0.1);
    transform: translateY(-5px);
}

.region-item-v2:hover span {
    color: #fff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.region-item-v2:hover p {
    color: #fff;
}

.close-modal-v2 {
    position: absolute;
    top: 25px;
    right: 25px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.close-modal-v2:hover {
    background: rgba(255, 71, 87, 0.2);
    border-color: rgba(255, 71, 87, 0.4);
    color: #ff4757;
    transform: rotate(90deg);
}

/* --- Custom Scrollbar --- */
::-webkit-scrollbar {
    width: 8px;
}

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

::-webkit-scrollbar-thumb {
    background: var(--card-border);
    border-radius: 10px;
}

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

/* --- Mobile Responsive --- */
@media (max-width: 768px) {
    section {
        padding: 60px 1.5rem;
    }

    .hero-v2 {
        min-height: 80vh;
        padding-top: 100px;
    }

    .hero-btns {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
        width: 100%;
        max-width: 480px;
        margin: 0 auto;
    }

    .btn-modern {
        width: 100%;
        justify-content: center;
        padding: 12px 14px;
        font-size: 0.8rem;
        border-radius: 12px;
        gap: 6px;
    }

    .flash-card-v2 {
        padding: 1.75rem 1.25rem;
        border-radius: 24px;
    }

    .flash-header-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
        padding-bottom: 1.25rem;
    }

    .flash-timer-v2 {
        font-size: 1rem;
        padding: 8px 20px;
        width: auto;
    }

    .flash-grid-v2 {
        grid-template-columns: 1fr;
        gap: 16px;
        margin-top: 1.75rem;
    }

    @media (min-width: 480px) {
        .flash-grid-v2 {
            grid-template-columns: repeat(2, 1fr);
        }
    }

    .product-mini-card {
        padding: 20px;
        gap: 14px;
        border-radius: 20px;
        text-align: left;
    }

    .game-thumb {
        width: 50px;
        height: 50px;
        border-radius: 12px;
    }

    .product-title {
        font-size: 0.88rem;
    }

    .price-current {
        font-size: 1.15rem;
    }

    .price-old {
        font-size: 0.78rem;
    }

    .btn-flash-buy {
        padding: 11px;
        font-size: 0.78rem;
        border-radius: 12px;
        margin-top: 4px;
    }

    .games-grid-v2 {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 15px;
    }

    .game-card-v2 {
        border-radius: 18px;
    }

    .modal-content-v2 {
        padding: 30px 16px;
        border-radius: 24px;
        width: 95%;
        max-height: 90vh;
        display: flex;
        flex-direction: column;
    }

    .modal-content-v2 h2 {
        font-size: 1.1rem;
        margin-bottom: 5px;
    }

    .region-grid-v2 {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        margin-top: 20px;
    }

    .region-item-v2 {
        padding: 15px 10px;
        border-radius: 16px;
    }

    .region-item-v2 i {
        font-size: 1.5rem;
        margin-bottom: 5px;
    }

    .region-item-v2 span {
        font-size: 0.95rem;
    }

    .region-item-v2 p {
        font-size: 0.75rem;
    }

    .close-modal-v2 {
        top: 15px;
        right: 15px;
        width: 35px;
        height: 35px;
    }

    /* Disable expensive blur/pulse on mobile */
    .hero-v2::before {
        animation: none !important;
        filter: blur(40px) !important;
        width: 100% !important;
        height: 100% !important;
    }
}

@media (max-width: 600px) {
    .hero-carousel {
        margin-top: 82px;
        margin-bottom: 10px;
        padding: 0 1.5rem;
    }
    .carousel-container {
        border-radius: 12px;
    }
    .carousel-dots {
        bottom: 8px;
    }
    .dot {
        width: 6px;
        height: 6px;
    }
    .dot.active {
        width: 14px;
    }
    .games-grid-v2 {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 10px !important;
    }
    .game-card-v2 {
        gap: 6px !important;
    }
    .game-card-v2 img, .game-card-v2::after {
        border-radius: 16px !important;
    }
    .game-card-v2 h3 {
        font-size: 0.7rem !important;
    }
}