/* ============================================================
   RAINSTORE — NEON TERMINAL v4
   Dot-grid · Solid dark panels · No glass blur on cards
   Same colour palette: #00f0ff · #7000ff · #00ff88 · #ff0055
   ============================================================ */

/* ── 1. DESIGN TOKENS ── */
:root {
    --bg: #020209;
    --bg-card: #08080f;
    --bg-raised: #0d0d1c;
    --bg-input: #0a0a16;
    --bg-overlay: rgba(2, 2, 9, 0.96);

    --border: #191928;
    --border-mid: #22223a;
    --border-hi: #2e2e50;

    --primary: #00f0ff;
    --primary-dim: rgba(0, 240, 255, 0.12);
    --secondary: #7000ff;
    --secondary-dim: rgba(112, 0, 255, 0.12);
    --success: #00ff88;
    --success-dim: rgba(0, 255, 136, 0.1);
    --danger: #ff0055;
    --danger-dim: rgba(255, 0, 85, 0.1);
    --gold: #ffb800;

    --text: #e8e8ff;
    --text-mid: #9090b8;
    --text-muted: #5a5a7a;
    --text-faint: #2e2e48;

    --font-ui: "Montserrat", sans-serif;
    --font-mono: "Orbitron", sans-serif;

    --r-xs: 4px;
    --r-sm: 6px;
    --r-md: 8px;
    --r-lg: 12px;
    --r-xl: 16px;

    --ease-out: cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --ease-spring: cubic-bezier(0.175, 0.885, 0.32, 1.275);
    --ease-sharp: cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-ui);
    background-color: var(--bg);
    color: var(--text);
    overflow-x: hidden;
    line-height: 1.5;
    min-height: 100vh;
}

/* ── DOT GRID BACKGROUND ── */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image: radial-gradient(
        circle,
        rgba(0, 240, 255, 0.045) 1px,
        transparent 1px
    );
    background-size: 28px 28px;
}

/* Ambient colour blobs — large, subtle */
body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(
            ellipse 700px 500px at 10% 10%,
            rgba(112, 0, 255, 0.06) 0%,
            transparent 70%
        ),
        radial-gradient(
            ellipse 600px 400px at 90% 80%,
            rgba(0, 240, 255, 0.05) 0%,
            transparent 70%
        );
}

.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 1;
}

/* ── 3. UTILITIES ── */
.text-gradient {
    background: linear-gradient(90deg, var(--primary) 0%, #8800ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Thin neon line separator */
.neon-line {
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent,
        var(--primary),
        transparent
    );
    opacity: 0.35;
    border: none;
    margin: 0;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 4px;
    height: 4px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: var(--border-hi);
    border-radius: 99px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* ── 4. NAVBAR ── */
.navbar {
    position: sticky;
    top: 0;
    z-index: 200;
    height: 58px;
    background: var(--bg-overlay);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    /* Thin glow at bottom edge */
    box-shadow:
        0 1px 0 rgba(0, 240, 255, 0.07),
        0 4px 24px rgba(0, 0, 0, 0.6);
}

/* Override glass-panel on navbar */
.navbar.glass-panel {
    background: var(--bg-overlay) !important;
    border-radius: 0 !important;
    border: none !important;
    border-bottom: 1px solid var(--border) !important;
}

.nav-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

/* ── LOGO ── */
.logo {
    font-family: var(--font-mono);
    font-size: 18px;
    font-weight: 900;
    letter-spacing: 2px;
    display: flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    color: var(--text);
    cursor: default;
    user-select: none;
}

.logo i {
    color: var(--primary);
    font-size: 22px;
    filter: drop-shadow(0 0 8px var(--primary));
}

.logo span.text-gradient {
    letter-spacing: 3px;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* ── NAV BUTTONS ── */
.btn-reviews-glow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: var(--r-sm);
    border: 1px solid rgba(0, 240, 255, 0.25);
    background: var(--primary-dim);
    color: var(--text);
    text-decoration: none;
    font-size: 12px;
    font-weight: 700;
    font-family: var(--font-ui);
    letter-spacing: 0.3px;
    transition: all 0.18s var(--ease-sharp);
    animation: pulse-glow 3s ease-in-out infinite;
}

.btn-reviews-glow i {
    color: var(--gold);
    font-size: 14px;
}
.btn-reviews-glow:hover {
    background: rgba(0, 240, 255, 0.2);
    border-color: var(--primary);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(0, 240, 255, 0.2);
}

@keyframes pulse-glow {
    0%,
    100% {
        box-shadow: 0 0 6px rgba(0, 240, 255, 0.15);
    }
    50% {
        box-shadow: 0 0 14px rgba(0, 240, 255, 0.35);
    }
}

.btn-blacklist {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: var(--r-sm);
    border: 1px solid rgba(255, 0, 85, 0.25);
    background: var(--danger-dim);
    color: var(--danger);
    text-decoration: none;
    font-size: 12px;
    font-weight: 700;
    font-family: var(--font-ui);
    transition: all 0.18s var(--ease-sharp);
}

.btn-blacklist:hover {
    background: rgba(255, 0, 85, 0.22);
    border-color: var(--danger);
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(255, 0, 85, 0.2);
}

.cart-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 16px;
    border-radius: var(--r-sm);
    border: 1px solid var(--border-mid);
    background: var(--bg-raised);
    color: var(--text);
    font-size: 12px;
    font-weight: 700;
    font-family: var(--font-ui);
    cursor: pointer;
    transition: all 0.18s var(--ease-sharp);
}

.cart-btn:hover {
    border-color: var(--primary);
    background: var(--primary-dim);
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(0, 240, 255, 0.15);
}

.cart-icon-wrapper {
    position: relative;
    font-size: 17px;
    display: flex;
    line-height: 1;
}

#cart-counter {
    position: absolute;
    top: -6px;
    right: -8px;
    background: var(--danger);
    color: #fff;
    font-size: 9px;
    font-weight: 900;
    min-width: 15px;
    height: 15px;
    border-radius: 99px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 3px;
    line-height: 1;
    box-shadow: 0 0 8px var(--danger);
}

