:root {
    --bg-base: #090d16;
    --bg-surface: #111827;
    --bg-card: rgba(20, 28, 46, 0.85);
    --bg-card-hover: rgba(28, 39, 64, 0.95);
    --border-subtle: rgba(255, 255, 255, 0.08);
    --border-gold: rgba(245, 185, 66, 0.4);
    --gold-primary: #f5b942;
    --gold-light: #fde08d;
    --gold-dark: #c98a18;
    --cyan-accent: #38bdf8;
    --emerald: #10b981;
    --danger: #ef4444;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --radius-lg: 18px;
    --radius-md: 12px;
    --radius-sm: 8px;
    --shadow-card: 0 12px 32px -8px rgba(0, 0, 0, 0.6);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

code, pre {
    font-family: 'JetBrains Mono', monospace;
}

.container {
    width: 100%;
    max-width: 1260px;
    margin: 0 auto;
    padding: 0 20px;
}

.gold { color: var(--gold-primary); }

.gradient-gold {
    background: linear-gradient(135deg, #fde08d 0%, #f5b942 50%, #e09112 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Ambient Background Glows */
.bg-glow {
    position: fixed;
    border-radius: 50%;
    filter: blur(130px);
    pointer-events: none;
    z-index: -1;
    opacity: 0.25;
}
.glow-1 { width: 450px; height: 450px; background: #f5b942; top: -120px; left: -100px; }
.glow-2 { width: 420px; height: 420px; background: #0284c7; top: 35%; right: -120px; }
.glow-3 { width: 380px; height: 380px; background: #6366f1; bottom: -100px; left: 25%; }

/* ==========================================
   TOP TICKER BAR
   ========================================== */
.top-ticker {
    background: linear-gradient(90deg, #131c31 0%, #1e293b 50%, #131c31 100%);
    border-bottom: 1px solid var(--border-subtle);
    font-size: 12.5px;
    padding: 8px 0;
}

.ticker-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.ticker-badge {
    background: rgba(245, 185, 66, 0.15);
    color: var(--gold-primary);
    border: 1px solid rgba(245, 185, 66, 0.35);
    padding: 2px 10px;
    border-radius: 99px;
    font-weight: 700;
    font-size: 11px;
    white-space: nowrap;
}

.ticker-text {
    flex: 1;
    color: #cbd5e1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ticker-link {
    color: var(--cyan-accent);
    text-decoration: none;
    font-weight: 600;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 6px;
}
.ticker-link:hover { text-decoration: underline; }

/* ==========================================
   STICKY STORE NAVBAR (BANGJEFF / TAKAPEDIA STYLE)
   ========================================== */
.store-navbar {
    position: sticky;
    top: 0;
    z-index: 90;
    background: rgba(9, 13, 22, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-subtle);
    padding: 14px 0;
}

.navbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text-main);
}

.logo-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #090d16;
    border: 1.5px solid rgba(245, 185, 66, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: 0 4px 18px rgba(245, 185, 66, 0.28);
    flex-shrink: 0;
}

.brand-logo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    display: block;
}

.hero-mobile-dismiss {
    display: none;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.brand-title {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.5px;
    line-height: 1.1;
}
.brand-title span { color: var(--gold-primary); }

.brand-sub {
    font-size: 11px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 4px;
}
.brand-sub i { color: var(--cyan-accent); font-size: 10px; }

/* Search Bar */
.nav-search {
    flex: 1;
    max-width: 360px;
    position: relative;
    display: flex;
    align-items: center;
}

.nav-search .search-icon {
    position: absolute;
    left: 14px;
    color: var(--text-muted);
    font-size: 14px;
}

.nav-search input {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-subtle);
    color: var(--text-main);
    padding: 10px 38px 10px 38px;
    border-radius: 99px;
    font-size: 13.5px;
    outline: none;
    transition: all 0.25s;
}
.nav-search input:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--gold-primary);
    box-shadow: 0 0 0 3px rgba(245, 185, 66, 0.15);
}

.search-kbd {
    position: absolute;
    right: 12px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-muted);
    padding: 1px 7px;
    border-radius: 5px;
    font-size: 11px;
}

/* Nav Links */
.nav-links {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: nowrap;
    flex-shrink: 0;
}

.store-nav-item {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 13.5px;
    font-weight: 600;
    padding: 8px 12px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 7px;
    transition: all 0.2s;
    white-space: nowrap !important;
    flex-shrink: 0;
    line-height: 1.2;
}
.store-nav-item span {
    white-space: nowrap !important;
    display: inline-block;
}
.store-nav-item:hover {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.05);
}
.store-nav-item.active {
    color: #090d16;
    background: linear-gradient(135deg, var(--gold-light), var(--gold-primary));
    font-weight: 700;
    box-shadow: 0 4px 14px rgba(245, 185, 66, 0.25);
}

/* Right Nav Actions */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: nowrap;
    flex-shrink: 0;
}

.btn-search-nav {
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-subtle);
    color: var(--text-main);
    width: 36px;
    height: 36px;
    border-radius: 10px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
}
.btn-search-nav:hover, .btn-search-nav.active {
    background: rgba(245, 185, 66, 0.15);
    border-color: var(--gold-primary);
    color: var(--gold-primary);
}

.btn-lang {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-subtle);
    color: var(--text-main);
    padding: 8px 12px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
}
.btn-lang:hover { border-color: var(--gold-primary); }

.mobile-search-bar {
    background: #0d1322;
    border-bottom: 1px solid var(--border-subtle);
    padding: 8px 12px;
    animation: slideDownNav 0.2s ease-out;
    position: sticky;
    top: 56px;
    z-index: 99;
}
@keyframes slideDownNav {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}
.msb-inner {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}
.msb-icon {
    position: absolute;
    left: 12px;
    color: var(--text-muted);
    font-size: 13px;
}
.msb-inner input {
    width: 100%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(245, 185, 66, 0.3);
    color: var(--text-main);
    padding: 8px 34px 8px 34px;
    border-radius: 99px;
    font-size: 13px;
    outline: none;
    transition: all 0.2s;
}
.msb-inner input:focus {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--gold-primary);
    box-shadow: 0 0 0 2px rgba(245, 185, 66, 0.2);
}
.msb-clear-btn {
    position: absolute;
    right: 10px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    padding: 4px 6px;
}
.msb-clear-btn:hover {
    color: var(--gold-primary);
}

.catalog-search-wrap {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 400px;
}
.csw-icon {
    position: absolute;
    left: 14px;
    color: var(--text-muted);
    font-size: 13px;
}
.catalog-search-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-subtle);
    color: var(--text-main);
    padding: 9px 36px 9px 38px;
    border-radius: 12px;
    font-size: 13px;
    outline: none;
    transition: all 0.2s;
}
.catalog-search-input:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--gold-primary);
    box-shadow: 0 0 0 2px rgba(245, 185, 66, 0.15);
}
.csw-clear-btn {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    padding: 2px 6px;
}
.csw-clear-btn:hover {
    color: var(--gold-primary);
}

.btn-currency {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-subtle);
    color: var(--text-main);
    padding: 8px 12px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
    white-space: nowrap !important;
    flex-shrink: 0;
    line-height: 1.2;
}
.btn-currency span {
    white-space: nowrap !important;
}
.btn-currency:hover { border-color: var(--gold-primary); }

.btn-tg-nav {
    background: rgba(56, 189, 248, 0.14);
    border: 1px solid rgba(56, 189, 248, 0.35);
    color: var(--cyan-accent);
    text-decoration: none;
    padding: 8px 14px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 7px;
    transition: all 0.2s;
}
.btn-tg-nav:hover {
    background: var(--cyan-accent);
    color: #090d16;
}

.btn-admin-entry {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-subtle);
    color: var(--text-muted);
    width: 38px;
    height: 38px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
}
.btn-admin-entry:hover {
    color: var(--gold-primary);
    border-color: var(--gold-primary);
}

/* ==========================================
   HERO BANNER & SHOWCASE
   ========================================== */
.store-main {
    padding-top: 26px;
    padding-bottom: 80px;
}

.hero-banner {
    position: relative;
    background: radial-gradient(circle at 85% 20%, rgba(245, 185, 66, 0.16), transparent 45%),
                linear-gradient(135deg, #111a2e 0%, #0d1322 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 42px 44px;
    display: grid;
    grid-template-columns: 1.35fr 0.9fr;
    gap: 32px;
    align-items: center;
    overflow: hidden;
    box-shadow: var(--shadow-card);
}

.hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.35);
    color: #34d399;
    font-size: 11.5px;
    font-weight: 700;
    padding: 5px 13px;
    border-radius: 99px;
    margin-bottom: 16px;
    letter-spacing: 0.4px;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    animation: pulseGreen 1.8s infinite;
}

@keyframes pulseGreen {
    0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
    100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.hero-content h1 {
    font-size: 36px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 14px;
    letter-spacing: -0.6px;
}

.hero-content p {
    color: var(--text-muted);
    font-size: 15px;
    max-width: 580px;
    margin-bottom: 24px;
}

.hero-cta-group {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 26px;
}

.btn-hero-primary, .btn-primary-gold {
    background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold-primary) 60%, var(--gold-dark) 100%);
    color: #090d16;
    border: none;
    padding: 12px 24px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 6px 20px rgba(245, 185, 66, 0.3);
    transition: all 0.2s;
}
.btn-hero-primary:hover, .btn-primary-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 26px rgba(245, 185, 66, 0.45);
}

.btn-hero-secondary {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-main);
    border: 1px solid var(--border-subtle);
    padding: 12px 22px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
}
.btn-hero-secondary:hover {
    border-color: var(--gold-primary);
    background: rgba(255, 255, 255, 0.1);
}

