/* DropX Casino Theme */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root {
    /* Apenas variáveis ESTÁTICAS aqui.
       Cores dinâmicas (--green, --green-dark, --gold, --green-dim, --gold-dim,
       --bg, --bg-card, --bg-card2, --border) são injetadas pelo header.php
       num bloco <style> que vem ANTES deste arquivo no HTML — mas como este
       arquivo é carregado depois, qualquer redefinição aqui sobrescreveria
       as cores do banco. Por isso elas foram removidas daqui. */
    --red:       #ff3d3d;
    --brand:     #6c47ff;
    --brand-dim: rgba(108,71,255,0.12);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    background: var(--bg);
    background-image:
        radial-gradient(ellipse 80% 40% at 50% -10%, color-mix(in srgb, var(--green) 7%, transparent) 0%, transparent 60%),
        radial-gradient(ellipse 60% 30% at 80% 100%, color-mix(in srgb, var(--green) 5%, transparent) 0%, transparent 50%);
    background-attachment: fixed;
    color: #e8e8f0;
    font-family: 'Inter', system-ui, sans-serif;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: color-mix(in srgb, var(--green) 35%, transparent); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: color-mix(in srgb, var(--green) 55%, transparent); }

/* ── BUTTONS ── */
.btn-primary {
    display: inline-flex; align-items: center; gap: 8px;
    background: linear-gradient(135deg, var(--green), var(--green-dark));
    color: #000; font-weight: 800; font-size: 0.875rem;
    padding: 10px 22px; border-radius: 10px;
    border: none; cursor: pointer; text-decoration: none;
    transition: all 0.2s; box-shadow: 0 4px 20px color-mix(in srgb, var(--green) 25%, transparent);
    white-space: nowrap;
}
.btn-primary:hover { filter: brightness(1.15); box-shadow: 0 4px 30px color-mix(in srgb, var(--green) 45%, transparent); transform: translateY(-1px); }
.btn-primary:active { transform: scale(0.97); }

.btn-gold {
    display: inline-flex; align-items: center; gap: 8px;
    background: linear-gradient(135deg, #ffc107, #ff9800);
    color: #000; font-weight: 800; font-size: 0.875rem;
    padding: 10px 22px; border-radius: 10px;
    border: none; cursor: pointer; text-decoration: none;
    transition: all 0.2s; box-shadow: 0 4px 20px rgba(255,193,7,0.25);
    white-space: nowrap;
}
.btn-gold:hover { box-shadow: 0 4px 30px rgba(255,193,7,0.5); transform: translateY(-1px); }

.btn-secondary {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(255,255,255,0.06); color: #ccc; font-weight: 600; font-size: 0.875rem;
    padding: 10px 20px; border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.1); cursor: pointer; text-decoration: none;
    transition: all 0.2s;
}
.btn-secondary:hover { background: rgba(255,255,255,0.1); color: #fff; border-color: rgba(255,255,255,0.2); }

.btn-danger {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(255,61,61,0.15); color: #ff6b6b; font-weight: 600; font-size: 0.875rem;
    padding: 10px 20px; border-radius: 10px;
    border: 1px solid rgba(255,61,61,0.3); cursor: pointer; text-decoration: none;
    transition: all 0.2s;
}
.btn-danger:hover { background: rgba(255,61,61,0.25); }

.btn-success {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(0,200,83,0.15); color: var(--green); font-weight: 600;
    padding: 10px 20px; border-radius: 10px;
    border: 1px solid rgba(0,200,83,0.3); cursor: pointer; text-decoration: none;
    transition: all 0.2s;
}
.btn-success:hover { background: rgba(0,200,83,0.25); }

/* ── NAV ── */
.nav-link {
    display: inline-flex; align-items: center; gap: 6px;
    color: #999; font-size: 0.85rem; font-weight: 600;
    padding: 6px 14px; border-radius: 8px;
    text-decoration: none; transition: all 0.2s;
    white-space: nowrap;
}
.nav-link:hover, .nav-link.active { color: #fff; background: rgba(255,255,255,0.07); }
.nav-link.active { color: var(--green); }

/* ── CARDS ── */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
}
.card-hover:hover {
    border-color: color-mix(in srgb, var(--green) 30%, transparent);
    box-shadow: 0 0 0 1px color-mix(in srgb, var(--green) 10%, transparent), 0 8px 32px rgba(0,0,0,0.4);
}

/* ── BOX CARDS ── */
.box-card {
    position: relative; overflow: hidden;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
    cursor: pointer; text-decoration: none; display: block;
}
.box-card::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0; height: 2px;
    background: linear-gradient(90deg, transparent, var(--green), transparent);
    opacity: 0; transition: opacity 0.3s;
}
.box-card:hover { transform: translateY(-6px); border-color: rgba(0,200,83,0.3); box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 0 1px rgba(0,200,83,0.1); }
.box-card:hover::before { opacity: 1; }

