/* =========================================================================
   CSRP Store — premium native-feel design system
   =========================================================================
   Design language: dark, gold accents, cinematic photography, generous
   whitespace, smooth motion. Feels like a real premium checkout.
*/

:root {
    --bg:        #0a0b0f;
    --bg-2:      #0e1016;
    --surface:   #14171f;
    --surface-2: #1c1f2a;
    --surface-3: #262a37;
    --border:    #262a37;
    --border-2:  #363b4a;
    --text:      #f1f3f8;
    --text-dim:  #b6bccc;
    --muted:     #7c8399;
    --gold:      #f2b33d;
    --gold-2:    #ffcc63;
    --gold-soft: rgba(242, 179, 61, 0.12);
    --gold-glow: rgba(242, 179, 61, 0.28);
    --silver:    #d8dee6;
    --bronze:    #e08344;
    --ok:        #22c55e;
    --ok-soft:   rgba(34, 197, 94, 0.14);
    --bad:       #ef4444;
    --bad-soft:  rgba(239, 68, 68, 0.14);
    --info:      #60a5fa;
    --info-soft: rgba(96, 165, 250, 0.14);
    --discord:   #5865f2;

    --shadow-sm: 0 1px 2px rgba(0,0,0,.35);
    --shadow-md: 0 4px 12px rgba(0,0,0,.35), 0 1px 2px rgba(0,0,0,.5);
    --shadow-lg: 0 12px 32px rgba(0,0,0,.45), 0 4px 12px rgba(0,0,0,.35);
    --shadow-gold: 0 8px 32px var(--gold-glow);

    --r-sm: 8px;
    --r-md: 12px;
    --r-lg: 18px;
    --r-xl: 24px;

    --ease: cubic-bezier(.22, 1.2, .36, 1);
    --ease-out: cubic-bezier(.16, 1, .3, 1);
}

* { box-sizing: border-box; min-width: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; }
html, body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 15px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
    max-width: 100vw;
}
img { max-width: 100%; display: block; }
a { color: var(--gold); text-decoration: none; transition: color .18s var(--ease); }
a:hover { color: var(--gold-2); }
p { margin: 0 0 14px; color: var(--text-dim); }
h1, h2, h3, h4 { color: var(--text); margin: 0 0 12px; letter-spacing: -0.02em; font-weight: 700; }
h1 { font-size: clamp(32px, 5vw, 54px); line-height: 1.08; letter-spacing: -0.03em; }
h2 { font-size: clamp(22px, 3vw, 32px); line-height: 1.15; }
h3 { font-size: 18px; }
code, .mono { font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 0.92em; background: var(--surface-2); padding: 2px 6px; border-radius: 4px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.accent { color: var(--gold); }

/* ==================== PAGE ENTRANCE ANIMATION ==================== */
main.wrap { animation: page-in .5s var(--ease-out); }
@keyframes page-in {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: none; }
}

/* ==================== TOP BAR ==================== */
.topbar {
    position: sticky;
    top: 0;
    z-index: 40;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 24px;
    background: rgba(14, 16, 22, 0.9);
    backdrop-filter: saturate(1.4) blur(12px);
    -webkit-backdrop-filter: saturate(1.4) blur(12px);
    border-bottom: 1px solid var(--border);
    gap: 10px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; text-decoration: none; flex-shrink: 0; }
.brand:hover { text-decoration: none; }
.brand-logo {
    width: 34px; height: 34px;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    flex-shrink: 0;
}
.brand-word { color: var(--text); font-size: 16px; letter-spacing: -0.01em; white-space: nowrap; }
.brand-word .accent { color: var(--gold); font-weight: 800; }

/* Hamburger toggle — hidden on desktop, shown on mobile */
.nav-toggle {
    display: none;
    background: var(--surface-2);
    border: 1px solid var(--border);
    color: var(--text);
    border-radius: 8px;
    padding: 8px;
    cursor: pointer;
}
.nav-toggle svg { display: block; }