.hero-trust-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
}
.trust-item {
    font-size: 12.5px;
    font-weight: 600;
    color: #cbd5e1;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Hero Floating Visual Cards */
.hero-visual {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.floating-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    padding: 14px 18px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 14px;
    transition: transform 0.3s;
}
.floating-card:hover { transform: translateX(-6px); border-color: var(--border-gold); }
.fc-2 { margin-left: 24px; }

.fc-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #fff;
    flex-shrink: 0;
}
.brand-capcut { background: linear-gradient(135deg, #00f2fe, #4facfe); color: #051020; }
.brand-chatgpt { background: linear-gradient(135deg, #10b981, #047857); }
.brand-canva { background: linear-gradient(135deg, #8b5cf6, #ec4899); }

.floating-card strong { display: block; font-size: 14.5px; color: #fff; }
.floating-card span { font-size: 12px; color: var(--text-muted); }

/* ==========================================
   LIVE STATS STRIP
   ========================================== */
.live-stats-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin: 24px 0 38px;
}

.strip-item {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    padding: 18px 20px;
    display: flex;
    align-items: center;
    gap: 14px;
}

.strip-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: rgba(245, 185, 66, 0.12);
    color: var(--gold-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 19px;
}

.strip-val {
    display: block;
    font-size: 20px;
    font-weight: 800;
    color: #fff;
}
.strip-label {
    font-size: 12px;
    color: var(--text-muted);
}

/* ==========================================
   CATALOG SECTION & PRODUCT GRID
   ========================================== */
.section-header-bar {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 18px;
    margin-bottom: 24px;
}

.section-title-group h2 {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 4px;
}
.section-title-group p {
    font-size: 13.5px;
    color: var(--text-muted);
}

.category-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.cat-pill {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    color: var(--text-muted);
    padding: 8px 15px;
    border-radius: 99px;
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
}
.cat-pill:hover {
    color: var(--text-main);
    border-color: rgba(255, 255, 255, 0.2);
}
.cat-pill.active {
    background: rgba(245, 185, 66, 0.15);
    color: var(--gold-primary);
    border-color: var(--gold-primary);
}

/* Product Cards Grid (Takapedia / BangJeff Modern Compact Style) */
.store-product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 14px;
}

.prod-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.25s ease;
    cursor: pointer;
    position: relative;
    padding: 0;
}

.prod-card:hover {
    transform: translateY(-4px);
    background: var(--bg-card-hover);
    border-color: var(--border-gold);
    box-shadow: 0 12px 28px -8px rgba(245, 185, 66, 0.22);
}

.prod-card.out-of-stock {
    opacity: 0.72;
}

/* Compact Header (No Bulky Banners, App Icon + Status Pill) */
.prod-top-row {
    padding: 12px 12px 6px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.prod-brand-avatar {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: rgba(9, 13, 22, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: #fff;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.prod-brand-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
}

.prod-badges-col {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.stock-pill {
    padding: 3px 8px;
    border-radius: 99px;
    font-size: 10.5px;
    font-weight: 700;
}
.stock-pill.ready {
    background: rgba(16, 185, 129, 0.18);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.35);
}
.stock-pill.empty {
    background: rgba(239, 68, 68, 0.18);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.35);
}

.ws-pill-tag {
    background: rgba(245, 185, 66, 0.18);
    color: var(--gold-light);
    border: 1px solid rgba(245, 185, 66, 0.35);
    padding: 2px 7px;
    border-radius: 99px;
    font-size: 9.5px;
    font-weight: 700;
}

.prod-body {
    padding: 6px 12px 12px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.prod-meta-top {
    margin-bottom: 8px;
}

.prod-code-label {
    font-size: 10px;
    font-family: 'JetBrains Mono', monospace;
    color: var(--cyan-accent);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.prod-title {
    font-size: 13.5px;
    font-weight: 700;
    color: #fff;
    margin: 2px 0 3px;
    line-height: 1.25;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.prod-desc-short {
    font-size: 11px;
    color: var(--text-muted);
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.prod-footer {
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.prod-price-wrap span {
    display: block;
    font-size: 10px;
    color: var(--text-muted);
}

.prod-price-val {
    font-size: 15px;
    font-weight: 800;
    color: var(--gold-primary);
}

.btn-card-buy {
    background: rgba(245, 185, 66, 0.14);
    color: var(--gold-primary);
    border: 1px solid rgba(245, 185, 66, 0.35);
    padding: 7px 14px;
    border-radius: 9px;
    font-size: 12.5px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.prod-card:hover .btn-card-buy {
    background: var(--gold-primary);
    color: #090d16;
}

/* ==========================================
   GAME CATALOG & DIGIFLAZZ STYLES
   ========================================== */
.game-catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 14px;
}

.game-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 14px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    transition: all 0.25s ease;
    text-align: center;
    position: relative;
}

.game-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-gold);
    background: var(--bg-card-hover);
    box-shadow: 0 10px 24px -6px rgba(245, 185, 66, 0.25);
}

.game-card-img-wrap {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 8px;
    background: rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.08);
}

.game-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.game-card-title {
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.game-card-pub {
    font-size: 10.5px;
    color: #94a3b8;
    margin-bottom: 6px;
}

.game-card-badge {
    display: inline-block;
    background: rgba(245, 185, 66, 0.14);
    color: var(--gold-primary);
    border: 1px solid rgba(245, 185, 66, 0.3);
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 10.5px;
    font-weight: 700;
}

/* Game Order Modal Elements */
.game-step-block {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 12px;
}

.game-step-title {
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.step-num-pill {
    width: 20px;
    height: 20px;
    border-radius: 99px;
    background: var(--gold-primary);
    color: #090d16;
    font-size: 11px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
}

.game-nominal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 8px;
    max-height: 210px;
    overflow-y: auto;
    padding-right: 2px;
}

.game-nominal-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 8px;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s;
}

.game-nominal-card:hover {
    border-color: rgba(245, 185, 66, 0.4);
    background: rgba(245, 185, 66, 0.05);
}

.game-nominal-card.active {
    border-color: var(--gold-primary);
    background: rgba(245, 185, 66, 0.15);
    box-shadow: 0 0 10px rgba(245, 185, 66, 0.2);
}

.gnc-name {
    font-size: 11.5px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 2px;
}

.gnc-price {
    font-size: 11px;
    color: var(--gold-primary);
    font-weight: 600;
}

.game-payment-methods {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.game-pay-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 10px 12px;
    cursor: pointer;
    transition: all 0.2s;
    display: block;
}

.game-pay-card:hover {
    border-color: rgba(245, 185, 66, 0.4);
}

.game-pay-card.active {
    border-color: var(--gold-primary);
    background: rgba(245, 185, 66, 0.12);
}

.gpm-title {
    font-size: 12.5px;
    font-weight: 700;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 6px;
}

.gpm-sub {
    font-size: 10.5px;
    color: #94a3b8;
    display: block;
    margin-top: 2px;
}

/* Stock Management Item Row */
.stock-item-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    transition: all 0.2s;
}

.stock-item-row:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(245, 185, 66, 0.2);
}

.stock-item-input {
    flex: 1;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    padding: 6px 10px;
    color: #fff;
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
}

.stock-item-input:focus {
    border-color: var(--gold-primary);
    outline: none;
}

/* ==========================================
   STEPS SHOWCASE
   ========================================== */
.steps-showcase {
    margin-top: 48px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.step-box {
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid var(--border-subtle);
    border-radius: 18px;
    padding: 24px;
    position: relative;
}

.step-num {
    font-size: 32px;
    font-weight: 800;
    color: rgba(245, 185, 66, 0.22);
    margin-bottom: 8px;
}

.step-box h4 {
    font-size: 16px;
    margin-bottom: 6px;
}
.step-box p {
    font-size: 13px;
    color: var(--text-muted);
}

/* ==========================================
   CHECKOUT MODAL (STEP BY STEP)
   ========================================== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(4, 7, 14, 0.82);
    backdrop-filter: blur(8px);
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.modal-card {
    background: #111827;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    width: 100%;
    max-width: 520px;
    max-height: 92vh;
    overflow-y: auto;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.75);
}

.checkout-modal-card {
    max-width: 620px;
}

.invoice-modal-card {
    max-width: 560px;
}

.modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    background: rgba(17, 24, 39, 0.95);
    backdrop-filter: blur(12px);
    z-index: 5;
}

.co-prod-head {
    display: flex;
    align-items: center;
    gap: 14px;
}

.co-prod-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: #fff;
}

.co-code-badge {
    font-size: 11px;
    font-family: 'JetBrains Mono', monospace;
    color: var(--cyan-accent);
    background: rgba(56, 189, 248, 0.12);
    padding: 2px 8px;
    border-radius: 6px;
}

.close-btn {
    background: rgba(255, 255, 255, 0.06);
    border: none;
    color: var(--text-muted);
    width: 34px;
    height: 34px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
}
.close-btn:hover { color: #fff; background: rgba(239, 68, 68, 0.25); }

.modal-body {
    padding: 22px 24px;
}

.co-info-box {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-subtle);
    border-radius: 14px;
    padding: 14px 16px;
    margin-bottom: 16px;
}

.co-stock-row {
    display: flex;
    gap: 18px;
    font-size: 13px;
    color: #cbd5e1;
    margin-bottom: 8px;
}
.co-stock-row strong { color: var(--gold-primary); }

.co-desc {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.co-terms-details summary {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--cyan-accent);
    cursor: pointer;
    user-select: none;
}
.co-terms-details pre {
    margin-top: 10px;
    white-space: pre-wrap;
    font-size: 12px;
    color: #cbd5e1;
    background: rgba(0, 0, 0, 0.35);
    padding: 12px;
    border-radius: 8px;
    max-height: 180px;
    overflow-y: auto;
}

.co-step-card {
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid var(--border-subtle);
    border-radius: 14px;
    padding: 16px;
    margin-bottom: 14px;
}

.co-step-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

.step-badge {
    width: 26px;
    height: 26px;
    border-radius: 8px;
    background: var(--gold-primary);
    color: #090d16;
    font-weight: 800;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.co-step-header h4 {
    font-size: 14.5px;
    font-weight: 700;
}

.co-qty-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.qty-control {
    display: flex;
    align-items: center;
    gap: 6px;
}
.qty-control button {
    width: 42px;
    height: 42px;
    border-radius: 11px;
    border: 1px solid var(--border-subtle);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    cursor: pointer;
    font-size: 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}
.qty-control button:hover { border-color: var(--gold-primary); color: var(--gold-primary); transform: scale(1.05); }
.qty-control input {
    width: 72px;
    height: 42px;
    text-align: center;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border-subtle);
    border-radius: 11px;
    color: #fff;
    font-weight: 800;
    font-size: 16px;
    margin: 0;
}

.co-wholesale-box {
    margin-top: 12px;
    padding: 10px 12px;
    background: rgba(245, 185, 66, 0.08);
    border: 1px dashed rgba(245, 185, 66, 0.35);
    border-radius: 10px;
}
.ws-title {
    font-size: 12px;
    color: var(--gold-light);
    margin-bottom: 8px;
    font-weight: 600;
}
.ws-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.ws-tier-btn {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(245, 185, 66, 0.35);
    color: #fff;
    padding: 5px 10px;
    border-radius: 8px;
    font-size: 12px;
    cursor: pointer;
}
.ws-tier-btn:hover { background: var(--gold-primary); color: #090d16; font-weight: 700; }

.opt-tag { font-size: 11px; color: var(--text-muted); font-weight: 400; }
.input-hint { display: block; font-size: 11.5px; color: var(--text-muted); margin-top: 5px; }

.coupon-row {
    display: flex;
    gap: 10px;
}
.coupon-row input { margin: 0; flex: 1; }
.btn-apply-coupon {
    background: rgba(56, 189, 248, 0.15);
    border: 1px solid rgba(56, 189, 248, 0.4);
    color: var(--cyan-accent);
    padding: 0 18px;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
}
.btn-apply-coupon:hover { background: var(--cyan-accent); color: #090d16; }
.coupon-feedback { font-size: 12px; margin-top: 6px; }

.payment-methods-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.pay-method-card {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    padding: 12px 14px;
    cursor: pointer;
    transition: all 0.2s;
}
.pay-method-card.active {
    border-color: var(--gold-primary);
    background: rgba(245, 185, 66, 0.1);
    box-shadow: 0 0 0 2px rgba(245, 185, 66, 0.2);
}

.pm-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
}
.pm-name { font-size: 13px; font-weight: 700; }
.pm-badge {
    font-size: 10px;
    font-weight: 800;
    background: rgba(16, 185, 129, 0.2);
    color: #34d399;
    padding: 2px 7px;
    border-radius: 99px;
}
.pm-badge.crypto { background: rgba(245, 185, 66, 0.2); color: var(--gold-primary); }
.pm-price { font-size: 16px; font-weight: 800; color: var(--gold-primary); }
.pm-sub { font-size: 11px; color: var(--text-muted); margin-top: 2px; }

.co-footer-summary {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
}

.co-total-info span { font-size: 12px; color: var(--text-muted); }
.co-total-info h3 { font-size: 24px; font-weight: 800; color: var(--gold-primary); }

.co-cta-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.btn-co-bot {
    background: rgba(56, 189, 248, 0.14);
    border: 1px solid rgba(56, 189, 248, 0.4);
    color: var(--cyan-accent);
    text-decoration: none;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 7px;
}
.btn-co-bot:hover { background: var(--cyan-accent); color: #090d16; }

/* ==========================================
   INVOICE & ACCOUNT DELIVERY STYLES
   ========================================== */
.inv-status-banner {
    padding: 14px 16px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    font-weight: 700;
}
.inv-status-banner.pending {
    background: rgba(245, 185, 66, 0.14);
    border: 1px solid rgba(245, 185, 66, 0.4);
    color: var(--gold-light);
}
.inv-status-banner.paid {
    background: rgba(16, 185, 129, 0.16);
    border: 1px solid rgba(16, 185, 129, 0.45);
    color: #34d399;
}
.inv-status-banner.refunded {
    background: rgba(56, 189, 248, 0.16);
    border: 1px solid rgba(56, 189, 248, 0.45);
    color: #38bdf8;
}

.inv-meta-grid {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 16px;
}
.inv-row {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    font-size: 13.5px;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.06);
}
.inv-row:last-child { border-bottom: none; }
.inv-row span { color: var(--text-muted); }

.qr-container-box {
    text-align: center;
    background: #ffffff;
    color: #090d16;
    padding: 20px;
    border-radius: 16px;
    max-width: 300px;
    margin: 0 auto 16px;
}
.qr-container-box img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.delivered-accounts-box {
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.4);
    border-radius: 14px;
    padding: 16px;
    margin-bottom: 16px;
}
.delivered-accounts-box h4 {
    color: #34d399;
    margin-bottom: 10px;
    font-size: 15px;
}
.acc-textarea {
    width: 100%;
    background: rgba(0, 0, 0, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fde08d;
    font-family: 'JetBrains Mono', monospace;
    padding: 12px;
    border-radius: 10px;
    font-size: 13px;
    margin-bottom: 10px;
}

/* ==========================================
   TRACK ORDER, LEADERBOARD & REVIEWS PAGES
   ========================================== */
.track-container {
    max-width: 720px;
    margin: 20px auto;
}
.track-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 22px;
    padding: 34px;
}
.track-header {
    text-align: center;
    margin-bottom: 24px;
}
.track-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: rgba(245, 185, 66, 0.15);
    color: var(--gold-primary);
    font-size: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px;
}
.track-form {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
}
.track-input-wrap {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
}
.track-input-wrap i {
    position: absolute;
    left: 16px;
    color: var(--text-muted);
}
.track-input-wrap input {
    width: 100%;
    padding: 13px 16px 13px 44px;
    margin: 0;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid var(--border-subtle);
    color: #fff;
}

/* Guest / Device Order History Styles */
.guest-orders-box {
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid var(--border-subtle);
    border-radius: 18px;
    padding: 20px 22px;
}
.gob-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
}
.guest-pill-tag {
    font-size: 11px;
    font-weight: 700;
    color: var(--gold-primary);
    background: rgba(245, 185, 66, 0.14);
    border: 1px solid rgba(245, 185, 66, 0.35);
    padding: 2px 8px;
    border-radius: 99px;
}
.guest-order-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    background: rgba(9, 13, 22, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    margin-bottom: 10px;
    gap: 12px;
    transition: all 0.2s;
}
.guest-order-item:hover {
    border-color: rgba(245, 185, 66, 0.3);
    background: rgba(245, 185, 66, 0.04);
}
.goi-main {
    flex: 1;
    min-width: 0;
}
.goi-top {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}
.goi-id code {
    font-size: 11px;
    color: var(--cyan-accent);
}
.goi-status {
    font-size: 10px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 6px;
    letter-spacing: 0.3px;
}
.goi-prod {
    font-size: 13.5px;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.goi-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 4px;
    font-size: 12px;
}
.goi-time {
    color: #64748b;
    font-size: 11px;
}
.goi-action {
    flex-shrink: 0;
}
.btn-paid-access {
    background: rgba(16, 185, 129, 0.15) !important;
    border-color: rgba(16, 185, 129, 0.45) !important;
    color: #10b981 !important;
    font-weight: 700 !important;
}
.btn-paid-access:hover {
    background: #10b981 !important;
    color: #090d16 !important;
}

/* Leaderboard */
.leaderboard-wrapper {
    max-width: 780px;
    margin: 10px auto;
}
.section-center-head {
    text-align: center;
    margin-bottom: 28px;
}
.sub-badge {
    display: inline-block;
    background: rgba(245, 185, 66, 0.15);
    color: var(--gold-primary);
    padding: 4px 12px;
    border-radius: 99px;
    font-size: 11px;
    font-weight: 800;
    margin-bottom: 8px;
}
.leaderboard-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.lb-row {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 14px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.lb-row.rank-1 { border-color: rgba(245, 185, 66, 0.6); background: linear-gradient(90deg, rgba(245, 185, 66, 0.14), var(--bg-card)); }
.lb-row.rank-2 { border-color: rgba(148, 163, 184, 0.5); }
.lb-row.rank-3 { border-color: rgba(217, 119, 6, 0.5); }

.lb-left { display: flex; align-items: center; gap: 14px; }
.lb-rank {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
}
.rank-1 .lb-rank { background: var(--gold-primary); color: #090d16; }

/* Reviews Grid */
.reviews-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 24px;
}
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 18px;
}
.review-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    padding: 20px;
}
.rev-top {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}
.rev-stars { color: var(--gold-primary); font-size: 13px; }
.rev-prod {
    font-size: 12px;
    color: var(--cyan-accent);
    font-weight: 700;
    margin-bottom: 6px;
}
.rev-comment { font-size: 13.5px; color: #e2e8f0; }

/* ==========================================
   FOOTER & FLOATING BUTTONS
   ========================================== */
.store-footer {
    background: #060911;
    border-top: 1px solid var(--border-subtle);
    padding: 48px 0 28px;
    margin-top: 60px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.2fr;
    gap: 32px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--border-subtle);
}
.footer-brand p {
    color: var(--text-muted);
    font-size: 13.5px;
    margin-top: 12px;
    max-width: 420px;
}
.footer-links h4 {
    font-size: 14px;
    margin-bottom: 14px;
    color: #fff;
}
.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 8px; }
.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 13.5px;
}
.footer-links a:hover { color: var(--gold-primary); }

.payment-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.payment-badges span {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-subtle);
    padding: 5px 11px;
    border-radius: 8px;
    font-size: 12px;
    color: #cbd5e1;
}
.footer-bottom {
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    font-size: 12.5px;
    color: var(--text-muted);
}

.footer-social-row {
    margin-top: 14px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.footer-social-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 14px;
    border-radius: 10px;
    font-size: 12.5px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}
.footer-social-btn.wa {
    background: rgba(34, 197, 94, 0.12);
    border: 1px solid rgba(34, 197, 94, 0.35);
    color: #4ade80;
}
.footer-social-btn.wa:hover {
    background: #22c55e;
    color: #fff;
    box-shadow: 0 4px 14px rgba(34, 197, 94, 0.4);
}

/* =========================================================
   FLOATING CS CHAT SPEED DIAL WIDGET
   ========================================================= */
.floating-chat-widget {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.floating-chat-btn {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: #ffffff;
    border: none;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(34, 197, 94, 0.45), 0 0 0 2px rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.floating-chat-btn:hover {
    transform: scale(1.08) translateY(-2px);
    box-shadow: 0 12px 28px rgba(34, 197, 94, 0.65), 0 0 0 2px rgba(255, 255, 255, 0.3);
}

.floating-chat-btn .icon-chat {
    font-size: 23px;
    transition: transform 0.3s ease, opacity 0.2s ease;
}

.floating-chat-btn .icon-close {
    font-size: 23px;
    display: none;
    transition: transform 0.3s ease, opacity 0.2s ease;
}

.floating-chat-widget.open .floating-chat-btn {
    background: #1e293b;
    color: #ef4444;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.15);
    transform: rotate(90deg);
}

.floating-chat-widget.open .floating-chat-btn .icon-chat {
    display: none;
}

.floating-chat-widget.open .floating-chat-btn .icon-close {
    display: block;
}

.chat-online-dot {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 14px;
    height: 14px;
    background: #4ade80;
    border: 2.5px solid #0f172a;
    border-radius: 50%;
    animation: chatPulse 2s infinite;
}

.floating-chat-widget.open .chat-online-dot {
    display: none;
}

@keyframes chatPulse {
    0% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.8); }
    70% { box-shadow: 0 0 0 9px rgba(74, 222, 128, 0); }
    100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); }
}

/* Chat Popup Menu */
.floating-chat-popup {
    position: absolute;
    bottom: 66px;
    right: 0;
    width: 300px;
    background: rgba(15, 23, 42, 0.96);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 18px;
    padding: 14px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.65), 0 0 24px rgba(34, 197, 94, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(14px) scale(0.94);
    transform-origin: bottom right;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.floating-chat-widget.open .floating-chat-popup {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.floating-chat-popup-header {
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.fcp-title {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 2px;
}

.fcp-sub {
    display: block;
    font-size: 11.5px;
    color: #94a3b8;
}

.floating-chat-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.floating-chat-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 12px;
    text-decoration: none;
    color: #fff;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.floating-chat-option.wa {
    background: rgba(34, 197, 94, 0.1);
    border-color: rgba(34, 197, 94, 0.25);
}

.floating-chat-option.wa:hover {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.25), rgba(34, 197, 94, 0.15));
    border-color: #22c55e;
    transform: translateX(-3px);
}

.floating-chat-option.wa .fco-icon {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: #fff;
}

.floating-chat-option.tg {
    background: rgba(56, 189, 248, 0.1);
    border-color: rgba(56, 189, 248, 0.25);
}

.floating-chat-option.tg:hover {
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.25), rgba(56, 189, 248, 0.15));
    border-color: #38bdf8;
    transform: translateX(-3px);
}

.floating-chat-option.tg .fco-icon {
    background: linear-gradient(135deg, #38bdf8, #0284c7);
    color: #fff;
}

.fco-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 19px;
    flex-shrink: 0;
}

.fco-info {
    flex: 1;
    min-width: 0;
}

.fco-name {
    display: block;
    font-size: 13.5px;
    font-weight: 700;
    color: #fff;
}

.fco-desc {
    display: block;
    font-size: 11px;
    color: #94a3b8;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fco-arrow {
    font-size: 12px;
    color: #64748b;
    transition: transform 0.2s ease, color 0.2s ease;
}

.floating-chat-option:hover .fco-arrow {
    transform: translateX(3px);
    color: #fff;
}

.mobile-bottom-nav {
    display: none;
}

/* ==========================================
   SHARED FORM & ADMIN PANEL STYLES
   ========================================== */
.input-group { margin-bottom: 16px; }
.input-group label {
    display: block;
    margin-bottom: 6px;
    color: #cbd5e1;
    font-size: 13px;
    font-weight: 600;
}
input, textarea, select {
    width: 100%;
    padding: 11px 14px;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid var(--border-subtle);
    color: #fff;
    font-size: 13.5px;
    outline: none;
}
input:focus, textarea:focus, select:focus {
    border-color: var(--gold-primary);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--gold-primary);
    color: var(--gold-primary);
    padding: 9px 14px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 12px;
    border-radius: 8px;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    border: 1px solid var(--border-subtle);
    font-weight: 600;
}
.btn-sm:hover { border-color: var(--gold-primary); color: var(--gold-primary); }

/* Admin Layout */
.app-layout { display: flex; min-height: 100vh; }
.glass-panel {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
}
.sidebar {
    width: 250px;
    min-width: 250px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    border-right: 1px solid var(--border-subtle);
    background: #0d121f;
}
.sidebar-header {
    padding: 22px;
    text-align: center;
    border-bottom: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
.sidebar-close-btn {
    display: none;
}
.admin-sidebar-backdrop {
    display: none;
}
.nav-menu { list-style: none; padding: 16px 12px; }
.nav-item { margin-bottom: 4px; }
.nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 14px;
    color: var(--text-muted);
    text-decoration: none;
    border-radius: 10px;
    font-size: 13.5px;
    font-weight: 600;
}
.nav-link:hover, .nav-link.active {
    background: rgba(245, 185, 66, 0.14);
    color: var(--gold-primary);
}
.main-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}
.topbar {
    height: 66px;
    padding: 0 26px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-subtle);
}
.menu-toggle {
    display: none;
    cursor: pointer;
    font-size: 18px;
}
.user-profile { display: flex; align-items: center; gap: 14px; }
.btn-logout { background: none; border: none; color: var(--danger); font-size: 17px; cursor: pointer; }
.content-wrapper { padding: 28px; flex: 1; }
.subtitle { color: var(--text-muted); font-size: 13.5px; margin-bottom: 24px; }
.page-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; flex-wrap: wrap; gap: 12px; }

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
}
.stat-card {
    padding: 22px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 16px;
}
.stat-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: rgba(245, 185, 66, 0.14);
    color: var(--gold-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}
.stat-info h4 { color: var(--text-muted); font-size: 13px; }
.stat-info h3 { font-size: 22px; margin-top: 4px; }

.card-table { border-radius: 16px; overflow: hidden; }
.table-responsive { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; }
.data-table th, .data-table td {
    padding: 14px 18px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 13.5px;
}
.data-table th {
    background: rgba(0, 0, 0, 0.25);
    color: var(--gold-primary);
    font-size: 12px;
    letter-spacing: 0.5px;
}
.table-pagination {
    padding: 14px 18px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
}

/* ==========================================
   RESPONSIVE BREAKPOINTS (MOBILE-FIRST GAMER STORE)
   ========================================== */
@media (max-width: 768px) {
    .store-product-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }
    .game-catalog-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }
    .prod-card {
        border-radius: 14px;
    }
    .prod-top-row {
        padding: 10px 10px 4px;
    }
    .prod-brand-avatar {
        width: 38px;
        height: 38px;
        border-radius: 10px;
    }
    .prod-body {
        padding: 4px 10px 10px;
    }
    .prod-title {
        font-size: 12.5px;
    }
    .prod-price-val {
        font-size: 14.5px;
    }
    .btn-card-buy {
        padding: 6px 12px;
        font-size: 12px;
        font-weight: 700;
        border-radius: 8px;
    }
}

@media (max-width: 1400px) and (min-width: 961px) {
    .nav-search {
        max-width: 220px;
    }
    .store-nav-item {
        padding: 7px 10px !important;
        font-size: 12.5px !important;
        gap: 5px !important;
    }
    .btn-auth-nav {
        padding: 7px 11px !important;
        font-size: 12.5px !important;
    }
    .btn-currency {
        padding: 7px 10px !important;
        font-size: 12.5px !important;
    }
    .nav-actions {
        gap: 6px !important;
    }
}