@keyframes badge-pop {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.4);
        box-shadow: 0 0 14px var(--danger);
    }
    100% {
        transform: scale(1);
    }
}
.badge-pulse {
    animation: badge-pop 0.4s var(--ease-spring);
}

/* ── 5. HERO SECTION ── */
.hero,
.hero.glass-panel,
.hero.hero-glow {
    background: transparent !important;
    border: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    padding: 56px 0 40px;
    margin: 0 0 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    position: relative;
    overflow: visible;
}

.hero-visual {
    display: none;
} /* Hide old gem */

/* Mono label above title */
.hero-label {
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--primary);
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
    opacity: 0.8;
}

.hero-label::before {
    content: "";
    display: block;
    width: 24px;
    height: 1px;
    background: var(--primary);
}

.hero-content {
    max-width: 680px;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: var(--success-dim);
    border: 1px solid rgba(0, 255, 136, 0.2);
    color: var(--success);
    padding: 4px 12px;
    border-radius: 99px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--success);
    flex-shrink: 0;
    animation: dot-blink 1.8s ease-in-out infinite;
    box-shadow: 0 0 6px var(--success);
}

@keyframes dot-blink {
    0%,
    100% {
        opacity: 1;
    }
    50% {
        opacity: 0.3;
    }
}

.hero-title {
    font-family: var(--font-mono);
    font-size: 54px;
    line-height: 1.08;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -1px;
    margin-bottom: 16px;
    color: var(--text);
}

.hero-subtitle {
    font-size: 15px;
    color: var(--text-mid);
    line-height: 1.7;
    font-weight: 500;
    max-width: 480px;
    margin-bottom: 32px;
}

/* Glitch effect */
.glitch {
    position: relative;
}
.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(90deg, var(--primary) 0%, #8800ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.glitch::before {
    clip-path: polygon(0 0, 100% 0, 100% 36%, 0 36%);
    left: -3px;
    animation: glitch-a 5s infinite linear;
}
.glitch::after {
    clip-path: polygon(0 64%, 100% 64%, 100% 100%, 0 100%);
    left: 3px;
    animation: glitch-b 5s infinite linear;
}
@keyframes glitch-a {
    0%,
    87%,
    95%,
    100% {
        opacity: 0;
        transform: translateX(0);
    }
    89% {
        opacity: 1;
        transform: translateX(-4px) skewX(-2deg);
    }
    92% {
        opacity: 1;
        transform: translateX(2px);
    }
}
@keyframes glitch-b {
    0%,
    87%,
    95%,
    100% {
        opacity: 0;
        transform: translateX(0);
    }
    89% {
        opacity: 1;
        transform: translateX(4px) skewX(2deg);
    }
    92% {
        opacity: 1;
        transform: translateX(-2px);
    }
}