.topnav { display: flex; align-items: center; gap: 4px; font-size: 14px; flex-wrap: nowrap; }
.topnav a.navlink {
    color: var(--text-dim);
    padding: 8px 14px;
    border-radius: var(--r-sm);
    transition: color .15s, background .15s;
    font-weight: 500;
}
.topnav a.navlink:hover { color: var(--text); background: var(--surface-2); }
.topnav a.navlink.active { color: var(--gold); background: var(--gold-soft); }
.topnav .cart-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: var(--surface-2);
    border-radius: var(--r-sm);
    color: var(--text);
    font-weight: 500;
    transition: transform .18s var(--ease), background .18s;
}
.topnav .cart-link:hover { background: var(--surface-3); transform: translateY(-1px); }
.cart-badge {
    display: inline-flex;
    align-items: center; justify-content: center;
    min-width: 20px; height: 20px;
    padding: 0 6px;
    background: var(--gold);
    color: #000;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
    animation: badge-pop .4s var(--ease);
}
@keyframes badge-pop {
    0% { transform: scale(0.3); opacity: 0; }
    60% { transform: scale(1.2); }
    100% { transform: scale(1); opacity: 1; }
}
.me { display: flex; align-items: center; gap: 10px; padding-left: 14px; margin-left: 6px; border-left: 1px solid var(--border); flex-shrink: 0; }
.me img { border-radius: 50%; box-shadow: var(--shadow-sm); }
.me-name { font-size: 14px; font-weight: 500; white-space: nowrap; max-width: 120px; overflow: hidden; text-overflow: ellipsis; }
.btn-tiny {
    padding: 5px 12px;
    border-radius: 6px;
    border: 1px solid var(--border);
    color: var(--text-dim);
    font-size: 12px;
    background: transparent;
    transition: color .15s, border-color .15s;
}
.btn-tiny:hover { color: var(--text); border-color: var(--border-2); text-decoration: none; }

