* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

:root {
  --bg: #060814;
  --bg2: #0c1020;
  --card: #12172a;
  --card2: #181e35;
  --gold: #f0b429;
  --gold2: #ffd56a;
  --accent: #8b5cf6;
  --accent2: #a78bfa;
  --cyan: #38bdf8;
  --neon-green: #69f0ae;
  --neon-cyan: #38bdf8;
  --neon-pink: #c084fc;
  --red: #f43f5e;
  --text: #eef1f8;
  --muted: #8b95ad;
  --glass: rgba(255,255,255,.04);
  --radius: 18px;
}

html, body { height: 100%; }
body {
  font-family: "Outfit", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  overscroll-behavior: none;
  position: relative;
  isolation: isolate;
}

/* ---------- GLOBAL BACKGROUND ---------- */
.bg-scene {
  position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none;
  background:
    radial-gradient(ellipse 90% 55% at 50% -15%, rgba(240,180,41,.12), transparent 55%),
    radial-gradient(ellipse 50% 40% at 100% 20%, rgba(139,92,246,.1), transparent 60%),
    radial-gradient(ellipse 45% 35% at 0% 80%, rgba(56,189,248,.07), transparent 55%),
    linear-gradient(180deg, #050710 0%, #080c1a 45%, #060814 100%);
}
.bg-orb {
  position: absolute; border-radius: 50%; filter: blur(60px); opacity: .45;
  animation: orb-float 18s ease-in-out infinite;
}
.bg-orb-a {
  width: 320px; height: 320px; top: -80px; left: -60px;
  background: radial-gradient(circle, rgba(240,180,41,.35), transparent 70%);
}
.bg-orb-b {
  width: 280px; height: 280px; top: 35%; right: -100px;
  background: radial-gradient(circle, rgba(139,92,246,.3), transparent 70%);
  animation-delay: -6s;
}
.bg-orb-c {
  width: 240px; height: 240px; bottom: 5%; left: 20%;
  background: radial-gradient(circle, rgba(56,189,248,.22), transparent 70%);
  animation-delay: -11s;
}
@keyframes orb-float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(12px, -18px) scale(1.08); }
}
.bg-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 20%, transparent 75%);
  opacity: .5;
}
.bg-noise {
  position: absolute; inset: 0; opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.hidden { display: none !important; }
.view { min-height: 100vh; min-height: 100dvh; padding-bottom: 82px; position: relative; }
.muted { color: var(--muted); font-size: 14px; }
.gold { color: var(--gold2); }

/* ---------- AUTH ---------- */
#view-auth {
  display: flex; align-items: center; justify-content: center;
  padding: 20px 16px 36px;
  background: transparent;
}
.auth-wrap { width: 100%; max-width: 420px; }
.logo { text-align: center; margin-bottom: 18px; }
.logo-login-img {
  width: min(280px, 78vw); height: auto; display: block; margin: 0 auto 8px;
  filter: drop-shadow(0 12px 32px rgba(0,0,0,.45));
  animation: logo-in .6s ease;
}
@keyframes logo-in {
  from { opacity: 0; transform: translateY(10px) scale(.96); }
  to { opacity: 1; transform: none; }
}
.tagline { color: var(--muted); font-size: 14px; margin-top: 4px; }

.auth-card {
  background: rgba(18,23,42,.78); backdrop-filter: blur(18px);
  border: 1px solid rgba(240,180,41,.14);
  border-radius: 22px; padding: 22px;
  box-shadow: 0 24px 60px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.05);
}
.tabs { display: flex; background: var(--bg2); border-radius: 14px; padding: 4px; margin-bottom: 18px; }
.tab {
  flex: 1; padding: 11px; border: 0; border-radius: 11px; background: transparent;
  color: var(--muted); font-weight: 600; font-size: 14px; cursor: pointer; font-family: inherit;
  transition: all .2s;
}
.tab.active {
  background: linear-gradient(135deg, rgba(139,92,246,.85), rgba(88,50,180,.95));
  color: #fff; box-shadow: 0 4px 18px rgba(139,92,246,.3);
}

.auth-form { display: flex; flex-direction: column; gap: 14px; }
label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 500; color: var(--muted); }
input, select {
  background: var(--bg2); border: 1px solid rgba(255,255,255,.08); color: var(--text);
  border-radius: 14px; padding: 14px 15px; font-size: 16px; font-family: inherit; outline: none;
  transition: border-color .2s, box-shadow .2s;
}
input:focus, select:focus {
  border-color: rgba(240,180,41,.45);
  box-shadow: 0 0 0 3px rgba(240,180,41,.1);
}