@media (max-width: 1140px) and (min-width: 961px) {
    .nav-search {
        max-width: 150px;
    }
    .store-nav-item {
        padding: 6px 8px !important;
        font-size: 12px !important;
        gap: 4px !important;
    }
    .nav-links {
        gap: 3px !important;
    }
    .btn-auth-nav {
        padding: 6px 8px !important;
        font-size: 12px !important;
    }
    .btn-currency {
        padding: 6px 8px !important;
        font-size: 12px !important;
    }
}

@media (max-width: 960px) {
    .hero-banner {
        grid-template-columns: 1fr;
        padding: 28px 24px;
    }
    .hero-visual { display: none; }
    .live-stats-strip { grid-template-columns: repeat(2, 1fr); }
    .nav-links { display: none; }
    .footer-grid { grid-template-columns: 1fr; }
    .steps-showcase { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    /* Super Compact Mobile Hero Banner (Takes < 60px instead of 450px) */
    .hero-banner {
        position: relative !important;
        padding: 12px 14px !important;
        margin-bottom: 12px !important;
        border-radius: 14px !important;
        grid-template-columns: 1fr !important;
        gap: 0 !important;
        background: linear-gradient(135deg, rgba(245, 185, 66, 0.14), rgba(13, 19, 34, 0.9)) !important;
        border: 1px solid rgba(245, 185, 66, 0.28) !important;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35) !important;
    }
    .hero-mobile-dismiss {
        display: flex !important;
        position: absolute;
        top: 8px;
        right: 10px;
        background: rgba(255, 255, 255, 0.08);
        border: 1px solid rgba(255, 255, 255, 0.15);
        color: #94a3b8;
        width: 22px;
        height: 22px;
        border-radius: 50%;
        align-items: center;
        justify-content: center;
        font-size: 11px;
        cursor: pointer;
        z-index: 2;
    }
    .hero-mobile-dismiss:hover {
        background: rgba(239, 68, 68, 0.25);
        color: #ef4444;
    }
    .hero-content h1 {
        font-size: 15px !important;
        font-weight: 700 !important;
        line-height: 1.35 !important;
        margin-bottom: 0 !important;
        padding-right: 26px !important;
        letter-spacing: -0.2px !important;
    }
    .hero-content p, .hero-desc-text {
        display: none !important; /* Hide long paragraph on mobile so it doesn't eat screen space */
    }
    .hero-cta-group {
        display: none !important; /* Hide bulky CTA buttons on mobile so catalog is right at top */
    }
    .hero-trust-badges {
        margin-top: 8px !important;
        padding-top: 6px !important;
        border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
        display: flex !important;
        gap: 6px !important;
        overflow-x: auto !important;
        white-space: nowrap !important;
        scrollbar-width: none !important;
    }
    .hero-trust-badges::-webkit-scrollbar {
        display: none;
    }
    .trust-item {
        font-size: 10px !important;
        padding: 2px 7px !important;
        background: rgba(255, 255, 255, 0.04) !important;
        border-radius: 99px !important;
        flex-shrink: 0 !important;
        color: #cbd5e1 !important;
    }
}

@media (max-width: 640px) {
    .ticker-link { display: none; }
    .nav-search { display: none; }
    .hero-content h1 { font-size: 26px; }
    .payment-methods-grid { grid-template-columns: 1fr; }
    .track-form { flex-direction: column; }
    .floating-chat-widget {
        bottom: 74px !important;
        right: 14px !important;
    }
    .floating-chat-popup {
        width: 275px !important;
        right: 0 !important;
    }

    /* Clean Mobile Storefront Navbar & Compact Buttons */
    .store-navbar {
        padding: 8px 0 !important;
    }
    .navbar-inner {
        gap: 6px !important;
        padding: 0 6px !important;
    }
    .brand-logo {
        gap: 8px !important;
    }
    .logo-icon {
        width: 34px !important;
        height: 34px !important;
        border-radius: 9px !important;
    }
    .brand-title {
        font-size: 14.5px !important;
        letter-spacing: -0.2px !important;
    }
    .brand-sub {
        display: none !important;
    }
    .nav-actions {
        gap: 5px !important;
    }
    .btn-search-nav {
        display: flex !important;
        width: 30px !important;
        height: 30px !important;
        font-size: 12px !important;
        border-radius: 8px !important;
        padding: 0 !important;
    }
    .btn-lang {
        padding: 5px 8px !important;
        font-size: 11.5px !important;
        border-radius: 8px !important;
        gap: 4px !important;
    }
    .btn-currency {
        padding: 5px 8px !important;
        font-size: 11.5px !important;
        border-radius: 8px !important;
        gap: 4px !important;
    }
    .catalog-search-wrap {
        max-width: 100% !important;
        margin: 6px 0 12px !important;
    }
    .btn-auth-nav {
        padding: 6px 11px !important;
        font-size: 12px !important;
        border-radius: 8px !important;
        white-space: nowrap !important;
        gap: 5px !important;
        line-height: 1.2 !important;
    }
    .btn-tg-nav {
        display: none !important;
    }
    .user-nav-badge {
        padding: 4px 8px !important;
        gap: 6px !important;
    }
    .un-name {
        font-size: 11px !important;
        max-width: 68px !important;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    .un-bal {
        font-size: 10px !important;
    }

    /* Compact Modals on Mobile */
    .modal-overlay {
        padding: 10px !important;
    }
    .modal-card {
        border-radius: 16px !important;
        max-height: 94vh !important;
    }
    .modal-header {
        padding: 14px 16px !important;
    }
    .modal-body {
        padding: 14px 16px !important;
    }
    
    /* Horizontal Smooth Scroll for Category Filter Pills on Mobile */
    .category-pills {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 8px;
        margin-bottom: 12px;
        width: 100%;
        scrollbar-width: none;
    }
    .category-pills::-webkit-scrollbar {
        display: none;
    }
    .cat-pill {
        white-space: nowrap !important;
        flex-shrink: 0 !important;
        font-size: 13px !important;
        padding: 8px 15px !important;
        font-weight: 600 !important;
    }
    
    /* Comfortable Product Card Buttons on Mobile (Easy for minus eyes & touch) */
    .btn-card-buy {
        padding: 7px 13px !important;
        font-size: 12px !important;
        font-weight: 700 !important;
        border-radius: 8px !important;
        white-space: nowrap;
    }

    .mobile-bottom-nav {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: rgba(9, 13, 22, 0.96);
        backdrop-filter: blur(16px);
        border-top: 1px solid var(--border-subtle);
        display: flex;
        justify-content: space-around;
        padding: 9px 4px;
        z-index: 100;
    }
    .mob-nav-item {
        color: var(--text-muted);
        text-decoration: none;
        font-size: 12px;
        font-weight: 700;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 4px;
        padding: 2px 8px;
    }
    .mob-nav-item i { font-size: 18px; }
    .mob-nav-item.active { color: var(--gold-primary); }
    .mob-nav-item.tg-accent { color: var(--cyan-accent); }
}

#appContainer[style*="display: none"],
#appContainer[style*="display:none"] {
    display: none !important;
}

@media (min-width: 901px) {
    .app-layout:not([style*="display: none"]):not([style*="display:none"]) {
        display: flex !important;
        flex-direction: row !important;
    }
    .sidebar {
        position: sticky !important;
        top: 0 !important;
        height: 100vh !important;
        overflow-y: auto !important;
        transform: none !important;
        display: flex !important;
        flex-shrink: 0 !important;
        width: 250px !important;
        min-width: 250px !important;
    }
    .main-content {
        flex: 1 !important;
        min-width: 0 !important;
    }
    .menu-toggle {
        display: none !important;
    }
}

/* ==========================================
   MOBILE & TABLET RESPONSIVE ADMIN DASHBOARD
   ========================================== */
@media (max-width: 900px) {
    body.sidebar-lock {
        overflow: hidden !important;
    }
    .app-layout {
        position: relative;
        width: 100%;
        min-width: 0;
        overflow-x: hidden;
    }
    .app-layout:not([style*="display: none"]):not([style*="display:none"]) {
        display: block !important;
    }
    .sidebar {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        bottom: 0 !important;
        width: 280px !important;
        max-width: 82vw !important;
        height: 100vh !important;
        z-index: 1050 !important;
        background: #0d121f !important;
        border-right: 1px solid rgba(245, 185, 66, 0.25) !important;
        box-shadow: 10px 0 35px rgba(0, 0, 0, 0.85) !important;
        transform: translateX(-105%) !important;
        transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1) !important;
        overflow-y: auto !important;
        display: flex !important;
    }
    .sidebar.mobile-open {
        transform: translateX(0) !important;
    }
    .admin-sidebar-backdrop {
        position: fixed !important;
        inset: 0 !important;
        background: rgba(0, 0, 0, 0.72) !important;
        backdrop-filter: blur(4px) !important;
        -webkit-backdrop-filter: blur(4px) !important;
        z-index: 1040 !important;
        display: none !important;
        opacity: 0;
        transition: opacity 0.25s ease;
    }
    .admin-sidebar-backdrop.show {
        display: block !important;
        opacity: 1 !important;
    }
    .sidebar-header {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        padding: 16px 18px !important;
        text-align: left !important;
    }
    .sidebar-close-btn {
        background: rgba(255, 255, 255, 0.08) !important;
        border: 1px solid rgba(255, 255, 255, 0.15) !important;
        color: #fff !important;
        width: 32px !important;
        height: 32px !important;
        border-radius: 8px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        font-size: 20px !important;
        cursor: pointer !important;
    }
    .main-content {
        width: 100% !important;
        min-width: 0 !important;
        flex: 1 !important;
    }
    .topbar {
        height: 56px !important;
        padding: 0 12px !important;
    }
    .menu-toggle {
        width: 38px !important;
        height: 38px !important;
        border-radius: 9px !important;
        background: rgba(245, 185, 66, 0.14) !important;
        border: 1px solid rgba(245, 185, 66, 0.35) !important;
        color: #f5b942 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        font-size: 16px !important;
        cursor: pointer !important;
    }
    .user-profile {
        gap: 6px !important;
    }
    .btn-topbar-action {
        padding: 6px 10px !important;
        font-size: 11.5px !important;
        white-space: nowrap !important;
    }
    .admin-top-uname-wrap {
        display: none !important;
    }
    .content-wrapper {
        padding: 14px 10px !important;
    }
    .page-header h2 {
        font-size: 20px !important;
    }
    .page-header {
        margin-bottom: 14px !important;
    }
    .stats-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }
    .stat-card {
        padding: 12px 14px !important;
        gap: 10px !important;
    }
    .stat-icon {
        width: 40px !important;
        height: 40px !important;
        font-size: 18px !important;
    }
    .stat-info h3 {
        font-size: 17px !important;
    }
    .stat-info h4 {
        font-size: 11.5px !important;
    }
    .table-responsive {
        width: 100% !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
        border-radius: 12px !important;
        border: 1px solid rgba(255, 255, 255, 0.08) !important;
        margin-bottom: 16px;
    }
    .data-table th, .data-table td {
        white-space: nowrap !important;
        padding: 9px 12px !important;
        font-size: 12px !important;
    }
}
@media (max-width: 480px) {
    .topbar-btn-text {
        display: none !important;
    }
    .btn-topbar-action {
        padding: 7px 9px !important;
        font-size: 13px !important;
    }
    .stats-grid {
        grid-template-columns: 1fr !important;
    }
}

/* ==========================================
   MEMBER AUTH & DASHBOARD STYLES
   ========================================== */
.btn-auth-nav {
    background: rgba(245, 185, 66, 0.12);
    color: var(--gold-primary);
    border: 1px solid rgba(245, 185, 66, 0.35);
    border-radius: 10px;
    padding: 7px 14px;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 7px;
    transition: all 0.2s ease;
    white-space: nowrap !important;
    flex-shrink: 0;
    line-height: 1.2;
}
.btn-auth-nav span {
    white-space: nowrap !important;
}
.btn-auth-nav:hover {
    background: rgba(245, 185, 66, 0.22);
    box-shadow: 0 4px 14px rgba(245, 185, 66, 0.25);
}

.user-nav-badge {
    display: flex;
    align-items: center;
    gap: 9px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-gold);
    padding: 5px 12px;
    border-radius: 99px;
    cursor: pointer;
    transition: all 0.2s ease;
}
.user-nav-badge:hover {
    background: rgba(245, 185, 66, 0.15);
}
.user-nav-info {
    display: flex;
    flex-direction: column;
    text-align: left;
    line-height: 1.15;
}
.un-name {
    font-size: 12px;
    font-weight: 700;
    color: #fff;
}
.un-bal {
    font-size: 11px;
    font-weight: 800;
    color: var(--gold-primary);
}

.auth-tabs-head {
    display: flex;
    gap: 8px;
    width: 80%;
}
.auth-tab-btn {
    flex: 1;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-subtle);
    color: var(--text-muted);
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}
.auth-tab-btn.active {
    background: rgba(245, 185, 66, 0.15);
    color: var(--gold-primary);
    border-color: var(--gold-primary);
}

.member-dashboard-wrap {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px 0 40px;
}
.member-profile-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-radius: 16px;
    margin-bottom: 24px;
    gap: 16px;
    flex-wrap: wrap;
}
.member-avatar-box {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(245,185,66,0.2), rgba(56,189,248,0.2));
    border: 1px solid var(--border-gold);
    color: var(--gold-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}
.member-info-text {
    flex: 1;
}
.member-info-text h3 {
    font-size: 19px;
    font-weight: 800;
}
.member-info-text p {
    font-size: 12.5px;
    color: var(--text-muted);
    margin-top: 4px;
}
.member-grid-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}
.member-card {
    padding: 22px;
    border-radius: 16px;
}
.card-head-sm {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-muted);
}
.member-perks-list {
    list-style: none;
    margin-top: 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 13px;
    color: #cbd5e1;
}
.member-orders-card {
    padding: 22px;
    border-radius: 16px;
}

.topup-pills-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 14px;
}
.topup-pill-btn {
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-subtle);
    color: #fff;
    border-radius: 10px;
    font-weight: 700;
    font-size: 13.5px;
    cursor: pointer;
    transition: all 0.2s ease;
}
.topup-pill-btn:hover {
    background: rgba(245, 185, 66, 0.15);
    border-color: var(--gold-primary);
    color: var(--gold-primary);
}

/* ============================================
   ADMIN SMART BANNER PREVIEW & 7-DAY CHART
   ============================================ */
.chart-canvas-wrapper {
    position: relative;
    height: 250px;
    width: 100%;
    border-radius: 12px;
    padding: 12px 10px 4px;
    background: rgba(15, 23, 42, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.06);
}
@media (max-width: 640px) {
    .chart-canvas-wrapper {
        height: 210px;
    }
}
.daily-chart-grid {
    display: none;
}
.daily-bar-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    justify-content: flex-end;
    gap: 6px;
}
.daily-bar-val {
    font-size: 11px;
    font-weight: 800;
    color: var(--gold-primary);
    white-space: nowrap;
}
.daily-bar-track {
    width: 100%;
    max-width: 38px;
    height: 110px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    padding: 2px;
}
.daily-bar-fill {
    width: 100%;
    background: linear-gradient(180deg, #f5b942 0%, #d97706 100%);
    border-radius: 6px;
    transition: height 0.4s ease;
    box-shadow: 0 0 12px rgba(245, 185, 66, 0.35);
}
.daily-bar-label {
    font-size: 11.5px;
    font-weight: 700;
    color: #e2e8f0;
}
.daily-bar-sub {
    font-size: 10px;
    color: #94a3b8;
}

.admin-prod-thumb {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
    flex-shrink: 0;
}
.admin-prod-thumb i {
    font-size: 20px;
    color: #f5b942;
}
.admin-prod-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
    display: block;
}

.admin-mini-banner {
    width: 110px;
    height: 54px;
    border-radius: 10px;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.12);
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}
.admin-mini-logo {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    object-fit: cover;
    border: 1.5px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
}

.smart-banner-preview-box {
    width: 100%;
    height: 110px;
    border-radius: 14px;
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 0 20px;
    margin-bottom: 16px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    overflow: hidden;
    transition: background 0.35s ease;
}
.smart-preview-logo-wrap {
    width: 60px;
    height: 60px;
    border-radius: 14px;
    background: #0f172a;
    padding: 3px;
    border: 2px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.45);
    z-index: 2;
    flex-shrink: 0;
}
.smart-preview-logo-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}
.smart-preview-label {
    font-size: 12px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.9);
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(6px);
    padding: 6px 12px;
    border-radius: 8px;
    z-index: 2;
}

.preset-logos-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 8px;
    padding: 8px 10px;
    background: rgba(15, 23, 42, 0.55);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}
.preset-logo-btn {
    padding: 4px 9px;
    font-size: 11px;
    font-weight: 700;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.07);
    color: #cbd5e1;
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: all 0.15s ease;
}
.preset-logo-btn:hover {
    background: var(--gold-primary);
    color: #000;
    border-color: var(--gold-primary);
}

/* =========================================================
   PRODUCT VARIATIONS (FITUR VARIASI PRODUK) STYLES
   ========================================================= */
.switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 26px;
    flex-shrink: 0;
}
.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}
.slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(255, 255, 255, 0.15);
    transition: .3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}
.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: #ffffff;
    transition: .3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.4);
}
input:checked + .slider {
    background-color: #10b981;
    border-color: #10b981;
}
input:focus + .slider {
    box-shadow: 0 0 1px #10b981;
}
input:checked + .slider:before {
    transform: translateX(22px);
}
.slider.round {
    border-radius: 34px;
}

/* Storefront Checkout Variation Pills */
.variation-pills-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 6px;
}
.variation-pill-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #e2e8f0;
    padding: 8px 14px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    user-select: none;
}
.variation-pill-btn:hover {
    background: rgba(245, 185, 66, 0.12);
    border-color: rgba(245, 185, 66, 0.4);
    color: #fff;
    transform: translateY(-1px);
}
.variation-pill-btn.active {
    background: linear-gradient(135deg, rgba(245, 185, 66, 0.22), rgba(245, 185, 66, 0.08));
    border-color: #f5b942;
    color: #f5b942;
    box-shadow: 0 0 14px rgba(245, 185, 66, 0.3);
}
.variation-pill-btn .pill-stock {
    font-size: 11px;
    background: rgba(255, 255, 255, 0.08);
    padding: 2px 7px;
    border-radius: 6px;
    color: #94a3b8;
    font-family: 'JetBrains Mono', monospace;
}
.variation-pill-btn.active .pill-stock {
    background: rgba(245, 185, 66, 0.25);
    color: #f5b942;
    font-weight: 700;
}
.variation-pill-btn.out-stock {
    opacity: 0.45;
    cursor: not-allowed;
    border-style: dashed;
}