/* ==================== BUTTONS ==================== */
.btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 22px;
    border: 1px solid var(--border-2);
    border-radius: var(--r-md);
    background: var(--surface-2);
    color: var(--text);
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: transform .16s var(--ease), background .18s, border-color .18s, box-shadow .18s;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
}
.btn:hover { background: var(--surface-3); border-color: var(--gold); transform: translateY(-2px); text-decoration: none; box-shadow: var(--shadow-md); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.btn-primary {
    background: linear-gradient(180deg, var(--gold-2) 0%, var(--gold) 100%);
    color: #0a0b0f;
    border-color: var(--gold);
    box-shadow: var(--shadow-md), 0 0 0 0 var(--gold-glow);
}
.btn-primary:hover {
    background: linear-gradient(180deg, #ffd784 0%, var(--gold-2) 100%);
    box-shadow: var(--shadow-lg), 0 0 24px var(--gold-glow);
}
.btn-lg { padding: 16px 32px; font-size: 16px; border-radius: 14px; }
.btn-sm { padding: 8px 16px; font-size: 13px; border-radius: 8px; }
.btn.discord {
    background: var(--discord);
    border-color: var(--discord);
    color: #fff;
}
.btn.discord:hover { background: #4752c4; border-color: #4752c4; box-shadow: 0 8px 24px rgba(88,101,242,0.3); }
.btn-ghost { background: transparent; border-color: var(--border); }
.btn-danger { background: var(--bad-soft); border-color: var(--bad); color: var(--bad); }
.btn-danger:hover { background: var(--bad); color: #fff; }

/* Loading spinner */
.btn.loading { color: transparent; pointer-events: none; }
.btn.loading::after {
    content: '';
    position: absolute;
    width: 16px; height: 16px;
    border: 2px solid rgba(255,255,255,.4);
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ==================== LAYOUT ==================== */
.wrap { max-width: 1240px; margin: 0 auto; padding: 32px 28px 100px; overflow-x: hidden; }
@media (max-width: 820px) { .wrap { padding: 20px 16px 88px; /* extra bottom for bottom-nav */ } }

/* ==================== MOBILE BOTTOM NAV ==================== */
.bottom-nav {
    display: none;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
    background: rgba(14, 16, 22, 0.95);
    backdrop-filter: saturate(1.4) blur(16px);
    -webkit-backdrop-filter: saturate(1.4) blur(16px);
    border-top: 1px solid var(--border);
    padding: 8px 0 calc(8px + env(safe-area-inset-bottom));
    justify-content: space-around;
}
.bottom-nav a {
    display: flex; flex-direction: column; align-items: center; gap: 3px;
    padding: 6px 12px; color: var(--muted); font-size: 10px; font-weight: 600;
    letter-spacing: 0.03em; text-decoration: none; min-width: 56px;
    position: relative; transition: color .18s;
}
.bottom-nav a svg { width: 22px; height: 22px; transition: transform .18s var(--ease); }
.bottom-nav a.active { color: var(--gold); }
.bottom-nav a.active svg { transform: translateY(-2px); }
.bottom-nav a.active::before {
    content: ''; position: absolute; top: -8px; left: 50%; transform: translateX(-50%);
    width: 24px; height: 3px; background: var(--gold); border-radius: 0 0 3px 3px;
}
.bottom-nav a .badge {
    position: absolute; top: 0; right: 8px;
    min-width: 16px; height: 16px; padding: 0 4px;
    background: var(--gold); color: #000;
    border-radius: 999px; font-size: 10px; font-weight: 800;
    display: flex; align-items: center; justify-content: center;
    line-height: 1;
}
@media (max-width: 820px) {
    .bottom-nav { display: flex; }
    .topnav .navlink, .topnav .cart-link { display: none; }  /* moves into bottom nav */
    .topnav { position: static; transform: none; background: none; padding: 0; border: none; max-height: none; overflow: visible; flex-direction: row; }
    .topnav.open { transform: none; }
    .nav-toggle { display: none; }
    .me { border: none; padding-left: 0; margin-left: 0; }
    .me-name { display: none; }
}

/* ==================== CATEGORY CHIPS STRIP ==================== */
.category-strip {
    display: flex; gap: 10px; overflow-x: auto;
    padding: 12px 0 20px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.category-strip::-webkit-scrollbar { display: none; }
.chip {
    flex-shrink: 0;
    padding: 10px 18px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--text-dim);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    scroll-snap-align: start;
    transition: background .18s, color .18s, border-color .18s;
    cursor: pointer;
    display: inline-flex; align-items: center; gap: 6px;
}
.chip:hover { color: var(--text); border-color: var(--border-2); text-decoration: none; }
.chip.active { background: var(--gold); color: #0a0b0f; border-color: var(--gold); }

/* ==================== SEARCH BAR ==================== */
.search-bar {
    position: relative;
    max-width: 480px;
    margin: 0 auto 12px;
}
.search-bar input {
    width: 100%;
    padding: 12px 16px 12px 44px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--text);
    font-family: inherit;
    font-size: 14px;
    transition: border-color .2s, box-shadow .2s;
}
.search-bar input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-glow); }
.search-bar svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }

/* ==================== BANNER CAROUSEL ==================== */
.carousel {
    position: relative;
    margin: 0 -28px 32px;
    overflow: hidden;
    border-radius: 0;
}
@media (min-width: 821px) { .carousel { margin: 0 0 32px; border-radius: 20px; } }
.carousel-track {
    display: flex;
    transition: transform .5s var(--ease);
    will-change: transform;
}
.carousel-slide {
    flex: 0 0 100%;
    min-height: 340px;
    position: relative;
    display: flex; align-items: center; justify-content: center;
    padding: 60px 32px;
    text-align: center;
    color: var(--text);
    overflow: hidden;
}
.carousel-slide.slide-hero {
    background: linear-gradient(135deg, rgba(10,11,15,0.65), rgba(10,11,15,0.85)), url('/assets/hero.webp') center/cover no-repeat;
}
.carousel-slide.slide-flash {
    background: linear-gradient(135deg, rgba(239,68,68,0.35), rgba(10,11,15,0.9));
}
.carousel-slide.slide-tier { background: linear-gradient(135deg, var(--gold-soft), rgba(10,11,15,0.9)); }
.carousel-slide.slide-community { background: linear-gradient(135deg, rgba(88,101,242,0.35), rgba(10,11,15,0.9)); }
.carousel-slide h2 { font-size: clamp(24px, 4vw, 40px); margin-bottom: 12px; }
.carousel-slide p { font-size: clamp(14px, 2vw, 17px); margin-bottom: 20px; max-width: 540px; }
.carousel-dots {
    position: absolute; bottom: 16px; left: 0; right: 0;
    display: flex; justify-content: center; gap: 8px;
    z-index: 2;
}
.carousel-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: rgba(255,255,255,0.3);
    border: none; padding: 0; cursor: pointer;
    transition: background .18s, width .18s;
}
.carousel-dot.active { background: var(--gold); width: 24px; border-radius: 4px; }
.countdown {
    display: inline-flex; gap: 8px;
    padding: 6px 14px;
    background: rgba(0,0,0,0.4);
    border: 1px solid var(--bad);
    border-radius: 999px;
    color: var(--bad);
    font-weight: 700;
    font-family: 'JetBrains Mono', monospace;
    font-size: 14px;
    margin-bottom: 12px;
    animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.03); } }