/* Hero stats row */
.hero-stats {
    display: flex;
    gap: 32px;
    align-items: flex-start;
    margin-top: 0;
}

.hero-stat {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.stat-value {
    font-family: var(--font-mono);
    font-size: 26px;
    font-weight: 900;
    color: var(--primary);
    line-height: 1;
    filter: drop-shadow(0 0 10px rgba(0, 240, 255, 0.4));
}

.stat-label {
    font-size: 10px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1.2px;
    font-weight: 700;
}

.hero-stat-divider {
    width: 1px;
    height: 36px;
    background: var(--border-hi);
    align-self: center;
}

/* ── 6. FIRST-BUY BANNER ── */
.first-buy-banner {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 20px;
    background: var(--bg-raised);
    border: 1px solid rgba(0, 240, 255, 0.2);
    border-left: 3px solid var(--primary);
    border-radius: var(--r-lg);
    margin-bottom: 24px;
    box-shadow:
        0 0 20px rgba(0, 240, 255, 0.06),
        inset 0 0 30px rgba(0, 240, 255, 0.02);
}

.banner-icon {
    font-size: 28px;
    color: var(--primary);
    flex-shrink: 0;
    filter: drop-shadow(0 0 8px var(--primary));
}

.banner-text h3 {
    font-family: var(--font-mono);
    font-size: 13px;
    margin-bottom: 3px;
    color: var(--primary);
}

.banner-text p {
    font-size: 12px;
    color: var(--text-mid);
    line-height: 1.5;
}

/* ── 7. GAME NAV (from index.html inline, base here) ── */
.game-nav {
    display: flex;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    overflow: hidden;
    margin-bottom: 20px;
}

/* Old tabs-container hidden */
.tabs-container,
.tabs-slider {
    display: none !important;
}

.game-tab {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 12px;
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 700;
    font-family: var(--font-ui);
    cursor: pointer;
    transition: all 0.18s var(--ease-sharp);
    letter-spacing: 0.3px;
}

.game-tab + .game-tab {
    border-left: 1px solid var(--border);
}

.game-tab img {
    width: 22px;
    height: 22px;
    border-radius: 5px;
    filter: grayscale(100%) brightness(0.6);
    transition: filter 0.2s ease;
}

.game-tab.active {
    color: var(--primary);
    background: var(--primary-dim);
    border-bottom-color: var(--primary);
}

.game-tab.active img {
    filter: grayscale(0%) brightness(1);
    box-shadow: 0 0 8px rgba(0, 240, 255, 0.3);
}

.game-tab:hover:not(.active) {
    color: var(--text);
    background: var(--bg-raised);
}

/* ── 8. SIDEBAR FILTER TABS ── */
.sub-categories {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-bottom: 2px;
    margin-bottom: 18px;
}
.sub-categories::-webkit-scrollbar {
    display: none;
}

.sub-tab {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border-radius: var(--r-sm);
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 700;
    font-family: var(--font-ui);
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.16s var(--ease-sharp);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sub-tab:hover {
    border-color: var(--border-hi);
    color: var(--text);
    background: var(--bg-raised);
}

.sub-tab.active {
    border-color: var(--primary);
    background: var(--primary-dim);
    color: var(--primary);
    box-shadow: 0 0 12px rgba(0, 240, 255, 0.1);
}

/* ── 9. PRODUCT GRID ── */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 14px;
    padding-bottom: 80px;
}

/* ── 10. PRODUCT CARD — NEON TERMINAL STYLE ── */
.product-card {
    display: flex;
    flex-direction: column;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    overflow: hidden;
    cursor: pointer;
    position: relative;
    transition:
        transform 0.22s var(--ease-out),
        border-color 0.22s ease,
        box-shadow 0.22s ease;
}

/* Top gradient sweep on hover */
.product-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    opacity: 0;
    transition: opacity 0.25s ease;
    z-index: 2;
}