/* Badges for stock list */
.badge-var-tag {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    background: rgba(245, 185, 66, 0.15);
    color: #f5b942;
    border: 1px solid rgba(245, 185, 66, 0.3);
    font-family: 'JetBrains Mono', monospace;
}

/* =========================================================
   KELOLA USER (DASHBOARD) - PREMIUM DARK SLATE & GOLD
   ========================================================= */
.user-stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 16px;
    margin-bottom: 22px;
}
.user-stat-card {
    background: rgba(15, 23, 42, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 16px 18px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(10px);
}
.user-stat-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 19px;
    flex-shrink: 0;
}
.user-stat-icon.gold {
    background: rgba(245, 185, 66, 0.12);
    color: #f5b942;
    border: 1px solid rgba(245, 185, 66, 0.25);
}
.user-stat-icon.blue {
    background: rgba(56, 189, 248, 0.12);
    color: #38bdf8;
    border: 1px solid rgba(56, 189, 248, 0.25);
}
.user-stat-icon.purple {
    background: rgba(168, 85, 247, 0.12);
    color: #a855f7;
    border: 1px solid rgba(168, 85, 247, 0.25);
}
.user-stat-icon.emerald {
    background: rgba(16, 185, 129, 0.12);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.25);
}
.user-stat-info {
    display: flex;
    flex-direction: column;
}
.user-stat-label {
    font-size: 11.5px;
    color: #94a3b8;
    font-weight: 500;
}
.user-stat-val {
    font-size: 18px;
    font-weight: 700;
    color: #f8fafc;
    margin-top: 2px;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.user-filter-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 20px;
    background: rgba(15, 23, 42, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    margin-bottom: 20px;
    backdrop-filter: blur(10px);
}
.user-search-wrap {
    flex: 1;
    min-width: 240px;
    position: relative;
}
.user-search-wrap i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 14px;
}
.user-search-input {
    width: 100%;
    padding: 9px 14px 9px 38px;
    border-radius: 10px;
    background: rgba(2, 6, 23, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #f8fafc;
    font-size: 13.5px;
    outline: none;
    transition: all 0.2s ease;
}
.user-search-input:focus {
    border-color: #f5b942;
    box-shadow: 0 0 0 2px rgba(245, 185, 66, 0.2);
}

.user-filter-pills {
    display: flex;
    gap: 8px;
    flex-wrap: nowrap;
    overflow-x: auto;
}
.user-filter-pill {
    padding: 7px 14px;
    border-radius: 9px;
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #94a3b8;
    white-space: nowrap;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.user-filter-pill:hover {
    color: #f8fafc;
    border-color: rgba(255, 255, 255, 0.2);
}
.user-filter-pill.active {
    background: rgba(245, 185, 66, 0.15);
    border-color: rgba(245, 185, 66, 0.5);
    color: #f5b942;
}

.user-sort-select {
    padding: 8px 12px;
    border-radius: 9px;
    background: rgba(2, 6, 23, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #f8fafc;
    font-size: 12.5px;
    font-weight: 600;
    outline: none;
    cursor: pointer;
    white-space: nowrap;
}

.badge-platform {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 9px;
    border-radius: 6px;
    font-size: 11.5px;
    font-weight: 600;
    white-space: nowrap;
}
.badge-platform-tg {
    background: rgba(56, 189, 248, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.35);
    color: #38bdf8;
}
.badge-platform-web {
    background: rgba(168, 85, 247, 0.12);
    border: 1px solid rgba(168, 85, 247, 0.35);
    color: #c084fc;
}

/* =========================================================
   SMART QRIS UPLOADER & DECODER
   ========================================================= */
.qris-smart-box {
    background: rgba(15, 23, 42, 0.65);
    border: 1.5px dashed rgba(245, 185, 66, 0.35);
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 10px;
    transition: all 0.25s ease;
    cursor: pointer;
}
.qris-smart-box:hover {
    border-color: #f5b942;
    background: rgba(245, 185, 66, 0.05);
}
.qris-smart-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: rgba(245, 185, 66, 0.12);
    border: 1px solid rgba(245, 185, 66, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}
.qris-preview-card {
    background: rgba(2, 6, 23, 0.65);
    border: 1px solid rgba(16, 185, 129, 0.35);
    border-radius: 10px;
    padding: 12px 14px;
    margin-top: 10px;
}

/* =========================================================
   WEB APP SETTINGS & LIVE PHONE PREVIEW
   ========================================================= */
.webapp-settings-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 395px;
    gap: 24px;
    align-items: start;
}
@media (max-width: 1024px) {
    .webapp-settings-grid {
        grid-template-columns: 1fr;
    }
    .phone-mockup-wrapper {
        margin: 20px auto 0;
        max-width: 385px;
    }
}

/* Switch Toggle (iOS / Modern Dark Style) */
.switch-toggle {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 26px;
    margin: 0;
    cursor: pointer;
}
.switch-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}
.switch-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.15);
    transition: .3s ease;
    border-radius: 26px;
    border: 1px solid rgba(255, 255, 255, 0.12);
}
.switch-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: #ffffff;
    transition: .3s ease;
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0,0,0,0.4);
}
.switch-toggle input:checked + .switch-slider {
    background-color: #10b981;
    border-color: #10b981;
}
.switch-toggle input:checked + .switch-slider:before {
    transform: translateX(22px);
}

/* Theme Preset Selector Pills */
.theme-presets-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.theme-preset-card {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 10px;
    color: #cbd5e1;
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap !important;
}
.theme-preset-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    color: #f8fafc;
}
.theme-preset-card.active {
    background: rgba(245, 185, 66, 0.12);
    border-color: #f5b942;
    color: #f5b942;
    box-shadow: 0 0 12px rgba(245, 185, 66, 0.2);
}
.preset-color-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    flex-shrink: 0;
    box-shadow: 0 0 4px rgba(0,0,0,0.5);
}

/* Color Palette Grid */
.color-palette-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(135px, 1fr));
    gap: 12px;
}
.color-picker-box {
    background: rgba(2, 6, 23, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.color-picker-box label {
    font-size: 11px;
    color: #94a3b8;
    font-weight: 600;
    margin: 0;
    white-space: nowrap !important;
}
.color-input-inner {
    display: flex;
    align-items: center;
    gap: 8px;
}
.color-input-inner input[type="color"] {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: 30px;
    height: 30px;
    border-radius: 7px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: transparent;
    cursor: pointer;
    padding: 0;
}
.color-input-inner input[type="color"]::-webkit-color-swatch-wrapper {
    padding: 0;
}
.color-input-inner input[type="color"]::-webkit-color-swatch {
    border: none;
    border-radius: 6px;
}
.color-input-inner input[type="text"] {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    padding: 6px 8px;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: #f8fafc;
    width: 100%;
}

/* Form Row 2 */
.form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}
@media (max-width: 640px) {
    .form-row-2 {
        grid-template-columns: 1fr;
    }
}

/* Phone Mockup Frame & Screen */
.phone-mockup-wrapper {
    position: sticky;
    top: 85px;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}
.phone-mockup-top-bar {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 12px;
}
.phone-mockup-pill-label {
    font-size: 11.5px;
    font-weight: 700;
    color: #cbd5e1;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(15, 23, 42, 0.85);
    padding: 5px 12px;
    border-radius: 99px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    white-space: nowrap !important;
}
.phone-preview-controls {
    display: flex;
    align-items: center;
    gap: 6px;
}
.phone-url-badge {
    font-size: 10px;
    font-family: 'JetBrains Mono', monospace;
    color: #94a3b8;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 3px 8px;
    border-radius: 6px;
    max-width: 155px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap !important;
}
.phone-ctrl-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #cbd5e1;
    width: 26px;
    height: 26px;
    border-radius: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    white-space: nowrap !important;
}
.phone-ctrl-btn:hover {
    background: #f5b942;
    color: #0b1120;
    border-color: #f5b942;
}
.phone-mockup-device {
    width: 380px;
    height: 740px;
    background: #000000;
    border-radius: 44px;
    border: 8px solid #1e293b;
    box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(255, 255, 255, 0.12), inset 0 0 0 2px rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.phone-notch {
    position: absolute;
    top: 9px;
    left: 50%;
    transform: translateX(-50%);
    width: 88px;
    height: 20px;
    background: #000000;
    border-radius: 12px;
    z-index: 20;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12);
    pointer-events: none;
}
.phone-live-iframe {
    width: 100%;
    height: 100%;
    border: none;
    background: #0b1120;
    display: block;
}

html.in-phone-preview,
body.in-phone-preview {
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
}
html.in-phone-preview::-webkit-scrollbar,
body.in-phone-preview::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
}
body.in-phone-preview #floatingBotBtn,
body.in-phone-preview .floating-bot-btn {
    display: none !important;
}
body.in-phone-preview .store-navbar {
    padding-top: 18px !important;
}
body.in-phone-preview .container {
    padding-left: 10px !important;
    padding-right: 10px !important;
}
body.in-phone-preview .mobile-bottom-nav {
    padding: 6px 2px !important;
}
body.in-phone-preview .mob-nav-item {
    font-size: 10px !important;
    padding: 2px 4px !important;
    gap: 2px !important;
    white-space: nowrap !important;
}
body.in-phone-preview .mob-nav-item i {
    font-size: 16px !important;
}
}
.phone-screen {
    flex: 1;
    background: #0b1120;
    color: #f8fafc;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    scrollbar-width: none;
    font-size: 12px;
    padding-bottom: 8px;
    transition: background 0.3s ease, color 0.3s ease;
}
.phone-screen::-webkit-scrollbar {
    display: none;
}
.phone-status-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 16px 4px;
    font-size: 10.5px;
    font-weight: 600;
    color: #cbd5e1;
    z-index: 5;
}
.phone-app-header {
    padding: 8px 14px 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.phone-brand {
    display: flex;
    align-items: center;
    gap: 8px;
}
.phone-logo-badge {
    width: 32px;
    height: 32px;
    border-radius: 9px;
    background: rgba(245, 185, 66, 0.15);
    border: 1px solid rgba(245, 185, 66, 0.3);
    color: #f5b942;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
    transition: all 0.3s ease;
}
.phone-brand-title {
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap !important;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 145px;
}
.phone-brand-sub {
    font-size: 9.5px;
    color: #10b981;
    display: flex;
    align-items: center;
    gap: 3px;
}
.phone-icon-btn {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    color: #94a3b8;
}
.phone-hero {
    margin: 10px 12px 8px;
    padding: 12px 14px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(245, 185, 66, 0.16), rgba(15, 23, 42, 0.9));
    border: 1px solid rgba(245, 185, 66, 0.28);
    transition: all 0.3s ease;
}
.phone-hero-status {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 2px 8px;
    border-radius: 99px;
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #10b981;
    font-size: 9px;
    font-weight: 700;
    margin-bottom: 6px;
    white-space: nowrap !important;
}
.phone-hero-status .status-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #10b981;
    display: inline-block;
}
.phone-hero-title {
    font-size: 13.5px;
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 4px;
}
.phone-hero-sub {
    font-size: 9.5px;
    color: #94a3b8;
    line-height: 1.3;
}
.phone-balance-card {
    margin: 0 12px 10px;
    padding: 9px 12px;
    border-radius: 12px;
    background: rgba(21, 27, 35, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.3s ease;
}
.phone-btn-deposit {
    padding: 5px 10px;
    border-radius: 8px;
    background: #f5b942;
    border: none;
    color: #0f172a;
    font-size: 10.5px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap !important;
    transition: all 0.2s ease;
}
.phone-cat-strip {
    display: flex;
    gap: 6px;
    padding: 0 12px 10px;
    overflow-x: auto;
    scrollbar-width: none;
}
.phone-cat-pill {
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 10.5px;
    font-weight: 600;
    color: #94a3b8;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    white-space: nowrap !important;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.phone-cat-pill.active {
    background: rgba(245, 185, 66, 0.15);
    border-color: #f5b942;
    color: #f5b942;
}
.phone-prod-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 0 12px 12px;
}
.phone-prod-card {
    background: rgba(21, 27, 35, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 8px;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: all 0.3s ease;
}
.phone-prod-badge {
    position: absolute;
    top: 6px;
    left: 6px;
    padding: 2px 6px;
    border-radius: 6px;
    font-size: 8px;
    font-weight: 700;
    background: rgba(245, 185, 66, 0.2);
    color: #f5b942;
    white-space: nowrap !important;
}
.phone-prod-img {
    height: 48px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.03);
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #cbd5e1;
}
.phone-prod-name {
    font-size: 10.5px;
    font-weight: 600;
    white-space: nowrap !important;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 3px;
}
.phone-prod-price {
    font-size: 11px;
    font-weight: 700;
    color: #f5b942;
    margin-bottom: 6px;
    transition: color 0.3s ease;
}
.phone-btn-buy {
    width: 100%;
    padding: 5px;
    border-radius: 6px;
    background: #f5b942;
    border: none;
    color: #0f172a;
    font-size: 9.5px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap !important;
    transition: all 0.2s ease;
}
.phone-bottom-nav {
    margin-top: auto;
    background: rgba(11, 17, 32, 0.95);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    justify-content: space-around;
    padding: 8px 0;
}
.phone-nav-item {
    font-size: 13px;
    color: #64748b;
    cursor: pointer;
    padding: 2px 8px;
}
.phone-nav-item.active {
    color: #f5b942;
    transition: color 0.3s ease;
}

/* =========================================================
   GOOGLE AUTH & LOGIN STYLES
   ========================================================= */