.box-image-bg {
    position: relative; height: 200px; overflow: hidden;
    display: flex; align-items: center; justify-content: center;
}
.box-image-bg::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(180deg, transparent 50%, var(--bg-card) 100%);
}

/* ── RARITY BADGES ── */
.rarity-badge-common    { background: rgba(107,114,128,0.15); color: #9ca3af; border: 1px solid rgba(107,114,128,0.3); }
.rarity-badge-uncommon  { background: rgba(59,130,246,0.15);  color: #60a5fa; border: 1px solid rgba(59,130,246,0.3); }
.rarity-badge-rare      { background: rgba(139,92,246,0.15);  color: #a78bfa; border: 1px solid rgba(139,92,246,0.3); }
.rarity-badge-epic      { background: rgba(236,72,153,0.15);  color: #f472b6; border: 1px solid rgba(236,72,153,0.3); }
.rarity-badge-legendary { background: rgba(255,193,7,0.15);   color: #fcd34d; border: 1px solid rgba(255,193,7,0.3);  }

/* ── ROULETTE ── */
.roulette-container {
    position: relative; overflow: hidden; border-radius: 14px;
    background: #050510; border: 1px solid var(--border);
}
.roulette-container::before, .roulette-container::after {
    content: ''; position: absolute; top: 0; bottom: 0; width: 100px; z-index: 10; pointer-events: none;
}
.roulette-container::before { left: 0;  background: linear-gradient(90deg,  #050510, transparent); }
.roulette-container::after  { right: 0; background: linear-gradient(-90deg, #050510, transparent); }

.roulette-indicator {
    position: absolute; top: 0; bottom: 0; left: 50%; transform: translateX(-50%);
    width: 3px; background: linear-gradient(180deg, var(--green), #00ff88);
    z-index: 20; box-shadow: 0 0 20px rgba(0,200,83,0.9), 0 0 40px rgba(0,200,83,0.4);
}
.roulette-indicator::before {
    content: ''; position: absolute; top: -8px; left: 50%; transform: translateX(-50%);
    width: 0; height: 0; border-left: 8px solid transparent; border-right: 8px solid transparent; border-top: 12px solid var(--green);
}
.roulette-indicator::after {
    content: ''; position: absolute; bottom: -8px; left: 50%; transform: translateX(-50%);
    width: 0; height: 0; border-left: 8px solid transparent; border-right: 8px solid transparent; border-bottom: 12px solid #00ff88;
}

.roulette-strip { display: flex; gap: 8px; padding: 12px; will-change: transform; }

.roulette-item {
    flex-shrink: 0; width: 140px; height: 140px; border-radius: 12px;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 6px; padding: 10px; border: 2px solid rgba(255,255,255,0.08);
    background: #0d0d1a; text-align: center; transition: border-color 0.3s;
}
.roulette-item.winner { animation: winnerPulse 0.5s ease-in-out infinite alternate; }
@keyframes winnerPulse {
    from { box-shadow: 0 0 20px rgba(0,200,83,0.3); border-color: var(--green); }
    to   { box-shadow: 0 0 60px rgba(0,200,83,0.8), 0 0 100px rgba(0,200,83,0.3); border-color: #00ff88; }
}

/* ── WIN MODAL ── */
.win-modal-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,0.9);
    backdrop-filter: blur(10px); z-index: 100;
    display: flex; align-items: center; justify-content: center;
}
.win-modal-content {
    background: linear-gradient(145deg, #0d0d1a, #111128);
    border: 1px solid rgba(255,255,255,0.1); border-radius: 20px;
    padding: 2.5rem; max-width: 420px; width: 90%;
    text-align: center; position: relative; overflow: hidden;
}
.win-modal-content::before {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(circle at 50% 0%, rgba(0,200,83,0.12) 0%, transparent 60%);
    pointer-events: none;
}

/* ── LIVE WINS TICKER ── */
.ticker-wrap { overflow: hidden; white-space: nowrap; }
.ticker-inner { display: inline-flex; gap: 0; animation: ticker-scroll 50s linear infinite; }
.ticker-inner:hover { animation-play-state: paused; }
@keyframes ticker-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ── FORMS ── */
.form-label {
    display: block; font-size: 0.75rem; font-weight: 700;
    color: #888; margin-bottom: 6px; letter-spacing: 0.04em; text-transform: uppercase;
}
.form-input {
    width: 100%; background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.09); border-radius: 10px;
    padding: 10px 14px; color: #fff; font-size: 0.875rem; outline: none;
    transition: all 0.2s; font-family: inherit;
}
.form-input:focus { border-color: rgba(0,200,83,0.5); background: rgba(255,255,255,0.06); box-shadow: 0 0 0 3px rgba(0,200,83,0.08); }
.form-input::placeholder { color: rgba(255,255,255,0.25); }
select.form-input option { background: #111; color: #fff; }

/* ── ALERTS ── */
.alert-success { background: rgba(0,200,83,0.08);  border: 1px solid rgba(0,200,83,0.3);  color: #6ee7b7; border-radius: 10px; padding: 12px 16px; font-size: 0.875rem; }
.alert-error   { background: rgba(255,61,61,0.08); border: 1px solid rgba(255,61,61,0.3); color: #fca5a5; border-radius: 10px; padding: 12px 16px; font-size: 0.875rem; }
.alert-info    { background: rgba(59,130,246,0.08); border: 1px solid rgba(59,130,246,0.3); color: #93c5fd; border-radius: 10px; padding: 12px 16px; font-size: 0.875rem; }
.alert-warning { background: rgba(255,193,7,0.08); border: 1px solid rgba(255,193,7,0.3); color: #fcd34d; border-radius: 10px; padding: 12px 16px; font-size: 0.875rem; }

/* ── TABLE ── */
.data-table { width: 100%; border-collapse: collapse; }
.data-table th {
    text-align: left; padding: 11px 16px; font-size: 0.7rem; font-weight: 700;
    color: #555; text-transform: uppercase; letter-spacing: 0.07em;
    border-bottom: 1px solid rgba(255,255,255,0.05); background: rgba(255,255,255,0.015);
}
.data-table td { padding: 13px 16px; font-size: 0.875rem; border-bottom: 1px solid rgba(255,255,255,0.04); vertical-align: middle; }
.data-table tr:hover td { background: rgba(255,255,255,0.015); }
.data-table tr:last-child td { border-bottom: none; }

/* ── STAT CARDS ── */
.stat-card {
    background: #0d0d1a; border: 1px solid rgba(255,255,255,0.06);
    border-radius: 14px; padding: 18px 20px;
    transition: border-color 0.2s;
}
.stat-card:hover { border-color: rgba(255,255,255,0.1); }

/* ── BONUS BADGE ── */
.bonus-badge {
    display: inline-flex; align-items: center; gap: 6px;
    background: linear-gradient(135deg, rgba(255,193,7,0.15), rgba(255,152,0,0.15));
    border: 1px solid rgba(255,193,7,0.35); color: var(--gold);
    padding: 4px 12px; border-radius: 20px; font-size: 0.75rem; font-weight: 800;
    animation: bonusPulse 2s ease-in-out infinite;
}
@keyframes bonusPulse {
    0%,100% { box-shadow: 0 0 0 0 rgba(255,193,7,0); }
    50%      { box-shadow: 0 0 0 6px rgba(255,193,7,0.1); }
}

/* ── RTP BAR ── */
.rtp-bar-wrap { background: rgba(255,255,255,0.06); border-radius: 4px; height: 6px; overflow: hidden; }
.rtp-bar-fill { height: 100%; border-radius: 4px; background: linear-gradient(90deg, var(--green), #00ff88); transition: width 1s ease; }

/* ── RECENT WINS ── */
.win-item {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 14px; border-radius: 12px;
    background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.05);
    transition: all 0.2s;
}
.win-item:hover { background: rgba(255,255,255,0.06); }

/* ── CONFETTI ── */
@keyframes confetti-fall {
    0%   { transform: translateY(-100px) rotate(0deg)   skewX(0deg); opacity: 1; }
    60%  { opacity: 1; }
    100% { transform: translateY(110vh)  rotate(900deg) skewX(20deg); opacity: 0; }
}
.confetti-piece { position: fixed; animation: confetti-fall linear forwards; z-index: 200; pointer-events: none; }

/* ── BOX SPIN PULSE ── */
@keyframes boxSpinPulse {
    0%   { transform: scale(1)    rotate(0deg); filter: brightness(1); }
    25%  { transform: scale(1.06) rotate(-2deg); filter: brightness(1.2) drop-shadow(0 0 20px rgba(0,200,83,0.6)); }
    75%  { transform: scale(1.06) rotate(2deg);  filter: brightness(1.2) drop-shadow(0 0 20px rgba(0,200,83,0.6)); }
    100% { transform: scale(1)    rotate(0deg); filter: brightness(1); }
}

/* ── LIVE WINS BAR ── */
.live-wins-bar {
    background: rgba(5,5,16,0.95);
    border-top: 1px solid rgba(0,200,83,0.15);
    border-bottom: 1px solid rgba(0,200,83,0.1);
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    height: 36px;
    display: flex;
    align-items: center;
}
.live-wins-bar-label {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0 14px;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #00c853;
    background: rgba(5,5,16,0.98);
    border-right: 1px solid rgba(0,200,83,0.15);
    z-index: 2;
    height: 100%;
}
.live-wins-bar-label::after {
    content: '';
    position: absolute;
    left: 110px;
    top: 0;
    bottom: 0;
    width: 40px;
    background: linear-gradient(90deg, rgba(5,5,16,0.98), transparent);
    pointer-events: none;
    z-index: 1;
}
.live-wins-ticker {
    display: flex;
    align-items: center;
    gap: 0;
    animation: live-ticker-scroll 40s linear infinite;
    flex-shrink: 0;
    padding-left: 16px;
}
.live-wins-ticker:hover { animation-play-state: paused; }
@keyframes live-ticker-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.live-win-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 0 16px 0 0;
    font-size: 0.75rem;
    white-space: nowrap;
}
.live-win-dot {
    width: 6px; height: 6px; border-radius: 50%;
    flex-shrink: 0;
    animation: liveDotPulse 1.5s ease-in-out infinite;
}
@keyframes liveDotPulse {
    0%,100% { opacity: 1; transform: scale(1); }
    50%     { opacity: 0.5; transform: scale(0.7); }
}
.live-win-sep  { color: #444; font-size: 0.7rem; }
.live-win-divider { color: #333; padding: 0 14px; font-size: 0.65rem; }

/* ── STREAK BADGE ── */
.streak-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: 20px;
    background: rgba(255,107,0,0.12);
    border: 1px solid rgba(255,107,0,0.3);
    color: #ff9500;
    animation: streakPulse 2s ease-in-out infinite;
}
@keyframes streakPulse {
    0%,100% { box-shadow: 0 0 0 0 rgba(255,107,0,0); }
    50%     { box-shadow: 0 0 0 5px rgba(255,107,0,0.1); }
}

/* ── OPEN BUTTON GLOW ── */
#openBtn {
    position: relative;
    overflow: hidden;
    transition: all 0.25s cubic-bezier(0.4,0,0.2,1);
}
#openBtn::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(0,200,83,0), rgba(0,255,136,0.4), rgba(0,200,83,0));
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}
#openBtn:not(:disabled):hover::after { opacity: 1; }
#openBtn:not(:disabled):hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 40px rgba(0,200,83,0.5), 0 0 80px rgba(0,200,83,0.15);
}
#openBtn:not(:disabled):active {
    transform: scale(0.97);
    box-shadow: 0 2px 15px rgba(0,200,83,0.3);
}

/* ── ROULETTE NEAR-MISS (indicator glow during spin) ── */
.roulette-spinning .roulette-indicator {
    box-shadow: 0 0 30px rgba(0,200,83,1), 0 0 60px rgba(0,200,83,0.6), 0 0 100px rgba(0,200,83,0.3);
    animation: indicatorPulse 0.4s ease-in-out infinite alternate;
}
@keyframes indicatorPulse {
    from { box-shadow: 0 0 20px rgba(0,200,83,0.8), 0 0 40px rgba(0,200,83,0.4); }
    to   { box-shadow: 0 0 40px rgba(0,200,83,1),   0 0 80px rgba(0,200,83,0.6); }
}

/* ── AMOUNT QUICK BTNS ── */
.amount-btn {
    padding: 10px; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px; text-align: center; font-size: 0.8rem; font-weight: 700;
    color: #ccc; cursor: pointer; transition: all 0.2s;
}
.amount-btn:hover { background: rgba(0,200,83,0.1); border-color: rgba(0,200,83,0.4); color: var(--green); }
.amount-btn.selected { background: rgba(0,200,83,0.15); border-color: var(--green); color: var(--green); }

/* ── BANNER CAROUSEL ── */
.banner-carousel {
    position: relative;
    overflow: hidden;
    height: 400px;
    background: #030d06;
    display: block;
    width: 100%;
}
@media (max-width: 640px) { .banner-carousel { height: 260px; } }
.banner-track {
    display: flex;
    height: 100%;
    transition: transform 0.55s cubic-bezier(0.4,0,0.2,1);
    will-change: transform;
}
.banner-slide {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    display: block;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    text-decoration: none;
    cursor: pointer;
    transition: filter 0.2s;
}
.banner-slide:hover { filter: brightness(1.06); }
.banner-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: 1px solid rgba(255,255,255,0.15);
    background: rgba(0,0,0,0.6);
    color: #fff;
    transition: all 0.2s;
    backdrop-filter: blur(4px);
}
.banner-arrow:hover { background: rgba(0,0,0,0.9); border-color: rgba(255,255,255,0.3); }
.banner-arrow-prev { left: 16px; }
.banner-arrow-next { right: 16px; }
.banner-dots { position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%); display: flex; gap: 6px; z-index: 10; }
.banner-dot { width: 8px; height: 8px; border-radius: 4px; background: rgba(255,255,255,0.35); cursor: pointer; transition: all 0.3s; border: none; }
.banner-dot.active { width: 24px; background: var(--green); }

/* ── RESPONSIVE NAVBAR / TABBAR ── */

/* Desktop navbar: visible md+ */
.navbar-desktop { display: none; }
@media (min-width: 768px) {
    .navbar-desktop { display: block; }
}

/* Mobile top bar: visible below md */
.navbar-mobile { display: block; }
@media (min-width: 768px) {
    .navbar-mobile { display: none; }
}

/* ── MOBILE TABBAR ── */
.tabbar-mobile {
    display: flex;
    position: fixed;
    bottom: 0; left: 0; right: 0;
    z-index: 100;
    background: rgba(8,8,15,0.98);
    border-top: 1px solid rgba(255,255,255,0.08);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding-bottom: env(safe-area-inset-bottom, 0px);
    height: calc(60px + env(safe-area-inset-bottom, 0px));
    align-items: flex-start;
    padding-top: 6px;
}
/* Hide tabbar on desktop */
@media (min-width: 768px) {
    .tabbar-mobile { display: none !important; }
}

.tabbar-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 3px;
    text-decoration: none;
    padding: 4px 4px 0;
    transition: all 0.2s;
    position: relative;
    -webkit-tap-highlight-color: transparent;
}

.tabbar-icon {
    font-size: 1.1rem;
    color: #444;
    transition: all 0.2s;
    line-height: 1;
}
.tabbar-label {
    font-size: 0.6rem;
    font-weight: 700;
    color: #444;
    letter-spacing: 0.01em;
    transition: all 0.2s;
    white-space: nowrap;
}

/* Active state */
.tabbar-item.active .tabbar-icon { color: var(--green); }
.tabbar-item.active .tabbar-label { color: var(--green); }
.tabbar-item.active::before {
    content: '';
    position: absolute;
    top: 0; left: 50%;
    transform: translateX(-50%);
    width: 28px; height: 2px;
    background: var(--green);
    border-radius: 0 0 3px 3px;
}

/* Hover */
.tabbar-item:not(.tabbar-highlight):hover .tabbar-icon { color: #aaa; }
.tabbar-item:not(.tabbar-highlight):hover .tabbar-label { color: #aaa; }

/* Highlight (center deposit button) */
.tabbar-highlight {
    margin-top: -10px;
}
.tabbar-highlight-btn {
    width: 46px; height: 46px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--green), var(--green-dark));
    display: flex; align-items: center; justify-content: center;
    color: #000;
    font-size: 1rem;
    box-shadow: 0 4px 20px rgba(0,200,83,0.4), 0 0 0 3px rgba(0,200,83,0.15);
    transition: all 0.2s;
    margin-bottom: 2px;
}
.tabbar-highlight:hover .tabbar-highlight-btn {
    transform: scale(1.08);
    box-shadow: 0 6px 28px rgba(0,200,83,0.6), 0 0 0 4px rgba(0,200,83,0.2);
}
.tabbar-highlight .tabbar-label { color: var(--green); }
.tabbar-highlight.active .tabbar-highlight-btn {
    box-shadow: 0 6px 30px rgba(0,200,83,0.7), 0 0 0 4px rgba(0,200,83,0.25);
}

/* Body padding for tabbar on mobile */
@media (max-width: 767px) {
    body { padding-bottom: calc(60px + env(safe-area-inset-bottom, 0px)); }
}

/* ── PAGE ENTER ── */
.page-enter { animation: pageEnter 0.3s ease; }
@keyframes pageEnter { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* ── NUMBER GLOW ── */
.glow-green { color: var(--green); text-shadow: 0 0 20px rgba(0,200,83,0.5); }
.glow-gold  { color: var(--gold);  text-shadow: 0 0 20px rgba(255,193,7,0.5); }

/* ── ADMIN SIDEBAR ── */
.admin-nav-link {
    display: flex; align-items: center; gap: 10px;
    padding: 8px 12px; border-radius: 10px;
    color: #6b7280; font-size: 0.8125rem; font-weight: 600;
    text-decoration: none; transition: all 0.15s;
    border: 1px solid transparent; white-space: nowrap;
}
.admin-nav-link:hover { color: #fff; background: rgba(255,255,255,0.06); }
.admin-nav-link.active { color: var(--green); background: rgba(0,200,83,0.1); border-color: rgba(0,200,83,0.2); }

/* ── ITEM PILL ── */
.item-pill { display: flex; align-items: center; gap: 8px; padding: 8px 12px; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.07); border-radius: 10px; transition: all 0.2s; }
.item-pill:hover { background: rgba(255,255,255,0.07); }

/* ── HERO ── */
.hero-section {
    position: relative; overflow: hidden;
    background: linear-gradient(180deg, rgba(0,0,0,0) 0%, transparent 100%);
    padding: 60px 0 40px;
}
.hero-section::before {
    content: ''; position: absolute; top: -50%; left: 50%; transform: translateX(-50%);
    width: 800px; height: 400px;
    background: radial-gradient(ellipse, rgba(0,200,83,0.07) 0%, transparent 70%);
    pointer-events: none;
}

/* ── HOT BADGE ── */
.hot-badge {
    position: absolute; top: 10px; right: 10px; z-index: 10;
    background: linear-gradient(135deg, #ff3d3d, #ff6b00);
    color: #fff; font-size: 0.65rem; font-weight: 900;
    padding: 3px 8px; border-radius: 6px; letter-spacing: 0.05em;
    text-transform: uppercase;
}
.new-badge {
    position: absolute; top: 10px; right: 10px; z-index: 10;
    background: linear-gradient(135deg, #6c47ff, #a855f7);
    color: #fff; font-size: 0.65rem; font-weight: 900;
    padding: 3px 8px; border-radius: 6px; letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* ── GLOW BOXES ── */
.box-glow-green  { box-shadow: 0 0 30px rgba(0,200,83,0.15); }
.box-glow-gold   { box-shadow: 0 0 30px rgba(255,193,7,0.15); }
.box-glow-purple { box-shadow: 0 0 30px rgba(108,71,255,0.15); }

/* ── TOGGLE SWITCH ── */
.toggle {
    position: relative; display: inline-block;
    width: 52px; height: 28px; flex-shrink: 0;
}
.toggle input { opacity: 0; width: 0; height: 0; position: absolute; }
.toggle-slider {
    position: absolute; cursor: pointer; inset: 0;
    background: rgba(255,255,255,0.08);
    border: 1.5px solid rgba(255,255,255,0.12);
    border-radius: 28px; transition: all 0.25s cubic-bezier(0.4,0,0.2,1);
}
.toggle-slider::before {
    content: '';
    position: absolute; height: 20px; width: 20px;
    left: 3px; top: 50%; transform: translateY(-50%);
    background: #5a5a6a;
    border-radius: 50%;
    transition: all 0.25s cubic-bezier(0.4,0,0.2,1);
    box-shadow: 0 1px 4px rgba(0,0,0,0.4);
}
/* OFF label */
.toggle-slider::after {
    content: 'OFF';
    position: absolute; right: 5px; top: 50%; transform: translateY(-50%);
    font-size: 0.45rem; font-weight: 900; letter-spacing: 0.04em;
    color: rgba(255,255,255,0.25); transition: opacity 0.2s;
}
.toggle input:checked + .toggle-slider {
    background: var(--green);
    border-color: var(--green);
    box-shadow: 0 0 0 3px rgba(0,200,83,0.15), 0 0 16px rgba(0,200,83,0.3);
}
.toggle input:checked + .toggle-slider::before {
    transform: translateX(24px) translateY(-50%);
    background: #fff;
    box-shadow: 0 1px 6px rgba(0,0,0,0.3);
}
.toggle input:checked + .toggle-slider::after {
    content: 'ON';
    right: auto; left: 5px;
    color: rgba(0,0,0,0.5);
}

/* ── SELECT STYLING ── */
select.form-input {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 40px;
    cursor: pointer;
}
select.form-input:focus {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2300c853' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
}
select.form-input option { background: #0d0d1a; color: #fff; padding: 6px; }

/* ── ADMIN KPI CARD ── */
.admin-kpi {
    background: rgba(255,255,255,0.025);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 14px; padding: 18px 20px;
    transition: all 0.2s; position: relative; overflow: hidden;
}
.admin-kpi:hover { border-color: rgba(255,255,255,0.12); background: rgba(255,255,255,0.035); }
.admin-kpi-accent {
    position: absolute; top: 0; left: 0; right: 0; height: 2px;
    border-radius: 14px 14px 0 0;
}

/* ── PERIOD FILTER PILLS ── */
.period-pill {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 7px 14px; border-radius: 10px;
    font-size: 0.78rem; font-weight: 700;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.04);
    color: #666; cursor: pointer;
    text-decoration: none; white-space: nowrap;
    transition: all 0.15s;
}
.period-pill:hover { color: #ccc; background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.15); }
.period-pill.active {
    background: rgba(0,200,83,0.12);
    border-color: rgba(0,200,83,0.35);
    color: #00c853;
}

/* ── ADMIN SECTION HEADER ── */
.admin-section-title {
    font-size: 0.7rem; font-weight: 800; text-transform: uppercase;
    letter-spacing: 0.1em; color: #555; margin-bottom: 12px;
    display: flex; align-items: center; gap: 8px;
}
.admin-section-title::after {
    content: ''; flex: 1; height: 1px; background: rgba(255,255,255,0.05);
}

/* ── ADMIN NAV GROUP LABEL ── */
.admin-nav-group {
    font-size: 0.6rem; font-weight: 800; text-transform: uppercase;
    letter-spacing: 0.12em; color: #333; padding: 14px 12px 6px;
}

/* ── SCROLLBAR thin ── */
.thin-scroll::-webkit-scrollbar { width: 3px; }
.thin-scroll::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 3px; }