/* Right glow edge on hover */
.product-card::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    box-shadow: inset 0 0 0 1px rgba(0, 240, 255, 0);
    transition: box-shadow 0.25s ease;
    pointer-events: none;
    z-index: 2;
}

.product-card:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 240, 255, 0.22);
    box-shadow:
        0 0 0 1px rgba(0, 240, 255, 0.08),
        0 16px 40px rgba(0, 0, 0, 0.5),
        0 0 30px rgba(0, 240, 255, 0.06);
}

.product-card:hover::before {
    opacity: 1;
}
.product-card:hover::after {
    box-shadow: inset 0 0 0 1px rgba(0, 240, 255, 0.12);
}

/* Suppress old card-glow */
.card-glow {
    display: none;
}

/* ── Image zone ── */
.product-image {
    position: relative;
    height: 148px;
    background: linear-gradient(135deg, #0a0a18 0%, #080810 100%);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

/* Subtle radial glow behind image */
.product-image::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(
        ellipse at 50% 110%,
        rgba(0, 240, 255, 0.08) 0%,
        transparent 65%
    );
    pointer-events: none;
}

.product-image img {
    max-height: 100px;
    max-width: 75%;
    object-fit: contain;
    filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.7));
    transition:
        transform 0.28s var(--ease-out),
        filter 0.28s ease;
    position: relative;
    z-index: 1;
}

.product-card:hover .product-image img {
    transform: scale(1.1) translateY(-4px);
    filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.8))
        drop-shadow(0 0 10px rgba(0, 240, 255, 0.2));
}

/* Category badge — top-right corner */
.product-category {
    position: absolute;
    top: 8px;
    right: 8px;
    left: auto;
    z-index: 3;
    font-size: 8px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 3px 7px;
    border-radius: var(--r-xs);
    background: rgba(0, 0, 0, 0.65);
    border: 1px solid var(--border-mid);
    color: var(--text-muted);
}

/* ── Details zone ── */
.product-details {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 12px 13px 13px;
    gap: 8px;
    justify-content: space-between;
    position: relative;
    z-index: 1;
}

.product-name {
    font-size: 12px;
    font-weight: 700;
    font-family: var(--font-ui);
    color: var(--text);
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
}

/* Price — neon cyan text */
.price-tag {
    font-family: var(--font-mono);
    font-size: 20px;
    font-weight: 900;
    color: var(--primary);
    line-height: 1;
    filter: drop-shadow(0 0 8px rgba(0, 240, 255, 0.4));
}

.currency {
    font-size: 13px;
    font-weight: 700;
    margin-left: 1px;
    color: var(--primary);
    opacity: 0.7;
}

/* Add button — circle neon */
.btn-add {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(0, 240, 255, 0.35);
    background: var(--primary-dim);
    color: var(--primary);
    font-size: 17px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition:
        background 0.18s ease,
        border-color 0.18s ease,
        transform 0.18s var(--ease-spring),
        box-shadow 0.18s ease;
}

.btn-add:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #000;
    transform: scale(1.12);
    box-shadow: 0 0 18px rgba(0, 240, 255, 0.5);
}

.btn-add:active {
    transform: scale(0.93);
}

/* ── 11. SHOP LAYOUT (sidebar + products) ── */
.shop-layout {
    display: flex;
    gap: 18px;
    align-items: flex-start;
}

.filter-sidebar {
    width: 172px;
    min-width: 172px;
    position: sticky;
    top: 72px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 16px 14px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.sidebar-section-label {
    font-size: 9px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1.8px;
    color: var(--text-muted);
    margin-bottom: 6px;
    padding-left: 2px;
}

.filter-sidebar .sub-tab {
    width: 100%;
    justify-content: flex-start;
    padding: 9px 12px;
    border-radius: var(--r-sm);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.products-area {
    flex: 1;
    min-width: 0;
}

.products-area .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    padding-bottom: 60px;
}

/* ── 12. CART OVERLAY & DRAWER ── */
.cart-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.72);
    opacity: 0;
    pointer-events: none;
    z-index: 999;
    transition: opacity 0.28s ease;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}
.cart-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.cart-drawer {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 430px;
    height: 100vh;
    height: 100dvh;
    background: var(--bg-card);
    border-left: 1px solid var(--border);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    transition: right 0.36s var(--ease-sharp);
}