.auth-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 14px 0 12px;
    gap: 10px;
}
.auth-divider span:first-child,
.auth-divider span:last-child {
    flex: 1;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.auth-divider-text {
    font-size: 11px;
    text-transform: uppercase;
    color: #64748b;
    font-weight: 700;
    letter-spacing: 0.6px;
    white-space: nowrap !important;
}

.btn-google-login {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #ffffff;
    color: #1e293b;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    padding: 10px 16px;
    font-weight: 700;
    font-size: 13.5px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
    white-space: nowrap !important;
    text-decoration: none;
}
.btn-google-login:hover {
    background: #f8fafc;
    border-color: #94a3b8;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}
.btn-google-login svg {
    flex-shrink: 0;
}







/* ==========================================================================
   POLISH LAYER - Storefront UI/UX refinement (navbar, cards, filters, type)
   Styling only. Does not touch ids, data-attributes, or JS-bound hooks.
   ========================================================================== */
:root {
    --bg-base: #0b1120;
    --bg-card: rgba(21, 27, 35, 0.82);
    --bg-card-hover: rgba(26, 34, 46, 0.95);
    --font-mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Ambient glow: calmer, warm-gold + deep navy only (no violet) */
.bg-glow { opacity: 0.16; }
.glow-2 { background: #1e3a5f; }
.glow-3 { background: #d97706; opacity: 0.08; }

/* ---------- Financial / code typography ---------- */
.prod-price-val,
.pm-price,
.gnc-price,
.un-bal,
.phone-prod-price,
.phone-balance-card,
.inv-row b,
.invoice-modal-card .inv-code,
.coupon-row input,
.btn-currency span {
    font-family: var(--font-mono);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.2px;
}

/* ---------- Ticker ---------- */
.top-ticker { padding: 7px 0; }
.ticker-badge, .ticker-link { white-space: nowrap !important; }

/* ---------- Navbar ---------- */
.store-navbar {
    background: rgba(11, 17, 32, 0.82);
    padding: 12px 0;
}
.navbar-inner {
    gap: 16px;
    min-width: 0;
}
.brand-logo { flex-shrink: 0; }
.logo-icon {
    width: 42px;
    height: 42px;
    box-shadow: 0 2px 12px rgba(245, 185, 66, 0.18);
}
.brand-title {
    font-size: 19px;
    white-space: nowrap !important;
}
.nav-search {
    flex: 0 1 300px;
    min-width: 0;
}
.nav-search input {
    height: 40px;
    padding: 0 40px 0 38px;
    background: rgba(255, 255, 255, 0.045);
}
.search-kbd {
    font-family: var(--font-mono);
    font-size: 10.5px;
    border: 1px solid var(--border-subtle);
    background: transparent;
}
.nav-links {
    flex: 1 1 auto;
    min-width: 0;
    justify-content: center;
    gap: 2px;
}
.store-nav-item {
    height: 38px;
    padding: 0 12px;
    border-radius: 10px;
    transition: color 0.2s var(--ease), background 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.store-nav-item i { font-size: 13px; opacity: 0.9; }
.store-nav-item.active {
    background: linear-gradient(180deg, #f8c95a 0%, #f5b942 100%);
    box-shadow: 0 2px 10px rgba(245, 185, 66, 0.22);
}
.nav-actions { gap: 8px; margin-left: auto; }
.btn-currency, .btn-auth-nav, .btn-search-nav {
    height: 38px;
    transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s var(--ease), border-color 0.2s var(--ease);
}
.btn-currency { padding: 0 12px; }
.btn-auth-nav { padding: 0 14px; }
.btn-auth-nav:hover, .btn-currency:hover { transform: translateY(-1px); }
.btn-auth-nav:active, .btn-currency:active, .btn-search-nav:active { transform: translateY(1px); }
.user-nav-badge { height: 40px; padding: 0 12px 0 6px; }
.un-name, .un-bal { white-space: nowrap; }

/* Medium screens: the in-page search + search button replace the wide bar,
   so nothing is pushed off the right edge */
@media (max-width: 1180px) and (min-width: 961px) {
    .nav-search { display: none; }
    .btn-search-nav { display: flex; width: 38px; }
    .store-nav-item { padding: 0 10px !important; }
}
@media (max-width: 960px) {
    .btn-search-nav { display: flex; }
}

/* ---------- Banner: never show broken-image alt text ---------- */
#storeHeaderBannerContainer:has(#storeHeaderBannerImg[src=""]),
#storeHeaderBannerContainer:not(:has(#storeHeaderBannerImg[src])) {
    display: none !important;
}

/* ---------- Catalog header + search ---------- */
.section-header-bar {
    align-items: center;
    gap: 14px 18px;
    margin-bottom: 18px;
}
.section-title-group h2 {
    font-size: 22px;
    letter-spacing: -0.3px;
}
.catalog-search-wrap { max-width: 380px; }
.catalog-search-input {
    height: 42px;
    padding: 0 38px;
    border-radius: 12px;
}
.csw-clear-btn { white-space: nowrap !important; }

/* ---------- Category filter pills ---------- */
.category-pills {
    flex: 1 1 100%;
    gap: 8px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    padding: 2px 1px 4px;
}
.category-pills::-webkit-scrollbar { display: none; }
.cat-pill {
    height: 38px;
    padding: 0 16px;
    flex-shrink: 0;
    white-space: nowrap !important;
    background: rgba(255, 255, 255, 0.04);
    transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.cat-pill span { white-space: nowrap !important; }
.cat-pill:hover {
    background: rgba(255, 255, 255, 0.07);
    transform: translateY(-1px);
}
.cat-pill:active { transform: translateY(1px); }
.cat-pill.active {
    background: rgba(245, 185, 66, 0.14);
    box-shadow: inset 0 0 0 1px rgba(245, 185, 66, 0.15);
}

/* ---------- Product cards ---------- */
.store-product-grid {
    grid-template-columns: repeat(auto-fill, minmax(212px, 1fr));
    gap: 14px;
}
.prod-card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: transform 0.22s var(--ease), border-color 0.22s var(--ease), background 0.22s var(--ease), box-shadow 0.22s var(--ease);
}
.prod-card:hover {
    transform: translateY(-2px);
    border-color: rgba(245, 185, 66, 0.4);
    box-shadow: 0 8px 22px -10px rgba(245, 185, 66, 0.28);
}
.prod-card:active { transform: translateY(0); }
.prod-card.out-of-stock { opacity: 0.66; }
.prod-card.out-of-stock:hover { opacity: 0.85; }

.prod-top-row {
    padding: 14px 14px 8px;
    align-items: flex-start;
    min-height: 74px;
}
.prod-brand-avatar {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}
.prod-badges-col { gap: 5px; min-width: 0; }
.stock-pill, .ws-pill-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap !important;
    line-height: 1.3;
    font-variant-numeric: tabular-nums;
}
.stock-pill { padding: 3px 9px; font-size: 10.5px; }
.ws-pill-tag { padding: 2px 8px; }

.prod-body { padding: 4px 14px 14px; gap: 10px; }
.prod-meta-top { margin-bottom: 0; }
.prod-code-label {
    display: block;
    max-width: 100%;
    white-space: nowrap !important;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 10px;
    color: #7dd3fc;
    opacity: 0.9;
}
.prod-title {
    font-size: 13.5px;
    margin: 4px 0 3px;
    min-height: calc(1.25em * 2);
}
.prod-desc-short { font-size: 11.5px; }
.prod-footer {
    padding-top: 10px;
    gap: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.prod-price-wrap { min-width: 0; }
.prod-price-wrap span {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    white-space: nowrap;
}
.prod-price-val {
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.btn-card-buy {
    flex-shrink: 0;
    height: 34px;
    padding: 0 14px;
    border-radius: 9px;
    white-space: nowrap !important;
    transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s var(--ease), color 0.2s var(--ease);
}
.prod-card:hover .btn-card-buy {
    box-shadow: 0 4px 14px rgba(245, 185, 66, 0.25);
    transform: translateY(-1px);
}
.prod-card:active .btn-card-buy { transform: translateY(1px); }

/* ---------- Global button / badge safety net ---------- */
button, .btn-sm, .btn-primary, .btn-secondary, .badge, .stock-pill,
.game-card-badge, .step-num-pill, .trust-item, .ticker-badge {
    white-space: nowrap !important;
}

/* ---------- Tablet / mobile ---------- */
@media (max-width: 768px) {
    .store-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .prod-top-row { padding: 12px 12px 6px; min-height: 66px; }
    .prod-brand-avatar { width: 42px; height: 42px; border-radius: 11px; }
    .prod-body { padding: 4px 12px 12px; }
}
@media (max-width: 640px) {
    .container { padding: 0 12px; }
    .navbar-inner { padding: 0 !important; gap: 8px !important; }
    .brand-title { font-size: 15px !important; }
    .btn-currency, .btn-auth-nav, .btn-search-nav { height: 34px; }
    .btn-search-nav { width: 34px !important; }
    .user-nav-badge { height: 36px; }
    .section-title-group h2 { font-size: 19px; }
    .section-title-group p { font-size: 12.5px; }
    .cat-pill { height: 36px; padding: 0 14px !important; font-size: 12.5px !important; }
    .category-pills { margin-bottom: 8px; }
    .prod-title { font-size: 12.5px; min-height: calc(1.25em * 2); }
    .prod-price-val { font-size: 12.5px; }
    .prod-footer { flex-wrap: wrap; row-gap: 8px; }
    .btn-card-buy { width: 100%; justify-content: center; height: 32px; }
}
@media (max-width: 380px) {
    .store-product-grid { gap: 8px; }
    .prod-top-row { padding: 10px 10px 4px; }
    .prod-body { padding: 4px 10px 10px; }
}

@media (prefers-reduced-motion: reduce) {
    .prod-card, .cat-pill, .btn-card-buy, .store-nav-item { transition: none; }
}

/* ---------- Fixes after live check ---------- */
/* Banner holding a non-URL value (e.g. a Telegram file_id) can never render: collapse it */
#storeHeaderBannerContainer:has(#storeHeaderBannerImg:not([src^="http"]):not([src^="/"]):not([src^="data:"])) {
    display: none !important;
}
@media (max-width: 1180px) and (min-width: 961px) {
    .navbar-inner { gap: 12px; }
    .nav-links { justify-content: flex-start; margin-left: 4px; }
    .store-nav-item { padding: 0 8px !important; font-size: 12.5px !important; gap: 5px !important; }
}

@media (max-width: 1180px) and (min-width: 961px) {
    .store-nav-item i { display: none; }
    .store-nav-item { padding: 0 11px !important; }
}

@media (max-width: 640px) {
    .navbar-inner { padding: 0 12px !important; }
    .section-header-bar { margin-top: 6px; }
}

/* ==========================================================================
   POLISH LAYER 2 - notice, scrollbars, modals, game cards, footer, focus
   ========================================================================== */
/* Maintenance notice was sticky at top:0 and covered the sticky navbar */
#storeMaintenanceNotice {
    position: static !important;
    box-shadow: none !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.25);
    line-height: 1.4;
}

/* Slim dark scrollbars (Windows default bars clashed with the theme) */
* { scrollbar-width: thin; scrollbar-color: rgba(148, 163, 184, 0.35) transparent; }
*::-webkit-scrollbar { width: 8px; height: 8px; }
*::-webkit-scrollbar-track { background: transparent; }
*::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.3);
    border-radius: 99px;
    border: 2px solid transparent;
    background-clip: content-box;
}
*::-webkit-scrollbar-thumb:hover { background: rgba(245, 185, 66, 0.55); background-clip: content-box; }
.category-pills, .hero-trust-badges { scrollbar-width: none; }

/* Text selection + keyboard focus */
::selection { background: rgba(245, 185, 66, 0.3); color: #fff; }
a:focus-visible, button:focus-visible, .cat-pill:focus-visible, .prod-card:focus-visible,
input:focus-visible, select:focus-visible, textarea:focus-visible {
    outline: 2px solid rgba(245, 185, 66, 0.75);
    outline-offset: 2px;
}

/* ---------- Modals ---------- */
.modal-overlay {
    background: rgba(5, 8, 16, 0.72);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}
.modal-card {
    background: #111827;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.7);
}
.modal-header { border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
.co-step-card, .game-step-block {
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 14px;
}
.modal-card input[type="text"], .modal-card input[type="password"], .modal-card input[type="number"],
.modal-card input[type="email"], .modal-card select, .modal-card textarea {
    transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s var(--ease);
}
.modal-card input:focus, .modal-card select:focus, .modal-card textarea:focus {
    border-color: var(--gold-primary);
    box-shadow: 0 0 0 3px rgba(245, 185, 66, 0.14);
}
.coupon-row input, #loginCaptchaInput { font-family: var(--font-mono); }
.btn-apply-coupon, .modal-card button { white-space: nowrap !important; }

/* ---------- Game catalog cards ---------- */
.game-catalog-grid { gap: 14px; }
.game-card {
    border-radius: 16px;
    padding: 10px 10px 12px;
    transition: transform 0.22s var(--ease), border-color 0.22s var(--ease), background 0.22s var(--ease), box-shadow 0.22s var(--ease);
}
.game-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px -10px rgba(245, 185, 66, 0.28);
}
.game-card:active { transform: translateY(0); }
.game-card-img-wrap { border-radius: 12px; }
.game-card-title { font-size: 13px; }
.game-card-pub { margin-bottom: 0; }
.game-nominal-card .gnc-price { font-size: 12px; }

/* ---------- Steps + footer ---------- */
.step-box { border-radius: 16px; border: 1px solid rgba(255, 255, 255, 0.08); }
.step-num { font-family: var(--font-mono); }
footer a, .footer-grid a { transition: color 0.2s var(--ease); }
footer a:hover, .footer-grid a:hover { color: var(--gold-primary); }
.footer-grid span, .footer-grid .pay-badge { white-space: nowrap; }

@media (max-width: 640px) {
    #storeMaintenanceNotice { font-size: 11.5px !important; padding: 8px 12px !important; }
    .game-catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .modal-card { border-radius: 16px; }
}

/* ==========================================================================
   NAVBAR OVERFLOW FIX - long store names + extra buttons (tenant stores)
   Search is the flexible part; menu is clipped instead of overlapping.
   ========================================================================== */
.store-navbar .container { max-width: 1480px; }
.brand-logo { max-width: 260px; min-width: 0; }
.logo-text { min-width: 0; }
.brand-title {
    display: block;
    max-width: 190px;
    overflow: hidden;
    text-overflow: ellipsis;
}
.nav-search { flex: 1 1 160px; min-width: 140px; max-width: 300px; }
.nav-links { flex: 0 1 auto; overflow: hidden; justify-content: flex-start; }
.nav-actions { flex-shrink: 0; }
.nav-auth-area { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.nav-auth-area > * { flex-shrink: 0; }

@media (max-width: 1500px) and (min-width: 961px) {
    .store-nav-item i { display: none; }
    .store-nav-item { padding: 0 11px !important; }
}
@media (max-width: 1320px) and (min-width: 961px) {
    .nav-search { display: none; }
    .btn-search-nav { display: flex; width: 38px; }
    .nav-links { flex: 1 1 auto; min-width: 0; margin-left: 4px; }
}

@media (max-width: 1060px) and (min-width: 961px) {
    .brand-title { max-width: 110px; font-size: 16px; }
    .brand-logo { gap: 8px; }
    .navbar-inner { gap: 8px; }
    .store-nav-item { padding: 0 8px !important; font-size: 12px !important; }
    .btn-auth-nav { padding: 0 10px !important; font-size: 12px !important; }
    .nav-actions, .nav-auth-area { gap: 6px; }
}

@media (max-width: 1000px) and (min-width: 961px) {
    .brand-title { max-width: 72px; }
    .store-nav-item { padding: 0 6px !important; }
}

/* ==========================================================================
   GAME GRID CONSISTENCY (phone preview + mobile)
   Older rules used repeat(2, 1fr) !important, so a long nowrap title (e.g.
   "Mobile Legends: Bang Bang") stretched its column and shrank neighbours.
   ========================================================================== */
@media (max-width: 768px) {
    .game-catalog-grid,
    .store-product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}
body.in-phone-preview .game-catalog-grid,
body.in-phone-preview .store-product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
}
.game-card, .prod-card { min-width: 0; }
.game-card-title, .game-card-pub {
    width: 100%;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.game-card-img-wrap {
    width: 100%;
    aspect-ratio: 1 / 1;
    flex-shrink: 0;
    background: #0b1120;
}
.game-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ==========================================================================
   SWEETALERT2 - dark premium theme (popups were default white on dark UI)
   ========================================================================== */
.swal2-container.swal2-backdrop-show,
.swal2-container.swal2-noanimation { background: rgba(5, 8, 16, 0.72) !important; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.swal2-popup {
    background: #111827 !important;
    color: #cbd5e1 !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 18px !important;
    box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.75) !important;
    padding: 1.6em 1.4em 1.4em !important;
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}
.swal2-title {
    color: #f8fafc !important;
    font-size: 1.25rem !important;
    font-weight: 800 !important;
    letter-spacing: -0.3px;
    padding: 0.4em 0.6em 0 !important;
}
.swal2-html-container { color: #cbd5e1 !important; font-size: 0.92rem !important; margin: 0.9em 0.6em 0.2em !important; }
.swal2-icon { transform: scale(0.82); margin: 0.6em auto 0 !important; }
.swal2-icon.swal2-info { border-color: rgba(56, 189, 248, 0.55) !important; color: #38bdf8 !important; }
.swal2-icon.swal2-warning { border-color: rgba(245, 185, 66, 0.55) !important; color: #f5b942 !important; }
.swal2-icon.swal2-error { border-color: rgba(239, 68, 68, 0.55) !important; color: #f87171 !important; }
.swal2-icon.swal2-error [class^=swal2-x-mark-line] { background-color: #f87171 !important; }
.swal2-icon.swal2-success { border-color: rgba(16, 185, 129, 0.5) !important; color: #34d399 !important; }
.swal2-icon.swal2-success [class^=swal2-success-line] { background-color: #34d399 !important; }
.swal2-icon.swal2-success .swal2-success-ring { border-color: rgba(16, 185, 129, 0.3) !important; }
.swal2-icon.swal2-success [class^=swal2-success-circular-line],
.swal2-icon.swal2-success .swal2-success-fix { background: #111827 !important; }
.swal2-actions { gap: 8px; margin-top: 1.2em !important; }
.swal2-styled { white-space: nowrap !important; border-radius: 10px !important; font-weight: 700 !important; font-size: 0.9rem !important; padding: 0.65em 1.4em !important; box-shadow: none !important; transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.2s cubic-bezier(0.4, 0, 0.2, 1), background 0.2s; }
.swal2-styled:hover { transform: translateY(-1px); }
.swal2-styled:active { transform: translateY(1px); }
.swal2-styled.swal2-confirm { background: linear-gradient(180deg, #f8c95a, #f5b942) !important; color: #0b1120 !important; }
.swal2-styled.swal2-confirm:hover { box-shadow: 0 4px 14px rgba(245, 185, 66, 0.28) !important; }
.swal2-styled.swal2-cancel, .swal2-styled.swal2-deny { background: rgba(255, 255, 255, 0.07) !important; color: #e2e8f0 !important; border: 1px solid rgba(255, 255, 255, 0.1) !important; }
.swal2-styled:focus-visible { outline: 2px solid rgba(245, 185, 66, 0.75) !important; outline-offset: 2px; box-shadow: none !important; }
.swal2-input, .swal2-textarea, .swal2-select {
    background: #0b1120 !important;
    color: #f8fafc !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 10px !important;
    box-shadow: none !important;
}
.swal2-input:focus, .swal2-textarea:focus, .swal2-select:focus { border-color: #f5b942 !important; box-shadow: 0 0 0 3px rgba(245, 185, 66, 0.14) !important; }
.swal2-input::placeholder, .swal2-textarea::placeholder { color: #64748b !important; }
.swal2-validation-message { background: rgba(239, 68, 68, 0.1) !important; color: #fca5a5 !important; }
.swal2-footer { border-top: 1px solid rgba(255, 255, 255, 0.06) !important; color: #94a3b8 !important; }
.swal2-timer-progress-bar { background: rgba(245, 185, 66, 0.6) !important; }
.swal2-close { color: #94a3b8 !important; }
.swal2-close:hover { color: #f5b942 !important; background: transparent !important; }
.swal2-loader { border-color: #f5b942 transparent #f5b942 transparent !important; }
.swal2-popup.swal2-toast { padding: 0.7em 1em !important; border-radius: 14px !important; }
.swal2-popup.swal2-toast .swal2-title { font-size: 0.9rem !important; padding: 0 !important; margin: 0 0.6em !important; }
.swal2-popup.swal2-toast .swal2-icon { transform: none; margin: 0 !important; }
@media (max-width: 640px) { .swal2-popup:not(.swal2-toast) { width: calc(100vw - 28px) !important; } }

/* ==========================================================================
   MEMBER BADGE - icon-only profile button on phones and in the phone preview
   (name + balance stay in the member dashboard; wide screens unchanged)
   ========================================================================== */
@media (max-width: 640px) {
    .user-nav-badge {
        width: 36px;
        height: 36px;
        padding: 0 !important;
        justify-content: center;
        gap: 0 !important;
        border-radius: 50%;
        flex-shrink: 0;
    }
    .user-nav-badge .user-nav-info { display: none !important; }
    .user-nav-badge i { font-size: 20px !important; }
}
body.in-phone-preview .user-nav-badge {
    width: 36px;
    height: 36px;
    padding: 0 !important;
    justify-content: center;
    gap: 0 !important;
    border-radius: 50%;
    flex-shrink: 0;
}
body.in-phone-preview .user-nav-badge .user-nav-info { display: none !important; }
body.in-phone-preview .user-nav-badge i { font-size: 20px !important; }

/* ==========================================================================
   DASHBOARD SETTINGS SCREENS (Pengaturan Toko & Gateway, Pengaturan Web App)
   Calmer forms: muted label icons (gold reserved for actions/headings),
   consistent spacing, flat borders, quieter dashed boxes, solid buttons.
   Scoped to the two settings tabs so other dashboard pages are untouched.
   ========================================================================== */
#tab-tenant-settings > h2,
#tab-webapp-settings .page-header h2 {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.3px;
}
#tab-tenant-settings > .subtitle { margin-bottom: 22px; }
#tab-tenant-settings > div[style*="grid"] {
    gap: 22px !important;
    align-items: start;
}

/* Panels */
#tab-tenant-settings .glass-panel,
#tab-webapp-settings .glass-panel {
    background: rgba(21, 27, 35, 0.9) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 16px !important;
    padding: 26px 26px 24px !important;
    box-shadow: none !important;
    backdrop-filter: none;
}
#tab-tenant-settings .glass-panel h3,
#tab-webapp-settings .glass-panel h3 {
    font-size: 15px !important;
    font-weight: 700;
    color: #f8fafc;
    letter-spacing: -0.1px;
    display: flex;
    align-items: center;
    gap: 9px;
}
#tab-tenant-settings .glass-panel h3 i,
#tab-webapp-settings .glass-panel h3 i {
    width: 30px;
    height: 30px;
    border-radius: 9px;
    background: rgba(245, 185, 66, 0.1);
    border: 1px solid rgba(245, 185, 66, 0.2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    color: var(--gold-primary);
}
#tab-tenant-settings .glass-panel > .subtitle,
#tab-tenant-settings .glass-panel > div > .subtitle,
#tab-webapp-settings .glass-panel > p {
    font-size: 12.5px !important;
    line-height: 1.5;
    color: #94a3b8 !important;
    margin-bottom: 20px !important;
}

/* Sub-sections (Bot Telegram, Ganti Password) */
#tab-tenant-settings .glass-panel div[style*="border-top"] {
    border-top: 1px solid rgba(255, 255, 255, 0.07) !important;
    margin: 22px 0 20px !important;
    padding-top: 20px !important;
}
#tab-tenant-settings .glass-panel h4 {
    font-size: 13.5px !important;
    font-weight: 700;
    color: #f1f5f9;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px !important;
}
#tab-tenant-settings .glass-panel h4 i { font-size: 13px; }

/* Fields */
#tab-tenant-settings .input-group,
#tab-webapp-settings .input-group { margin-bottom: 18px; }
#tab-tenant-settings .input-group label,
#tab-webapp-settings .input-group label {
    font-size: 12.5px;
    font-weight: 600;
    color: #cbd5e1;
    margin-bottom: 7px;
    display: flex;
    align-items: center;
    gap: 8px;
    line-height: 1.35;
}
/* label icons: muted, same width, so labels align */
#tab-tenant-settings .input-group label i,
#tab-webapp-settings .input-group label i {
    color: #64748b !important;
    width: 14px;
    text-align: center;
    font-size: 12px;
    flex-shrink: 0;
}
#tab-tenant-settings .input-group label span[style*="font-size: 11px"] { color: #64748b !important; font-weight: 500; }
#tab-tenant-settings input[type="text"],
#tab-tenant-settings input[type="password"],
#tab-tenant-settings input[type="number"],
#tab-tenant-settings textarea,
#tab-webapp-settings input[type="text"],
#tab-webapp-settings input[type="password"],
#tab-webapp-settings input[type="number"],
#tab-webapp-settings input[type="url"],
#tab-webapp-settings textarea,
#tab-webapp-settings select {
    background: #0b1120;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 0 14px;
    height: 44px;
    font-size: 13.5px;
    color: #f8fafc;
    transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s var(--ease);
}
#tab-tenant-settings textarea,
#tab-webapp-settings textarea { height: auto; padding: 11px 14px; line-height: 1.5; }
#tab-tenant-settings input::placeholder,
#tab-tenant-settings textarea::placeholder,
#tab-webapp-settings input::placeholder { color: #475569; }
#tab-tenant-settings input:hover:not([readonly]):not(:focus),
#tab-webapp-settings input:hover:not(:focus) { border-color: rgba(255, 255, 255, 0.18); }
#tab-tenant-settings input:focus,
#tab-tenant-settings textarea:focus,
#tab-webapp-settings input:focus,
#tab-webapp-settings textarea:focus,
#tab-webapp-settings select:focus {
    border-color: var(--gold-primary);
    box-shadow: 0 0 0 3px rgba(245, 185, 66, 0.12);
}
#tab-tenant-settings input[readonly] {
    background: #0d1424 !important;
    color: #cbd5e1;
    font-family: var(--font-mono);
    font-size: 12.5px !important;
}
#tab-tenant-settings .input-group small,
#tab-webapp-settings .input-group small {
    display: block;
    margin-top: 7px !important;
    font-size: 11.5px !important;
    line-height: 1.5;
    color: #64748b !important;
}
#tab-tenant-settings .input-group small a { color: var(--gold-primary) !important; text-decoration: none !important; }
#tab-tenant-settings .input-group small a:hover { text-decoration: underline !important; }
#tab-tenant-settings .input-group small i { color: #64748b !important; }
#tab-tenant-settings code {
    font-family: var(--font-mono);
    font-size: 11px;
    background: rgba(255, 255, 255, 0.06);
    padding: 1px 6px;
    border-radius: 5px;
    color: #cbd5e1;
}

/* Copy / regenerate icon buttons beside readonly fields */
#tab-tenant-settings .input-group > div[style*="display: flex"] { gap: 8px !important; align-items: stretch; }
#tab-tenant-settings .input-group > div[style*="display: flex"] .btn-sm {
    width: 44px;
    height: 44px;
    padding: 0 !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    flex-shrink: 0;
    transition: transform 0.2s var(--ease), background 0.2s var(--ease), border-color 0.2s var(--ease);
}
#tab-tenant-settings .input-group > div[style*="display: flex"] .btn-sm:hover { transform: translateY(-1px); background: rgba(255, 255, 255, 0.08); }
#tab-tenant-settings .input-group > div[style*="display: flex"] .btn-sm:active { transform: translateY(1px); }

/* APK card: quiet instead of yellow dashed box */
#tab-tenant-settings .glass-panel div[style*="dashed"][style*="text-align: center"] {
    background: rgba(255, 255, 255, 0.025) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 12px !important;
    padding: 16px 18px !important;
    margin-bottom: 22px !important;
}
#tab-tenant-settings .glass-panel div[style*="dashed"][style*="text-align: center"] > div {
    color: #f1f5f9 !important;
    font-size: 13.5px !important;
}
#tab-tenant-settings .glass-panel div[style*="dashed"][style*="text-align: center"] > div i { color: #34d399; margin-right: 4px; }
#tab-tenant-settings .glass-panel div[style*="dashed"][style*="text-align: center"] p {
    font-size: 12px !important;
    line-height: 1.5;
    max-width: 46ch;
    margin: 0 auto 12px !important;
}

/* QRIS upload box */
#tab-tenant-settings .qris-smart-box {
    background: rgba(255, 255, 255, 0.025);
    border: 1px dashed rgba(255, 255, 255, 0.16);
    border-radius: 12px;
    padding: 14px 16px;
}
#tab-tenant-settings .qris-smart-box:hover { border-color: rgba(245, 185, 66, 0.55); background: rgba(245, 185, 66, 0.04); }
#tab-tenant-settings .qris-smart-icon { background: rgba(255, 255, 255, 0.05); border-color: rgba(255, 255, 255, 0.1); }
#tab-tenant-settings .qris-smart-box .btn-sm { height: 34px; padding: 0 12px; }
#tab-tenant-settings .qris-preview-card { background: rgba(16, 185, 129, 0.06); border-color: rgba(16, 185, 129, 0.3); }
#tab-tenant-settings #tntStaticQris { font-size: 11px; letter-spacing: 0.2px; margin-top: 10px; }

/* Primary action buttons */
#tab-tenant-settings .btn-primary-gold,
#tab-webapp-settings .btn-primary-gold {
    height: 46px;
    border-radius: 11px;
    font-size: 13.5px;
    font-weight: 700;
    letter-spacing: 0.1px;
    white-space: nowrap !important;
    box-shadow: none;
    transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), filter 0.2s var(--ease);
}
#tab-tenant-settings .btn-primary-gold:hover,
#tab-webapp-settings .btn-primary-gold:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(245, 185, 66, 0.25);
}
#tab-tenant-settings .btn-primary-gold:active,
#tab-webapp-settings .btn-primary-gold:active { transform: translateY(1px); }
#tab-tenant-settings a.btn-primary-gold { height: 38px; display: inline-flex !important; align-items: center; padding: 0 18px !important; }