.btn-gold {
  background: linear-gradient(135deg, #ffe082, var(--gold) 50%, #d99412);
  color: #1a1200; border: 0; border-radius: 14px; padding: 15px;
  font-size: 15px; font-weight: 700; letter-spacing: .3px; cursor: pointer; font-family: inherit;
  box-shadow: 0 6px 24px rgba(240,180,41,.3), inset 0 1px 0 rgba(255,255,255,.25);
  transition: transform .12s, box-shadow .2s;
}
.btn-gold:active { transform: scale(.97); }
.btn-outline {
  background: transparent; border: 1px solid rgba(255,255,255,.15); color: var(--text);
  border-radius: 14px; padding: 12px 24px; font-family: inherit; font-weight: 600; cursor: pointer;
}

.promo-banner {
  background: rgba(240,180,41,.08); border: 1px solid rgba(240,180,41,.22);
  border-radius: 14px; padding: 11px 12px; font-size: 13px; text-align: center; color: var(--gold2);
}
.error { color: #fb7185; font-size: 13px; text-align: center; margin-top: 12px; }

/* ---------- TOPBAR ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 16px;
  background: rgba(6,8,20,.82); backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,.05);
}
.brand {
  display: flex; align-items: center; gap: 8px; min-width: 0;
}
.logo-header-img {
  height: 36px; width: auto; max-width: 150px; object-fit: contain;
  display: block; filter: drop-shadow(0 2px 10px rgba(240,180,41,.25));
}
.brand b {
  background: linear-gradient(135deg, var(--gold2), var(--gold));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.back-btn {
  width: 38px; height: 38px; border-radius: 12px; border: 1px solid rgba(255,255,255,.1);
  background: var(--card); color: var(--text); font-size: 22px; cursor: pointer; line-height: 1;
}
.balance-pill {
  display: flex; align-items: center; gap: 7px;
  background: linear-gradient(135deg, rgba(240,180,41,.16), rgba(139,92,246,.08));
  border: 1px solid rgba(240,180,41,.3);
  border-radius: 999px; padding: 8px 15px; color: var(--gold2);
  font-weight: 700; font-size: 14px; cursor: pointer; font-family: inherit;
  box-shadow: 0 0 18px rgba(240,180,41,.12);
}
.balance-pill.small { padding: 6px 12px; font-size: 13px; }
.coin { font-size: 14px; }

/* ---------- HERO ---------- */
.hero {
  position: relative; margin: 14px 16px; padding: 22px 18px 18px; border-radius: 22px; overflow: hidden;
  background: linear-gradient(145deg, #151a32 0%, #12172a 50%, #0e1324 100%);
  border: 1px solid rgba(240,180,41,.14);
  box-shadow: 0 16px 40px rgba(0,0,0,.3);
}
.hero-glow {
  position: absolute; inset: -40% -20% auto -20%; height: 120px;
  background: radial-gradient(circle, rgba(240,180,41,.2), transparent 70%);
  pointer-events: none;
}
.hero-kicker {
  font-size: 11px; font-weight: 600; letter-spacing: 1.2px; text-transform: uppercase;
  color: var(--cyan); margin-bottom: 6px;
}
.hero h2 {
  font-family: "Unbounded", sans-serif;
  font-size: 21px; font-weight: 700; line-height: 1.3;
}
.hero h2 span {
  background: linear-gradient(135deg, var(--gold2), var(--gold));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.hero-sub { color: var(--muted); font-size: 13px; margin-top: 8px; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.hero-stat {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 12px; font-weight: 600; padding: 8px 12px; border-radius: 999px;
  background: var(--glass); border: 1px solid rgba(255,255,255,.08);
}
.hero-stat.neon-green { color: #69f0ae; border-color: rgba(0,230,118,.35); }
.hero-stat.neon-gold { color: var(--gold2); border-color: rgba(240,180,41,.25); }

.live-dot {
  width: 7px; height: 7px; border-radius: 50%; background: #00e676;
  box-shadow: 0 0 8px #00e676, 0 0 16px rgba(0,230,118,.55);
  animation: pulse-dot 1.6s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); box-shadow: 0 0 8px #00e676, 0 0 14px rgba(0,230,118,.45); }
  50% { opacity: .75; transform: scale(.85); box-shadow: 0 0 12px #69f0ae, 0 0 22px rgba(105,240,174,.65); }
}

/* ---------- CATALOG ---------- */
.catalog { padding: 4px 16px 24px; }
.section-head {
  display: flex; align-items: center; justify-content: space-between;
  margin: 10px 0 14px;
}
.section-title {
  font-family: "Unbounded", sans-serif;
  font-size: 15px; font-weight: 700;
}
.section-badge {
  font-size: 10px; font-weight: 700; letter-spacing: 1px;
  padding: 5px 10px; border-radius: 999px;
  color: #69f0ae; background: rgba(0,230,118,.12);
  border: 1px solid rgba(0,230,118,.4);
  box-shadow: 0 0 12px rgba(0,230,118,.2);
  animation: badge-glow 2.2s ease-in-out infinite;
}
@keyframes badge-glow {
  0%, 100% { box-shadow: 0 0 10px rgba(0,230,118,.15); color: #69f0ae; }
  50% { box-shadow: 0 0 22px rgba(0,230,118,.45); color: #b9f6ca; }
}

.games-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px 10px;
  align-items: stretch;
}
@media (min-width: 560px) { .games-grid { grid-template-columns: repeat(4, 1fr); gap: 16px 12px; } }
@media (min-width: 900px) { .games-grid { grid-template-columns: repeat(6, 1fr); } }

/* ---------- GAME CARDS ---------- */
.game-card {
  position: relative; cursor: pointer;
  border-radius: var(--radius); overflow: visible;
  transition: transform .2s ease;
  display: flex; flex-direction: column; height: 100%;
}
.game-card:active { transform: scale(.96); }

.game-card-inner {
  position: relative; border-radius: var(--radius); overflow: hidden;
  background: var(--card);
  border: 1px solid rgba(255,255,255,.07);
  box-shadow: 0 8px 24px rgba(0,0,0,.35);
  transition: border-color .25s, box-shadow .25s;
  display: flex; flex-direction: column; flex: 1; height: 100%;
}
.game-card:hover .game-card-inner,
.game-card:focus-visible .game-card-inner {
  border-color: rgba(255,176,32,.35);
  box-shadow: 0 12px 32px rgba(0,0,0,.45), 0 0 24px rgba(255,176,32,.12);
}
.game-card.popular .game-card-inner {
  border-color: rgba(255,176,32,.2);
}

.game-thumb { position: relative; aspect-ratio: 1; overflow: hidden; flex-shrink: 0; }
.game-thumb img {
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.06);
  filter: blur(1.2px) saturate(1.08) brightness(.92);
  transition: transform .35s ease, filter .35s ease;
}
.game-card:hover .game-thumb img {
  transform: scale(1.1);
  filter: blur(.4px) saturate(1.12) brightness(.96);
}

.game-thumb::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(7,8,15,.75) 100%);
  pointer-events: none;
}

.gtag {
  position: absolute; top: 8px; left: 8px; z-index: 2;
  background: linear-gradient(135deg, var(--accent), #6d28d9);
  color: #fff; font-size: 9px; font-weight: 700; border-radius: 999px;
  padding: 4px 9px; text-transform: uppercase; letter-spacing: .6px;
  box-shadow: 0 4px 14px rgba(139,92,246,.35);
}

.gplay {
  position: absolute; inset: 0; z-index: 3;
  display: flex; align-items: center; justify-content: center;
  background: rgba(7,8,15,.5); backdrop-filter: blur(2px);
  opacity: 0; transition: opacity .2s;
}
.gplay-btn {
  width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(135deg, var(--gold2), var(--gold));
  color: #1a1200; font-size: 16px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 24px rgba(255,176,32,.5);
  transform: scale(.9); transition: transform .2s;
}
.game-card:hover .gplay { opacity: 1; }
.game-card:hover .gplay-btn { transform: scale(1); }

.game-meta {
  padding: 10px 10px 11px;
  min-height: 68px;
  display: flex; flex-direction: column; justify-content: flex-end;
  flex: 1;
}
.gname {
  font-size: 11px; font-weight: 600; line-height: 1.3;
  color: var(--text);
  height: 2.6em;
  min-height: 2.6em;
  max-height: 2.6em;
  margin-bottom: 7px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; text-overflow: ellipsis;
  word-break: break-word;
}

.gplayers {
  display: flex; align-items: center; gap: 6px;
  font-size: 10.5px; font-weight: 600; color: var(--muted);
  min-height: 16px; flex-shrink: 0;
}
.gplayers .live-dot { width: 6px; height: 6px; flex-shrink: 0; }
.gplayers-count {
  color: #69f0ae; font-variant-numeric: tabular-nums;
  transition: color .3s;
}
.gplayers-count.tick-up { color: #b9f6ca; }
.gplayers-count.tick-down { color: #00c853; }
.gplayers-label { color: var(--muted); font-weight: 500; }

/* ---------- BOTTOM NAV ---------- */
.bottomnav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 30;
  display: flex;
  background: rgba(8,11,24,.94); backdrop-filter: blur(16px);
  border-top: 1px solid rgba(255,255,255,.06);
  padding-bottom: env(safe-area-inset-bottom);
  box-shadow: 0 -8px 32px rgba(0,0,0,.4);
}
.nav-btn {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px;
  background: transparent; border: 0; color: var(--muted);
  font-size: 10.5px; font-weight: 600; padding: 11px 0 9px; cursor: pointer; font-family: inherit;
  transition: color .2s;
}
.nav-btn span { font-size: 21px; filter: grayscale(.3); transition: filter .2s; }
.nav-btn.active { color: var(--gold2); }
.nav-btn.active span { filter: none; text-shadow: 0 0 12px rgba(240,180,41,.35); }

/* ---------- WALLET ---------- */
.wallet-card {
  margin: 16px; padding: 0; border-radius: 24px; text-align: center; overflow: hidden;
  background: var(--card);
  border: 1px solid rgba(255,176,32,.2);
  box-shadow: 0 16px 40px rgba(0,0,0,.35);
}
.wallet-balance-wrap {
  position: relative; padding: 28px 20px 22px; overflow: hidden;
  background:
    radial-gradient(120% 80% at 50% -10%, rgba(255,176,32,.28), transparent 55%),
    linear-gradient(180deg, #1a1428, #131622);
}
.wallet-orb {
  position: absolute; width: 160px; height: 160px; border-radius: 50%;
  top: -40px; left: 50%; transform: translateX(-50%);
  background: radial-gradient(circle, rgba(255,176,32,.35), transparent 70%);
  filter: blur(8px);
  animation: orb-breathe 4s ease-in-out infinite;
  pointer-events: none;
}
@keyframes orb-breathe {
  0%, 100% { opacity: .7; transform: translateX(-50%) scale(1); }
  50% { opacity: 1; transform: translateX(-50%) scale(1.15); }
}
.wallet-label {
  position: relative; color: var(--muted); font-size: 12px; font-weight: 600;
  letter-spacing: 1.2px; text-transform: uppercase;
}
.wallet-balance {
  position: relative;
  font-family: "Unbounded", sans-serif;
  font-size: 42px; font-weight: 700; line-height: 1.15;
  background: linear-gradient(135deg, #fff6d0, var(--gold2) 40%, var(--gold));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  margin: 10px 0 8px;
  filter: drop-shadow(0 0 22px rgba(255,176,32,.35));
  animation: balance-glow 3s ease-in-out infinite;
}
@keyframes balance-glow {
  0%, 100% { filter: drop-shadow(0 0 16px rgba(255,176,32,.25)); }
  50% { filter: drop-shadow(0 0 28px rgba(255,176,32,.5)); }
}
.wallet-pulse-hint {
  position: relative; display: inline-flex; align-items: center; gap: 7px;
  font-size: 11px; color: var(--neon-green); font-weight: 600;
  padding: 5px 12px; border-radius: 999px;
  background: rgba(0,230,118,.08); border: 1px solid rgba(0,230,118,.2);
}
.wallet-stats {
  display: flex; gap: 10px; margin: 0; padding: 14px 16px;
  border-top: 1px solid rgba(255,255,255,.05);
  border-bottom: 1px solid rgba(255,255,255,.05);
}
.wallet-stats > div {
  flex: 1; background: var(--bg2); border-radius: 14px; padding: 12px;
  display: flex; flex-direction: column; gap: 3px;
  border: 1px solid rgba(255,255,255,.05);
}
.wallet-stats small { color: var(--muted); font-size: 11px; }
.wallet-stats b { font-size: 15px; font-weight: 700; }

.wallet-actions {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
  padding: 16px;
}
.wallet-actions-modal {
  display: flex; flex-direction: column; gap: 12px;
}

.action-tile {
  position: relative; display: flex; flex-direction: column; align-items: center;
  gap: 6px; padding: 16px 12px 14px; border-radius: 18px; border: 1px solid transparent;
  cursor: pointer; font-family: inherit; overflow: hidden;
  transition: transform .15s, box-shadow .25s, border-color .25s;
  text-align: center;
}
.action-tile:active { transform: scale(.97); }
.action-tile::before {
  content: ""; position: absolute; inset: -40% auto auto -20%; width: 80%; height: 80%;
  border-radius: 50%; pointer-events: none; opacity: .5;
  animation: tile-shine 5s ease-in-out infinite;
}
.action-tile.deposit {
  background: linear-gradient(160deg, rgba(0,230,118,.18), rgba(0,200,83,.06) 55%, var(--bg2));
  border-color: rgba(0,230,118,.35);
  box-shadow: 0 8px 28px rgba(0,230,118,.15);
}
.action-tile.deposit::before { background: radial-gradient(circle, rgba(0,230,118,.35), transparent 70%); }
.action-tile.withdraw {
  background: linear-gradient(160deg, rgba(255,176,32,.18), rgba(255,176,32,.05) 55%, var(--bg2));
  border-color: rgba(255,176,32,.35);
  box-shadow: 0 8px 28px rgba(255,176,32,.15);
}
.action-tile.withdraw::before {
  background: radial-gradient(circle, rgba(255,176,32,.35), transparent 70%);
  animation-delay: 1.2s;
}
@keyframes tile-shine {
  0%, 100% { transform: translate(0,0); opacity: .4; }
  50% { transform: translate(30%, 20%); opacity: .75; }
}
.action-icon {
  font-size: 22px; width: 42px; height: 42px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; margin-bottom: 2px;
}
.action-tile.deposit .action-icon {
  background: rgba(0,230,118,.15); color: var(--neon-green);
  box-shadow: 0 0 18px rgba(0,230,118,.25);
}
.action-tile.withdraw .action-icon {
  background: rgba(255,176,32,.15);
  box-shadow: 0 0 18px rgba(255,176,32,.25);
}
.action-title {
  font-size: 14px; font-weight: 800; letter-spacing: .3px;
  color: var(--text);
}
.action-tile.deposit .action-title { color: #b9f6ca; }
.action-tile.withdraw .action-title { color: var(--gold2); }
.action-desc {
  font-size: 10.5px; line-height: 1.35; color: var(--muted); font-weight: 500;
  max-width: 130px; animation: desc-fade 4s ease-in-out infinite;
}
.action-tile.deposit .action-desc { color: rgba(185,246,202,.75); animation-delay: 0s; }
.action-tile.withdraw .action-desc { color: rgba(255,213,106,.7); animation-delay: .8s; }
@keyframes desc-fade {
  0%, 100% { opacity: .65; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(-1px); }
}

.btn-deposit {
  background: linear-gradient(135deg, #69f0ae, #00e676 45%, #00c853);
  color: #003d1f; border: 0; border-radius: 14px; padding: 15px;
  font-size: 15px; font-weight: 700; letter-spacing: .3px; cursor: pointer; font-family: inherit;
  box-shadow: 0 6px 28px rgba(0,230,118,.35), inset 0 1px 0 rgba(255,255,255,.25);
  transition: transform .12s;
}
.btn-deposit:active { transform: scale(.97); }

.deposit-amounts {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px;
  margin: 16px 0 12px;
}
.dep-amt {
  background: var(--bg2); border: 1px solid rgba(255,255,255,.1);
  color: var(--text); border-radius: 12px; padding: 12px 6px;
  font-weight: 700; font-size: 13px; font-family: inherit; cursor: pointer;
  transition: border-color .2s, background .2s;
}
.dep-amt.active {
  border-color: rgba(0,230,118,.5);
  background: rgba(0,230,118,.12);
  color: var(--neon-green);
  box-shadow: 0 0 16px rgba(0,230,118,.15);
}

.qr-box {
  margin-top: 16px; padding: 18px 14px; border-radius: 18px; text-align: center;
  background: var(--bg2); border: 1px solid rgba(0,230,118,.2);
}
.qr-canvas {
  width: 180px; height: 180px; margin: 0 auto 12px;
  border-radius: 14px; background: #fff; padding: 10px;
  display: grid; grid-template-columns: repeat(21, 1fr); grid-template-rows: repeat(21, 1fr);
  gap: 0; overflow: hidden;
  box-shadow: 0 8px 24px rgba(0,0,0,.25);
}
.qr-cell { background: transparent; }
.qr-cell.on { background: #111; }
.qr-value { font-size: 14px; margin-bottom: 4px; }
.qr-hint { font-size: 12px; color: var(--muted); margin-bottom: 12px; }
.pix-copy-row { display: flex; gap: 8px; margin-bottom: 10px; }
.pix-copy-row input {
  flex: 1; font-size: 11px; padding: 10px; background: var(--card);
  border: 1px solid rgba(255,255,255,.08); border-radius: 10px; color: var(--muted);
}
.qr-demo {
  font-size: 11px; color: var(--gold); opacity: .85; margin-bottom: 12px;
}
.qr-box .btn-deposit { width: 100%; }
.pending-banner {
  margin: 0 16px 16px; background: rgba(0,230,118,.08); border: 1px solid rgba(0,230,118,.3);
  color: var(--neon-green); border-radius: 14px; padding: 11px; font-size: 13px; font-weight: 600;
}

.history { padding: 0 16px 30px; }
.wd-item {
  display: flex; justify-content: space-between; align-items: center;
  background: var(--card); border: 1px solid rgba(255,255,255,.06);
  border-radius: 16px; padding: 14px 16px; margin-bottom: 10px;
}
.wd-item .amt { font-weight: 700; font-size: 15px; }
.wd-item .info { font-size: 11.5px; color: var(--muted); margin-top: 3px; }
.badge { font-size: 10px; font-weight: 700; border-radius: 999px; padding: 5px 10px; text-transform: uppercase; letter-spacing: .3px; }
.badge.awaiting_unlock { background: rgba(255,176,32,.12); color: var(--gold); border: 1px solid rgba(255,176,32,.25); }
.badge.pending { background: rgba(0,229,255,.1); color: var(--neon-cyan); border: 1px solid rgba(0,229,255,.25); }
.badge.paid { background: rgba(0,230,118,.1); color: var(--neon-green); border: 1px solid rgba(0,230,118,.25); }
.badge.rejected { background: rgba(255,51,102,.1); color: #ff6b9d; border: 1px solid rgba(255,51,102,.25); }
.empty { color: var(--muted); text-align: center; font-size: 13px; padding: 24px; }

/* ---------- PROFILE ---------- */
.profile-card {
  margin: 30px 16px; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.avatar {
  width: 88px; height: 88px; border-radius: 50%; font-size: 40px;
  display: flex; align-items: center; justify-content: center;
  background: var(--card); border: 2px solid rgba(255,176,32,.35);
  box-shadow: 0 0 30px rgba(255,176,32,.15);
  margin-bottom: 8px;
}
.profile-card h3 { font-weight: 700; font-size: 18px; }
.profile-card .btn-outline { margin-top: 20px; }

/* ---------- GAME VIEW ---------- */
.game-view { padding-bottom: 0; display: flex; flex-direction: column; height: 100vh; height: 100dvh; }
.game-topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 14px; background: rgba(7,8,15,.95);
  border-bottom: 1px solid rgba(255,176,32,.15);
  backdrop-filter: blur(10px);
}
.exit-btn {
  background: var(--card); border: 1px solid rgba(255,255,255,.1); color: var(--text);
  border-radius: 12px; padding: 8px 14px; font-weight: 600; font-size: 13px; cursor: pointer; font-family: inherit;
}
.game-title { font-size: 13px; font-weight: 700; color: var(--gold2); }
#game-frame { flex: 1; width: 100%; border: 0; background: #000; }

/* ---------- MODAL ---------- */
.modal {
  position: fixed; inset: 0; z-index: 100;
  display: flex; align-items: flex-end; justify-content: center;
  background: rgba(0,0,0,.75); backdrop-filter: blur(6px);
}
@media (min-width: 560px) { .modal { align-items: center; } }
.modal-card {
  position: relative; width: 100%; max-width: 430px;
  background: var(--card); border: 1px solid rgba(255,255,255,.08);
  border-radius: 24px 24px 0 0; padding: 26px 22px 32px;
  animation: slideup .25s ease;
  box-shadow: 0 -20px 60px rgba(0,0,0,.5);
}
@media (min-width: 560px) { .modal-card { border-radius: 24px; } }
@keyframes slideup { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
.modal-card h3 { font-family: "Unbounded", sans-serif; font-size: 17px; margin-bottom: 6px; }
.modal-card form { display: flex; flex-direction: column; gap: 14px; margin-top: 16px; }
.modal-close {
  position: absolute; top: 16px; right: 16px; width: 34px; height: 34px;
  border-radius: 50%; border: 0; background: var(--bg2); color: var(--muted); cursor: pointer; font-size: 14px;
}
.modal-card.success { text-align: center; }
.success-icon { font-size: 52px; margin-bottom: 10px; }
.success-text { color: var(--text); font-size: 14.5px; line-height: 1.6; margin: 12px 0 22px; }
.modal-card.success .btn-gold { width: 100%; }

/* ---------- TOAST & LOADER ---------- */
.toast {
  position: fixed; bottom: 94px; left: 50%; transform: translateX(-50%);
  background: var(--card2); color: var(--text);
  border: 1px solid rgba(255,176,32,.25);
  border-radius: 14px; padding: 13px 20px; font-size: 13.5px; font-weight: 600;
  z-index: 200; max-width: 90vw; text-align: center;
  box-shadow: 0 12px 40px rgba(0,0,0,.5), 0 0 20px rgba(255,176,32,.1);
}
.loader {
  position: fixed; inset: 0; z-index: 300;
  display: flex; align-items: center; justify-content: center;
  background: rgba(7,8,15,.8); backdrop-filter: blur(4px);
}
.spinner {
  width: 48px; height: 48px; border-radius: 50%;
  border: 3px solid rgba(255,176,32,.15); border-top-color: var(--gold);
  animation: spin .75s linear infinite;
  box-shadow: 0 0 24px rgba(255,176,32,.2);
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- REF BANNER AUTH ---------- */
.ref-banner {
  background: rgba(0,230,118,.08); border: 1px solid rgba(0,230,118,.3);
  border-radius: 14px; padding: 11px 12px; font-size: 13px; color: var(--neon-green); text-align: center;
}

/* ---------- AFILIADOS ---------- */
.aff-hero {
  position: relative; margin: 14px 16px; padding: 22px 18px; border-radius: 22px; overflow: hidden;
  background: linear-gradient(145deg, #141a32, #0e1324);
  border: 1px solid rgba(139,92,246,.18);
}
.aff-hero-glow {
  position: absolute; top: -30%; right: -20%; width: 70%; height: 80%;
  background: radial-gradient(circle, rgba(139,92,246,.16), transparent 70%);
  pointer-events: none;
}
.aff-kicker { font-size: 11px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: var(--cyan); }
.aff-hero h2 { font-family: "Unbounded", sans-serif; font-size: 20px; margin: 8px 0; line-height: 1.3; }
.aff-hero h2 span { color: var(--gold2); text-shadow: 0 0 20px rgba(255,176,32,.4); }
.aff-sub { color: var(--muted); font-size: 13px; margin-bottom: 14px; }
.aff-sub b { color: var(--neon-green); }
.aff-rewards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.aff-reward-card {
  background: rgba(255,176,32,.08); border: 1px solid rgba(255,176,32,.25);
  border-radius: 14px; padding: 12px; text-align: center;
}
.aff-reward-card.green { background: rgba(0,230,118,.08); border-color: rgba(0,230,118,.25); }
.aff-reward-card small { display: block; font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; }
.aff-reward-card b { display: block; font-size: 22px; font-weight: 800; color: var(--gold2); margin: 4px 0; }
.aff-reward-card.green b { color: var(--neon-green); }
.aff-reward-card span { font-size: 11px; color: var(--muted); }

.aff-link-box { margin: 0 16px 14px; padding: 16px; border-radius: 18px; background: var(--card); border: 1px solid rgba(255,255,255,.07); }
.aff-link-label { font-size: 12px; color: var(--muted); margin-bottom: 8px; font-weight: 600; }
.aff-link-row { display: flex; gap: 8px; margin-bottom: 12px; }
.aff-link-row input {
  flex: 1; background: var(--bg2); border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px; padding: 11px 12px; color: var(--text); font-size: 12px; font-family: inherit;
}
.btn-icon {
  width: 44px; border: 1px solid rgba(255,255,255,.1); background: var(--bg2);
  border-radius: 12px; cursor: pointer; font-size: 18px;
}
.btn-whatsapp {
  width: 100%; display: flex; align-items: center; justify-content: center; gap: 10px;
  background: linear-gradient(135deg, #25d366, #128c7e);
  color: #fff; border: 0; border-radius: 14px; padding: 14px;
  font-size: 15px; font-weight: 700; font-family: inherit; cursor: pointer;
  box-shadow: 0 8px 24px rgba(37,211,102,.35);
}

.aff-proj {
  margin: 0 16px 14px; padding: 14px 16px; border-radius: 16px;
  background: var(--card); border: 1px solid rgba(255,255,255,.06);
}
.aff-proj-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 0; font-size: 13px; color: var(--muted);
  border-bottom: 1px solid rgba(255,255,255,.05);
}
.aff-proj-row:last-of-type { border-bottom: 0; margin-bottom: 10px; }
.aff-proj-row b { font-size: 15px; }

.unlock-panel {
  margin: 0 16px 16px; padding: 18px; border-radius: 18px;
  background: linear-gradient(160deg, rgba(255,176,32,.1), var(--card));
  border: 1px solid rgba(255,176,32,.3);
  box-shadow: 0 0 30px rgba(255,176,32,.08);
}
.unlock-head {
  display: flex; justify-content: space-between; align-items: center;
  font-weight: 700; font-size: 15px; margin-bottom: 8px;
}
.unlock-text { font-size: 13px; color: var(--muted); margin-bottom: 14px; line-height: 1.45; }
.aff-progress-label { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); margin-bottom: 6px; }
.aff-progress-bar { height: 8px; background: var(--bg2); border-radius: 999px; overflow: hidden; }
.aff-progress-fill {
  height: 100%; width: 0; border-radius: 999px;
  background: linear-gradient(90deg, var(--neon-green), var(--neon-cyan));
  box-shadow: 0 0 12px rgba(0,230,118,.5);
  transition: width .4s ease;
}

.aff-stats {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0 16px 14px;
}
.aff-stats > div {
  background: var(--card); border: 1px solid rgba(255,255,255,.06);
  border-radius: 14px; padding: 14px; text-align: center;
}
.aff-stats small { display: block; font-size: 11px; color: var(--muted); margin-bottom: 4px; }
.aff-stats b { font-size: 20px; font-weight: 800; }

.aff-history { padding: 0 16px 24px; }
.aff-item {
  display: flex; justify-content: space-between; align-items: center;
  background: var(--card); border: 1px solid rgba(255,255,255,.06);
  border-radius: 14px; padding: 12px 14px; margin-bottom: 8px;
}
.aff-item .name { font-weight: 600; font-size: 14px; }
.aff-item .date { font-size: 11px; color: var(--muted); margin-top: 2px; }
.aff-item .bonus { font-weight: 800; color: var(--neon-green); font-size: 14px; }

.withdraw-lock-banner {
  margin-top: 12px; padding: 11px 12px; border-radius: 14px; font-size: 12.5px; font-weight: 600;
  background: rgba(255,176,32,.08); border: 1px solid rgba(255,176,32,.25); color: var(--gold2);
  text-align: center; cursor: pointer;
}

.fee-intro { margin-bottom: 14px; line-height: 1.5; }
.fee-choice-grid { display: flex; flex-direction: column; gap: 10px; }
.fee-choice {
  position: relative; text-align: left; padding: 16px; border-radius: 16px;
  background: var(--bg2); border: 1px solid rgba(0,230,118,.25);
  color: var(--text); cursor: pointer; font-family: inherit;
  transition: border-color .2s, box-shadow .2s;
}
.fee-choice.gold { border-color: rgba(255,176,32,.3); }
.fee-choice:active { transform: scale(.98); }
.fee-choice-icon { font-size: 24px; display: block; margin-bottom: 6px; }
.fee-choice b { display: block; font-size: 15px; margin-bottom: 4px; }
.fee-choice small { color: var(--muted); font-size: 12px; }
.fee-choice-tag {
  position: absolute; top: 12px; right: 12px; font-size: 9px; font-weight: 800;
  padding: 4px 8px; border-radius: 999px; text-transform: uppercase;
  background: rgba(0,230,118,.15); color: var(--neon-green);
}
.fee-progress-hint { margin-top: 14px; font-size: 12px; color: var(--muted); text-align: center; }

@media (hover: none) {
  .game-card .gplay { opacity: 1; background: transparent; }
  .gplay-btn { width: 36px; height: 36px; font-size: 14px; opacity: .9;
    position: absolute; bottom: 52px; right: 8px; }
}