.cart-drawer.active {
    right: 0;
}

/* Remove glass-panel style when on cart drawer */
.cart-drawer.glass-panel {
    background: var(--bg-card) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border-radius: 0 !important;
}

/* ── Cart header ── */
.cart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 22px;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
    background: var(--bg-raised);
}

.cart-header h2 {
    font-family: var(--font-mono);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 10px;
    text-transform: uppercase;
    color: var(--text);
}

.cart-header h2 i {
    color: var(--primary);
}

.btn-close {
    width: 30px;
    height: 30px;
    border-radius: var(--r-sm);
    border: 1px solid var(--border-mid);
    background: transparent;
    color: var(--text-muted);
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s var(--ease-sharp);
}

.btn-close:hover {
    border-color: var(--danger);
    color: var(--danger);
    background: var(--danger-dim);
    transform: rotate(90deg);
}

/* ── Cart body ── */
.cart-body {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 16px 22px;
    scrollbar-width: thin;
    scrollbar-color: var(--border-hi) transparent;
}

#cart-content {
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin-bottom: 18px;
}

.empty-cart {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px 0;
    color: var(--text-muted);
    text-align: center;
    gap: 12px;
}

/* Cart items — left neon accent */
.cart-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: var(--r-md);
    background: var(--bg-raised);
    border: 1px solid var(--border);
    border-left: 2px solid var(--primary);
    transition:
        background 0.15s ease,
        border-left-color 0.15s ease;
}

.cart-item:hover {
    background: rgba(0, 240, 255, 0.04);
    border-left-color: var(--secondary);
}

.cart-item img {
    width: 40px;
    height: 40px;
    border-radius: var(--r-sm);
    object-fit: contain;
    background: var(--bg-card);
    padding: 3px;
    flex-shrink: 0;
}

.item-info {
    flex: 1;
    min-width: 0;
}
.item-info h4 {
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 2px;
}
.item-info p {
    font-size: 11px;
    color: var(--text-muted);
}

.item-controls {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 3px 6px;
    border-radius: var(--r-sm);
    flex-shrink: 0;
}

.item-controls button {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 2px;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.15s ease;
}
.item-controls button:hover {
    color: var(--primary);
}

.item-controls span {
    font-size: 12px;
    font-weight: 800;
    color: var(--text);
    min-width: 14px;
    text-align: center;
    font-family: var(--font-mono);
}

.qty-num {
    font-weight: 900;
    color: var(--text);
}

/* ── Cart footer ── */
.cart-footer {
    padding: 16px 22px 20px;
    border-top: 1px solid var(--border);
    background: var(--bg-raised);
    flex-shrink: 0;
}

/* ── 13. CHECKOUT FORM ── */
.step-box {
    background: var(--bg-raised);
    border: 1px solid var(--border);
    border-left: 2px solid var(--primary);
    padding: 12px 14px;
    border-radius: var(--r-md);
    margin-bottom: 14px;
}

.step-title {
    color: var(--primary);
    font-weight: 900;
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.step-box p {
    font-size: 11px;
    color: var(--text-muted);
    line-height: 1.6;
}

.method-title {
    font-size: 9px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-muted);
    margin: 14px 0 8px;
}

/* Input groups */
.input-group {
    position: relative;
    margin-bottom: 8px;
}

.input-group i {
    position: absolute;
    left: 13px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 14px;
    pointer-events: none;
}

.form-input {
    width: 100%;
    padding: 12px 12px 12px 40px;
    background: var(--bg-input);
    border: 1px solid var(--border-mid);
    border-radius: var(--r-md);
    color: var(--text);
    font-size: 16px; /* 16px prevents iOS zoom */
    font-family: var(--font-ui);
    transition:
        border-color 0.18s ease,
        box-shadow 0.18s ease;
}

.form-input:focus {
    border-color: var(--primary);
    box-shadow:
        0 0 0 3px rgba(0, 240, 255, 0.08),
        0 0 12px rgba(0, 240, 255, 0.05);
}

/* Promo row */
.promo-box {
    display: flex;
    gap: 6px;
    margin-bottom: 4px;
}