/* Status pill ("Aktif s/d ...") */
#tab-tenant-settings #tntExpiredBadge { white-space: nowrap !important; font-size: 11px !important; padding: 4px 10px; }

/* Sidebar header: long store names stay readable */
.sidebar-header { padding: 20px 18px; }
.sidebar-header h2, .sidebar-header .brand-title, .sidebar-header > div > * { overflow-wrap: anywhere; }
.nav-link { transition: background 0.2s var(--ease), color 0.2s var(--ease); }
.nav-link i { width: 18px; text-align: center; flex-shrink: 0; }
.nav-link, .nav-link span { white-space: normal; }

@media (max-width: 640px) {
    #tab-tenant-settings .glass-panel,
    #tab-webapp-settings .glass-panel { padding: 20px 16px 18px !important; }
    #tab-tenant-settings > div[style*="grid"] { grid-template-columns: minmax(0, 1fr) !important; }
}

/* ==========================================================================
   DASHBOARD REDESIGN (admin + tenant) - scoped to #appContainer
   Direction: Stripe / Linear / Vercel dashboards. Flat surfaces separated by
   1px hairlines instead of boxes-in-boxes, one restrained gold accent, a
   compact type scale, quiet icons, mono tabular numbers, calm tables.
   Structure, ids and handlers are untouched; this is presentation only.
   ========================================================================== */
#appContainer {
    --d-bg: #0b1120;
    --d-surface: #0f1729;
    --d-surface-2: #131c30;
    --d-line: rgba(255, 255, 255, 0.07);
    --d-line-strong: rgba(255, 255, 255, 0.12);
    --d-text: #f1f5f9;
    --d-text-2: #cbd5e1;
    --d-muted: #8391a7;
    background: var(--d-bg);
    color: var(--d-text-2);
}
#appContainer .main-content { background: var(--d-bg); }
#appContainer .content-wrapper { padding: 28px 32px 56px; max-width: 1360px; width: 100%; margin: 0 auto; }

/* ---------- Sidebar ---------- */
#appContainer .sidebar.glass-panel {
    background: #0c1322;
    border: 0;
    border-right: 1px solid var(--d-line);
    border-radius: 0;
    box-shadow: none;
}
#appContainer .sidebar-header {
    justify-content: flex-start;
    text-align: left;
    padding: 20px 20px 16px;
    border-bottom: 0;
}
#appContainer .sidebar-header h3 {
    font-size: 16px;
    font-weight: 800;
    letter-spacing: -0.3px;
    color: var(--d-text);
    line-height: 1.25;
}
#appContainer .sidebar-header h3 .gold { color: var(--gold-primary); }
#appContainer #adminSidebarSubtitle {
    font-size: 10.5px !important;
    letter-spacing: 0.7px;
    text-transform: uppercase;
    color: #64748b !important;
    margin-top: 4px !important;
}
#appContainer .nav-menu { padding: 6px 12px 20px; }
#appContainer .nav-item { margin-bottom: 2px; }
#appContainer .nav-link {
    position: relative;
    height: 36px;
    padding: 0 12px;
    gap: 11px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    color: #94a3b8;
    white-space: nowrap !important;
}
#appContainer .nav-link i {
    width: 16px;
    font-size: 13px;
    text-align: center;
    color: #64748b !important;
    transition: color 0.2s var(--ease);
}
#appContainer .nav-link:hover {
    background: rgba(255, 255, 255, 0.045);
    color: #e2e8f0;
}
#appContainer .nav-link:hover i { color: #94a3b8 !important; }
#appContainer .nav-link.active {
    background: rgba(255, 255, 255, 0.07);
    color: #fff;
    font-weight: 600;
}
#appContainer .nav-link.active i { color: var(--gold-primary) !important; }
#appContainer .nav-link.active::before {
    content: '';
    position: absolute;
    left: -12px;
    top: 8px;
    bottom: 8px;
    width: 3px;
    border-radius: 0 3px 3px 0;
    background: var(--gold-primary);
}
/* "Buka Web Toko" is a utility link, not a page: separate it quietly */
#appContainer #navLinkExitStore {
    color: #7dd3fc !important;
    margin-bottom: 8px;
}
#appContainer .nav-item:first-child { padding-bottom: 10px; margin-bottom: 8px; border-bottom: 1px solid var(--d-line); }
#appContainer #navLinkExitStore i { color: #7dd3fc !important; }

/* ---------- Topbar ---------- */
#appContainer .topbar.glass-panel {
    position: sticky;
    top: 0;
    z-index: 40;
    height: 56px;
    padding: 0 32px;
    background: rgba(11, 17, 32, 0.82);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 0;
    border-bottom: 1px solid var(--d-line);
    border-radius: 0;
    box-shadow: none;
}
#appContainer .user-profile { gap: 8px; margin-left: auto; }
#appContainer .btn-topbar-action {
    height: 32px;
    padding: 0 12px;
    background: transparent;
    border: 1px solid var(--d-line-strong) !important;
    color: var(--d-text-2) !important;
    font-size: 12.5px;
    font-weight: 600;
    white-space: nowrap !important;
}
#appContainer .btn-topbar-action:hover { background: rgba(255, 255, 255, 0.05); border-color: rgba(255, 255, 255, 0.2) !important; }
#appContainer .admin-top-uname-wrap {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 32px;
    padding: 0 12px 0 8px;
    border-radius: 99px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--d-line);
    font-size: 12.5px;
    color: var(--d-text);
    white-space: nowrap;
}
#appContainer .admin-top-uname-wrap i {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(245, 185, 66, 0.14);
    color: var(--gold-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 9px;
}
#appContainer .btn-logout {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    color: #94a3b8;
    font-size: 14px;
    transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
#appContainer .btn-logout:hover { background: rgba(239, 68, 68, 0.12); color: #f87171; }

/* ---------- Page header ---------- */
#appContainer .tab-pane > h2,
#appContainer .page-header h2 {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.4px;
    color: var(--d-text);
    line-height: 1.25;
}
#appContainer .tab-pane > h2 .gold,
#appContainer .page-header h2 .gold { color: inherit; }
#appContainer .page-header { margin-bottom: 24px; gap: 14px; align-items: flex-end; }
#appContainer .subtitle { color: var(--d-muted); font-size: 13.5px; margin: 4px 0 24px; }
#appContainer .page-header .subtitle { margin-bottom: 0; }

/* ---------- Surfaces: flat cards with hairlines ---------- */
#appContainer .glass-panel:not(.sidebar):not(.topbar) {
    background: var(--d-surface);
    border: 1px solid var(--d-line);
    border-radius: 14px;
    box-shadow: none;
    backdrop-filter: none;
}
#appContainer .glass-panel h3 {
    font-size: 14.5px;
    font-weight: 700;
    color: var(--d-text);
    letter-spacing: -0.1px;
}
#appContainer .glass-panel h3 > i {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--d-line);
    color: var(--gold-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    margin-right: 6px;
}

/* ---------- Stat cards ---------- */
#appContainer .stats-grid { gap: 16px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
#appContainer .stat-card.glass-panel {
    position: relative;
    display: block;
    padding: 18px 20px 16px;
    border-radius: 14px;
    transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}
#appContainer .stat-card.glass-panel:hover { border-color: var(--d-line-strong); background: var(--d-surface-2); }
#appContainer .stat-icon {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    font-size: 13px;
}
#appContainer .stat-info h4 {
    font-size: 12.5px;
    font-weight: 500;
    color: var(--d-muted);
    letter-spacing: 0;
    padding-right: 40px;
}
#appContainer .stat-info h3 {
    font-family: var(--font-mono);
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.8px;
    margin: 10px 0 6px;
    color: var(--d-text) !important;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}
#appContainer .stat-info h3 small { font-family: 'Plus Jakarta Sans', sans-serif; letter-spacing: 0; }
#appContainer .stat-info small { font-size: 11.5px !important; color: #64748b !important; }

/* ---------- Tables ---------- */
#appContainer .card-table.glass-panel { padding: 20px 0 0 !important; overflow: hidden; }
#appContainer .card-table .page-header { padding: 0 22px; margin-bottom: 16px; }
#appContainer .table-responsive { overflow-x: auto; border-top: 1px solid var(--d-line); }
#appContainer .data-table { border-collapse: separate; border-spacing: 0; }
#appContainer .data-table th {
    background: rgba(255, 255, 255, 0.02);
    color: #7c8aa0;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.7px;
    text-transform: uppercase;
    padding: 11px 18px;
    border-bottom: 1px solid var(--d-line);
    white-space: nowrap;
}
#appContainer .data-table td {
    padding: 14px 18px;
    font-size: 13px;
    color: var(--d-text-2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.045);
    vertical-align: middle;
}
#appContainer .data-table tbody tr { transition: background 0.15s var(--ease); }
#appContainer .data-table tbody tr:hover { background: rgba(255, 255, 255, 0.025); }
#appContainer .data-table tbody tr:last-child td { border-bottom: 0; }
#appContainer .data-table td b, #appContainer .data-table td strong { color: var(--d-text); font-weight: 600; }
#appContainer .table-pagination { border-top: 1px solid var(--d-line); }

/* ---------- Buttons ---------- */
#appContainer .btn-sm {
    height: 32px;
    padding: 0 12px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--d-line-strong);
    color: var(--d-text-2);
    font-size: 12.5px;
    font-weight: 600;
    white-space: nowrap !important;
    transition: background 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease), transform 0.2s var(--ease);
}
#appContainer .btn-sm:hover { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.22); color: #fff; }
#appContainer .btn-sm:active { transform: translateY(1px); }
#appContainer .btn-primary-gold {
    height: 40px;
    padding: 0 18px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap !important;
    box-shadow: none;
}
#appContainer .btn-primary-gold:hover { transform: translateY(-1px); box-shadow: 0 4px 14px rgba(245, 185, 66, 0.25); }
#appContainer .btn-primary-gold:active { transform: translateY(1px); }
#appContainer .btn-outline { height: 36px; border-radius: 9px; padding: 0 14px; white-space: nowrap !important; }

/* ---------- Fields (all dashboard forms) ---------- */
#appContainer input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="color"]):not([type="range"]),
#appContainer select {
    height: 40px;
    padding: 0 12px;
    background: #0b1120;
    border: 1px solid var(--d-line-strong);
    border-radius: 9px;
    color: var(--d-text);
    font-size: 13px;
    transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
#appContainer textarea {
    background: #0b1120;
    border: 1px solid var(--d-line-strong);
    border-radius: 9px;
    padding: 10px 12px;
    font-size: 13px;
    color: var(--d-text);
}
#appContainer input:focus, #appContainer select:focus, #appContainer textarea:focus {
    border-color: var(--gold-primary);
    box-shadow: 0 0 0 3px rgba(245, 185, 66, 0.12);
}
#appContainer .input-group label { font-size: 12.5px; font-weight: 600; color: var(--d-text-2); }

/* ---------- Gold only where it means something ---------- */
#appContainer .input-group label i.gold,
#appContainer .page-header i.gold { color: #64748b; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    #appContainer .content-wrapper { padding: 20px 16px 48px; }
    #appContainer .topbar.glass-panel { padding: 0 14px; }
    #appContainer .nav-link.active::before { left: -12px; }
}
@media (max-width: 640px) {
    #appContainer .tab-pane > h2, #appContainer .page-header h2 { font-size: 19px; }
    #appContainer .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    #appContainer .stat-card.glass-panel { padding: 14px 14px 12px; }
    #appContainer .stat-icon { display: none; }
    #appContainer .stat-info h4 { padding-right: 0; font-size: 11.5px; }
    #appContainer .stat-info h3 { font-size: 18px; }
}