/* ==================== PRODUCT GRID (Jumia-style) ==================== */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
    margin: 24px 0 40px;
}
@media (max-width: 640px) {
    .product-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
}
.product-card {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
    display: flex; flex-direction: column;
    transition: transform .2s var(--ease), border-color .2s, box-shadow .2s;
    animation: v2-fade-in .4s var(--ease-out);
}
@keyframes v2-fade-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.product-card:hover { transform: translateY(-3px); border-color: var(--gold); box-shadow: var(--shadow-md); }
.product-image {
    position: relative;
    aspect-ratio: 1 / 1;
    background: linear-gradient(135deg, var(--surface-2), var(--surface));
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
}
.product-image svg, .product-image img { width: 60%; height: 60%; object-fit: contain; }
.product-image img { width: 100%; height: 100%; object-fit: cover; }
.product-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.product-name { font-size: 13px; font-weight: 600; color: var(--text); margin: 0; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product-price-row { display: flex; align-items: baseline; gap: 8px; margin-top: auto; padding-top: 6px; }
.product-price { color: var(--gold); font-weight: 800; font-size: 18px; letter-spacing: -0.01em; }
.product-price-old { color: var(--muted); font-size: 13px; text-decoration: line-through; }
.product-sub { color: var(--muted); font-size: 11px; }
.product-actions { display: flex; gap: 6px; margin-top: 10px; }
.product-actions .btn { flex: 1; padding: 8px 10px; font-size: 12px; }
.product-actions .wish-btn {
    flex: 0 0 auto; padding: 8px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--muted);
    cursor: pointer;
    transition: color .18s, border-color .18s;
}
.product-actions .wish-btn:hover, .product-actions .wish-btn.active { color: var(--bad); border-color: var(--bad); }
.product-actions .wish-btn.active svg { fill: currentColor; }