.promo-box input {
    flex: 1;
    padding: 10px 12px;
    background: var(--bg-input);
    border: 1px solid var(--border-mid);
    border-radius: var(--r-md);
    color: var(--text);
    text-transform: uppercase;
    font-family: var(--font-ui);
    font-size: 16px;
    letter-spacing: 1px;
    transition: border-color 0.18s ease;
}

.promo-box input:focus {
    border-color: var(--primary);
}

.promo-btn {
    padding: 0 13px;
    background: var(--bg-raised);
    border: 1px solid var(--border-mid);
    border-radius: var(--r-md);
    color: var(--text);
    cursor: pointer;
    font-weight: 700;
    font-size: 11px;
    font-family: var(--font-ui);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    transition: all 0.16s ease;
}

.promo-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #000;
}

.promo-message {
    font-size: 11px;
    min-height: 14px;
    padding-left: 3px;
    margin-bottom: 10px;
}
.promo-message.success {
    color: var(--success);
}
.promo-message.error {
    color: var(--danger);
}

/* Payment methods — horizontal pill row */
.payment-methods {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
    margin-bottom: 16px;
}

.pay-method {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    padding: 9px 11px;
    background: var(--bg-raised);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 700;
    font-family: var(--font-ui);
    cursor: pointer;
    transition: all 0.16s ease;
    text-align: left;
}

.pay-method i {
    font-size: 15px;
    flex-shrink: 0;
}

.pay-method:hover {
    border-color: var(--border-hi);
    color: var(--text);
    background: var(--bg-input);
}

.pay-method.active {
    border-color: var(--primary);
    background: var(--primary-dim);
    color: var(--primary);
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.08);
}

/* TG Stars spans full row */
.payment-methods .pay-method:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    justify-content: center;
}

/* Cart total */
.cart-total-box {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 10px;
}

.cart-total-box > span {
    font-size: 9px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-muted);
}

.old-price {
    text-decoration: line-through;
    color: var(--text-muted);
    font-size: 14px;
    margin-right: 8px;
}

.total-price {
    font-family: var(--font-mono);
    font-size: 26px;
    font-weight: 900;
    color: var(--primary);
    filter: drop-shadow(0 0 10px rgba(0, 240, 255, 0.4));
}

/* Primary button */
.btn-primary {
    width: 100%;
    padding: 13px;
    border: none;
    border-radius: var(--r-md);
    background: linear-gradient(90deg, var(--primary) 0%, #006bff 100%);
    color: #000;
    font-weight: 900;
    font-size: 13px;
    font-family: var(--font-ui);
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition:
        opacity 0.18s ease,
        transform 0.18s ease,
        box-shadow 0.18s ease;
    box-shadow: 0 4px 20px rgba(0, 240, 255, 0.2);
}

.btn-primary:not(:disabled):hover {
    opacity: 0.92;
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(0, 240, 255, 0.35);
}

.btn-primary:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-success {
    background: linear-gradient(90deg, var(--success) 0%, #009950 100%);
    box-shadow: 0 4px 20px rgba(0, 255, 136, 0.2);
}

/* Admin tag */
.admin-tag {
    background: var(--bg-raised);
    border: 1px solid var(--border-mid);
    padding: 9px 12px;
    border-radius: var(--r-sm);
    font-size: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: border-color 0.2s;
}

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

/* ── 14. PAYMENT MODAL ── */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    opacity: 0;
    pointer-events: none;
    z-index: 2000;
    transition: opacity 0.26s ease;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.modal-backdrop.active {
    opacity: 1;
    pointer-events: all;
}

.modal-box {
    width: 100%;
    max-width: 420px;
    max-height: 90dvh;
    overflow-y: auto;
    padding: 24px;
    background: var(--bg-raised);
    border: 1px solid var(--border-mid);
    border-top: 2px solid var(--primary);
    border-radius: var(--r-xl);
    text-align: center;
    transform: scale(0.92) translateY(16px);
    transition: transform 0.28s var(--ease-spring);
    scrollbar-width: thin;
    scrollbar-color: var(--border-hi) transparent;
    box-shadow:
        0 24px 64px rgba(0, 0, 0, 0.8),
        0 0 40px rgba(0, 240, 255, 0.06);
}

.modal-backdrop.active .modal-box {
    transform: scale(1) translateY(0);
}

/* Override glass-panel on modal-box */
.modal-box.glass-panel {
    background: var(--bg-raised) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

.pulse-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-dim);
    border: 1px solid rgba(0, 240, 255, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px;
    color: var(--primary);
    font-size: 24px;
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.15);
    animation: icon-pulse 2.5s ease-in-out infinite;
}

@keyframes icon-pulse {
    0%,
    100% {
        box-shadow: 0 0 12px rgba(0, 240, 255, 0.15);
    }
    50% {
        box-shadow: 0 0 24px rgba(0, 240, 255, 0.35);
    }
}

.modal-header-center {
    margin-bottom: 18px;
}
.modal-header-center h2 {
    font-family: var(--font-mono);
    font-size: 15px;
    margin-bottom: 5px;
    letter-spacing: 0.5px;
}
.modal-header-center p {
    font-size: 11px;
    color: var(--text-muted);
}

.requisites-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 14px 16px;
    text-align: left;
    margin-bottom: 14px;
}