@media (min-width: 1100px) {
    #appContainer #tab-dashboard .stats-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* QRIS box: only the upload button opens the file picker, so the box is not clickable */
.qris-smart-box { cursor: default !important; }
.qris-smart-box .btn-sm { cursor: pointer; }

/* Logo toko (Pengaturan Web App) */
.logo-setting-row { display: flex; align-items: center; gap: 18px; }
.logo-setting-preview {
    width: 76px;
    height: 76px;
    flex-shrink: 0;
    border-radius: 18px;
    background: #0b1120;
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.logo-setting-preview img { width: 100%; height: 100%; object-fit: cover; display: block; }
.logo-setting-fields { flex: 1; min-width: 0; }
@media (max-width: 640px) {
    .logo-setting-row { flex-direction: column; align-items: stretch; }
    .logo-setting-preview { width: 64px; height: 64px; border-radius: 16px; }
}

/* Phone preview: no fake notch/island, so the top padding made for it is not needed either */
.phone-notch { display: none !important; }
body.in-phone-preview .store-navbar { padding-top: 8px !important; }

/* Toasts must never dim the page: the dark backdrop is for modal popups only */
body.swal2-toast-shown .swal2-container,
.swal2-container.swal2-top-end:has(> .swal2-toast),
.swal2-container:has(> .swal2-toast) {
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    pointer-events: none;
}
.swal2-toast { pointer-events: auto; }

/* Kontrol Start / Stop bot Telegram (Pengaturan Toko & Gateway) */
.bot-control-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 12px 14px;
    margin-bottom: 18px;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
}
.bot-control-status { display: flex; align-items: center; gap: 12px; min-width: 0; }
.bot-control-status b { display: block; font-size: 13px; color: #f1f5f9; line-height: 1.3; }
.bot-control-status small { display: block; font-size: 11.5px; color: #8391a7; line-height: 1.4; margin-top: 1px; overflow-wrap: anywhere; }
.bot-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; background: #64748b; box-shadow: 0 0 0 4px rgba(100, 116, 139, 0.18); }
.bot-dot.on { background: #10b981; box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.18); }
.bot-dot.off { background: #64748b; box-shadow: 0 0 0 4px rgba(100, 116, 139, 0.18); }
.bot-dot.error { background: #ef4444; box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.18); }
.bot-control-actions { display: flex; gap: 8px; flex-shrink: 0; }
.bot-control-actions .btn-sm { white-space: nowrap !important; height: 34px; padding: 0 14px; }
.bot-btn-start:not(:disabled) { color: #34d399; border-color: rgba(16, 185, 129, 0.4); }
.bot-btn-stop:not(:disabled) { color: #f87171; border-color: rgba(239, 68, 68, 0.4); }
.bot-control-actions .btn-sm:disabled { opacity: 0.4; cursor: not-allowed; }
@media (max-width: 640px) {
    .bot-control-row { flex-direction: column; align-items: stretch; }
    .bot-control-actions .btn-sm { flex: 1; justify-content: center; }
}

/* Editor stok tunggal (modal Edit Produk) */
.stock-editor-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 10px; flex-wrap: wrap; }
.stock-editor-sub { font-size: 11.5px; color: #8391a7; margin-top: 3px; }
.stock-editor-tools { display: flex; align-items: center; gap: 8px; }
.stock-editor-lock { font-size: 11px; color: #34d399; white-space: nowrap; }
#epReadyCount { color: #34d399; font-family: 'JetBrains Mono', monospace; }
.stock-editor-textarea {
    width: 100%;
    min-height: 220px;
    max-height: 420px;
    resize: vertical;
    font-family: 'JetBrains Mono', monospace !important;
    font-size: 12.5px !important;
    line-height: 1.7 !important;
    padding: 12px 14px !important;
    background: #0b1120 !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 10px !important;
    color: #e2e8f0 !important;
    white-space: pre;
    overflow: auto;
    tab-size: 4;
}
.stock-editor-textarea:focus { border-color: #f5b942 !important; box-shadow: 0 0 0 3px rgba(245, 185, 66, 0.12) !important; }
.stock-editor-textarea:disabled { opacity: 0.55; }
.stock-editor-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 8px; flex-wrap: wrap; }
.stock-diff { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 11.5px; }
.stock-diff-none { color: #8391a7; }
.stock-diff-error { color: #f87171; }
.stock-diff-hint { color: #8391a7; margin-left: 2px; }
.stock-chip { padding: 2px 8px; border-radius: 99px; font-weight: 700; white-space: nowrap; font-family: 'JetBrains Mono', monospace; font-size: 11px; }
.stock-chip.add { color: #34d399; background: rgba(16, 185, 129, 0.12); border: 1px solid rgba(16, 185, 129, 0.3); }
.stock-chip.edit { color: #f5b942; background: rgba(245, 185, 66, 0.12); border: 1px solid rgba(245, 185, 66, 0.3); }
.stock-chip.del { color: #f87171; background: rgba(239, 68, 68, 0.12); border: 1px solid rgba(239, 68, 68, 0.3); }
.stock-line-count { font-size: 11px; color: #64748b; font-family: 'JetBrains Mono', monospace; white-space: nowrap; }

/* ==========================================================================
   IMPORT USER CSV (Kelola User)
   ========================================================================== */
.btn-import-users { color: #f5b942 !important; border-color: rgba(245, 185, 66, 0.4) !important; }
.uimp-card { max-width: 720px; width: 100%; }
.uimp-drop {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
    padding: 26px 18px; margin-bottom: 16px; text-align: center; cursor: pointer;
    border: 1.5px dashed rgba(255, 255, 255, 0.16); border-radius: 14px;
    background: rgba(255, 255, 255, 0.02);
    transition: border-color 0.2s cubic-bezier(0.4, 0, 0.2, 1), background 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.uimp-drop:hover, .uimp-drop.drag { border-color: rgba(245, 185, 66, 0.6); background: rgba(245, 185, 66, 0.04); }
.uimp-drop > i { font-size: 30px; color: #f5b942; }
.uimp-drop b { font-size: 14px; color: #f1f5f9; }
.uimp-drop span { font-size: 12px; color: #8391a7; }
.uimp-summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-bottom: 16px; }
.uimp-stat { padding: 12px 14px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, 0.08); background: rgba(255, 255, 255, 0.025); }
.uimp-stat b { display: block; font-family: 'JetBrains Mono', monospace; font-size: 20px; color: #f8fafc; }
.uimp-stat span { display: block; font-size: 12px; color: #cbd5e1; margin-top: 2px; }
.uimp-stat small { display: block; font-size: 11px; color: #8391a7; margin-top: 4px; font-family: 'JetBrains Mono', monospace; }
.uimp-stat.ok { border-color: rgba(16, 185, 129, 0.3); }
.uimp-stat.ok b { color: #34d399; }
.uimp-stat.bad b { color: #f87171; }
.uimp-map { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 12px; }
.uimp-map .input-group { margin-bottom: 12px; }
.uimp-map label, .uimp-card .input-group > label { font-size: 12px; font-weight: 600; color: #cbd5e1; margin-bottom: 6px; display: block; }
.uimp-map select { font-size: 12.5px; }
.uimp-mode { display: flex; flex-direction: column; gap: 8px; }
.uimp-mode label { display: flex; align-items: center; gap: 10px; font-size: 13px; color: #e2e8f0; font-weight: 500; cursor: pointer; margin: 0; }
.uimp-mode input { width: 16px !important; height: 16px !important; accent-color: #f5b942; margin: 0; flex-shrink: 0; }
.uimp-preview-title { font-size: 12px; font-weight: 600; color: #cbd5e1; margin: 4px 0 8px; }
.uimp-preview { border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 12px; max-height: 260px; overflow: auto; }
.uimp-preview .data-table th, .uimp-preview .data-table td { padding: 9px 14px; font-size: 12.5px; }
.uimp-preview code, .uimp-money { font-family: 'JetBrains Mono', monospace; font-weight: 700; }
.uimp-money { color: #f5b942; white-space: nowrap; }
.uimp-progress-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 10px; }
.uimp-progress-head b { font-size: 14px; color: #f1f5f9; }
.uimp-progress-head span { font-family: 'JetBrains Mono', monospace; font-weight: 700; color: #f5b942; font-size: 15px; }
.uimp-bar { height: 10px; border-radius: 99px; background: rgba(255, 255, 255, 0.06); overflow: hidden; }
.uimp-bar > div { height: 100%; width: 0; border-radius: 99px; background: linear-gradient(90deg, #d97706, #f5b942); transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1); }
.uimp-counts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.uimp-chip { padding: 4px 10px; border-radius: 99px; font-size: 12px; font-weight: 700; font-family: 'JetBrains Mono', monospace; white-space: nowrap; border: 1px solid; }
.uimp-chip.ok { color: #34d399; background: rgba(16, 185, 129, 0.1); border-color: rgba(16, 185, 129, 0.3); }
.uimp-chip.edit { color: #f5b942; background: rgba(245, 185, 66, 0.1); border-color: rgba(245, 185, 66, 0.3); }
.uimp-chip.skip { color: #cbd5e1; background: rgba(255, 255, 255, 0.05); border-color: rgba(255, 255, 255, 0.12); }
.uimp-chip.bad { color: #f87171; background: rgba(239, 68, 68, 0.1); border-color: rgba(239, 68, 68, 0.3); }
.uimp-note { width: 100%; font-size: 12px; color: #8391a7; margin-top: 4px; }
.uimp-footer { display: flex; justify-content: flex-end; gap: 10px; padding: 14px 20px; border-top: 1px solid rgba(255, 255, 255, 0.06); }
.uimp-footer .btn-sm { height: 40px; padding: 0 16px; }
.uimp-footer .btn-primary-gold { height: 40px; padding: 0 20px; white-space: nowrap !important; }
.uimp-footer .btn-primary-gold:disabled { opacity: 0.45; cursor: not-allowed; transform: none; box-shadow: none; }
@media (max-width: 640px) {
    .uimp-map { grid-template-columns: minmax(0, 1fr); }
    .uimp-footer .btn-sm, .uimp-footer .btn-primary-gold { flex: 1; justify-content: center; }
}


/* ==========================================================================
   MODAL EDIT PRODUK - rapi & konsisten
   Satu gaya untuk semua bagian: kartu datar ber-garis tipis, label kecil seragam,
   input 42px, tombol simpan menempel di bawah supaya selalu terlihat.
   ========================================================================== */
#editPriceModal .modal-card {
    max-width: 820px !important;
    width: calc(100% - 24px) !important;
    max-height: 92vh !important;
    padding: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden !important;
}
#editPriceModal .modal-header {
    position: sticky; top: 0; z-index: 3;
    background: #111827;
    padding: 16px 22px !important;
}
#editPriceModal .modal-header h3 { font-size: 16px; font-weight: 700; display: flex; align-items: center; gap: 8px; min-width: 0; }
#editPriceModal .modal-header h3 #epCodeTitle {
    font-family: 'JetBrains Mono', monospace; font-size: 13px; font-weight: 700;
    padding: 3px 10px; border-radius: 8px;
    background: rgba(245, 185, 66, 0.12); border: 1px solid rgba(245, 185, 66, 0.3);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 260px;
}
#editPriceModal .modal-body {
    padding: 20px 22px 0 !important;
    overflow-y: auto;
    flex: 1;
}

/* Label & field seragam */
#editPriceModal .input-group { margin-bottom: 14px !important; }
#editPriceModal .input-group > label {
    font-size: 12.5px !important; font-weight: 600 !important; color: #cbd5e1 !important;
    margin-bottom: 7px !important; display: flex !important; align-items: center; gap: 7px;
}
#editPriceModal .input-group > label i { color: #64748b !important; font-size: 12px; width: 14px; text-align: center; }
#editPriceModal input[type="text"], #editPriceModal input[type="number"], #editPriceModal select {
    height: 42px; padding: 0 12px; font-size: 13.5px;
    background: #0b1120; border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 10px; color: #f8fafc;
}
#editPriceModal textarea:not(.stock-editor-textarea) {
    background: #0b1120; border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 10px;
    padding: 10px 12px; font-size: 13.5px; line-height: 1.5; color: #f8fafc; resize: vertical;
}
#editPriceModal input:focus, #editPriceModal select:focus, #editPriceModal textarea:focus {
    border-color: #f5b942 !important; box-shadow: 0 0 0 3px rgba(245, 185, 66, 0.12) !important; outline: none;
}
#editPriceModal #epIdr, #editPriceModal #epUsd { font-family: 'JetBrains Mono', monospace; font-weight: 700; }

/* Preview banner */
#editPriceModal .smart-preview-label { font-size: 12px !important; font-weight: 600; color: #8391a7 !important; margin-bottom: 8px !important; }
#editPriceModal #epSmartPreviewBanner { margin-bottom: 20px !important; border: 1px solid rgba(255, 255, 255, 0.08); }

/* Semua kartu bagian: satu gaya */
#editPriceModal .glass-panel,
#editPriceModal .modal-body > div[style*="justify-content:space-between"][style*="border-radius: 12px"] {
    background: rgba(255, 255, 255, 0.025) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 14px !important;
    padding: 16px 18px !important;
    margin-bottom: 16px !important;
    box-shadow: none !important;
}
/* Judul kartu */
#editPriceModal .glass-panel > label,
#editPriceModal .glass-panel > div > label,
#editPriceModal .glass-panel > div > div > label {
    font-size: 14px !important; font-weight: 700 !important; color: #f1f5f9 !important;
    display: flex !important; align-items: center; gap: 8px; margin: 0;
}
#editPriceModal .glass-panel > label { margin-bottom: 12px !important; }
#editPriceModal #epVariationsPanel label { color: #f1f5f9 !important; }

/* Tombol kecil di dalam modal */
#editPriceModal .btn-sm {
    height: 36px; padding: 0 12px !important; display: inline-flex !important; align-items: center; justify-content: center; gap: 6px;
    border-radius: 9px; font-size: 12.5px; white-space: nowrap !important;
}
#editPriceModal .input-group .btn-sm { height: 42px; padding: 0 14px !important; }
#editPriceModal .preset-logos-bar { margin-top: 8px; gap: 6px; }

/* Editor stok */
#editPriceModal .stock-editor-head { margin-bottom: 12px; }
#editPriceModal .stock-editor-head label { font-size: 14px !important; }
#editPriceModal .stock-editor-sub { font-size: 12px; line-height: 1.5; }
#editPriceModal .stock-editor-tools .btn-sm { height: 32px; }
#editPriceModal #epStockTargetWrapper label { font-size: 12px !important; font-weight: 600; color: #cbd5e1 !important; }

/* Tombol aksi menempel di bawah */
#editPriceModal .modal-body > div:last-child {
    position: sticky; bottom: 0; z-index: 3;
    margin: 8px -22px 0 !important;
    padding: 14px 22px !important;
    background: #111827;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}
#editPriceModal .modal-body > div:last-child .btn-primary-gold,
#editPriceModal .modal-body > div:last-child .btn-sm { height: 44px; padding: 0 16px !important; font-size: 14px !important; white-space: nowrap !important; }

@media (max-width: 640px) {
    #editPriceModal .modal-card { width: calc(100% - 12px) !important; max-height: 96vh !important; }
    #editPriceModal .modal-header { padding: 14px 16px !important; }
    #editPriceModal .modal-header h3 { font-size: 14.5px; }
    #editPriceModal .modal-header h3 #epCodeTitle { max-width: 130px; }
    #editPriceModal .modal-body { padding: 16px 14px 0 !important; }
    #editPriceModal .modal-body > div:last-child { margin: 8px -14px 0 !important; padding: 12px 14px !important; }
    #editPriceModal .glass-panel { padding: 14px !important; }
    #editPriceModal .stock-editor-head { flex-direction: column; }
    #editPriceModal .stock-editor-tools { width: 100%; justify-content: space-between; }
}

/* Modal import: isi bisa digulir, tombol aksi selalu terlihat */
.uimp-card { display: flex; flex-direction: column; max-height: 92vh !important; overflow: hidden !important; padding: 0; }
.uimp-card .modal-body { overflow-y: auto; flex: 1; }
/* Judul editor stok: teks + angka tetap satu baris, alat di kanan */
#editPriceModal .stock-editor-head { flex-wrap: nowrap; }
#editPriceModal .stock-editor-head > div:first-child { flex: 1; min-width: 0; }
#editPriceModal .stock-editor-head label { display: block !important; }
#editPriceModal .stock-editor-head label i { margin-right: 6px; }
#editPriceModal .stock-editor-tools { flex-shrink: 0; }
@media (max-width: 640px) { #editPriceModal .stock-editor-head { flex-wrap: wrap; } }
#editPriceModal #epReadyCount { display: inline !important; }
#editPriceModal .glass-panel .stock-editor-head > div > label { display: block !important; }

/* ==========================================================================
   MENU ADMIN (pengguna semua toko + pembayaran sewa)
   ========================================================================== */
.plat-tabs { display: flex; gap: 8px; margin-bottom: 20px; flex-wrap: wrap; }
.plat-tab {
    height: 38px; padding: 0 16px; border-radius: 99px; cursor: pointer; white-space: nowrap !important;
    display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600;
    background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.1); color: #94a3b8;
    transition: background 0.2s cubic-bezier(0.4, 0, 0.2, 1), color 0.2s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.plat-tab:hover { color: #e2e8f0; border-color: rgba(255, 255, 255, 0.2); }
.plat-tab.active { background: rgba(245, 185, 66, 0.14); border-color: #f5b942; color: #f5b942; }

.plat-store-cards { display: flex; gap: 12px; overflow-x: auto; padding: 2px 2px 14px; margin-bottom: 6px; scrollbar-width: thin; }
.plat-store-card {
    flex: 0 0 auto; min-width: 190px; text-align: left; cursor: pointer; padding: 14px 16px; border-radius: 14px;
    display: flex; flex-direction: column; gap: 2px;
    background: #0f1729; border: 1px solid rgba(255, 255, 255, 0.07); color: #cbd5e1;
    transition: border-color 0.2s cubic-bezier(0.4, 0, 0.2, 1), background 0.2s cubic-bezier(0.4, 0, 0.2, 1), transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.plat-store-card:hover { border-color: rgba(255, 255, 255, 0.18); transform: translateY(-1px); }
.plat-store-card.active { border-color: #f5b942; background: rgba(245, 185, 66, 0.07); }
.plat-store-name { font-size: 12.5px; font-weight: 600; color: #cbd5e1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 200px; }
.plat-store-name em { font-style: normal; color: #f87171; font-size: 11px; }
.plat-store-num { font-family: 'JetBrains Mono', monospace; font-size: 22px; font-weight: 700; color: #f8fafc; letter-spacing: -0.5px; }
.plat-store-meta { font-size: 11px; color: #8391a7; white-space: nowrap; }
.plat-store-bal { font-family: 'JetBrains Mono', monospace; font-size: 11.5px; font-weight: 700; color: #f5b942; margin-top: 2px; }
.plat-store-tag { display: inline-block; padding: 3px 10px; border-radius: 99px; font-size: 11.5px; font-weight: 600; color: #cbd5e1; background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.1); white-space: nowrap; max-width: 170px; overflow: hidden; text-overflow: ellipsis; }
.plat-money { font-family: 'JetBrains Mono', monospace; font-weight: 700; color: #34d399; white-space: nowrap; }

.plat-pay-card { max-width: 760px; padding: 24px !important; }
.plat-pay-card h3 { font-size: 15px; display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.plat-pay-sub { font-size: 12.5px; color: #8391a7; line-height: 1.55; margin-bottom: 18px; }
.plat-radio {
    display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; margin-bottom: 10px; cursor: pointer; border-radius: 12px;
    background: rgba(255, 255, 255, 0.025); border: 1px solid rgba(255, 255, 255, 0.09);
    transition: border-color 0.2s cubic-bezier(0.4, 0, 0.2, 1), background 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.plat-radio:hover { border-color: rgba(255, 255, 255, 0.2); }
.plat-radio.active { border-color: #f5b942; background: rgba(245, 185, 66, 0.06); }
.plat-radio input { width: 17px !important; height: 17px !important; margin-top: 2px; accent-color: #f5b942; flex-shrink: 0; }
.plat-radio-body b { display: block; font-size: 13.5px; color: #f1f5f9; }
.plat-radio-body small { display: block; font-size: 12px; color: #8391a7; line-height: 1.5; margin-top: 2px; }
#saasCustomBox { margin: 14px 0 6px; padding: 16px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, 0.08); background: rgba(0, 0, 0, 0.2); }
#saasCustomBox .input-group:last-child { margin-bottom: 0; }
#saasCustomBox small { display: block; font-size: 11.5px; color: #8391a7; margin-top: 6px; line-height: 1.5; }
.plat-merchant { font-weight: 600; color: #34d399; margin-left: 6px; }
.plat-plans { font-size: 12px; color: #8391a7; line-height: 1.7; margin: 16px 0 14px; padding: 12px 14px; border-radius: 10px; background: rgba(255, 255, 255, 0.025); border: 1px solid rgba(255, 255, 255, 0.07); }
.plat-plans b { color: #cbd5e1; }
@media (max-width: 640px) { .plat-store-card { min-width: 160px; } .plat-pay-card { padding: 16px !important; } }


/* ==========================================================================
   SAAS GATEWAY (tab-tenants)
   ========================================================================== */
#appContainer .tn-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
#appContainer .tn-actions .btn-sm { height: 40px; padding: 0 14px; border-radius: 10px; }
#appContainer .tn-actions .btn-primary-gold { display: inline-flex; align-items: center; gap: 8px; }
#appContainer .tn-stats { margin-bottom: 16px; }
#appContainer .tn-apk { display: flex; gap: 16px; align-items: flex-start; padding: 20px 22px; margin-bottom: 16px; }
#appContainer .tn-apk-ic { width: 40px; height: 40px; border-radius: 10px; flex-shrink: 0; display: grid; place-items: center; font-size: 18px; color: #34d399; background: rgba(52, 211, 153, 0.1); border: 1px solid rgba(52, 211, 153, 0.22); }
#appContainer .tn-apk-body { flex: 1; min-width: 0; }
#appContainer .tn-apk-body h3 { margin: 0 0 2px; }
#appContainer .tn-apk-body p { font-size: 12.5px; color: var(--d-muted); margin: 0 0 12px; }
#appContainer .tn-apk-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
#appContainer .tn-apk-row code { height: 32px; display: inline-flex; align-items: center; padding: 0 12px; border-radius: 8px; background: #0b1120; border: 1px solid var(--d-line-strong); color: var(--d-text-2); font-family: var(--font-mono); font-size: 12px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#appContainer #tab-tenants .card-table .page-header { display: flex; align-items: center; }
#appContainer #tab-tenants .card-table .page-header h3 { margin: 0; }
#appContainer .tn-id { font-family: var(--font-mono); font-weight: 700; color: #64748b !important; }
#appContainer .tn-name { font-weight: 600; color: var(--d-text); }
#appContainer .tn-sub { font-size: 11.5px; color: #64748b; margin-top: 2px; }
#appContainer .tn-contact { white-space: nowrap; }
#appContainer .tn-contact i { color: #34d399; }
#appContainer .tn-sub .fa-telegram { color: #38bdf8; }
#appContainer .tn-key { display: flex; align-items: center; gap: 6px; }
#appContainer .tn-key code { font-family: var(--font-mono); font-size: 11.5px; color: var(--d-text-2); background: rgba(255, 255, 255, 0.04); border: 1px solid var(--d-line); padding: 4px 8px; border-radius: 6px; white-space: nowrap; }
#appContainer .btn-sm.tn-icon { width: 30px; height: 30px; padding: 0; justify-content: center; }
#appContainer .tn-qris { font-size: 12px; color: #64748b; white-space: nowrap; }
#appContainer .tn-qris.ok { color: #34d399; }
#appContainer .tn-date { font-family: var(--font-mono); font-size: 12px; white-space: nowrap; }
#appContainer .tn-badge { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 99px; font-size: 11.5px; font-weight: 600; white-space: nowrap !important; color: #94a3b8; background: rgba(148, 163, 184, 0.1); border: 1px solid rgba(148, 163, 184, 0.2); }
#appContainer .tn-badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
#appContainer .tn-badge.tn-green { color: #34d399; background: rgba(52, 211, 153, 0.1); border-color: rgba(52, 211, 153, 0.25); }
#appContainer .tn-badge.tn-red { color: #f87171; background: rgba(248, 113, 113, 0.1); border-color: rgba(248, 113, 113, 0.25); }
#appContainer .tn-row-actions { display: flex; gap: 6px; justify-content: flex-end; }
#appContainer .btn-sm.tn-renew { color: #34d399; border-color: rgba(52, 211, 153, 0.3); }
#appContainer .btn-sm.tn-renew:hover { background: rgba(52, 211, 153, 0.1); color: #6ee7b7; }
#appContainer .btn-sm.tn-del { color: #f87171; border-color: rgba(248, 113, 113, 0.3); }
#appContainer .btn-sm.tn-del:hover { background: rgba(248, 113, 113, 0.1); color: #fca5a5; }
@media (max-width: 640px) {
    #appContainer .tn-actions { width: 100%; }
    #appContainer .tn-actions > * { flex: 1; justify-content: center; }
    #appContainer .tn-apk { flex-direction: column; padding: 16px; }
}

/* ==========================================================================
   DASHBOARD MOTION (masuk tab, kartu, baris tabel, angka)
   ========================================================================== */
@keyframes dRise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes dFade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
#appContainer .tab-pane.tab-enter > * { animation: dRise 0.5s cubic-bezier(0.22, 1, 0.36, 1) both; }
#appContainer .tab-pane.tab-enter > *:nth-child(2) { animation-delay: 0.05s; }
#appContainer .tab-pane.tab-enter > *:nth-child(3) { animation-delay: 0.1s; }
#appContainer .tab-pane.tab-enter > *:nth-child(4) { animation-delay: 0.15s; }
#appContainer .tab-pane.tab-enter > *:nth-child(5) { animation-delay: 0.2s; }
#appContainer .tab-pane.tab-enter > *:nth-child(n+6) { animation-delay: 0.25s; }
#appContainer .tab-pane.tab-enter .stats-grid > .stat-card { animation: dRise 0.55s cubic-bezier(0.22, 1, 0.36, 1) both; }
#appContainer .tab-pane.tab-enter .stats-grid > .stat-card:nth-child(1) { animation-delay: 0.06s; }
#appContainer .tab-pane.tab-enter .stats-grid > .stat-card:nth-child(2) { animation-delay: 0.12s; }
#appContainer .tab-pane.tab-enter .stats-grid > .stat-card:nth-child(3) { animation-delay: 0.18s; }
#appContainer .tab-pane.tab-enter .stats-grid > .stat-card:nth-child(4) { animation-delay: 0.24s; }
#appContainer .tab-pane.tab-enter .stats-grid > .stat-card:nth-child(n+5) { animation-delay: 0.3s; }
#appContainer .data-table tbody tr { animation: dFade 0.35s cubic-bezier(0.22, 1, 0.36, 1) both; }
#appContainer .data-table tbody tr:nth-child(2) { animation-delay: 0.03s; }
#appContainer .data-table tbody tr:nth-child(3) { animation-delay: 0.06s; }
#appContainer .data-table tbody tr:nth-child(4) { animation-delay: 0.09s; }
#appContainer .data-table tbody tr:nth-child(5) { animation-delay: 0.12s; }
#appContainer .data-table tbody tr:nth-child(n+6) { animation-delay: 0.15s; }
#appContainer .stat-card.glass-panel { transition: border-color 0.2s var(--ease), background 0.2s var(--ease), transform 0.25s cubic-bezier(0.22, 1, 0.36, 1); }
#appContainer .stat-card.glass-panel:hover { transform: translateY(-2px); }
#appContainer .stat-icon { transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1); }
#appContainer .stat-card.glass-panel:hover .stat-icon { transform: scale(1.06); }
#appContainer .nav-link i { transition: transform 0.2s var(--ease), color 0.2s var(--ease); }
#appContainer .nav-link:hover i { transform: translateX(2px); }
@media (prefers-reduced-motion: reduce) {
    #appContainer .tab-pane.tab-enter > *,
    #appContainer .tab-pane.tab-enter .stats-grid > .stat-card,
    #appContainer .data-table tbody tr { animation: none !important; }
    #appContainer .stat-card.glass-panel:hover,
    #appContainer .stat-card.glass-panel:hover .stat-icon,
    #appContainer .nav-link:hover i { transform: none; }
}

/* scrollbar gelap tipis; di dalam modal disembunyikan (tetap bisa scroll) */
html { scrollbar-width: thin; scrollbar-color: rgba(255,255,255,0.14) transparent; color-scheme: dark; }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.12); border-radius: 99px; border: 2px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-thumb:hover { background: rgba(245,185,66,0.45); background-clip: padding-box; }
::-webkit-scrollbar-corner { background: transparent; }
.modal, .modal-content, .modal-body, .swal2-popup, .swal2-html-container { scrollbar-width: none; }
.modal::-webkit-scrollbar, .modal-content::-webkit-scrollbar, .modal-body::-webkit-scrollbar, .swal2-popup::-webkit-scrollbar, .swal2-html-container::-webkit-scrollbar { display: none; }

/* Toko tanpa Digiflazz: menu top up game disembunyikan */
body.no-games .featured-games-section,
body.no-games #topNavGames,
body.no-games #catBtnGames,
body.no-games [data-page="games"] { display: none !important; }

/* Bot Notifikasi (tab-notif) */
#appContainer .nf-card { max-width: 720px; padding: 22px 24px !important; }
#appContainer .nf-status { display: flex; gap: 14px; align-items: center; padding: 14px 16px; margin-bottom: 18px; border-radius: 12px; background: rgba(255, 255, 255, 0.025); border: 1px solid var(--d-line); }
#appContainer .nf-ic { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; flex-shrink: 0; color: #f5b942; background: rgba(245, 185, 66, 0.1); border: 1px solid rgba(245, 185, 66, 0.25); }
#appContainer .nf-label { font-size: 11.5px; color: var(--d-muted); }
#appContainer .nf-value { font-size: 14px; font-weight: 600; }
#appContainer .nf-sub { font-size: 12px; color: var(--d-muted); font-family: var(--font-mono); margin-top: 2px; }
#appContainer .nf-ok { color: #34d399; }
#appContainer .nf-warn { color: #fbbf24; }
#appContainer .nf-hint { display: block; font-size: 11.5px; color: #64748b; margin-top: 6px; line-height: 1.5; }
#appContainer .nf-opt { font-weight: 400; color: #64748b; }
#appContainer .nf-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 6px; }
#appContainer .nf-actions .btn-sm { height: 40px; padding: 0 14px; border-radius: 10px; }
#appContainer .nf-actions .btn-primary-gold { display: inline-flex; align-items: center; gap: 8px; }
#appContainer .btn-sm.nf-del { color: #f87171; border-color: rgba(248, 113, 113, 0.3); }
@media (max-width: 640px) { #appContainer .nf-card { padding: 16px !important; } #appContainer .nf-actions > * { flex: 1; justify-content: center; } }

/* Toko tanpa Binance Pay */
body.no-binance .pay-method-card[data-method="binance"] { display: none !important; }
#tab-binance .plat-radio { margin-bottom: 8px; }


/* ---------- Sidebar: kelompok menu buka-tutup ---------- */
#appContainer .nav-group { margin-bottom: 2px; list-style: none; }
#appContainer .nav-group-toggle {
    display: flex;
    align-items: center;
    gap: 11px;
    height: 36px;
    padding: 0 12px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    color: #94a3b8;
    text-decoration: none;
    white-space: nowrap !important;
    cursor: pointer;
    transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
#appContainer .nav-group-toggle > i:first-child { width: 16px; font-size: 13px; text-align: center; color: #64748b; }
#appContainer .nav-group-toggle span { flex: 1; white-space: nowrap !important; }
#appContainer .nav-group-toggle:hover { background: rgba(255, 255, 255, 0.045); color: #e2e8f0; }
#appContainer .nav-group.has-active > .nav-group-toggle { color: #f8fafc; }
#appContainer .nav-group.has-active > .nav-group-toggle > i:first-child { color: var(--gold-primary); }
#appContainer .nav-chev { font-size: 10px; color: #64748b; width: auto !important; }
#appContainer .nav-chev-up { display: none; }
#appContainer .nav-group.open .nav-chev-down { display: none; }
#appContainer .nav-group.open .nav-chev-up { display: inline-block; }
#appContainer .nav-sub { display: none; list-style: none; margin: 2px 0 6px 20px; padding: 0 0 0 10px; border-left: 1px solid rgba(255, 255, 255, 0.08); }
#appContainer .nav-group.open > .nav-sub { display: block; }
#appContainer .nav-sub-item { margin-bottom: 2px; }
#appContainer .nav-sub .nav-link { height: 32px; font-size: 12.5px; padding: 0 10px; gap: 10px; }
#appContainer .nav-sub .nav-link.active::before { left: -11px; top: 6px; bottom: 6px; }

/* Toko penyewa: tahan tampilan sampai data toko termuat (mencegah kedipan tampilan bawaan MoraxStore) */
html.tenant-boot { background: #0b1120; }
html.tenant-boot body { opacity: 0; }
html.tenant-ready body { opacity: 1; transition: opacity .25s ease; }


/* ---------- Saldo penyewa & penarikan ---------- */
.wl-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 18px; }
.wl-grid-4 { grid-template-columns: repeat(4, 1fr); }
.wl-stat { padding: 18px 20px; border-radius: 16px; display: flex; flex-direction: column; gap: 6px; }
.wl-stat span { font-size: 12.5px; color: #94a3b8; white-space: nowrap !important; }
.wl-stat b { font-family: 'JetBrains Mono', monospace; font-weight: 700; font-size: 22px; color: #f8fafc; white-space: nowrap !important; }
.wl-stat small { font-size: 11.5px; color: #64748b; }
.wl-card { padding: 22px 24px; border-radius: 16px; margin-bottom: 18px; }
.wl-card h3 { font-size: 15px; margin-bottom: 6px; display: flex; align-items: center; gap: 8px; }
.wl-note { font-size: 12.5px; color: #94a3b8; margin: 4px 0 14px; line-height: 1.5; }
.wl-radio { display: flex; align-items: flex-start; gap: 12px; padding: 12px 14px; border: 1px solid rgba(255,255,255,.08); border-radius: 12px; margin-bottom: 10px; cursor: pointer; }
.wl-radio input[type="radio"] { width: 18px !important; min-width: 18px; height: 18px; padding: 0; margin: 2px 0 0; flex: 0 0 18px; accent-color: #f5b942; }
.wl-radio > span { flex: 1; min-width: 0; text-align: left; }
.wl-radio b { display: block; font-size: 13.5px; color: #f8fafc; }
.wl-radio em { display: block; font-style: normal; font-size: 12px; color: #94a3b8; margin-top: 2px; line-height: 1.45; }
.wl-form { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-bottom: 14px; }
.wl-table-title { padding: 16px 20px 4px; font-weight: 700; font-size: 14px; color: #f8fafc; }
.wl-mono { font-family: 'JetBrains Mono', monospace; font-weight: 700; white-space: nowrap; }
.wl-badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 700; border: 1px solid; white-space: nowrap !important; }
@media (max-width: 900px) {
    .wl-grid, .wl-grid-4 { grid-template-columns: 1fr 1fr; }
    .wl-form { grid-template-columns: 1fr; }
}
@media (max-width: 560px) { .wl-grid, .wl-grid-4 { grid-template-columns: 1fr; } }

.wl-acc { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border: 1px solid rgba(255,255,255,.08); border-radius: 12px; margin-bottom: 10px; flex-wrap: wrap; }
.wl-acc small { color: #94a3b8; font-size: 12px; }
.wl-acc-actions { display: flex; gap: 8px; align-items: center; }

/* ---------- Logo & pemilih bank ---------- */
.bk-logo { background: #fff; border-radius: 8px; width: 100%; height: 36px; display: flex; align-items: center; justify-content: center; padding: 4px 6px; box-sizing: border-box; overflow: hidden; }
.bk-logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.bk-logo i { color: #64748b; font-size: 18px; }
.bk-modal { text-align: left; }
.bk-modal .swal2-input { margin: 8px 0; width: 100%; box-sizing: border-box; }
.bk-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 12px 0 8px; max-height: 250px; overflow-y: auto; padding: 2px; }
.bk-tile { background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1); border-radius: 12px; padding: 8px 6px; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 6px; color: #cbd5e1; font: inherit; transition: border-color .2s cubic-bezier(.4,0,.2,1), background .2s cubic-bezier(.4,0,.2,1); }
.bk-tile:hover { border-color: rgba(245,185,66,.45); }
.bk-tile.active { border-color: #f5b942; background: rgba(245,185,66,.12); }
.bk-name { font-size: 11.5px; font-weight: 600; white-space: nowrap; }
.bk-pick { display: grid; gap: 10px; }
.bk-card { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border: 1px solid rgba(255,255,255,.1); border-radius: 14px; cursor: pointer; background: rgba(255,255,255,.02); transition: border-color .2s cubic-bezier(.4,0,.2,1), background .2s cubic-bezier(.4,0,.2,1); }
.bk-card:hover { border-color: rgba(245,185,66,.4); }
.bk-card.active { border-color: #f5b942; background: rgba(245,185,66,.08); }
.bk-card .bk-logo { width: 92px; flex: 0 0 92px; height: 40px; }
.bk-card-info { flex: 1; min-width: 0; }
.bk-card-info small { color: #94a3b8; font-size: 12px; }
.bk-card-actions { display: flex; gap: 8px; align-items: center; }
.bk-add { justify-content: center; border-style: dashed; color: #f5b942; font-weight: 700; font-size: 13.5px; gap: 8px; min-height: 52px; }
.wl-amount-row { max-width: 360px; }
@media (max-width: 640px) {
    .bk-grid { grid-template-columns: repeat(3, 1fr); }
    .bk-card { flex-wrap: wrap; }
    .bk-card .bk-logo { width: 80px; flex-basis: 80px; }
    .bk-card-actions { width: 100%; justify-content: flex-end; }
}