/* Deal badge overlays on product cards */
.badge-stack {
    position: absolute; top: 8px; left: 8px;
    display: flex; flex-direction: column; gap: 4px;
    z-index: 2;
}
.badge {
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 10px; font-weight: 800; letter-spacing: 0.06em;
    text-transform: uppercase;
    box-shadow: var(--shadow-sm);
}
.badge-sale { background: var(--bad); color: #fff; }
.badge-flash { background: linear-gradient(90deg, #ff4d4d, #f2b33d); color: #fff; animation: pulse 2s ease-in-out infinite; }
.badge-best { background: var(--gold); color: #0a0b0f; }
.badge-new { background: var(--info); color: #fff; }
.badge-limited { background: #a855f7; color: #fff; }

/* Wishlist heart in top-right of card */
.card-wish {
    position: absolute; top: 8px; right: 8px; z-index: 3;
    width: 32px; height: 32px;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(8px);
    border: none;
    border-radius: 50%;
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    transition: transform .18s var(--ease), background .18s;
}
.card-wish:hover { transform: scale(1.1); background: rgba(0,0,0,0.7); }
.card-wish.active { color: var(--bad); }
.card-wish.active svg { fill: currentColor; }

/* ==================== FLASH SALE STRIP ==================== */
.flash-strip {
    display: flex; align-items: center; gap: 16px;
    padding: 14px 18px;
    background: linear-gradient(90deg, rgba(239,68,68,0.15), var(--surface));
    border: 1px solid var(--bad);
    border-radius: var(--r-md);
    margin: 20px 0;
}
.flash-strip-icon {
    flex-shrink: 0;
    width: 40px; height: 40px;
    background: var(--bad);
    color: #fff;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 20px;
    animation: pulse 2s ease-in-out infinite;
}
.flash-strip-info { flex: 1; min-width: 0; }
.flash-strip-info strong { display: block; color: var(--bad); font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; }
.flash-strip-info span { font-size: 13px; color: var(--text-dim); }
.flash-strip .countdown { margin: 0; flex-shrink: 0; }

/* Mobile nav — hamburger + drawer */
@media (max-width: 820px) {
    .topbar { padding: 12px 16px; }
    .brand-word { font-size: 15px; }
    .nav-toggle { display: inline-flex; }
    .topnav {
        position: fixed;
        top: 62px; left: 0; right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
        padding: 16px;
        background: rgba(14, 16, 22, 0.98);
        backdrop-filter: saturate(1.4) blur(16px);
        -webkit-backdrop-filter: saturate(1.4) blur(16px);
        border-bottom: 1px solid var(--border);
        transform: translateY(-120%);
        transition: transform .3s var(--ease);
        max-height: calc(100vh - 62px);
        overflow-y: auto;
    }
    .topnav.open { transform: translateY(0); }
    .topnav .navlink, .topnav .cart-link { width: 100%; padding: 14px 16px; border-radius: 10px; justify-content: flex-start; }
    .topnav .cart-link { background: var(--surface-2); }
    .me { padding-left: 0; margin-left: 0; padding-top: 12px; border-left: none; border-top: 1px solid var(--border); flex-wrap: wrap; width: 100%; }
    .me-name { max-width: none; flex: 1; }
    .btn-tiny { margin-left: auto; }
}

.site-foot {
    padding: 40px 28px 36px;
    text-align: center;
    color: var(--muted);
    font-size: 13px;
    border-top: 1px solid var(--border);
    background: var(--bg-2);
}
.site-foot .dot { margin: 0 10px; opacity: .5; }
.site-foot .studios { color: var(--gold); font-weight: 600; }

/* ==================== HERO — cinematic ==================== */
.hero {
    position: relative;
    margin: -40px -28px 48px;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 100px 28px;
    overflow: hidden;
    border-radius: 0 0 var(--r-xl) var(--r-xl);
}
@media (max-width: 640px) {
    .hero { margin: -24px -16px 32px; min-height: 420px; padding: 60px 20px; border-radius: 0 0 var(--r-lg) var(--r-lg); }
    .hero h1 { font-size: clamp(28px, 8vw, 44px); }
}
.hero-bg {
    position: absolute; inset: 0;
    background: url('/assets/hero.webp') center/cover no-repeat;
    animation: hero-zoom 20s ease-in-out infinite alternate;
}
@keyframes hero-zoom {
    from { transform: scale(1.02); }
    to   { transform: scale(1.1); }
}
.hero-overlay {
    position: absolute; inset: 0;
    background:
        radial-gradient(circle at 20% 30%, rgba(242, 179, 61, 0.18), transparent 55%),
        linear-gradient(180deg, rgba(10,11,15,0.55) 0%, rgba(10,11,15,0.85) 60%, var(--bg) 100%);
}
.hero-content { position: relative; z-index: 2; max-width: 720px; }
.hero-badge {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 6px 14px;
    background: var(--gold-soft);
    color: var(--gold);
    border: 1px solid var(--gold);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 20px;
    animation: fade-up .8s var(--ease-out);
}
.hero h1 {
    font-size: clamp(38px, 7vw, 72px);
    line-height: 1.03;
    margin-bottom: 20px;
    animation: fade-up .8s .1s var(--ease-out) both;
    text-shadow: 0 2px 40px rgba(0,0,0,0.5);
}
.hero h1 .highlight {
    background: linear-gradient(135deg, var(--gold-2), var(--gold));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.hero-sub {
    font-size: clamp(16px, 2vw, 20px);
    color: var(--text-dim);
    margin: 0 auto 36px;
    max-width: 580px;
    animation: fade-up .8s .2s var(--ease-out) both;
}
.hero-cta {
    display: flex; justify-content: center; gap: 14px; flex-wrap: wrap;
    animation: fade-up .8s .3s var(--ease-out) both;
}
@keyframes fade-up {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: none; }
}

/* ==================== SECTIONS ==================== */
.section { margin: 80px 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.section-head h2 { margin: 0; }
.section-head .muted { font-size: 15px; }

/* ==================== VIP TIER CARDS — the star of the show ==================== */
.vip-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; margin: 32px 0; }
.vip-card {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    overflow: hidden;
    transition: transform .25s var(--ease), border-color .25s, box-shadow .25s;
    display: flex; flex-direction: column;
}
.vip-card:hover { transform: translateY(-6px); border-color: var(--border-2); box-shadow: var(--shadow-lg); }
.vip-card.featured { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold), var(--shadow-gold); }
.vip-card.featured::before {
    content: 'POPULAR';
    position: absolute; top: 14px; right: 14px;
    background: var(--gold); color: #0a0b0f;
    padding: 4px 12px;
    font-size: 10px; font-weight: 800; letter-spacing: 0.1em;
    border-radius: 999px;
    z-index: 2;
    box-shadow: 0 4px 12px var(--gold-glow);
}
.vip-header {
    padding: 32px 24px 20px;
    text-align: center;
    background: linear-gradient(180deg, transparent, rgba(0,0,0,0.2));
    position: relative;
    overflow: hidden;
}
.vip-icon { width: 72px; height: 72px; margin: 0 auto 16px; filter: drop-shadow(0 4px 12px rgba(0,0,0,0.4)); }
.vip-header h2 { font-size: 26px; margin-bottom: 4px; }
.vip-header .tagline { color: var(--muted); font-size: 13px; text-transform: uppercase; letter-spacing: 0.1em; }
.vip-header.bronze h2 { color: var(--bronze); }
.vip-header.silver h2 { color: var(--silver); }
.vip-header.gold h2 { color: var(--gold); }
.vip-perks { padding: 20px 24px; list-style: none; margin: 0; flex: 1; }
.vip-perks li { display: flex; align-items: center; gap: 10px; padding: 8px 0; color: var(--text-dim); font-size: 14px; }
.vip-perks li::before {
    content: '✓';
    width: 22px; height: 22px;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--gold-soft); color: var(--gold);
    border-radius: 50%;
    font-size: 12px; font-weight: 800;
    flex-shrink: 0;
}
.vip-lengths { padding: 8px 20px 20px; display: flex; flex-direction: column; gap: 10px; }
.vip-length-btn {
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 18px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    cursor: pointer;
    transition: transform .16s var(--ease), border-color .16s, background .16s;
    font-family: inherit;
    color: var(--text);
    text-align: left;
    width: 100%;
}
.vip-length-btn:hover { border-color: var(--gold); background: var(--surface-3); transform: translateX(2px); }
.vip-length-info { display: flex; flex-direction: column; gap: 2px; }
.vip-length-days { font-weight: 700; }
.vip-length-ngn { color: var(--muted); font-size: 12px; }
.vip-length-price { color: var(--gold); font-weight: 800; font-size: 18px; }

/* ==================== CASH TOP-UP GRID ==================== */
.cash-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin: 24px 0 40px; }
.cash-card {
    padding: 22px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    transition: transform .2s var(--ease), border-color .2s, box-shadow .2s;
    display: flex; flex-direction: column; gap: 10px;
    text-align: center;
}
.cash-card:hover { transform: translateY(-3px); border-color: var(--gold); box-shadow: var(--shadow-md); }
.cash-card .cash-amount { font-size: 26px; font-weight: 800; color: var(--gold); letter-spacing: -0.02em; }
.cash-card .cash-name { font-size: 14px; font-weight: 600; color: var(--text); }
.cash-card .cash-price { color: var(--muted); font-size: 13px; }
.cash-card form { margin: 0; }
.cash-card button { width: 100%; }

/* ==================== TILE ROW (homepage) ==================== */
.tile-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; margin: 40px 0; }
.tile {
    padding: 28px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    transition: transform .2s var(--ease), border-color .2s;
    position: relative;
    overflow: hidden;
}
.tile:hover { transform: translateY(-4px); border-color: var(--gold); }
.tile-icon { width: 56px; height: 56px; margin-bottom: 16px; }
.tile h3 { font-size: 20px; margin-bottom: 8px; }
.tile p { margin: 0; font-size: 14px; }

/* ==================== TOAST STACK ==================== */
.toast-stack {
    position: fixed;
    top: 88px; right: 24px; z-index: 60;
    display: flex; flex-direction: column; gap: 10px;
    max-width: 380px;
    pointer-events: none;
}
.toast {
    display: flex; align-items: center; gap: 12px;
    padding: 14px 16px;
    background: var(--surface);
    border: 1px solid var(--border-2);
    border-left-width: 4px;
    border-radius: var(--r-md);
    box-shadow: var(--shadow-lg);
    animation: toast-in .5s var(--ease-out);
    pointer-events: auto;
}
.toast-success { border-left-color: var(--ok); background: linear-gradient(90deg, var(--ok-soft), var(--surface) 60%); }
.toast-error   { border-left-color: var(--bad); background: linear-gradient(90deg, var(--bad-soft), var(--surface) 60%); }
.toast-info    { border-left-color: var(--info); background: linear-gradient(90deg, var(--info-soft), var(--surface) 60%); }
.toast span { flex: 1; }
@keyframes toast-in {
    0% { transform: translateX(120%); opacity: 0; }
    60% { transform: translateX(-8px); opacity: 1; }
    100% { transform: translateX(0); }
}
@media (max-width: 640px) { .toast-stack { top: 72px; right: 12px; left: 12px; max-width: none; } }

/* ==================== CART PAGE ==================== */
.cart-layout { display: grid; grid-template-columns: 1fr 340px; gap: 28px; margin-top: 24px; }
@media (max-width: 900px) { .cart-layout { grid-template-columns: 1fr; } }
.cart-items { display: flex; flex-direction: column; gap: 12px; }
.cart-item {
    display: flex; align-items: center; gap: 16px;
    padding: 18px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    animation: fade-up .4s var(--ease-out);
}
.cart-item-icon { width: 48px; height: 48px; flex-shrink: 0; }
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-info strong { display: block; margin-bottom: 2px; }
.cart-item-info span { color: var(--muted); font-size: 13px; }
.cart-item-price { color: var(--gold); font-weight: 800; font-size: 18px; }
.cart-summary {
    padding: 24px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    height: fit-content;
    position: sticky; top: 96px;
}
.cart-summary h3 { margin: 0 0 20px; padding-bottom: 16px; border-bottom: 1px solid var(--border); }
.cart-line { display: flex; justify-content: space-between; padding: 6px 0; color: var(--text-dim); font-size: 14px; }
.cart-total { display: flex; justify-content: space-between; padding: 16px 0 20px; margin-top: 8px; border-top: 1px solid var(--border); font-size: 20px; font-weight: 800; color: var(--text); }
.cart-total .gold { color: var(--gold); }
.cart-empty { text-align: center; padding: 60px 20px; }
.cart-empty svg { margin-bottom: 20px; opacity: 0.4; }

/* ==================== ORDER SUMMARY / MANUAL PAY ==================== */
.order-summary {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 20px;
    padding: 24px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    margin: 24px 0;
}
.order-summary > div { display: flex; flex-direction: column; gap: 4px; }

.bank-card {
    padding: 24px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    margin-bottom: 16px;
}
.bank-choices { display: flex; flex-direction: column; gap: 12px; margin-top: 16px; }
.bank-choice {
    display: flex; gap: 14px;
    padding: 18px;
    background: var(--surface-2);
    border: 1.5px solid var(--border);
    border-radius: var(--r-md);
    cursor: pointer;
    transition: border-color .18s, background .18s;
}
.bank-choice:has(input:checked) {
    border-color: var(--gold);
    background: var(--gold-soft);
    box-shadow: 0 0 0 1px var(--gold);
}
.bank-choice input { margin-top: 4px; accent-color: var(--gold); width: 18px; height: 18px; }
.bank-choice-body { flex: 1; }
.bank-choice-head { display: flex; justify-content: space-between; margin-bottom: 10px; }
.bank-fields-inline { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
.bank-fields-inline > div { display: flex; flex-direction: column; gap: 2px; }

.upload-card {
    padding: 24px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
}
.upload-card label { display: block; margin: 14px 0 8px; font-size: 14px; font-weight: 500; }
.upload-card input[type=file] {
    width: 100%;
    padding: 14px;
    background: var(--surface-2);
    border: 1.5px dashed var(--border-2);
    border-radius: var(--r-md);
    color: var(--text);
    cursor: pointer;
    transition: border-color .18s, background .18s;
}
.upload-card input[type=file]:hover { border-color: var(--gold); background: var(--surface-3); }

/* ==================== ORDER LIST ==================== */
.orders-table { width: 100%; border-collapse: collapse; margin-top: 12px; background: var(--surface); border-radius: var(--r-md); overflow: hidden; }
.orders-table th, .orders-table td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--border); }
.orders-table th { color: var(--muted); font-weight: 500; font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em; background: var(--surface-2); }
.orders-table tr:last-child td { border-bottom: none; }
.pill { padding: 4px 12px; border-radius: 999px; font-size: 11px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; background: var(--surface-2); color: var(--muted); display: inline-block; }
.pill-pending  { background: var(--info-soft); color: var(--info); }
.pill-paid     { background: var(--ok-soft);   color: var(--ok); }
.pill-rejected { background: var(--bad-soft);  color: var(--bad); }
.pill-refunded { background: var(--bad-soft);  color: var(--bad); }
.pill-cancelled { background: var(--surface-2); color: var(--muted); }

/* ==================== EMPTY STATES ==================== */
.empty-hero { text-align: center; padding: 100px 20px; max-width: 520px; margin: 0 auto; }
.empty-hero h1 { font-size: 36px; margin-bottom: 16px; }
.empty-hero .btn { margin-top: 24px; }

/* ==================== PAGE LOADER ==================== */
.page-loader {
    position: fixed; inset: 0; z-index: 100;
    background: var(--bg);
    display: flex; align-items: center; justify-content: center;
    pointer-events: none;
    opacity: 1;
    transition: opacity .4s var(--ease);
}
.page-loader.gone { opacity: 0; }
.page-loader::before {
    content: '';
    width: 40px; height: 40px;
    border: 3px solid var(--surface-2);
    border-top-color: var(--gold);
    border-radius: 50%;
    animation: spin .8s linear infinite;
}

/* ==================== UTIL ==================== */
.mt-lg { margin-top: 48px; }