.req-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.req-label {
    font-size: 9px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    flex-shrink: 0;
}

.req-value {
    font-family: var(--font-mono);
    font-weight: 800;
    color: var(--text);
    font-size: 13px;
    cursor: pointer;
    transition: color 0.15s ease;
    text-align: right;
    word-break: break-all;
}
.req-value:hover {
    color: var(--primary);
}

.req-divider {
    height: 1px;
    background: var(--border);
    margin: 11px 0;
}

.price-huge {
    font-family: var(--font-mono);
    font-size: 20px;
    font-weight: 900;
    color: var(--success);
    filter: drop-shadow(0 0 8px rgba(0, 255, 136, 0.4));
}

.highlight {
    color: var(--primary);
    cursor: default;
}

/* File upload */
.file-upload-box {
    margin-bottom: 11px;
}

.file-upload-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px;
    background: var(--bg-input);
    border: 1px dashed rgba(0, 240, 255, 0.3);
    border-radius: var(--r-md);
    cursor: pointer;
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 700;
    transition: all 0.18s ease;
}

.file-upload-label:hover {
    background: var(--primary-dim);
    border-color: var(--primary);
    color: var(--primary);
    border-style: solid;
}

.file-upload-label i {
    font-size: 16px;
    color: var(--primary);
}

.warning-box {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 13px;
    background: var(--danger-dim);
    border: 1px solid rgba(255, 0, 85, 0.22);
    border-radius: var(--r-md);
    font-size: 11px;
    color: #ffb3c6;
    margin-bottom: 12px;
    text-align: left;
    line-height: 1.55;
}
.warning-box i {
    flex-shrink: 0;
    margin-top: 1px;
}

/* ── 15. TOAST NOTIFICATIONS ── */
#toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 3000;
    display: flex;
    flex-direction: column;
    gap: 7px;
    pointer-events: none;
}

.toast {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 16px;
    background: var(--bg-raised);
    border: 1px solid var(--border-mid);
    border-left: 3px solid var(--primary);
    border-radius: var(--r-md);
    font-size: 12px;
    font-weight: 600;
    color: var(--text);
    min-width: 240px;
    max-width: 320px;
    transform: translateX(120%);
    transition: transform 0.3s var(--ease-spring);
    pointer-events: all;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}
.toast.show {
    transform: translateX(0);
}
.toast-success {
    border-left-color: var(--success);
}
.toast-error {
    border-left-color: var(--danger);
}
.toast-info {
    border-left-color: var(--primary);
}

/* ── 16. MOBILE CART BAR (used in index.html inline styles) ── */
/* Base rules — display:none so inline style controls it */
.mobile-cart-bar {
    display: none;
}

