/* ============================================================
   BETAYA — Protótipo visual (front-end demonstrativo)
   Sem motor financeiro. Saldo é apenas exibição.
   ============================================================ */

:root {
  /* Fundo / superfícies */
  --bg:            #0e0f12;
  --bg-2:          #141519;
  --surface:       #1a1c22;
  --surface-2:     #21242c;
  --surface-3:     #2a2e38;
  --border:        #2c2f38;

  /* Texto */
  --text:          #f2f4f7;
  --text-dim:      #9aa0ac;
  --text-mute:     #6b7180;

  /* Verde de marca (gradiente principal) */
  --green:         #9ee34f;
  --green-2:       #5fce3a;
  --green-grad:    linear-gradient(135deg, #a8ee5b 0%, #5cc739 100%);
  --green-glow:    0 6px 20px -6px rgba(120, 220, 70, .55);

  /* Laranja/vermelho da pílula promocional */
  --promo-grad:    linear-gradient(90deg, #ff9d2e 0%, #ff5a3c 100%);

  /* Azul VIP / secundários */
  --blue:          #3a8dff;
  --purple:        #7b5cff;

  --radius:        16px;
  --radius-sm:     10px;
  --radius-lg:     22px;

  --shadow:        0 10px 30px -12px rgba(0,0,0,.6);

  --nav-h:         66px;
  --header-h:      58px;
  --maxw:          460px;   /* largura "celular" no desktop */
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body { height: 100%; }

body {
  font-family: 'Poppins', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
img { max-width: 100%; display: block; }
input { font-family: inherit; }

/* ---- Logo em script ---- */
.logo {
  font-family: 'Pacifico', cursive;
  font-size: 24px;
  color: #fff;
  letter-spacing: .3px;
  line-height: 1;
}

/* ============================================================
   SHELL — coluna central estilo celular, centralizada no desktop
   ============================================================ */
.app {
  max-width: var(--maxw);
  margin: 0 auto;
  min-height: 100vh;
  background: var(--bg);
  position: relative;
  padding-bottom: calc(var(--nav-h) + 12px);
  box-shadow: 0 0 60px -10px rgba(0,0,0,.7);
}

/* ============================================================
   HEADER
   ============================================================ */
.header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
  background: rgba(14,15,18,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,.04);
}

.icon-btn {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: 12px;
  color: var(--text);
  flex: 0 0 auto;
}
.icon-btn:hover { background: var(--surface-2); }
.icon-btn svg { width: 22px; height: 22px; }

.header .logo { flex: 0 0 auto; }

.header-spacer { flex: 1; }

/* pílula de saldo */
.balance-pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 5px 12px 5px 5px;
}
.balance-pill .coin {
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--green-grad);
  display: grid; place-items: center;
  font-size: 12px; color: #12300a; font-weight: 800;
  box-shadow: 0 0 0 2px rgba(158,227,79,.15);
}
.balance-pill .bal-amt {
  display: flex; flex-direction: column; align-items: flex-start;
  line-height: 1.05;
}
.balance-pill .bal-amt small { font-size: 9px; color: var(--text-dim); font-weight: 600; }
.balance-pill .bal-amt b { font-size: 14px; font-weight: 700; color: var(--text); }
.balance-pill .chev { color: var(--text-mute); font-size: 10px; }

/* botão depósito */
.btn-deposit {
  background: var(--green-grad);
  color: #14340a;
  font-weight: 700; font-size: 13.5px;
  padding: 8px 16px;
  border-radius: 20px;
  box-shadow: var(--green-glow);
  white-space: nowrap;
}
.btn-deposit:active { transform: translateY(1px); }

/* botões entrar / cadastrar (deslogado) */
.btn-ghost {
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 7px 14px;
  font-weight: 600; font-size: 13px;
  background: var(--surface-2);
  white-space: nowrap;
}
.btn-register {
  background: var(--green-grad);
  color: #14340a;
  font-weight: 700; font-size: 13px;
  padding: 8px 15px;
  border-radius: 20px;
  box-shadow: var(--green-glow);
  white-space: nowrap;
}

/* baú com badge */
.chest {
  position: relative;
  width: 38px; height: 38px;
  display: grid; place-items: center;
  font-size: 22px;
}
.chest .badge {
  position: absolute; top: -2px; right: -2px;
  background: #ff4d4d; color: #fff;
  font-size: 10px; font-weight: 700;
  min-width: 16px; height: 16px; padding: 0 4px;
  border-radius: 9px; display: grid; place-items: center;
}

/* pílula promo flutuante sob o header */
.promo-strip {
  display: flex; justify-content: flex-end;
  padding: 6px 12px 0;
  position: relative; z-index: 5;
  margin-top: -2px;
}
.promo-pill {
  background: var(--promo-grad);
  color: #fff; font-weight: 700; font-size: 12px;
  padding: 6px 14px; border-radius: 14px;
  display: inline-flex; align-items: center; gap: 6px;
  box-shadow: 0 6px 16px -6px rgba(255,90,60,.6);
}

/* ============================================================
   HERO / BANNER CARROSSEL
   ============================================================ */
.hero {
  padding: 10px 12px 0;
}
.hero-slide {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 16 / 8.2;
  background:
    radial-gradient(120% 120% at 20% 0%, #3a2b6e 0%, #1a1030 55%, #0e0a1c 100%);
  position: relative;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(255,255,255,.05);
}
.hero-slide .hero-title {
  font-family: 'Pacifico', cursive;
  font-size: 34px;
  color: #ffd85e;
  text-shadow: 0 3px 0 #a86b12, 0 6px 18px rgba(0,0,0,.5);
  transform: rotate(-4deg);
}
.dots {
  display: flex; gap: 6px; justify-content: center;
  padding: 12px 0 2px;
}
.dots i {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--surface-3); display: block;
  transition: .3s;
}
.dots i.on { width: 22px; border-radius: 4px; background: var(--green); }

/* ============================================================
   SEARCH + TABS
   ============================================================ */
.search {
  margin: 6px 12px 0;
  display: flex; align-items: center; gap: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 11px 16px;
  color: var(--text-mute);
}
.search svg { width: 18px; height: 18px; flex: 0 0 auto; }
.search input {
  border: none; background: none; outline: none;
  color: var(--text); width: 100%; font-size: 14px;
}
.search input::placeholder { color: var(--text-mute); }

.tabs {
  display: flex; gap: 10px;
  padding: 14px 12px 4px;
  overflow-x: auto;
  scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tab {
  flex: 0 0 auto;
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 9px 16px;
  font-weight: 600; font-size: 13.5px;
  color: var(--text-dim);
}
.tab .ic { font-size: 15px; }
.tab.on {
  color: var(--green);
  border-color: rgba(158,227,79,.5);
  background: rgba(158,227,79,.08);
}

/* ============================================================
   SEÇÃO / GRID DE JOGOS
   ============================================================ */
.section-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 14px 10px;
}
.section-head h2 {
  font-size: 16px; font-weight: 700; letter-spacing: .3px;
}
.section-head .see-all { font-size: 12.5px; color: var(--green); font-weight: 600; }

.game-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  padding: 0 12px;
}
.game-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 3 / 3.5;
  background: var(--surface);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: transform .15s, box-shadow .15s;
}
.game-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.game-card .art {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  font-size: 46px;
}
.game-card.c1 .art { background: radial-gradient(120% 120% at 30% 10%, #6d3fb0, #2a1550); }
.game-card.c2 .art { background: radial-gradient(120% 120% at 30% 10%, #b8582a, #4a1f0f); }
.game-card.c3 .art { background: radial-gradient(120% 120% at 30% 10%, #2a7db8, #10304a); }
.game-card.c4 .art { background: radial-gradient(120% 120% at 30% 10%, #b82a6b, #4a0f2c); }
.game-card.c5 .art { background: radial-gradient(120% 120% at 30% 10%, #2ab884, #0f4a34); }
.game-card.c6 .art { background: radial-gradient(120% 120% at 30% 10%, #b8a12a, #4a3f0f); }

.game-card .rank {
  position: absolute; top: 8px; left: 8px;
  font-family: 'Pacifico', cursive;
  font-size: 30px; color: #fff;
  text-shadow: 0 2px 8px rgba(0,0,0,.6);
  line-height: 1;
}
.game-card .players {
  position: absolute; top: 12px; right: 10px;
  background: rgba(0,0,0,.45);
  border-radius: 10px; padding: 3px 8px;
  font-size: 11px; font-weight: 600;
  display: flex; align-items: center; gap: 4px;
}
.game-card .players i { color: var(--green); font-style: normal; }
.game-card .cap {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 22px 10px 10px;
  background: linear-gradient(transparent, rgba(0,0,0,.85));
  font-weight: 700; font-size: 13px;
  text-transform: uppercase; letter-spacing: .4px;
}

/* ============================================================
   BOTTOM NAV
   ============================================================ */
.bottom-nav {
  position: fixed;
  bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: var(--maxw);
  height: var(--nav-h);
  background: rgba(18,19,23,.96);
  backdrop-filter: blur(12px);
  border-top: 1px solid rgba(255,255,255,.05);
  display: flex;
  z-index: 45;
}
.bottom-nav a {
  flex: 1;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 3px;
  color: var(--text-mute);
  font-size: 11px; font-weight: 600;
}
.bottom-nav a svg { width: 22px; height: 22px; }
.bottom-nav a.on { color: var(--green); }
.bottom-nav a.on svg { filter: drop-shadow(0 0 6px rgba(158,227,79,.5)); }

/* ============================================================
   SIDEBAR (menu lateral)
   ============================================================ */
.overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.55);
  opacity: 0; visibility: hidden;
  transition: .25s; z-index: 60;
}
.overlay.show { opacity: 1; visibility: visible; }

.sidebar {
  position: fixed; top: 0; left: 50%;
  transform: translateX(-50%) translateX(-105%);
  width: 100%; max-width: var(--maxw);
  height: 100%;
  background: var(--bg-2);
  z-index: 70;
  transition: transform .28s cubic-bezier(.4,0,.2,1), visibility .28s;
  overflow-y: auto;
  padding-bottom: 30px;
  visibility: hidden;          /* fica realmente escondida quando fechada */
}
.sidebar.open {
  transform: translateX(-50%);
  visibility: visible;
}

.sidebar-inner { padding: 0 0 20px; }
.sidebar-top {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; background: var(--bg-2); z-index: 2;
}

.refer-card {
  margin: 14px 16px;
  border-radius: var(--radius);
  padding: 16px;
  background:
    radial-gradient(120% 140% at 100% 0%, #1f6b3a 0%, #12331f 60%, #0e2417 100%);
  border: 1px solid rgba(158,227,79,.2);
}
.refer-card .tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; color: var(--green); font-weight: 600; margin-bottom: 8px;
}
.refer-card h3 { font-size: 19px; line-height: 1.2; margin-bottom: 14px; }
.refer-card .btn-copy {
  background: var(--green-grad); color: #14340a;
  font-weight: 700; font-size: 13px;
  padding: 9px 18px; border-radius: 20px;
  box-shadow: var(--green-glow);
}

.tile-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
  padding: 0 16px 6px;
}
.tile {
  border-radius: var(--radius); padding: 16px;
  font-weight: 700; font-size: 15px;
  min-height: 78px; display: flex; align-items: flex-end;
  border: 1px solid var(--border);
}
.tile.bonus { background: linear-gradient(135deg, #16324a, #0f2033); }
.tile.vip   { background: linear-gradient(135deg, #4a3410, #2a1d08); }

.menu-list { padding: 8px 6px; }
.menu-list a {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 14px;
  font-weight: 500; font-size: 14.5px;
  border-radius: 12px;
}
.menu-list a:hover { background: var(--surface); }
.menu-list a .mi { font-size: 18px; width: 22px; text-align: center; }
.menu-divider { height: 1px; background: var(--border); margin: 8px 16px; }

.app-download {
  margin: 8px 16px; padding: 16px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #3a1d6e, #1a1030);
  border: 1px solid rgba(123,92,255,.3);
}
.app-download h4 { font-size: 15px; margin-bottom: 4px; }
.app-download p { font-size: 12px; color: var(--text-dim); }

/* ============================================================
   MODAL (login / registro / depósito / bônus)
   ============================================================ */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.6);
  backdrop-filter: blur(3px);
  display: flex; align-items: flex-end; justify-content: center;
  opacity: 0; visibility: hidden;
  transition: .25s; z-index: 100;
}
.modal-overlay.show { opacity: 1; visibility: visible; }

.modal {
  width: 100%; max-width: var(--maxw);
  background: var(--bg-2);
  border-radius: 22px 22px 0 0;
  padding: 22px 20px calc(22px + env(safe-area-inset-bottom));
  transform: translateY(100%);
  transition: transform .3s cubic-bezier(.4,0,.2,1);
  max-height: 92vh; overflow-y: auto;
}
.modal-overlay.show .modal { transform: translateY(0); }

.modal-head {
  display: flex; align-items: flex-start; justify-content: space-between;
  margin-bottom: 4px;
}
.modal-head h2 { font-size: 22px; font-weight: 700; }
.modal-head .sub { color: var(--text-dim); font-size: 13px; margin-top: 2px; }
.modal-close {
  width: 32px; height: 32px; border-radius: 10px;
  background: var(--surface-2); display: grid; place-items: center;
  color: var(--text-dim); font-size: 18px; flex: 0 0 auto;
}

.modal-promo {
  margin: 16px 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: radial-gradient(120% 120% at 100% 0%, #1f5b34, #0f2a1c);
  border: 1px solid rgba(158,227,79,.2);
  padding: 18px 16px;
  display: flex; align-items: center; gap: 12px;
}
.modal-promo .txt { font-weight: 800; font-size: 16px; line-height: 1.15; }
.modal-promo .emo { font-size: 34px; margin-left: auto; }

.field { margin-top: 12px; }
.field .wrap {
  display: flex; align-items: center; gap: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 13px 14px;
}
.field .wrap.err { border-color: #ff4d4d; }
.field .wrap svg { width: 18px; height: 18px; color: var(--text-mute); flex: 0 0 auto; }
.field input {
  border: none; background: none; outline: none;
  color: var(--text); width: 100%; font-size: 14px;
}
.field input::placeholder { color: var(--text-mute); }
.field .toggle-eye { color: var(--text-mute); flex: 0 0 auto; }
.field .msg { color: #ff5a5a; font-size: 12px; margin-top: 6px; display: none; }
.field .wrap.err ~ .msg { display: block; }

.link-forgot { display: block; color: var(--green); font-size: 13px; font-weight: 600; margin-top: 12px; }

.btn-primary {
  width: 100%;
  background: var(--green-grad);
  color: #14340a; font-weight: 700; font-size: 15px;
  padding: 15px; border-radius: 14px;
  box-shadow: var(--green-glow);
  margin-top: 18px;
}
.btn-primary:active { transform: translateY(1px); }

.btn-outline {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--green); font-weight: 700; font-size: 15px;
  padding: 14px; border-radius: 14px;
  margin-top: 12px;
}

.modal-alt {
  text-align: center; color: var(--text-dim); font-size: 13px; margin-top: 16px;
}
.modal-alt a { color: var(--green); font-weight: 700; }

.or-divider {
  display: flex; align-items: center; gap: 12px;
  color: var(--text-mute); font-size: 12px;
  margin: 16px 0;
}
.or-divider::before, .or-divider::after {
  content: ''; flex: 1; height: 1px; background: var(--border);
}

.btn-google {
  width: 100%;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text); font-weight: 600; font-size: 14px;
  padding: 13px; border-radius: 12px;
}

.field-select {
  display: flex; align-items: center; justify-content: space-between;
  color: var(--text-dim); font-size: 13px; font-weight: 600;
  margin-top: 14px; cursor: pointer;
}

/* ============================================================
   PÁGINAS INTERNAS (conta / afiliado / depósito)
   ============================================================ */
.page-pad { padding: 14px 12px; }

.profile-head {
  display: flex; align-items: center; gap: 12px;
  padding: 6px 12px 14px;
}
.avatar {
  width: 54px; height: 54px; border-radius: 50%;
  background: linear-gradient(135deg, #3a8dff, #7b5cff);
  display: grid; place-items: center; font-size: 26px;
  flex: 0 0 auto;
}
.profile-head .name { font-weight: 700; font-size: 16px; }
.profile-head .uid { color: var(--text-mute); font-size: 12px; margin-top: 2px; }
.profile-head .edit { margin-left: auto; color: var(--text-dim); }

.vip-card {
  margin: 4px 12px;
  border-radius: var(--radius);
  padding: 16px;
  background: linear-gradient(135deg, #2a2e38, #1a1c22);
  border: 1px solid var(--border);
}
.vip-card .top { display: flex; align-items: center; justify-content: space-between; }
.vip-card .lvl { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.vip-card .medal {
  width: 34px; height: 34px; border-radius: 8px;
  background: linear-gradient(135deg, #b98a3a, #6e4a15);
  display: grid; place-items: center; font-size: 18px;
}
.vip-card .club { color: var(--green); font-size: 12px; font-weight: 600; }
.vip-card .bar { height: 6px; border-radius: 4px; background: var(--surface-3); margin: 12px 0 6px; overflow: hidden; }
.vip-card .bar i { display: block; height: 100%; width: 22%; background: var(--green-grad); }
.vip-card .bar-label { font-size: 11px; color: var(--text-mute); text-align: right; }

.dual-cta { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 12px; }
.dual-cta .cta {
  border-radius: var(--radius); padding: 18px 16px;
  display: flex; align-items: center; justify-content: space-between;
  font-weight: 700; font-size: 15px; border: 1px solid var(--border);
}
.dual-cta .cta.dep { background: linear-gradient(135deg, #14402a, #0e2a1c); }
.dual-cta .cta.saq { background: linear-gradient(135deg, #16324a, #0f2033); }
.dual-cta .cta .emo { font-size: 26px; }

.balance-box {
  margin: 4px 12px; padding: 20px;
  border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border);
  text-align: center;
}
.balance-box .lbl { display: inline-flex; align-items: center; gap: 6px; color: var(--text-dim); font-size: 13px; }
.balance-box .lbl .coin { width: 16px; height: 16px; border-radius: 50%; background: var(--green-grad); }
.balance-box .amount { font-size: 30px; font-weight: 800; color: var(--green); margin: 8px 0 4px; }
.balance-box .hint { color: var(--text-mute); font-size: 12px; }

.mini-actions { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; padding: 12px; }
.mini-actions .ma {
  border-radius: var(--radius); padding: 16px 8px;
  background: var(--surface); border: 1px solid var(--border);
  text-align: center; font-size: 12px; font-weight: 600; color: var(--text-dim);
}
.mini-actions .ma .emo { font-size: 20px; display: block; margin-bottom: 6px; }

.notify-row {
  margin: 4px 12px; padding: 16px;
  border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border);
  display: flex; align-items: center; gap: 10px; font-weight: 600;
}
.notify-row .chev { margin-left: auto; color: var(--text-mute); }

/* Afiliado */
.panel-tabs { display: flex; gap: 10px; padding: 12px; }
.panel-tabs .pt {
  flex: 0 0 auto; padding: 8px 14px; border-radius: 10px;
  background: var(--surface); border: 1px solid var(--border);
  font-size: 13px; font-weight: 600; color: var(--text-dim);
  display: inline-flex; align-items: center; gap: 6px;
}
.panel-tabs .pt.on { color: var(--green); border-color: rgba(158,227,79,.4); background: rgba(158,227,79,.08); }

.aff-invite {
  margin: 12px; padding: 15px; border-radius: 14px;
  background: var(--green-grad); color: #14340a;
  text-align: center; font-weight: 800; font-size: 15px;
  box-shadow: var(--green-glow);
}
.aff-total {
  margin: 4px 12px; padding: 18px;
  border-radius: var(--radius); background: var(--surface);
  border: 1px solid var(--border); text-align: center;
}
.aff-total .emo { font-size: 30px; }
.aff-total .lbl { color: var(--text-dim); font-size: 13px; margin-top: 6px; }
.aff-total .amt { font-size: 26px; font-weight: 800; color: var(--green); }
.aff-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin-top: 14px; background: var(--border); border-radius: 10px; overflow: hidden; }
.aff-grid .cell { background: var(--surface); padding: 14px; text-align: center; }
.aff-grid .cell .n { font-size: 20px; font-weight: 800; }
.aff-grid .cell .c { font-size: 11px; color: var(--text-mute); margin-top: 2px; }

.aff-team {
  margin: 12px; padding: 16px; border-radius: var(--radius);
  background: radial-gradient(120% 140% at 100% 0%, #1c3a24, #12241a);
  border: 1px solid rgba(158,227,79,.15);
}
.aff-team .row { display: flex; align-items: center; gap: 10px; margin: 10px 0; font-size: 13px; }
.aff-team .row .v { margin-left: auto; font-weight: 700; }
.aff-team .row .v.g { color: var(--green); }
.aff-team .row .v.o { color: #ff9d2e; }

.ref-link {
  display: flex; align-items: center; gap: 8px;
  margin: 12px; padding: 6px 6px 6px 14px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px;
}
.ref-link input { flex: 1; border: none; background: none; outline: none; color: var(--text-dim); font-size: 12px; }
.ref-link button { background: var(--green-grad); color: #14340a; font-weight: 700; padding: 9px 16px; border-radius: 9px; font-size: 13px; }

.live-list { margin: 8px 12px; }
.live-list .li {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 4px; border-bottom: 1px solid var(--border); font-size: 13px;
}
.live-list .li .ava { width: 30px; height: 30px; border-radius: 50%; background: var(--surface-3); flex: 0 0 auto; display:grid; place-items:center; }
.live-list .li .val { margin-left: auto; color: var(--green); font-weight: 700; }

/* Depósito */
.dep-banner {
  margin: 12px; border-radius: var(--radius); overflow: hidden;
  background: radial-gradient(120% 130% at 20% 0%, #2f7d3a, #14401f);
  padding: 20px 16px; text-align: center;
  border: 1px solid rgba(158,227,79,.2);
}
.dep-banner h2 { font-weight: 800; font-size: 20px; line-height: 1.15; }
.dep-section-title { padding: 6px 14px; display: flex; align-items: center; justify-content: space-between; }
.dep-section-title h3 { font-size: 16px; font-weight: 700; }
.dep-section-title span { color: var(--text-dim); font-size: 12px; }
.dep-input {
  margin: 8px 12px; padding: 15px; border-radius: 12px;
  background: var(--surface); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  font-size: 20px; font-weight: 700;
}
.dep-input .nb { color: #ff9d2e; font-size: 13px; font-weight: 600; }
.amount-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; padding: 10px 12px; }
.amount-grid .amt-btn {
  border-radius: 12px; padding: 14px 8px; text-align: center;
  background: var(--surface); border: 1px solid var(--border);
  font-weight: 700; font-size: 15px;
}
.amount-grid .amt-btn.on { border-color: var(--green); background: rgba(158,227,79,.08); }
.amount-grid .amt-btn small { display: block; color: var(--green); font-size: 11px; font-weight: 600; margin-top: 3px; }
.first-dep {
  margin: 10px 12px; padding: 14px; border-radius: 14px;
  background: var(--surface); border: 1px solid var(--border);
  display: flex; align-items: center; gap: 12px;
}
.first-dep .emo { font-size: 28px; }
.first-dep .t { font-weight: 700; font-size: 14px; }
.first-dep .d { color: var(--text-dim); font-size: 12px; }
.first-dep .arrow { margin-left: auto; color: var(--text-mute); }
.dep-note { color: var(--text-mute); font-size: 11px; padding: 12px; line-height: 1.5; text-align: center; }

/* Bônus dropdown (do header) */
.bonus-pop {
  position: absolute; top: calc(var(--header-h) + 6px); left: 12px; right: 12px;
  background: var(--bg-2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 14px; z-index: 55;
  box-shadow: var(--shadow);
  display: none;
}
.bonus-pop.show { display: block; }
.bonus-pop .bh { display: flex; align-items: center; justify-content: space-between; font-weight: 700; margin-bottom: 12px; }
.bonus-pop .brow {
  display: flex; align-items: center; gap: 12px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; padding: 12px; margin-bottom: 10px;
}
.bonus-pop .brow .emo { font-size: 24px; }
.bonus-pop .brow .rg { margin-left: auto; background: var(--green-grad); color: #14340a; font-weight: 700; padding: 8px 16px; border-radius: 18px; font-size: 13px; }
.bonus-pop .panel-link { text-align: center; color: var(--green); font-weight: 700; font-size: 13px; padding: 10px; }

/* util */
.hidden { display: none !important; }

/* toast */
.toast {
  position: fixed; bottom: calc(var(--nav-h) + 16px); left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--surface-3); color: var(--text);
  padding: 12px 20px; border-radius: 12px; font-size: 13px; font-weight: 600;
  box-shadow: var(--shadow); z-index: 200;
  opacity: 0; visibility: hidden; transition: .3s;
  border: 1px solid var(--border);
}
.toast.show { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }

/* ============================================================
   SUB-HEADER (páginas internas: bônus, clube vip)
   ============================================================ */
.subhead {
  display: flex; align-items: center; gap: 6px;
  padding: 12px 12px 4px;
}
.subhead .back {
  width: 36px; height: 36px; border-radius: 12px;
  display: grid; place-items: center;
  background: var(--surface-2); border: 1px solid var(--border);
  font-size: 20px; color: var(--text);
}
.subhead h1 { font-size: 19px; font-weight: 700; }

/* ============================================================
   CLUBE VIP
   ============================================================ */
.vip-hero {
  margin: 12px; padding: 20px 18px;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(130% 130% at 100% 0%, #b98a3a33 0%, transparent 55%),
    linear-gradient(135deg, #24262e, #16171c);
  border: 1px solid rgba(185,138,58,.3);
}
.vip-hero .row1 { display: flex; align-items: center; gap: 14px; }
.vip-hero .big-medal {
  width: 58px; height: 58px; border-radius: 16px;
  background: linear-gradient(135deg, #d9a94a, #8a5f1e);
  display: grid; place-items: center; font-size: 30px;
  box-shadow: 0 8px 20px -8px rgba(217,169,74,.6);
  flex: 0 0 auto;
}
.vip-hero .lv-name { font-size: 22px; font-weight: 800; }
.vip-hero .lv-sub { color: var(--text-dim); font-size: 12.5px; margin-top: 2px; }
.vip-hero .prog {
  height: 10px; border-radius: 6px; background: #00000040;
  margin: 16px 0 8px; overflow: hidden;
  border: 1px solid rgba(255,255,255,.05);
}
.vip-hero .prog i { display: block; height: 100%; background: var(--green-grad); border-radius: 6px; }
.vip-hero .prog-label { display: flex; justify-content: space-between; font-size: 12px; color: var(--text-dim); }
.vip-hero .prog-label b { color: var(--green); }

.xp-note {
  margin: 4px 12px 8px; padding: 12px 14px;
  border-radius: 12px; background: rgba(158,227,79,.07);
  border: 1px solid rgba(158,227,79,.18);
  font-size: 12.5px; color: var(--text-dim);
  display: flex; gap: 8px; align-items: flex-start;
}
.xp-note b { color: var(--green); }

.vip-ladder { padding: 6px 12px 4px; }
.vip-level {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 14px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  margin-bottom: 10px;
}
.vip-level.current {
  border-color: rgba(158,227,79,.5);
  background: rgba(158,227,79,.06);
}
.vip-level.locked { opacity: .62; }
.vip-level .badge-lv {
  width: 42px; height: 42px; border-radius: 12px;
  display: grid; place-items: center; font-weight: 800; font-size: 14px;
  background: linear-gradient(135deg, #3a3f4c, #23262e);
  color: var(--text); flex: 0 0 auto;
  position: relative;
}
.vip-level.current .badge-lv,
.vip-level.reached .badge-lv {
  background: linear-gradient(135deg, #d9a94a, #8a5f1e); color: #241a06;
}
.vip-level .info { flex: 1; min-width: 0; }
.vip-level .info .nm { font-weight: 700; font-size: 15px; }
.vip-level .info .rw { color: var(--text-dim); font-size: 12px; margin-top: 2px; }
.vip-level .xp {
  text-align: right; flex: 0 0 auto;
}
.vip-level .xp .v { font-weight: 700; font-size: 13px; color: var(--green); }
.vip-level .xp .c { font-size: 10.5px; color: var(--text-mute); }
.vip-level .lock-ic { font-size: 14px; color: var(--text-mute); }

/* ============================================================
   PÁGINA DE BÔNUS
   ============================================================ */
.bonus-tabs { display: flex; gap: 10px; padding: 6px 12px 4px; }
.bonus-tabs .bt {
  flex: 1; text-align: center; padding: 10px; border-radius: 12px;
  background: var(--surface); border: 1px solid var(--border);
  font-weight: 600; font-size: 13.5px; color: var(--text-dim);
}
.bonus-tabs .bt.on { color: var(--green); border-color: rgba(158,227,79,.4); background: rgba(158,227,79,.08); }

.bonus-card {
  margin: 12px; border-radius: var(--radius);
  overflow: hidden; border: 1px solid var(--border);
  background: var(--surface);
}
.bonus-card .bc-top {
  padding: 16px; display: flex; align-items: center; gap: 14px;
  background: radial-gradient(130% 130% at 100% 0%, #1f5b3455, transparent 60%);
}
.bonus-card .bc-emo {
  width: 48px; height: 48px; border-radius: 14px;
  background: var(--surface-2); display: grid; place-items: center;
  font-size: 26px; flex: 0 0 auto;
}
.bonus-card .bc-title { font-weight: 700; font-size: 15px; }
.bonus-card .bc-desc { color: var(--text-dim); font-size: 12.5px; margin-top: 3px; }
.bonus-card .bc-tag {
  margin-left: auto; flex: 0 0 auto;
  background: var(--promo-grad); color: #fff; font-weight: 700;
  font-size: 11px; padding: 5px 10px; border-radius: 12px;
}
.bonus-card .bc-foot {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px; border-top: 1px solid var(--border);
}
.bonus-card .bc-foot .cond { font-size: 11.5px; color: var(--text-mute); }
.bonus-card .bc-foot .claim {
  background: var(--green-grad); color: #14340a; font-weight: 700;
  font-size: 13px; padding: 9px 20px; border-radius: 20px;
  box-shadow: var(--green-glow);
}

.bonus-empty {
  margin: 24px 12px; padding: 40px 20px; text-align: center;
  border-radius: var(--radius); border: 1px dashed var(--border);
  color: var(--text-mute);
}
.bonus-empty .emo { font-size: 40px; display: block; margin-bottom: 10px; opacity: .7; }