/* ── 17. RESPONSIVE — 768px ── */
@media (max-width: 768px) {
    .container {
        padding: 0 12px;
    }

    /* Navbar */
    .navbar,
    .navbar.glass-panel {
        height: 52px !important;
        padding: 0 14px !important;
    }
    .logo {
        font-size: 15px;
        gap: 6px;
    }
    .logo i {
        font-size: 18px;
    }
    .btn-reviews-glow span,
    .btn-blacklist span,
    .cart-text {
        display: none;
    }
    .btn-reviews-glow,
    .btn-blacklist {
        padding: 6px 9px;
    }
    .cart-btn {
        padding: 6px 10px;
    }
    .nav-actions {
        gap: 5px;
    }

    /* Hero */
    .hero,
    .hero.glass-panel,
    .hero.hero-glow {
        padding: 28px 0 24px !important;
        margin: 0 !important;
    }
    .hero-title {
        font-size: 28px;
    }
    .hero-subtitle {
        font-size: 13px;
    }
    .hero-stats {
        gap: 18px;
    }
    .stat-value {
        font-size: 20px;
    }
    .stat-label {
        font-size: 9px;
    }
    .hero-stat-divider {
        height: 28px;
    }

    /* Game nav */
    .game-nav {
        overflow-x: auto;
        scrollbar-width: none;
        -ms-overflow-style: none;
        border-radius: var(--r-md);
    }
    .game-nav::-webkit-scrollbar {
        display: none;
    }
    .game-tab {
        min-width: 100px;
        flex-shrink: 0;
        flex: unset;
        font-size: 11px;
        padding: 10px 9px;
    }
    .game-tab img {
        width: 18px;
        height: 18px;
    }

    /* Shop layout */
    .shop-layout {
        flex-direction: column;
        gap: 0;
    }
    .filter-sidebar {
        width: 100%;
        min-width: 0;
        position: static;
        border: none;
        background: transparent;
        border-radius: 0;
        padding: 0;
        flex-direction: row;
        flex-wrap: nowrap;
        overflow-x: auto;
        scrollbar-width: none;
        -ms-overflow-style: none;
        gap: 6px;
        margin-bottom: 12px;
    }
    .filter-sidebar::-webkit-scrollbar {
        display: none;
    }
    .sidebar-section-label {
        display: none;
    }
    .filter-sidebar .sub-tab {
        width: auto;
        flex-shrink: 0;
        padding: 7px 12px;
        border-radius: 99px;
        justify-content: center;
        font-size: 11px;
    }

    /* Products */
    .products-area .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
        padding-bottom: 130px;
    }
    .product-image {
        height: 112px;
    }
    .product-image img {
        max-height: 78px;
    }
    .product-details {
        padding: 10px 11px 11px;
        gap: 6px;
    }
    .product-name {
        font-size: 11px;
    }
    .price-tag {
        font-size: 16px;
    }
    .btn-add {
        width: 32px;
        height: 32px;
        font-size: 15px;
    }

    /* Cart */
    .cart-drawer,
    .cart-drawer.glass-panel {
        max-width: 100% !important;
        border-left: none !important;
        border-top: 1px solid var(--border) !important;
    }
    .cart-header {
        padding: 13px 16px;
    }
    .cart-body {
        padding: 12px 16px;
    }
    .cart-footer {
        padding: 12px 16px 18px;
    }
    .cart-item {
        padding: 8px 10px;
        gap: 8px;
    }
    .cart-item img {
        width: 34px;
        height: 34px;
    }

    /* Payment */
    .pay-method {
        padding: 7px 9px;
        font-size: 11px;
    }

    /* Modal */
    .modal-box {
        padding: 16px;
        border-radius: var(--r-lg);
        max-height: 88dvh;
    }

    /* Toast */
    #toast-container {
        right: 8px;
        left: 8px;
        bottom: 14px;
    }
    .toast {
        min-width: unset;
        max-width: 100%;
    }

    /* First-buy banner */
    .first-buy-banner {
        padding: 10px 14px;
    }
    .banner-icon {
        font-size: 24px;
    }
    .banner-text h3 {
        font-size: 12px;
    }
    .banner-text p {
        font-size: 11px;
    }
}

/* ── Very small (≤ 380px — iPhone SE) ── */
@media (max-width: 380px) {
    .hero-title {
        font-size: 22px;
    }
    .products-area .products-grid {
        gap: 6px;
    }
    .product-image {
        height: 96px;
    }
    .product-image img {
        max-height: 66px;
    }
    .product-name {
        font-size: 10px;
    }
    .price-tag {
        font-size: 14px;
    }
    .btn-add {
        width: 28px;
        height: 28px;
        font-size: 13px;
    }
    .game-tab {
        min-width: 86px;
        font-size: 10px;
    }
    .total-price {
        font-size: 22px;
    }
    .hero-stats {
        gap: 12px;
    }
    .stat-value {
        font-size: 18px;
    }
}
