:root {
  /* ===== H888 — paleta premium (preto + dourado + vermelho profundo) ===== */
  --bg: #0c0705;
  --bg-panel: #170d09;
  --green: #d4af37;       /* nome da variável mantido por compatibilidade — agora é o dourado, cor de destaque principal */
  --green-light: #f2d375;
  --gold: #d4af37;
  --gold-light: #f2d375;
  --red: #9c1c1c;
  --red-light: #d33636;
  --border: #2b1a12;
  --text: #f3e9dd;
  --text-muted: #a9917e;
  --font-display: "Cinzel", "Georgia", serif;
  --font-body: "Manrope", -apple-system, "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; }
html, body { overflow-x: hidden; max-width: 100%; }
body.nav-open { overflow: hidden; position: fixed; inset: 0; width: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
}
a { color: inherit; text-decoration: none; }
.container { max-width: 1120px; margin: 0 auto; padding: 0 16px; }

.navbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px; border-bottom: 1px solid var(--border); background: var(--bg-panel);
  position: sticky; top: 0; z-index: 50; gap: 12px;
}
.navbar .logo { font-weight: 800; font-size: 18px; white-space: nowrap; display: flex; align-items: center; }
.navbar .logo-accent { color: var(--green); }
.navbar .logo-rest { color: var(--text); }
.navbar .logo-img { height: 32px; max-width: 160px; object-fit: contain; display: block; }
.navbar .logo span { color: var(--green); }
.navbar nav { display: flex; gap: 18px; font-size: 14px; color: var(--text-muted); }
.navbar nav a:hover { color: var(--text); }
.navbar .actions { display: flex; gap: 10px; align-items: center; flex-shrink: 0; }
.nav-toggle {
  display: none; background: transparent; border: 1px solid var(--border); border-radius: 8px;
  color: var(--text); padding: 8px; cursor: pointer;
}
.nav-menu-actions { display: none; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 10px 18px; border-radius: 10px; font-weight: 700; font-size: 13.5px;
  border: none; cursor: pointer; white-space: nowrap; transition: transform .1s, box-shadow .15s, filter .15s;
  letter-spacing: -.005em;
}
.btn-primary { background: linear-gradient(135deg, var(--green-light), var(--green)); color: #052e12; box-shadow: 0 4px 14px rgba(34,197,94,.35); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(34,197,94,.45); }
.btn-outline { background: rgba(255,255,255,.03); border: 1px solid var(--border); color: var(--text); }
.btn-outline:hover { border-color: var(--green); background: rgba(34,197,94,.07); }
.btn-danger { background: linear-gradient(135deg, #7f1d1d, #5c1414); color: #fecaca; box-shadow: 0 2px 8px rgba(127,29,29,.3); }
.btn-danger:hover { filter: brightness(1.12); }
.btn-sm { padding: 8px 15px; font-size: 12.5px; }
.icon-btn {
  display: flex; align-items: center; justify-content: center; width: 38px; height: 38px;
  border-radius: 999px; border: 1px solid var(--border); background: transparent; color: var(--text);
  cursor: pointer;
}
.icon-btn:hover { border-color: var(--green); color: var(--green-light); }
.icon-btn-static { cursor: default; }
.icon-btn-static:hover { border-color: var(--border); color: var(--text); }
.actions-logged { display: flex; align-items: center; gap: 8px; }
.balance-pill {
  padding: 8px 14px; border-radius: 999px; background: rgba(34,197,94,.08); border: 1px solid var(--border);
  font-size: 13px; font-weight: 700; color: var(--green-light); white-space: nowrap;
}

.hero {
  padding: 40px 0 32px; overflow: hidden; position: relative;
  background:
    radial-gradient(600px circle at 10% 0%, rgba(34,197,94,.16), transparent 60%),
    radial-gradient(400px circle at 90% 20%, rgba(56,189,248,.08), transparent 55%),
    var(--bg);
}
.badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 999px;
  background: linear-gradient(135deg, rgba(34,197,94,.18), rgba(34,197,94,.06));
  border: 1px solid rgba(34,197,94,.3); color: var(--green-light); font-size: 12px; font-weight: 700;
  letter-spacing: .04em; text-transform: uppercase; margin-bottom: 18px;
}
.hero h1 { font-size: clamp(28px, 7vw, 42px); line-height: 1.15; margin: 0 0 16px; font-weight: 800; word-break: break-word; }
.hero h1 .accent { color: var(--green); }
.hero p { color: var(--text-muted); font-size: 15px; max-width: 560px; }
.hero-actions { display: flex; gap: 12px; margin: 24px 0; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 10px; flex-wrap: wrap; align-items: stretch; }
.stat-chip {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  padding: 12px 16px; border-radius: 14px; min-width: 100px; flex: 1 1 100px;
  background: linear-gradient(180deg, #14231a, var(--bg-panel)); border: 1px solid var(--border);
  font-size: 12px; font-weight: 700; text-align: center; box-shadow: 0 2px 8px rgba(0,0,0,.25);
}
.stat-chip svg { color: var(--green); width: 18px; height: 18px; }
.bonus-banner {
  display: block; border-radius: 14px; overflow: hidden; border: 1px solid rgba(34,197,94,.35);
  box-shadow: 0 4px 16px rgba(0,0,0,.35); max-width: 300px; position: relative; transition: transform .15s;
}
.bonus-banner:hover { transform: translateY(-2px); }
.bonus-banner img { display: block; width: 100%; height: auto; }
.bonus-banner-static { cursor: default; }
.bonus-banner-static:hover { transform: none; }
.bonus-banner-tag {
  position: absolute; top: 8px; right: 8px; background: rgba(5,20,10,.85); color: var(--green-light);
  font-size: 10px; font-weight: 700; letter-spacing: .04em; padding: 4px 9px; border-radius: 999px;
  border: 1px solid rgba(134,239,172,.4); text-transform: uppercase;
}

.section { padding: 28px 0; overflow: hidden; }
.section-title { font-size: 19px; font-weight: 700; margin-bottom: 16px; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.section-title a { font-size: 13px; color: var(--green-light); white-space: nowrap; }

.chips { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 8px; margin-bottom: 20px; -webkit-overflow-scrolling: touch; }
.chip {
  white-space: nowrap; padding: 8px 16px; border-radius: 999px; background: var(--bg-panel);
  border: 1px solid var(--border); font-size: 13px; color: var(--text-muted); flex-shrink: 0;
}
.chip.active, .chip:hover { color: var(--text); border-color: var(--green); }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 12px; }
.card {
  background: var(--bg-panel); border: 1px solid var(--border); border-radius: 14px; overflow: hidden;
  transition: transform .15s, border-color .15s;
}
.card:hover { transform: translateY(-3px); border-color: var(--green); }
.card .thumb {
  aspect-ratio: 3/4; background: linear-gradient(160deg, #163823, #0a0f0d); display: flex;
  align-items: center; justify-content: center; font-size: 34px;
}
.card .info { padding: 10px 12px; }
.card .info .name { font-size: 13px; font-weight: 600; }
.card .info .provider { font-size: 11px; color: var(--text-muted); }

.panel { background: var(--bg-panel); border: 1px solid var(--border); border-radius: 16px; padding: 20px; max-width: 100%; overflow: hidden; box-shadow: 0 2px 12px rgba(0,0,0,.15); }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 13px; color: var(--text-muted); margin-bottom: 6px; font-weight: 600; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 11px 14px; border-radius: 10px; border: 1px solid var(--border);
  background: #0a120d; color: var(--text); font-size: 14px; transition: border-color .15s, box-shadow .15s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(34,197,94,.12);
}
.form-hint { font-size: 12px; color: var(--text-muted); margin-top: 4px; }
.img-preview { max-width: 160px; max-height: 90px; border-radius: 8px; border: 1px solid var(--border); margin-top: 8px; display: block; object-fit: contain; background: #0a120d; }

/* Formulário estilo auth (com ícone dentro do input, cantos bem arredondados) */
.field-icon { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-muted); margin-bottom: 6px; }
.field-icon svg { opacity: .8; }
.input-pill { position: relative; }
.input-pill svg { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--text-muted); pointer-events: none; }
.input-pill input {
  width: 100%; padding: 14px 16px 14px 44px; border-radius: 999px; border: 1px solid var(--border);
  background: #0a120d; color: var(--text); font-size: 14px;
}
.input-pill input:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(34,197,94,.12); }
.auth-card { max-width: 440px; margin: 0 auto; padding: 32px 28px; border-radius: 22px; }
.auth-card h2 { font-size: 26px; margin: 0 0 6px; }
.auth-card .subtitle { color: var(--text-muted); font-size: 14px; margin-bottom: 26px; }
.auth-divider { display: flex; align-items: center; gap: 12px; margin: 20px 0; color: var(--text-muted); font-size: 12px; }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.auth-switch { text-align: center; margin-top: 18px; font-size: 14px; color: var(--text-muted); }
.auth-switch a { color: var(--green-light); font-weight: 700; }
.btn-block { width: 100%; padding: 14px; border-radius: 999px; font-size: 15px; }

.step-progress { display: flex; gap: 6px; margin-bottom: 10px; }
.step-dash { flex: 1; height: 5px; border-radius: 999px; background: var(--border); transition: background .2s; }
.step-dash.active { background: var(--green); }
.step-label { font-size: 12px; color: var(--text-muted); font-weight: 600; margin-bottom: 22px; }

/* CTA de conversão */
.cta-section {
  border-radius: 22px; padding: 36px 24px; text-align: center;
  background: radial-gradient(500px circle at 50% 0%, rgba(34,197,94,.16), transparent 70%), var(--bg-panel);
  border: 1px solid rgba(34,197,94,.25);
}
.cta-section h3 { font-size: 24px; margin: 0 0 10px; }
.cta-section p { color: var(--text-muted); margin: 0 0 22px; max-width: 460px; margin-left: auto; margin-right: auto; }

.promo-banner {
  display: block; position: relative; border-radius: 18px; overflow: hidden; border: 1px solid var(--border);
  box-shadow: 0 6px 20px rgba(0,0,0,.3);
}
.promo-banner picture, .promo-banner img { display: block; width: 100%; height: auto; }
.promo-banner-overlay {
  position: absolute; left: 0; bottom: 0; right: 0; padding: 20px;
  background: linear-gradient(0deg, rgba(5,15,10,.88), transparent);
}
.promo-banner-title { font-size: 20px; font-weight: 800; color: #fff; }
.promo-banner-subtitle { font-size: 13px; color: rgba(255,255,255,.8); margin-top: 4px; }

.banner-carousel { position: relative; border-radius: 18px; overflow: hidden; box-shadow: 0 6px 24px rgba(0,0,0,.35); }
.banner-track { display: flex; transition: transform .5s ease; }
.banner-slide { flex: 0 0 100%; position: relative; display: block; }
.banner-slide picture, .banner-slide img { display: block; width: 100%; height: auto; aspect-ratio: 3.2/1; object-fit: cover; }
.banner-overlay { position: absolute; left: 0; bottom: 0; right: 0; padding: 18px 20px; background: linear-gradient(0deg, rgba(5,15,10,.85), transparent); }
.banner-overlay-title { font-size: 18px; font-weight: 800; color: #fff; }
.banner-dots { position: absolute; bottom: 10px; right: 14px; display: flex; gap: 6px; }
.banner-dot { width: 7px; height: 7px; border-radius: 999px; background: rgba(255,255,255,.4); border: none; padding: 0; cursor: pointer; }
.banner-dot.active { background: var(--green); width: 18px; }
@media (max-width: 640px) { .banner-slide picture, .banner-slide img { aspect-ratio: 4/3; } }

.game-frame-shell {
  position: relative; width: 100%; border-radius: 18px; overflow: hidden;
  background: #000; box-shadow: 0 10px 40px rgba(0,0,0,.5); border: 1px solid var(--border);
  height: 72vh; min-height: 460px;
}
.game-frame-shell iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.game-loading {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); font-size: 14px; background: #050a07;
}
@media (min-width: 900px) { .game-frame-shell { height: 78vh; max-height: 780px; } }

/* Toolbar de busca/filtro em /jogos */
.jogos-toolbar { display: flex; justify-content: flex-end; margin-bottom: 6px; }
.filter-toggle {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px;
  background: var(--bg-panel); border: 1px solid var(--border); color: var(--text); font-weight: 600;
  font-size: 13px; cursor: pointer; transition: border-color .15s;
}
.filter-toggle:hover { border-color: var(--green); }
.filter-panel {
  max-height: 0; overflow: hidden; opacity: 0; transition: max-height .3s ease, opacity .25s ease, margin .3s ease;
}
.filter-panel.open { max-height: 400px; opacity: 1; margin-top: 14px; }
.grid-loading { opacity: .5; transition: opacity .15s; pointer-events: none; }

/* Vitrine rolável (não empilha, arrasta horizontal) */
.vitrine-scroll {
  display: flex; gap: 12px; overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.vitrine-scroll .card { flex: 0 0 140px; scroll-snap-align: start; }
.vitrine-scroll .card .thumb { aspect-ratio: 3/4; }

table { width: 100%; border-collapse: collapse; font-size: 13px; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
th, td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--border); white-space: nowrap; }
th { color: var(--text-muted); font-weight: 700; font-size: 11px; text-transform: uppercase; letter-spacing: .04em; background: rgba(255,255,255,.02); }
tbody tr:hover { background: rgba(255,255,255,.02); }

.badge-status { padding: 3px 10px; border-radius: 999px; font-size: 11px; font-weight: 600; }
.badge-pending, .badge-approved { background: rgba(234,179,8,.15); color: #facc15; }
.badge-completed, .badge-paid { background: rgba(34,197,94,.15); color: var(--green-light); }
.badge-rejected, .badge-failed { background: rgba(239,68,68,.15); color: #fca5a5; }

.footer { border-top: 1px solid var(--border); padding: 24px 16px; color: var(--text-muted); font-size: 13px; margin-top: 40px; text-align: center; }

/* ===================== VIP — página /vip (classes já usadas no HTML, sem estilo até agora) ===================== */
.vip-hero { display: flex; align-items: center; gap: 16px; background: linear-gradient(135deg, rgba(212,175,55,.1), var(--bg-panel)); border-color: rgba(212,175,55,.3); flex-wrap: wrap; }
.vip-hero-badge {
  width: 64px; height: 64px; flex-shrink: 0; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--gold-light), var(--gold)); box-shadow: 0 4px 16px rgba(212,175,55,.4);
}
.vip-hero-level { font-size: 26px; font-weight: 900; color: #3a2b06; line-height: 1; }
.vip-hero-name { font-size: 17px; font-weight: 800; margin-bottom: 10px; word-break: break-word; }
.progress-track { height: 8px; border-radius: 999px; background: rgba(255,255,255,.08); overflow: hidden; margin-bottom: 6px; }
.progress-fill { height: 100%; background: linear-gradient(90deg, var(--gold), var(--gold-light)); border-radius: 999px; transition: width .4s ease; }

.vip-level-card { margin-bottom: 14px; }
.vip-level-current { border-color: var(--gold); box-shadow: 0 0 0 1px rgba(212,175,55,.4); }
.vip-level-locked { opacity: .55; }
.vip-level-header { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.vip-level-tag { font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: rgba(212,175,55,.15); color: var(--gold-light); flex-shrink: 0; }
.vip-bonus-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px,1fr)); gap: 12px; }
.vip-bonus-item { background: #0a120d; border: 1px solid var(--border); border-radius: 12px; padding: 12px; text-align: center; }
.vip-bonus-value { font-size: 16px; font-weight: 800; color: var(--gold-light); margin: 4px 0 8px; }

/* ===================== VIP — card premium no topo da Minha Conta ===================== */
.vip-card-pro {
  background: linear-gradient(160deg, #14201a 0%, var(--bg-panel) 55%, #0d1712 100%);
  border: 1px solid rgba(212,175,55,.28);
  border-radius: 18px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 6px 24px rgba(0,0,0,.3), inset 0 1px 0 rgba(255,255,255,.03);
  position: relative;
  overflow: hidden;
  max-width: 100%;
}
.vip-card-pro-top { display: flex; align-items: center; gap: 12px; margin-bottom: 4px; }
.vip-card-pro-icon {
  width: 46px; height: 46px; flex-shrink: 0; border-radius: 13px; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--gold-light), var(--gold)); color: #3a2b06;
  box-shadow: 0 4px 14px rgba(212,175,55,.35);
}
.vip-card-pro-info { flex: 1; min-width: 0; }
.vip-card-pro-label { font-size: 10.5px; font-weight: 700; letter-spacing: .08em; color: var(--text-muted); text-transform: uppercase; }
.vip-card-pro-level { font-size: 22px; font-weight: 900; color: var(--text); line-height: 1.25; }
.vip-card-pro-req { font-size: 12.5px; color: var(--text-muted); margin: 8px 0 14px; }

.vip-status-badge {
  display: inline-flex; align-items: center; gap: 5px; padding: 6px 11px; border-radius: 999px;
  font-size: 10.5px; font-weight: 800; letter-spacing: .03em; white-space: nowrap; flex-shrink: 0;
}
.vip-status-badge.vip-active { background: rgba(34,197,94,.14); color: var(--green-light); border: 1px solid rgba(34,197,94,.35); }
.vip-status-badge.vip-locked { background: rgba(212,175,55,.1); color: var(--gold-light); border: 1px solid rgba(212,175,55,.3); }

.vip-progress-block { margin-bottom: 18px; }
.vip-progress-label { font-size: 10.5px; font-weight: 700; letter-spacing: .06em; color: var(--gold-light); margin-bottom: 8px; text-transform: uppercase; }
.vip-progress-values { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--text-muted); margin-top: 6px; }
.vip-progress-values span:nth-child(2) { color: var(--gold-light); font-weight: 700; }

.vip-benefits-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 18px; }
.vip-benefit {
  background: rgba(0,0,0,.22); border: 1px solid rgba(212,175,55,.16); border-radius: 12px;
  padding: 12px 8px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 6px;
  min-width: 0;
}
.vip-benefit svg { color: var(--gold-light); flex-shrink: 0; }
.vip-benefit span { font-size: 10px; color: var(--text-muted); text-transform: uppercase; letter-spacing: .03em; line-height: 1.2; }
.vip-benefit strong { font-size: 14px; color: var(--text); font-weight: 800; }

.vip-sequence { display: flex; align-items: center; gap: 6px; overflow-x: auto; padding-bottom: 4px; margin-bottom: 16px; -webkit-overflow-scrolling: touch; }
.vip-seq-pill { flex-shrink: 0; font-size: 11px; font-weight: 700; padding: 6px 11px; border-radius: 999px; white-space: nowrap; border: 1px solid var(--border); color: var(--text-muted); }
.vip-seq-pill.vip-seq-done { background: rgba(34,197,94,.1); border-color: rgba(34,197,94,.3); color: var(--green-light); }
.vip-seq-pill.vip-seq-current { background: linear-gradient(135deg, var(--gold-light), var(--gold)); border-color: transparent; color: #3a2b06; }
.vip-seq-arrow { color: var(--text-muted); font-size: 12px; flex-shrink: 0; }

.vip-card-pro-link {
  display: block; text-align: center; font-size: 13px; font-weight: 700; color: var(--gold-light);
  padding: 11px; border-radius: 10px; border: 1px solid rgba(212,175,55,.3); background: rgba(212,175,55,.06);
  text-decoration: none;
}
.vip-card-pro-link:hover { background: rgba(212,175,55,.12); }

@media (max-width: 400px) {
  .vip-benefits-grid { grid-template-columns: 1fr 1fr; }
  .vip-card-pro-level { font-size: 19px; }
}

/* Banner de cookies (LGPD) — aparece só na primeira visita, discreto, botões com peso igual */
.cookie-banner {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 200; max-width: 560px; margin: 0 auto;
  background: var(--bg-panel); border: 1px solid var(--border); border-radius: 14px; padding: 16px 18px;
  box-shadow: 0 10px 40px rgba(0,0,0,.5);
  display: flex; flex-direction: column; gap: 12px;
}
.cookie-banner-text { font-size: 12.5px; color: var(--text-muted); line-height: 1.5; }
.cookie-banner-text strong { color: var(--text); }
.cookie-banner-actions { display: flex; gap: 10px; }
.cookie-banner-actions .btn { flex: 1; }
@media (min-width: 560px) {
  .cookie-banner { left: auto; right: 20px; bottom: 20px; width: 380px; }
}

/* ===================== Suporte / Chat ===================== */
.support-home-btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 11px 20px; border-radius: 999px;
  background: linear-gradient(135deg, #163823, var(--bg-panel)); border: 1px solid rgba(212,175,55,.35);
  color: var(--gold-light); font-weight: 700; font-size: 13px; text-decoration: none;
}
.support-home-btn:hover { border-color: var(--gold); }
.support-home-btn svg { flex-shrink: 0; }

.support-nav-link { display: flex; align-items: center; gap: 10px; padding: 10px !important; }
.support-nav-link svg { flex-shrink: 0; color: var(--gold-light); }
.support-nav-link .support-nav-sub { display: block; font-size: 11px; color: var(--text-muted); font-weight: 400; margin-top: 1px; }

.chat-shell {
  display: flex; flex-direction: column; height: 70vh; min-height: 420px; max-height: 720px;
  background: var(--bg-panel); border: 1px solid var(--border); border-radius: 18px; overflow: hidden;
}
.chat-messages { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; -webkit-overflow-scrolling: touch; }
.chat-bubble { max-width: 78%; padding: 10px 14px; border-radius: 14px; font-size: 13.5px; line-height: 1.45; word-break: break-word; }
.chat-bubble.mine { align-self: flex-end; background: linear-gradient(135deg, var(--green-light), var(--green)); color: #052e12; border-bottom-right-radius: 4px; }
.chat-bubble.theirs { align-self: flex-start; background: #182620; border: 1px solid var(--border); border-bottom-left-radius: 4px; }
.chat-bubble.system { align-self: center; background: rgba(212,175,55,.08); border: 1px solid rgba(212,175,55,.25); color: var(--gold-light); font-size: 12px; text-align: center; max-width: 90%; }
.chat-bubble img { max-width: 100%; border-radius: 10px; display: block; margin-top: 4px; }
.chat-bubble-time { font-size: 10px; opacity: .65; margin-top: 4px; display: block; }

.chat-input-row { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--border); background: #0a120d; }
.chat-input-row input[type=text] { flex: 1; padding: 11px 14px; border-radius: 999px; border: 1px solid var(--border); background: var(--bg-panel); color: var(--text); font-size: 14px; }
.chat-input-row input[type=text]:focus { outline: none; border-color: var(--green); }
.chat-attach-btn, .chat-send-btn {
  width: 42px; height: 42px; flex-shrink: 0; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--border); background: var(--bg-panel); color: var(--text); cursor: pointer;
}
.chat-send-btn { background: linear-gradient(135deg, var(--green-light), var(--green)); color: #052e12; border: none; }

.agent-id-card {
  display: flex; align-items: center; gap: 12px; background: linear-gradient(135deg, rgba(212,175,55,.1), var(--bg-panel));
  border: 1px solid rgba(212,175,55,.3); border-radius: 14px; padding: 12px 14px; margin: 12px 16px 0;
}
.agent-id-avatar {
  width: 42px; height: 42px; border-radius: 50%; flex-shrink: 0; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--gold-light), var(--gold)); color: #3a2b06; font-weight: 900; font-size: 16px;
}
.agent-id-info { flex: 1; min-width: 0; }
.agent-id-name { font-size: 14px; font-weight: 800; }
.agent-id-meta { font-size: 11px; color: var(--text-muted); }
.agent-id-meta strong { color: var(--gold-light); }

.support-queue-msg { text-align: center; padding: 30px 20px; color: var(--text-muted); }
.support-queue-msg svg { color: var(--gold-light); margin-bottom: 10px; }

.conv-row { display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 12px; border: 1px solid var(--border); margin-bottom: 8px; background: #0a120d; }
.conv-row-info { flex: 1; min-width: 0; }
.conv-row-name { font-weight: 700; font-size: 13.5px; }
.conv-row-meta { font-size: 11.5px; color: var(--text-muted); }
.conv-unread-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); flex-shrink: 0; }
.trust-badges { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-bottom: 14px; }
.trust-badge {
  font-size: 12px; font-weight: 700; padding: 7px 14px; border-radius: 999px;
  background: linear-gradient(135deg, rgba(212,175,55,.12), rgba(212,175,55,.03));
  border: 1px solid rgba(212,175,55,.3); color: var(--gold-light);
}

.admin-shell { display: flex; min-height: 100vh; flex-wrap: wrap; background: var(--bg); }
.admin-sidebar {
  width: 232px; background: linear-gradient(180deg, #10190f, var(--bg-panel)); border-right: 1px solid var(--border);
  padding: 22px 14px; position: sticky; top: 0; height: 100vh; overflow-y: auto;
}
.admin-sidebar a {
  display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-radius: 11px; font-size: 14px;
  font-weight: 600; color: var(--text-muted); margin-bottom: 3px; transition: background .15s, color .15s;
}
.admin-sidebar a:hover { background: rgba(255,255,255,.04); color: var(--text); }
.admin-sidebar a.active { background: linear-gradient(135deg, rgba(34,197,94,.16), rgba(34,197,94,.05)); color: var(--green-light); box-shadow: inset 0 0 0 1px rgba(34,197,94,.25); }
.admin-content { flex: 1; padding: 26px 28px; min-width: 0; max-width: 100%; overflow-x: hidden; }
.admin-content h2 { font-size: 22px; margin-bottom: 20px; letter-spacing: -.01em; }
.admin-content h3 { font-size: 16px; }
.stat-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px,1fr)); gap: 14px; margin-bottom: 26px; }
.stat-card {
  background: linear-gradient(160deg, #131f16, var(--bg-panel)); border: 1px solid var(--border); border-radius: 16px;
  padding: 18px; box-shadow: 0 4px 16px rgba(0,0,0,.2);
}
.stat-card .label { font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: .04em; font-weight: 700; }
.stat-card .value { font-size: 23px; font-weight: 800; margin-top: 8px; }

.tabs-row { display: flex; gap: 8px; margin-bottom: 18px; }
.tab-btn {
  flex: 1; padding: 12px; border-radius: 999px; border: 1px solid var(--border); background: var(--bg-panel);
  color: var(--text-muted); font-weight: 700; font-size: 13px; cursor: pointer;
}
.tab-btn.active { border-color: var(--green); color: var(--green-light); background: rgba(34,197,94,.08); }
.quick-amounts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 16px; }
.quick-amount {
  padding: 10px; border-radius: 10px; border: 1px solid var(--border); background: #0a120d;
  color: var(--text); font-size: 13px; font-weight: 600; cursor: pointer;
}
.quick-amount:hover { border-color: var(--green); }

/* Raspadinha */
.scratch-card-wrap { max-width: 420px; margin: 0 auto; }
.scratch-header { text-align: center; border-radius: 20px; padding: 24px 20px; margin-bottom: 16px; position: relative; overflow: hidden; }
.scratch-header::before { content: ""; position: absolute; inset: 0; opacity: .18; background: var(--scratch-color, var(--green)); filter: blur(40px); }
.scratch-header * { position: relative; }
.scratch-header .name { font-size: 20px; font-weight: 800; margin-bottom: 6px; }
.scratch-header .desc { color: var(--text-muted); font-size: 13px; margin-bottom: 14px; }
.scratch-header .badges { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.scratch-header .badges span {
  font-size: 12px; font-weight: 700; padding: 6px 14px; border-radius: 999px;
  background: rgba(255,255,255,.06); border: 1px solid var(--border);
}
.scratch-panel {
  position: relative; width: 100%; aspect-ratio: 16/10; border-radius: 20px; overflow: hidden;
  background: linear-gradient(160deg, #163823, #0a0f0d); border: 1px solid var(--border);
  box-shadow: 0 8px 30px rgba(0,0,0,.35);
}
.scratch-panel-result {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 10px; padding: 20px; text-align: center;
}
.scratch-panel-placeholder { display: flex; flex-direction: column; align-items: center; gap: 10px; color: var(--text-muted); font-size: 14px; }
.scratch-result-icon { width: 56px; height: 56px; animation: symbol-pop .3s ease; }
.scratch-result-icon svg { width: 100%; height: 100%; }
.scratch-result-icon.win { color: var(--gold-light); filter: drop-shadow(0 0 10px rgba(212,175,55,.5)); }
.scratch-result-icon.lose { color: var(--text-muted); opacity: .6; }
.scratch-result-text { font-size: 20px; font-weight: 800; line-height: 1.3; }
.scratch-result-text.win { color: var(--gold-light); }
.scratch-result-text.lose { color: var(--text-muted); font-size: 16px; }
@keyframes symbol-pop { from { transform: scale(.6); opacity: 0; } to { transform: scale(1); opacity: 1; } }
#scratch-canvas { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; display: none; }
.scratch-login-gate { text-align: center; padding: 32px 24px; }
.scratch-login-gate .icon { font-size: 40px; margin-bottom: 10px; }

/* ---------- Mobile ---------- */
@media (max-width: 860px) {
  .admin-sidebar { position: fixed; left: -220px; top: 0; z-index: 60; transition: left .2s; box-shadow: 4px 0 20px rgba(0,0,0,.4); }
  .admin-sidebar.open { left: 0; }
  .admin-content { padding: 16px; padding-top: 60px; }
  #admin-toggle { display: flex !important; }
}
#admin-toggle { display: none; }
/* Cards compactos somente na página Ver jogos em telas Android/mobile */
@media (max-width: 640px) {
  #games-grid.games-grid-page {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }
  #games-grid.games-grid-page .card {
    border-radius: 11px;
  }
  #games-grid.games-grid-page .card .thumb {
    aspect-ratio: 3/4;
  }
  #games-grid.games-grid-page .card .info {
    padding: 7px 8px;
  }
  #games-grid.games-grid-page .card .info .name {
    font-size: 11px;
    line-height: 1.25;
  }
  #games-grid.games-grid-page .card .info .provider {
    font-size: 9px;
    margin-top: 2px;
  }
}

@media (max-width: 768px) {
  .navbar .actions { display: none; }
  .nav-toggle { display: flex; align-items: center; justify-content: center; }
  .balance-pill { font-size: 12px; padding: 7px 10px; }
  .actions-logged { gap: 6px; }
  #nav-menu {
    display: none; position: fixed; top: 61px; left: 0; right: 0; bottom: 0; background: var(--bg-panel);
    flex-direction: column; padding: 20px; gap: 2px; overflow-y: auto; z-index: 49;
  }
  #nav-menu.open { display: flex; }
  #nav-menu a { padding: 14px 10px; font-size: 16px; border-bottom: 1px solid var(--border); }
  .nav-menu-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
  .hero { padding: 28px 0 24px; }
  .hero-actions .btn, .hero-stats .stat-chip { flex: 1 1 auto; }
}



/* =========================================================
   H888 — camada visual premium
   Somente apresentação: não altera rotas, banco ou integrações.
   ========================================================= */
:root {
  --theme-accent-2: #7c3cff;
}
body {
  background:
    radial-gradient(900px 500px at 50% -160px, color-mix(in srgb, var(--theme-accent-2) 24%, transparent), transparent 70%),
    var(--bg);
}
.navbar {
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--bg-panel) 96%, white 4%), var(--bg-panel));
  border-bottom-color: color-mix(in srgb, var(--green) 22%, var(--border));
  box-shadow: 0 5px 24px rgba(0,0,0,.24);
}
.navbar .logo {
  font-size: 21px;
  letter-spacing: .02em;
  text-shadow: 0 0 18px color-mix(in srgb, var(--green) 38%, transparent);
}
.navbar .logo span { color: var(--green); }
.btn-primary {
  background: linear-gradient(135deg, var(--green-light), var(--green));
  box-shadow: 0 5px 18px color-mix(in srgb, var(--green) 28%, transparent);
}
.hero {
  padding: 30px 0 20px;
  background:
    radial-gradient(600px circle at 5% 0%, color-mix(in srgb, var(--theme-accent-2) 28%, transparent), transparent 62%),
    radial-gradient(500px circle at 95% 5%, color-mix(in srgb, var(--green) 18%, transparent), transparent 60%),
    var(--bg);
}
.hero h1 { text-shadow: 0 4px 26px rgba(0,0,0,.35); }
.banner-carousel {
  border: 1px solid color-mix(in srgb, var(--green) 35%, var(--border));
  box-shadow: 0 12px 38px rgba(0,0,0,.42), 0 0 28px color-mix(in srgb, var(--theme-accent-2) 13%, transparent);
}
.banner-slide img {
  filter: saturate(1.08) contrast(1.03);
}
.chip {
  background: linear-gradient(180deg, color-mix(in srgb, var(--bg-panel) 92%, white 8%), var(--bg-panel));
  border-color: color-mix(in srgb, var(--theme-accent-2) 25%, var(--border));
  box-shadow: 0 4px 14px rgba(0,0,0,.2);
}
.chip.active, .chip:hover {
  border-color: var(--green);
  box-shadow: 0 0 16px color-mix(in srgb, var(--green) 18%, transparent);
}
.card {
  background: linear-gradient(160deg, color-mix(in srgb, var(--bg-panel) 92%, white 8%), var(--bg-panel));
  border-color: color-mix(in srgb, var(--theme-accent-2) 20%, var(--border));
  box-shadow: 0 7px 22px rgba(0,0,0,.22);
}
.card:hover {
  border-color: var(--green);
  box-shadow: 0 9px 28px color-mix(in srgb, var(--green) 13%, transparent);
}
.card .thumb {
  background:
    radial-gradient(circle at 50% 35%, color-mix(in srgb, var(--theme-accent-2) 30%, transparent), transparent 62%),
    linear-gradient(160deg, color-mix(in srgb, var(--bg-panel) 82%, var(--theme-accent-2) 18%), var(--bg));
}
.panel, .stat-card {
  box-shadow: 0 8px 28px rgba(0,0,0,.24);
}
.mobile-bottom-nav { display:none; }

.theme-color-grid {
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:12px;
  margin-bottom:16px;
}
.theme-color-field {
  display:flex;
  flex-direction:column;
  gap:7px;
  font-size:12px;
  font-weight:700;
  color:var(--text-muted);
}
.theme-color-field input[type="color"] {
  width:100%;
  height:48px;
  padding:4px;
  border-radius:12px;
  border:1px solid var(--border);
  background:var(--bg-panel);
  cursor:pointer;
}
@media (max-width: 640px) {
  body {
    padding-bottom: 72px;
  }
  .navbar {
    min-height: 62px;
    padding: 10px 12px;
  }
  .navbar .logo {
    font-size: 20px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    max-width: 48vw;
    overflow:hidden;
    text-overflow:ellipsis;
  }
  .navbar .logo-img {
    height: 34px;
    max-width: 145px;
  }
  .nav-toggle {
    order:-1;
    border:0;
    background:rgba(255,255,255,.045);
    box-shadow:0 4px 14px rgba(0,0,0,.2);
  }
  .actions-logged { margin-left:auto; }
  .actions-logged .icon-btn:first-child { display:none; }
  .actions-logged .icon-btn:last-child { display:none; }
  .balance-pill { display:block; }
  .hero {
    padding: 16px 0 10px;
  }
  .hero .container { padding: 0 10px; }
  .hero .badge,
  .hero h1,
  .hero p,
  .hero-actions,
  .hero-stats { display:none; }
  .section { padding: 14px 0; }
  .container { padding-left:10px; padding-right:10px; }
  .banner-carousel {
    margin: 0;
    border-radius: 14px;
  }
  .banner-slide picture, .banner-slide img {
    aspect-ratio: 2.05 / 1;
    min-height: 150px;
    object-fit: cover;
  }
  .banner-dots { bottom:7px; right:10px; }
  .chips {
    gap:8px;
    margin: 6px 0 4px;
    padding-bottom:5px;
  }
  .chip {
    padding:9px 13px;
    font-size:12px;
  }
  .section-title {
    font-size:17px;
    margin-bottom:11px;
  }
  .grid {
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:8px;
  }
  .card {
    border-radius:12px;
  }
  .card .thumb {
    aspect-ratio: 1 / 1.12;
  }
  .card .info {
    padding:7px 8px;
  }
  .card .info .name {
    font-size:11px;
    line-height:1.25;
    display:-webkit-box;
    -webkit-line-clamp:2;
    -webkit-box-orient:vertical;
    overflow:hidden;
  }
  .card .info .provider {
    font-size:9px;
    margin-top:2px;
  }
  .vitrine-scroll {
    display:flex;
    overflow-x:auto;
    gap:10px;
    padding:2px 2px 9px;
    scrollbar-width:none;
  }
  .vitrine-scroll::-webkit-scrollbar { display:none; }
  .vitrine-scroll .card {
    flex:0 0 116px;
  }
  .vitrine-scroll .card .thumb { aspect-ratio:1/1; }
  .theme-color-grid { grid-template-columns:1fr 1fr; }
  .mobile-bottom-nav {
    position:fixed;
    left:0;
    right:0;
    bottom:0;
    height:68px;
    z-index:180;
    display:grid;
    grid-template-columns:repeat(5,1fr);
    background:linear-gradient(180deg,
      color-mix(in srgb, var(--bg-panel) 94%, white 6%),
      color-mix(in srgb, var(--bg) 96%, var(--theme-accent-2) 4%));
    border-top:1px solid color-mix(in srgb, var(--green) 26%, var(--border));
    box-shadow:0 -8px 28px rgba(0,0,0,.42);
    padding-bottom:env(safe-area-inset-bottom);
  }
  .mobile-bottom-item {
    min-width:0;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:2px;
    color:var(--text-muted);
    font-size:10px;
    font-weight:700;
    transition:transform .15s,color .15s;
  }
  .mobile-bottom-item.active,
  .mobile-bottom-item:hover {
    color:var(--green);
  }
  .mobile-bottom-item.active .mobile-nav-icon {
    filter:drop-shadow(0 0 8px color-mix(in srgb, var(--green) 55%, transparent));
  }
  .mobile-nav-icon {
    width:30px;
    height:30px;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:20px;
    line-height:1;
  }
}

.home-quick-actions {
  display:grid;
  grid-template-columns:repeat(5,minmax(0,1fr));
  gap:10px;
  margin: 2px 0 12px;
}
.home-quick-card {
  min-height:74px;
  border-radius:15px;
  padding:10px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:5px;
  font-size:12px;
  font-weight:800;
  border:1px solid color-mix(in srgb, var(--theme-accent-2) 25%, var(--border));
  background:linear-gradient(145deg, color-mix(in srgb, var(--theme-accent-2) 20%, var(--bg-panel)), var(--bg-panel));
  box-shadow:0 7px 20px rgba(0,0,0,.23);
  transition:transform .15s, box-shadow .15s, border-color .15s;
}
.home-quick-card:hover {
  transform:translateY(-2px);
  border-color:var(--green);
  box-shadow:0 10px 25px color-mix(in srgb, var(--green) 14%, transparent);
}
.home-quick-card .quick-icon {
  width:38px;height:38px;border-radius:12px;
  display:flex;align-items:center;justify-content:center;
  font-size:21px;
  background:rgba(255,255,255,.07);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.08);
}
@media (max-width:640px) {
  .home-quick-actions {
    display:flex;
    overflow-x:auto;
    gap:8px;
    padding:3px 1px 8px;
    scrollbar-width:none;
    margin-bottom:4px;
  }
  .home-quick-actions::-webkit-scrollbar { display:none; }
  .home-quick-card {
    flex:0 0 92px;
    min-height:78px;
    border-radius:14px;
    font-size:11px;
  }
  .home-quick-card .quick-icon { width:36px;height:36px;font-size:20px; }
}

/* H888 premium polish — apenas apresentação/UX */
.navbar-premium{min-height:68px;padding:11px 18px;gap:16px;backdrop-filter:blur(14px)}
.logo-premium{flex:0 1 auto;min-width:150px;padding-right:14px;border-right:1px solid color-mix(in srgb,var(--border) 80%,transparent)}
.logo-premium .logo-img{height:38px;max-width:175px}
.actions-logged-premium{margin-left:auto;gap:10px;padding-left:6px}
.actions-logged-premium .balance-pill{min-width:96px;text-align:center;padding:9px 13px;background:linear-gradient(145deg,color-mix(in srgb,var(--green) 13%,var(--bg-panel)),var(--bg-panel));border-color:color-mix(in srgb,var(--green) 28%,var(--border));box-shadow:inset 0 1px 0 rgba(255,255,255,.06),0 5px 15px rgba(0,0,0,.16)}
.nav-logout-form{margin:0}.nav-logout-btn{width:100%;display:flex;align-items:center;gap:12px;padding:14px 10px;background:transparent;border:0;border-bottom:1px solid var(--border);color:var(--text);font:inherit;text-align:left;cursor:pointer}.nav-logout-btn:hover{color:#ff9b9b;background:rgba(239,68,68,.06)}
.global-footer-badge{display:flex;justify-content:center;align-items:center;padding:8px 16px 0}.global-footer-badge img{width:58px;height:58px;object-fit:contain;filter:drop-shadow(0 0 14px color-mix(in srgb,var(--green) 24%,transparent))}
.mobile-nav-icon svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
@media(max-width:768px){.navbar-premium{min-height:64px;padding:9px 10px;gap:8px}.logo-premium{position:absolute;left:50%;transform:translateX(-50%);min-width:0;width:auto;max-width:44vw;padding:0;border-right:0}.logo-premium .logo-img{height:34px;max-width:135px}.actions-logged-premium{gap:8px;padding-left:0}.actions-logged-premium .balance-pill{min-width:88px;padding:8px 10px}.nav-toggle{width:40px;height:40px}.actions-logged-premium .icon-btn{width:38px;height:38px}}
@media(max-width:420px){.logo-premium{max-width:38vw}.logo-premium .logo-img{max-width:118px}.actions-logged-premium .balance-pill{min-width:78px;font-size:11px}.actions-logged-premium{gap:5px}}

.admin-content .panel h3,.admin-content .panel h4{letter-spacing:-.01em}.admin-content input[type=file]{padding:10px;border:1px dashed color-mix(in srgb,var(--green) 25%,var(--border));border-radius:12px;background:rgba(255,255,255,.02)}

/* H888: preserva o layout original do cabeçalho; logout continua ao lado do saldo */
.actions-logged > form[method="POST"][action="/auth/logout"] { display:inline-flex !important; margin:0; }
.actions-logged > form[method="POST"][action="/auth/logout"] .icon-btn { display:flex; }


/* H888 — refinamento premium solicitado: navegação, carteira e ícones */
.nav-item-icon{display:flex;align-items:center;gap:10px}
.nav-item-icon svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}
.nav-item-icon svg path:first-child:not(:last-child){fill:currentColor;fill-opacity:.04}
.badge>svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.title-with-icon{display:inline-flex;align-items:center;gap:9px}
.title-with-icon svg{width:20px;height:20px;fill:none;stroke:var(--green-light);stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.empty-game-icon{width:34px;height:34px;fill:none;stroke:var(--text-muted);stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round;opacity:.72}
.home-quick-card .quick-icon{position:relative;overflow:hidden}
.home-quick-card .quick-icon svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.home-quick-card:hover .quick-icon{background:color-mix(in srgb,var(--green) 10%,rgba(255,255,255,.07));box-shadow:0 0 18px color-mix(in srgb,var(--green) 14%,transparent),inset 0 1px 0 rgba(255,255,255,.1)}
.mobile-nav-icon svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.mobile-bottom-item{position:relative}
.mobile-bottom-item::before{content:"";position:absolute;top:0;left:28%;right:28%;height:2px;border-radius:99px;background:transparent;transition:.18s}
.mobile-bottom-item.active::before{background:var(--green);box-shadow:0 0 12px color-mix(in srgb,var(--green) 55%,transparent)}
.mobile-wallet-item .mobile-nav-icon{width:38px;height:38px;border-radius:12px;background:linear-gradient(145deg,color-mix(in srgb,var(--green) 13%,var(--bg-panel)),var(--bg-panel));border:1px solid color-mix(in srgb,var(--green) 20%,var(--border));box-shadow:inset 0 1px 0 rgba(255,255,255,.08),0 4px 12px rgba(0,0,0,.18)}
.mobile-wallet-item .mobile-nav-icon svg{width:21px;height:21px}
/* Item central elevado (estilo "FAB"), reservado pro item de destaque (Convidar/roleta/o que o admin priorizar) */
.mobile-bottom-item.mobile-fab-item{position:relative}
.mobile-bottom-item.mobile-fab-item .mobile-nav-icon{
  position:absolute;top:-26px;left:50%;transform:translateX(-50%);
  width:56px;height:56px;border-radius:50%;
  background:radial-gradient(circle at 35% 30%,color-mix(in srgb,var(--gold) 55%,var(--bg-panel)),var(--bg-panel) 75%);
  border:3px solid var(--gold);
  box-shadow:0 8px 20px rgba(0,0,0,.5),0 0 0 5px var(--bg);
  transition:transform .18s;
}
.mobile-bottom-item.mobile-fab-item .mobile-nav-icon svg{width:26px;height:26px;color:var(--gold)}
.mobile-bottom-item.mobile-fab-item span:last-child{margin-top:24px;font-weight:800}
.mobile-bottom-item.mobile-fab-item:active .mobile-nav-icon{transform:translateX(-50%) scale(.94)}
.chest-hero-icon svg{width:42px;height:42px;fill:none;stroke:var(--gold-light);stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round;filter:drop-shadow(0 0 10px rgba(212,175,55,.25))}
.chest-icon svg{width:32px;height:32px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
.inline-badge-icon{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;vertical-align:-3px;margin-right:5px}
.scratch-login-gate .icon svg{width:40px;height:40px;fill:none;stroke:var(--green-light);stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}

@media(max-width:768px){
  .navbar{position:sticky;min-height:68px;padding:10px 12px;gap:8px}
  .navbar .logo{left:50%;max-width:34vw;z-index:1}
  .navbar .logo-img{height:32px;max-width:125px}
  .nav-toggle{position:relative;z-index:3;width:42px;height:42px;border-radius:12px;border:1px solid color-mix(in srgb,var(--green) 16%,var(--border));background:linear-gradient(145deg,rgba(255,255,255,.07),rgba(255,255,255,.025))}
  .actions-logged{position:relative;z-index:3;margin-left:auto;gap:7px}
  .actions-logged .balance-pill{min-width:auto;padding:8px 10px;font-size:11px;line-height:1;border-radius:12px;background:linear-gradient(145deg,color-mix(in srgb,var(--green) 15%,var(--bg-panel)),var(--bg-panel));border-color:color-mix(in srgb,var(--green) 28%,var(--border));box-shadow:inset 0 1px 0 rgba(255,255,255,.08),0 4px 12px rgba(0,0,0,.18)}
  .actions-logged .icon-btn-static,.actions-logged .icon-btn:last-child{display:none}
  .actions-logged > a[href="/admin"]{display:none}
  .actions-logged > a[href="/conta"]{width:38px;height:38px}
  #nav-menu{top:68px;padding:16px 14px 26px;background:linear-gradient(180deg,color-mix(in srgb,var(--bg-panel) 98%,white 2%),var(--bg));backdrop-filter:blur(18px)}
  #nav-menu a{display:flex;align-items:center;gap:10px;padding:15px 12px;font-size:15px;border-bottom:1px solid color-mix(in srgb,var(--border) 85%,transparent);border-radius:10px}
  #nav-menu a:hover{background:rgba(255,255,255,.035)}
  #nav-menu .nav-item-icon svg{width:18px;height:18px;color:var(--green-light)}
  #nav-menu .nav-menu-actions{padding-top:6px}
  .mobile-bottom-nav{height:72px;padding-top:3px;background:linear-gradient(180deg,color-mix(in srgb,var(--bg-panel) 96%,white 4%),color-mix(in srgb,var(--bg) 98%,var(--theme-accent-2) 2%));border-top-color:color-mix(in srgb,var(--green) 30%,var(--border));box-shadow:0 -10px 34px rgba(0,0,0,.46)}
  .mobile-bottom-item{gap:3px;font-size:10px;letter-spacing:.01em}
  .mobile-bottom-item .mobile-nav-icon{transition:transform .18s,filter .18s}
  .mobile-bottom-item.active .mobile-nav-icon{transform:translateY(-1px)}
}
@media(max-width:420px){
  .navbar .logo{max-width:31vw}
  .navbar .logo-img{max-width:112px}
  .actions-logged .balance-pill{font-size:10px;padding:8px 8px}
  .actions-logged > a[href="/conta"]{width:36px;height:36px}
}

/* ===== H888 premium v2 ===== */
.admin-brand{display:flex;align-items:center;gap:10px;font-weight:900;font-size:15px;padding:10px 14px 20px;letter-spacing:.01em}
.admin-brand svg{width:24px;height:24px;fill:none;stroke:var(--green);stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;filter:drop-shadow(0 0 9px color-mix(in srgb,var(--green) 42%,transparent))}
.admin-page-title{display:flex;align-items:center;gap:10px}
.admin-page-title svg{width:25px;height:25px;fill:none;stroke:var(--green);stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;filter:drop-shadow(0 0 8px color-mix(in srgb,var(--green) 35%,transparent))}
.admin-alert-success{display:flex;align-items:center;gap:9px;padding:12px 14px;margin:0 0 16px;border-radius:12px;background:rgba(57,255,136,.08);border:1px solid rgba(57,255,136,.25);color:var(--green-light);font-weight:700}
.admin-alert-success svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.panel-heading-row{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:16px}
.admin-counter{flex:0 0 auto;padding:7px 10px;border-radius:999px;background:rgba(57,255,136,.08);border:1px solid rgba(57,255,136,.2);color:var(--green-light);font-size:11px;font-weight:800}
.admin-reward{color:var(--gold-light);font-weight:800}
.referral-admin-panel .btn svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}

.nav-admin-link{display:flex!important;align-items:center;gap:10px!important;border:1px solid color-mix(in srgb,var(--green) 22%,var(--border));background:linear-gradient(145deg,color-mix(in srgb,var(--green) 8%,transparent),transparent);box-shadow:inset 0 1px 0 rgba(255,255,255,.04)}
.nav-admin-link svg{width:19px;height:19px;fill:none;stroke:var(--green-light);stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;filter:drop-shadow(0 0 7px color-mix(in srgb,var(--green) 32%,transparent))}

/* Header: logo realmente ocupa o espaço visual disponível sem encostar nos controles. */
.navbar-premium{min-height:72px}
.logo-premium{min-width:170px;justify-content:center}
.logo-premium .logo-img{height:43px;max-width:190px;width:auto;filter:drop-shadow(0 0 10px rgba(255,210,70,.16))}
.actions-logged-premium{margin-left:auto;flex-shrink:0}

/* Na home mobile o bloco hero original fica vazio porque seus textos são ocultados. Removê-lo elimina o vão acima do banner. */
@media(max-width:768px){
  .hero{display:none!important}
  .navbar-premium{min-height:76px;padding:10px 12px}
  .logo-premium{left:50%;width:auto;max-width:40vw;min-width:0}
  .logo-premium .logo-img{height:42px;max-width:150px;width:auto}
  .actions-logged-premium .balance-pill{min-width:86px;font-size:11px;padding:9px 10px}
  .actions-logged > a[href="/admin"]{display:flex!important}
  .actions-logged > a[href="/admin"] svg{width:18px;height:18px}
  .actions-logged > a[href="/conta"]{width:38px;height:38px}
  #nav-menu{top:76px}
  .nav-admin-link{order:-1;background:linear-gradient(145deg,color-mix(in srgb,var(--green) 11%,transparent),transparent);border-color:color-mix(in srgb,var(--green) 35%,var(--border))!important}
  .nav-admin-link span::after{content:'Acesso rápido';display:block;font-size:10px;color:var(--text-muted);font-weight:500;margin-top:2px}
  .home-quick-actions{margin-top:8px}
}
@media(max-width:420px){
  .logo-premium{max-width:39vw}
  .logo-premium .logo-img{height:40px;max-width:146px}
  .actions-logged-premium{gap:5px}
  .actions-logged-premium .balance-pill{min-width:82px;font-size:10px}
}

/* Ícones premium: substituem aparência de emoji simples por brilho e profundidade. */
.home-quick-card .quick-icon,
.mobile-nav-icon,
.chest-hero-icon{filter:drop-shadow(0 0 8px color-mix(in srgb,var(--green) 20%,transparent))}
.home-quick-card .quick-icon svg{filter:drop-shadow(0 0 5px currentColor)}
.home-quick-card.quick-promo .quick-icon svg{color:var(--gold-light);filter:drop-shadow(0 0 7px rgba(212,175,55,.58))}
.home-quick-card.quick-scratch .quick-icon svg{color:#ff8fb1;filter:drop-shadow(0 0 7px rgba(255,120,160,.45))}
.home-quick-card.quick-wallet .quick-icon svg{color:#d7e4ff;filter:drop-shadow(0 0 7px rgba(160,190,255,.45))}
.home-quick-card.quick-vip .quick-icon svg{color:var(--gold-light);filter:drop-shadow(0 0 7px rgba(212,175,55,.55))}
.home-quick-card.quick-games .quick-icon svg{color:var(--theme-accent-2,#7c3cff);filter:drop-shadow(0 0 7px color-mix(in srgb,var(--theme-accent-2,#7c3cff) 55%,transparent))}
.mobile-bottom-item:not(.active) .mobile-nav-icon svg{filter:drop-shadow(0 0 5px rgba(180,200,220,.12))}
.mobile-bottom-item.active .mobile-nav-icon svg{filter:drop-shadow(0 0 7px color-mix(in srgb,var(--green) 60%,transparent))}

@media(max-width:768px){
  .referral-admin-panel .table-scroll{margin-left:-4px;margin-right:-4px}
  .panel-heading-row{align-items:center}
}
.premium-heading{display:flex;align-items:center;gap:9px}
.premium-heading svg{width:20px;height:20px;flex:0 0 auto;fill:none;stroke:var(--green-light);stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;filter:drop-shadow(0 0 7px color-mix(in srgb,var(--green) 32%,transparent))}
.inline-warning-icon{width:16px;height:16px;vertical-align:-3px;fill:none;stroke:#facc15;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;filter:drop-shadow(0 0 5px rgba(250,204,21,.35))}
.admin-content .btn svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.premium-inline-icon{width:20px;height:20px;display:inline-block;vertical-align:-4px;margin-right:7px;fill:none;stroke:var(--green-light);stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;filter:drop-shadow(0 0 7px color-mix(in srgb,var(--green) 34%,transparent))}
.admin-content .btn svg{vertical-align:-3px}
@media(max-width:768px){
  .logo-premium .logo-img{height:44px;max-width:160px;width:160px}
}
@media(max-width:360px){
  .logo-premium .logo-img{height:40px;max-width:138px;width:138px}
}

/* =========================================================
   H888 — correção final do header/menu mobile
   Somente apresentação/posicionamento. Nenhuma rota ou banco é alterado.
   ========================================================= */
@media (max-width: 768px) {
  .navbar-premium {
    position: sticky !important;
    top: 0 !important;
    z-index: 1100 !important;
    display: grid !important;
    grid-template-columns: 42px minmax(0, 1fr) auto !important;
    align-items: center !important;
    min-height: 76px !important;
    height: 76px !important;
    padding: 10px 12px !important;
    gap: 8px !important;
    overflow: visible !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  .navbar-premium > .nav-toggle {
    grid-column: 1 !important;
    grid-row: 1 !important;
    order: 0 !important;
    position: relative !important;
    left: auto !important;
    top: auto !important;
    transform: none !important;
    z-index: 1202 !important;
    width: 42px !important;
    height: 42px !important;
    margin: 0 !important;
  }

  .navbar-premium > .logo-premium {
    grid-column: 2 !important;
    grid-row: 1 !important;
    position: relative !important;
    left: auto !important;
    top: auto !important;
    transform: none !important;
    justify-self: center !important;
    align-self: center !important;
    min-width: 0 !important;
    width: auto !important;
    max-width: none !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    z-index: 1201 !important;
    overflow: visible !important;
  }

  .navbar-premium > .logo-premium .logo-img {
    display: block !important;
    width: auto !important;
    height: 42px !important;
    max-width: 170px !important;
    object-fit: contain !important;
    filter: drop-shadow(0 0 10px rgba(255,210,70,.22)) !important;
  }

  .navbar-premium > .actions-logged-premium {
    grid-column: 3 !important;
    grid-row: 1 !important;
    justify-self: end !important;
    align-items: center !important;
    margin: 0 !important;
    padding: 0 !important;
    gap: 7px !important;
    min-width: 0 !important;
    z-index: 1202 !important;
  }

  /* O acesso administrativo já existe no menu lateral; não ocupa espaço no cabeçalho. */
  .navbar-premium > .actions-logged-premium > a[href="/admin"] {
    display: none !important;
  }

  .navbar-premium > .actions-logged-premium > .balance-pill {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 88px !important;
    height: 40px !important;
    padding: 0 12px !important;
    font-size: 12px !important;
    line-height: 1 !important;
    border-radius: 14px !important;
    white-space: nowrap !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 5px 16px rgba(0,0,0,.22), 0 0 14px color-mix(in srgb,var(--green) 10%,transparent) !important;
  }

  .navbar-premium > .actions-logged-premium > a[href="/conta"] {
    display: flex !important;
    width: 40px !important;
    height: 40px !important;
    flex: 0 0 40px !important;
  }

  .navbar-premium > .actions-logged-premium > form[action="/auth/logout"] {
    display: none !important;
  }

  /* O menu precisa ficar acima do conteúdo da Home, nunca atrás do banner. */
  .navbar-premium > #nav-menu {
    position: fixed !important;
    top: 76px !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: calc(100dvh - 76px) !important;
    max-height: none !important;
    display: none !important;
    flex-direction: column !important;
    padding: 16px 14px calc(26px + env(safe-area-inset-bottom)) !important;
    gap: 2px !important;
    overflow-y: auto !important;
    overscroll-behavior: contain !important;
    background: linear-gradient(180deg, color-mix(in srgb,var(--bg-panel) 99%,white 1%), var(--bg)) !important;
    border-top: 1px solid color-mix(in srgb,var(--green) 24%,var(--border)) !important;
    box-shadow: 0 18px 45px rgba(0,0,0,.48) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    z-index: 1200 !important;
  }

  .navbar-premium > #nav-menu.open {
    display: flex !important;
  }

  .navbar-premium > #nav-menu a {
    flex: 0 0 auto !important;
    position: relative !important;
    z-index: 1 !important;
    min-height: 50px !important;
    display: flex !important;
    align-items: center !important;
    gap: 11px !important;
    padding: 14px 13px !important;
    margin: 0 !important;
    font-size: 16px !important;
    line-height: 1.2 !important;
    border-bottom: 1px solid color-mix(in srgb,var(--border) 88%,transparent) !important;
    border-radius: 11px !important;
  }

  .navbar-premium > #nav-menu .nav-admin-link {
    order: -1 !important;
    border: 1px solid color-mix(in srgb,var(--green) 34%,var(--border)) !important;
    background: linear-gradient(145deg,color-mix(in srgb,var(--green) 10%,transparent),rgba(255,255,255,.015)) !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.05), 0 5px 18px rgba(0,0,0,.16) !important;
  }

  .navbar-premium > #nav-menu .nav-admin-link span::after {
    content: "Acesso rápido" !important;
    display: block !important;
    margin-top: 3px !important;
    font-size: 10px !important;
    font-weight: 500 !important;
    color: var(--text-muted) !important;
  }
}

@media (max-width: 420px) {
  .navbar-premium {
    grid-template-columns: 42px minmax(0,1fr) auto !important;
    padding-left: 10px !important;
    padding-right: 10px !important;
  }
  .navbar-premium > .logo-premium .logo-img {
    height: 40px !important;
    max-width: 150px !important;
  }
  .navbar-premium > .actions-logged-premium {
    gap: 5px !important;
  }
  .navbar-premium > .actions-logged-premium > .balance-pill {
    min-width: 82px !important;
    padding: 0 9px !important;
    font-size: 11px !important;
  }
  .navbar-premium > .actions-logged-premium > a[href="/conta"] {
    width: 38px !important;
    height: 38px !important;
    flex-basis: 38px !important;
  }
}

/* Botão "Sair da conta" dentro do menu (hambúrguer) — o cabeçalho compacto no mobile
   já não tinha espaço pro ícone de logout separado, então ele mora aqui, sempre visível. */
.nav-logout-form { margin: 0; padding: 0; }
#nav-menu .nav-logout-form { border-bottom: 1px solid color-mix(in srgb, var(--border) 88%, transparent); }
.nav-logout-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  background: none;
  border: none;
  cursor: pointer;
  font: inherit;
  font-size: 16px;
  text-align: left;
  padding: 14px 13px;
  margin: 0;
  color: #fca5a5;
  border-radius: 11px;
}
.nav-logout-btn:hover { background: rgba(127,29,29,.12); }
.nav-logout-btn svg { width: 19px; height: 19px; flex-shrink: 0; color: #fca5a5; }
@media (max-width: 768px) {
  #nav-menu .nav-logout-btn { min-height: 50px; }
}

/* =========================================================
   H888 — interface inspirado no layout de referência
   Camada visual: não altera regras de carteira, jogos, webhooks ou banco.
   ========================================================= */
.h888-home{background:var(--bg);padding-bottom:32px;overflow:hidden}
.h888-quick-rail{background:#071614;border-bottom:1px solid color-mix(in srgb,var(--green) 70%,transparent);padding:12px 0 10px}
.h888-quick-track{display:flex;gap:20px;overflow-x:auto;scroll-snap-type:x proximity;scrollbar-width:none;padding:0 4px}
.h888-quick-track::-webkit-scrollbar{display:none}
.h888-quick-item{flex:0 0 78px;text-align:center;scroll-snap-align:start;color:var(--text);font-size:11px}
.h888-quick-item strong{display:block;margin-top:6px;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.h888-quick-orb{display:flex;width:70px;height:70px;margin:auto;align-items:center;justify-content:center;border-radius:50%;border:2px solid var(--green);background:radial-gradient(circle at 35% 30%,rgba(255,255,255,.16),rgba(0,0,0,.25) 58%,rgba(0,0,0,.55));box-shadow:0 0 18px color-mix(in srgb,var(--green) 18%,transparent),inset 0 0 12px rgba(255,255,255,.05);overflow:hidden}
.h888-quick-orb img{width:100%;height:100%;object-fit:cover;border-radius:50%}.h888-quick-orb span{font-size:29px;line-height:1}
.h888-banner-wrap{padding-top:20px}.h888-banner-carousel{border-radius:20px;overflow:hidden;box-shadow:0 14px 36px rgba(0,0,0,.32)}
.h888-banner-carousel .banner-slide{border-radius:20px;overflow:hidden}.h888-banner-carousel .banner-slide img{width:100%;height:auto;aspect-ratio:3.35/1;object-fit:cover;display:block}
.h888-search-section{padding-top:18px}.h888-search{height:54px;display:flex;align-items:center;gap:10px;background:#252a2e;border:1px solid rgba(255,255,255,.03);border-radius:28px;padding:0 16px;box-shadow:inset 0 1px 0 rgba(255,255,255,.04)}
.h888-search input{flex:1;min-width:0;border:0;outline:0;background:transparent;color:#fff;font-size:15px}.h888-search input::placeholder{color:#a3a8aa}.h888-search button{border:0;background:none;font-size:20px;cursor:pointer}.h888-search-icon{font-size:25px;color:#aab0b0;line-height:1}
.h888-section{padding-top:28px}.h888-section-head{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:15px}.h888-section-head h2{display:flex;align-items:center;gap:10px;margin:0;font-size:21px;font-weight:400;min-width:0}.h888-section-head h2 b{font-weight:850}.h888-section-head h2 em{font-style:normal;font-weight:400;color:#fff}.h888-section-head h2 b:first-child{color:var(--green-light)}
.h888-title-icon{display:inline-flex;width:38px;height:38px;border-radius:50%;align-items:center;justify-content:center;background:rgba(255,255,255,.025);border:1px solid var(--border);font-size:18px;flex:0 0 auto}.h888-title-icon.gold{background:#f5c43b;color:#221b05;border-color:#f5c43b}.h888-title-icon.green{color:var(--green);border-color:color-mix(in srgb,var(--green) 30%,var(--border))}.h888-title-icon.live{color:#00ff86}
.h888-section-head>a{border:2px solid var(--green);border-radius:22px;padding:7px 17px;color:#fff;font-weight:750;font-size:13px;white-space:nowrap}.h888-section-head>a span{font-size:20px;vertical-align:-2px;margin-left:4px}.h888-arrows{display:flex;gap:8px}.h888-arrows button{width:34px;height:34px;border:0;background:none;color:#aab0b0;font-size:34px;line-height:1;cursor:pointer}
.h888-game-rail,.h888-top10-rail,.h888-category-rail{display:flex;gap:14px;overflow-x:auto;scrollbar-width:none;padding:2px 1px 8px;scroll-snap-type:x proximity}.h888-game-rail::-webkit-scrollbar,.h888-top10-rail::-webkit-scrollbar,.h888-category-rail::-webkit-scrollbar{display:none}
.h888-game-card{flex:0 0 150px;scroll-snap-align:start}.h888-game-thumb{position:relative;aspect-ratio:3/4;border-radius:14px;overflow:hidden;background:#1a2020;border:1px solid #303837}.h888-game-thumb img,.h888-provider-card img,.h888-live-card img{width:100%;height:100%;display:block;object-fit:cover}.h888-game-card>strong{display:block;font-size:12px;margin-top:7px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.h888-game-card>small{display:block;color:var(--text-muted);font-size:10px;margin-top:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.h888-hot{position:absolute;right:6px;bottom:6px;width:28px;height:28px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:#ffd65b;color:#241d07;font-size:13px;border:2px solid #111}
.h888-top10-card{position:relative;flex:0 0 220px;height:286px;scroll-snap-align:start;display:flex;align-items:flex-end;padding-left:52px}.h888-top10-image{position:relative;width:170px;height:226px;border-radius:10px;overflow:hidden;border:1px solid #34423b;z-index:2;box-shadow:0 12px 24px rgba(0,0,0,.32)}.h888-rank{position:absolute;left:0;bottom:-7px;font-size:128px;font-weight:950;line-height:.75;color:color-mix(in srgb,var(--green) 80%,transparent);opacity:.78;z-index:1}.h888-play{position:absolute;left:60px;bottom:17px;z-index:3;background:var(--green);color:#052e12;border-radius:10px;padding:4px 11px;font-size:9px;font-weight:900}
.h888-provider-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.h888-provider-card{display:block;aspect-ratio:1/1;border-radius:13px;overflow:hidden;border:1px solid #2d3935;background:#161b1b}.h888-provider-card:hover,.h888-game-card:hover .h888-game-thumb{border-color:var(--green)}
.h888-category-rail{gap:18px}.h888-category-card{flex:0 0 335px;border-radius:24px;overflow:hidden;background:linear-gradient(160deg,#063d2c,#141a19 56%);border:1px solid color-mix(in srgb,var(--green) 20%,var(--border));box-shadow:0 12px 28px rgba(0,0,0,.2)}.h888-category-cover{height:155px;position:relative;overflow:hidden}.h888-category-cover:after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,transparent 25%,rgba(4,8,7,.92) 100%)}.h888-category-cover img{width:100%;height:100%;object-fit:cover}.h888-category-cover span{position:absolute;z-index:2;left:50%;bottom:-4px;transform:translateX(-50%);width:100px;height:100px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:42px;background:#0d1412;border:4px solid var(--green);box-shadow:0 0 22px rgba(34,197,94,.45)}.h888-category-body{padding:52px 18px 18px;text-align:center}.h888-category-body strong{display:block;font-size:21px}.h888-category-body small{display:block;color:#a9b0ad;margin:5px 0 13px}.h888-category-body>b{display:block;border:1px solid #59615e;border-radius:14px;padding:7px;color:#d7ddda;font-size:12px}.h888-category-body>span{display:block;margin-top:14px;padding:11px;border-radius:18px;background:linear-gradient(135deg,#ffe7a4,#f3bf36);color:#1f1a08;font-weight:900}
.h888-live-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.h888-live-card{aspect-ratio:16/10;border-radius:15px;overflow:hidden;border:1px solid #27342e;background:#161b19}.h888-service-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;padding-top:30px}.h888-service-grid a{min-height:112px;padding:18px;border-radius:16px;background:#08271e;border:1px solid color-mix(in srgb,var(--green) 18%,var(--border));display:flex;flex-direction:column;justify-content:center}.h888-service-grid span{font-size:25px}.h888-service-grid strong{margin-top:5px;font-size:15px}.h888-service-grid small{color:var(--text-muted);margin-top:2px}.h888-empty{padding:30px 15px;color:var(--text-muted);border:1px dashed var(--border);border-radius:15px;width:100%}
.h888-gira-section{padding-top:18px}.h888-gira-card{display:block;position:relative;overflow:hidden;border-radius:22px;border:1px solid color-mix(in srgb,var(--green) 28%,var(--border));min-height:180px;background:#061a13}.h888-gira-card img{width:100%;height:230px;object-fit:cover;display:block}.h888-gira-shade{position:absolute;inset:0;background:linear-gradient(90deg,rgba(0,0,0,.72),transparent 65%)}.h888-gira-content{position:absolute;left:24px;top:50%;transform:translateY(-50%);display:flex;flex-direction:column}.h888-gira-content span{font-size:10px;color:var(--green-light);font-weight:900;letter-spacing:.12em}.h888-gira-content strong{font-size:30px;margin:4px 0}.h888-gira-content small{display:inline-flex;padding:8px 14px;border-radius:18px;background:var(--green);color:#052e12;font-weight:900;width:max-content}

@media(max-width:768px){
  .container{padding-left:16px;padding-right:16px}.h888-quick-rail{padding-top:10px}.h888-quick-track{gap:15px}.h888-quick-item{flex-basis:70px}.h888-quick-orb{width:64px;height:64px}.h888-banner-wrap{padding-top:14px}.h888-banner-carousel,.h888-banner-carousel .banner-slide{border-radius:17px}.h888-banner-carousel .banner-slide img{aspect-ratio:2.05/1}.h888-search{height:52px}.h888-section{padding-top:25px}.h888-section-head h2{font-size:20px}.h888-title-icon{width:36px;height:36px}.h888-game-rail{gap:11px}.h888-game-card{flex-basis:140px}.h888-top10-card{flex-basis:205px;height:260px;padding-left:45px}.h888-top10-image{width:160px;height:214px}.h888-rank{font-size:112px}.h888-play{left:51px}.h888-provider-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.h888-category-card{flex-basis:305px}.h888-live-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.h888-service-grid{grid-template-columns:repeat(2,1fr)}
  .cookie-banner{left:12px;right:12px;bottom:82px;max-width:none;padding:17px}.cookie-banner-actions{gap:8px}.cookie-banner-actions .btn{min-width:0;padding:9px 8px;font-size:11px}
}
@media(max-width:420px){
  .h888-quick-item{flex-basis:64px;font-size:10px}.h888-quick-orb{width:58px;height:58px}.h888-banner-carousel .banner-slide img{aspect-ratio:1.85/1}.h888-section-head>a{padding:6px 13px;font-size:12px}.h888-section-head h2{font-size:18px}.h888-game-card{flex-basis:128px}.h888-top10-card{flex-basis:190px;height:245px}.h888-top10-image{width:150px;height:200px}.h888-rank{font-size:105px}.h888-provider-grid{gap:7px}.h888-category-card{flex-basis:285px}.h888-category-cover{height:140px}.h888-service-grid{gap:8px}.h888-service-grid a{padding:14px;min-height:100px}.h888-gira-card img{height:185px}.h888-gira-content strong{font-size:24px}
}

/* Admin: apresentação compacta, sem tabelas escapando da largura no celular. */
.admin-content{max-width:calc(100vw - 232px)}
.admin-content .panel{width:100%;max-width:100%;overflow:hidden}.admin-content .table-scroll{max-width:100%;overflow-x:auto}.admin-content table{min-width:680px}.admin-content .stat-cards{grid-template-columns:repeat(3,minmax(0,1fr))}
@media(max-width:860px){.admin-content{max-width:100vw;width:100%;padding:72px 14px 24px}.admin-content .stat-cards{grid-template-columns:repeat(2,minmax(0,1fr))}.admin-content .panel{padding:16px}.admin-content form{max-width:100%}.admin-content input,.admin-content select,.admin-content textarea{max-width:100%}}
@media(max-width:480px){.admin-content{padding:66px 10px 22px}.admin-content .stat-cards{grid-template-columns:1fr 1fr;gap:9px}.admin-content .stat-card{padding:13px}.admin-content .stat-card .value{font-size:19px}.admin-content .panel{border-radius:14px;padding:14px}.admin-content .panel-heading-row{flex-direction:column;align-items:flex-start}.admin-content .btn{max-width:100%}}
.admin-guide-panel{background:linear-gradient(145deg,rgba(34,197,94,.075),rgba(255,255,255,.018));border-color:color-mix(in srgb,var(--green) 22%,var(--border))}
.admin-recommend-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-top:14px}.admin-recommend-grid>div{padding:12px;border-radius:12px;background:rgba(0,0,0,.18);border:1px solid var(--border)}.admin-recommend-grid strong{display:block;font-size:12px;color:var(--text)}.admin-recommend-grid span{display:block;margin-top:4px;font-size:10.5px;color:var(--text-muted);line-height:1.35}
@media(max-width:700px){.admin-recommend-grid{grid-template-columns:1fr 1fr}}
@media(max-width:420px){.admin-recommend-grid{grid-template-columns:1fr}}

/* ===== H888 — raspadinhas na home + roleta (giros grátis/prêmios) ===== */
.h888-scratch-rail{display:flex;gap:14px;overflow-x:auto;scrollbar-width:none;padding:2px 1px 8px;scroll-snap-type:x proximity}
.h888-scratch-rail::-webkit-scrollbar{display:none}
.h888-scratch-card{flex:0 0 165px;scroll-snap-align:start;position:relative;border-radius:16px;overflow:hidden;border:1px solid var(--border);background:#141a17;display:block}
.h888-scratch-thumb{position:relative;aspect-ratio:3/4;overflow:hidden}
.h888-scratch-thumb img{width:100%;height:100%;object-fit:cover;display:block}
.h888-scratch-fallback{width:100%;height:100%;display:flex;align-items:center;justify-content:center;font-size:40px;background:linear-gradient(160deg,var(--scratch-color,var(--green)) -60%,#0a0f0d 90%)}
.h888-scratch-premium-tag{position:absolute;top:8px;left:8px;z-index:2;background:linear-gradient(135deg,#ffe7a4,#d4af37);color:#1f1a08;font-size:9px;font-weight:900;letter-spacing:.04em;padding:3px 8px;border-radius:999px;box-shadow:0 4px 10px rgba(0,0,0,.35)}
.h888-scratch-body{padding:10px 11px 12px}
.h888-scratch-body strong{display:block;font-size:12.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.h888-scratch-body .h888-scratch-price{display:block;color:var(--green-light,var(--green));font-weight:800;font-size:12px;margin-top:3px}
.h888-scratch-body .h888-scratch-max{display:block;color:var(--text-muted);font-size:10.5px;margin-top:1px}

.h888-wheel-page{max-width:520px;margin:0 auto;text-align:center}
.h888-wheel-wrap{position:relative;width:min(320px,88vw);aspect-ratio:1/1;margin:18px auto 0}
.h888-wheel-pointer{position:absolute;top:-6px;left:50%;transform:translateX(-50%);font-size:30px;color:var(--gold);z-index:5;filter:drop-shadow(0 3px 6px rgba(0,0,0,.5))}
.h888-wheel-disc{position:absolute;inset:0;border-radius:50%;border:6px solid var(--gold);box-shadow:0 0 0 3px #0a0f0d,0 18px 40px rgba(0,0,0,.5);will-change:transform}
.h888-wheel-slice-label{position:absolute;inset:0;display:flex;justify-content:center}
.h888-wheel-slice-inner{position:absolute;top:16px;display:flex;flex-direction:column;align-items:center;gap:4px;width:66px;color:#fff;text-shadow:0 1px 3px rgba(0,0,0,.6)}
.h888-wheel-slice-inner img{width:28px;height:28px;object-fit:cover;border-radius:50%;border:1px solid rgba(255,255,255,.5)}
.h888-wheel-slice-inner span{font-size:10px;font-weight:800;line-height:1.15;text-align:center}
.h888-wheel-hub{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);z-index:4;width:82px;height:82px;border-radius:50%;background:radial-gradient(circle at 35% 30%,#1c2b22,#0a0f0d 70%);border:4px solid var(--gold);display:flex;align-items:center;justify-content:center;box-shadow:0 6px 18px rgba(0,0,0,.5)}
.h888-wheel-hub button{width:100%;height:100%;border-radius:50%;border:0;background:transparent;color:var(--green-light,var(--green));font-weight:900;font-size:13px;letter-spacing:.03em;cursor:pointer}
.h888-wheel-hub button:disabled{color:var(--text-muted);cursor:not-allowed}
.h888-wheel-legend{display:flex;flex-wrap:wrap;gap:10px;justify-content:center;margin-top:26px}
.h888-wheel-legend-item{display:flex;align-items:center;gap:6px;background:#141a17;border:1px solid var(--border);border-radius:999px;padding:6px 12px 6px 6px;font-size:12px}
.h888-wheel-legend-item img{width:22px;height:22px;object-fit:cover;border-radius:50%}
.h888-wheel-legend-dot{width:10px;height:10px;border-radius:50%;flex:0 0 auto}

.modal-overlay{position:fixed;inset:0;z-index:200;background:rgba(4,8,7,.78);display:flex;align-items:center;justify-content:center;padding:20px}
.modal-box{width:100%}

/* ===== H888 — selo de autorização (menu lateral) ===== */
.nav-compliance-badge{display:flex;align-items:center;gap:10px;margin:18px 16px 10px;padding:10px 14px;border-radius:12px;background:var(--bg-panel);border:1px solid color-mix(in srgb,var(--green) 35%,var(--border))}
.nav-compliance-badge img{max-height:40px;max-width:100%;object-fit:contain}
.nav-compliance-flag{flex:0 0 auto;line-height:0}
.nav-compliance-text{display:flex;flex-direction:column;line-height:1.25}
.nav-compliance-text strong{font-size:12.5px;letter-spacing:.02em;color:#fff}
.nav-compliance-text small{font-size:9.5px;color:var(--text-muted);letter-spacing:.01em}

/* ===== H888 — tela de login/cadastro premium ===== */
.auth-card-premium{padding-top:0;overflow:hidden}
.auth-banner{margin:-32px -28px 22px;padding:26px 20px;text-align:center;background:linear-gradient(120deg,color-mix(in srgb,var(--green) 22%,var(--bg-panel)),var(--bg-panel) 70%);border-bottom:1px solid color-mix(in srgb,var(--green) 30%,var(--border))}
.auth-banner-text{font-size:22px;font-weight:800;color:#fff}
.auth-banner-text em{font-style:normal;color:var(--green-light,var(--green))}
.auth-tabs{display:flex;gap:8px;background:#0a120d;border:1px solid var(--border);border-radius:999px;padding:4px;margin-bottom:22px}
.auth-tab{flex:1;text-align:center;padding:10px 12px;border-radius:999px;font-size:13.5px;font-weight:700;color:var(--text-muted)}
.auth-tab.active{background:var(--green);color:#06210f}
.input-pill input{padding-right:44px}
.input-pill-toggle{position:absolute;right:12px;top:50%;transform:translateY(-50%);background:none;border:0;padding:4px;color:var(--text-muted);cursor:pointer;line-height:0;z-index:2}
.input-pill-toggle svg{position:static !important;left:auto !important;transform:none !important;pointer-events:none}
.auth-age-check{display:flex;align-items:flex-start;gap:10px;font-size:12.5px;color:var(--text-muted);margin:4px 0 18px;cursor:pointer}
.auth-age-check input{width:18px;height:18px;flex:0 0 auto;margin-top:1px}
.auth-age-check a{color:var(--green-light,var(--green))}

/* ===== H888 — menu lateral: grade de atalhos + barra de cashback ===== */
.nav-menu-links{display:flex;flex-direction:column}
.nav-quick-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin:14px 2px}
.nav-quick-tile{display:flex !important;flex-direction:column;align-items:center;justify-content:center;gap:6px;padding:14px 6px !important;border-radius:14px !important;background:var(--bg-panel);border:1px solid var(--border) !important;text-align:center;font-size:11.5px !important;font-weight:700;color:var(--text) !important}
.nav-quick-icon{width:38px;height:38px;border-radius:12px;display:flex;align-items:center;justify-content:center;font-size:18px;background:linear-gradient(145deg,color-mix(in srgb,var(--green) 16%,var(--bg-panel)),var(--bg-panel));border:1px solid color-mix(in srgb,var(--green) 22%,var(--border))}
.nav-quick-icon img{width:100%;height:100%;object-fit:cover;border-radius:12px}
.nav-cashback-bar{display:flex !important;align-items:center;gap:10px;margin:4px 2px 14px;padding:13px 14px !important;border-radius:14px !important;background:linear-gradient(120deg,color-mix(in srgb,var(--gold) 20%,var(--bg-panel)),var(--bg-panel)) !important;border:1px solid color-mix(in srgb,var(--gold) 35%,var(--border)) !important;color:#fff !important;font-weight:800 !important}
.nav-cashback-bar svg:first-child{width:20px;height:20px;color:var(--gold);flex-shrink:0}
.nav-cashback-bar span{flex:1}
.nav-cashback-arrow{width:16px;height:16px;color:var(--text-muted)}

/* ===== H888 — tipografia premium (marca + títulos) ===== */
.logo-premium{font-family:var(--font-display);font-weight:700;letter-spacing:.02em;font-size:22px;color:#fff}
.logo-accent{color:var(--gold)}
.h888-section-head h2{font-family:var(--font-display)}
.section-title{font-family:var(--font-display);letter-spacing:.01em}
.auth-banner-text{font-family:var(--font-display)}
.h888-scratch-premium-tag{font-family:var(--font-body)}

/* ===== H888 — toques premium (bordas/realces dourado+vermelho) ===== */
.panel{border-color:color-mix(in srgb,var(--gold) 12%,var(--border))}
.btn-primary{background:linear-gradient(135deg,var(--gold-light),var(--gold));color:#241704;font-weight:800;box-shadow:0 6px 18px rgba(212,175,55,.28)}
.navbar-premium{border-bottom-color:color-mix(in srgb,var(--gold) 30%,var(--border))}
.h888-section-head h2 b:first-child{color:var(--gold-light)}
.h888-scratch-premium-tag{box-shadow:0 4px 10px rgba(0,0,0,.4),0 0 0 1px color-mix(in srgb,var(--red) 40%,transparent)}
::selection{background:color-mix(in srgb,var(--gold) 45%,transparent);color:#1a0f05}

/* ===== H888 — home: aviso em faixa, CTA login/registro, pills de categoria, banner de indicação ===== */
.h888-marquee{display:flex;align-items:center;gap:10px;background:linear-gradient(90deg,color-mix(in srgb,var(--red) 55%,var(--bg-panel)),color-mix(in srgb,var(--gold) 18%,var(--bg-panel)));border-top:1px solid color-mix(in srgb,var(--gold) 25%,var(--border));border-bottom:1px solid color-mix(in srgb,var(--gold) 25%,var(--border));padding:8px 0;overflow:hidden}
.h888-marquee-icon{flex:0 0 auto;padding-left:14px;font-size:14px}
.h888-marquee-track{display:flex;gap:60px;white-space:nowrap;animation:h888-marquee-scroll 18s linear infinite}
.h888-marquee-track span{font-size:12.5px;font-weight:700;color:#fff;letter-spacing:.01em}
@keyframes h888-marquee-scroll{from{transform:translateX(0)}to{transform:translateX(-50%)}}

.h888-auth-cta{display:flex;border-radius:14px;overflow:hidden;margin:14px auto;box-shadow:0 8px 22px rgba(0,0,0,.35)}
.h888-auth-cta-half{flex:1;text-align:center;padding:15px 10px;font-weight:800;font-size:14.5px;color:#fff !important}
.h888-auth-cta-login{background:linear-gradient(120deg,#2a1a10,#170d09);clip-path:polygon(0 0,96% 0,100% 100%,0 100%)}
.h888-auth-cta-register{background:linear-gradient(120deg,var(--gold),var(--gold-light));color:#241704 !important;margin-left:-10px;clip-path:polygon(4% 0,100% 0,100% 100%,0 100%)}

.h888-cat-pills{display:flex;gap:10px;overflow-x:auto;scrollbar-width:none;padding:2px 1px 16px}
.h888-cat-pills::-webkit-scrollbar{display:none}
.h888-cat-pill{flex:0 0 auto;display:flex !important;flex-direction:column;align-items:center;gap:6px;text-decoration:none}
.h888-cat-pill-icon{width:46px;height:46px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:19px;background:linear-gradient(145deg,color-mix(in srgb,var(--gold) 16%,var(--bg-panel)),var(--bg-panel));border:1px solid color-mix(in srgb,var(--gold) 26%,var(--border))}
.h888-cat-pill small{font-size:10.5px;font-weight:700;color:var(--text-muted)}

.h888-referral-banner{margin:6px auto 22px}
.h888-referral-card{display:flex !important;align-items:center;gap:14px;padding:16px 18px;border-radius:16px;background:linear-gradient(120deg,color-mix(in srgb,var(--red) 30%,var(--bg-panel)),var(--bg-panel) 75%);border:1px solid color-mix(in srgb,var(--gold) 30%,var(--border));box-shadow:0 8px 22px rgba(0,0,0,.3)}
.h888-referral-text{flex:1;display:flex;flex-direction:column;gap:4px}
.h888-referral-tag{font-size:10px;font-weight:900;letter-spacing:.06em;color:var(--gold-light)}
.h888-referral-text strong{font-size:16px;color:#fff}
.h888-referral-text small{font-size:12px;color:var(--text-muted);line-height:1.4}
.h888-referral-arrow{font-size:26px;color:var(--gold);flex:0 0 auto}

/* ===== H888 — layout clássico aprimorado (home padrão) ===== */
@keyframes h888-icon-float{0%,100%{transform:translateY(0)}50%{transform:translateY(-4px)}}
@keyframes h888-icon-pulse-glow{0%,100%{box-shadow:0 0 0 0 color-mix(in srgb,var(--gold) 35%,transparent)}50%{box-shadow:0 0 0 8px color-mix(in srgb,var(--gold) 0%,transparent)}}
.badge-animated svg{animation:h888-icon-float 2.6s ease-in-out infinite}
.home-quick-card .quick-icon{animation:h888-icon-float 3.2s ease-in-out infinite}
.home-quick-card:nth-child(2) .quick-icon{animation-delay:.2s}
.home-quick-card:nth-child(3) .quick-icon{animation-delay:.4s}
.home-quick-card:nth-child(4) .quick-icon{animation-delay:.6s}
.home-quick-card:nth-child(5) .quick-icon{animation-delay:.8s}

.home-promo-row{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:18px 0}
.home-promo-card{display:flex !important;align-items:center;gap:12px;padding:14px;border-radius:16px;border:1px solid color-mix(in srgb,var(--gold) 28%,var(--border));background:linear-gradient(135deg,color-mix(in srgb,var(--gold) 14%,var(--bg-panel)),var(--bg-panel) 70%)}
.home-promo-referral{background:linear-gradient(135deg,color-mix(in srgb,var(--red) 32%,var(--bg-panel)),var(--bg-panel) 70%);border-color:color-mix(in srgb,var(--red) 40%,var(--border))}
.home-promo-icon{font-size:26px;flex:0 0 auto;animation:h888-icon-float 3s ease-in-out infinite}
.home-promo-card strong{display:block;font-size:13.5px;color:#fff}
.home-promo-card small{display:block;font-size:10.5px;color:var(--text-muted);margin-top:2px;line-height:1.3}
@media (max-width:480px){.home-promo-row{grid-template-columns:1fr}}

.provider-filter-row{display:flex;gap:10px;overflow-x:auto;scrollbar-width:none;padding:2px 1px 14px}
.provider-filter-row::-webkit-scrollbar{display:none}
.provider-filter-pill{flex:0 0 auto;display:flex !important;flex-direction:column;align-items:center;gap:4px;padding:10px 14px;border-radius:14px;background:var(--bg-panel);border:1px solid var(--border);min-width:72px;text-align:center}
.provider-filter-pill-active{border-color:var(--gold);background:linear-gradient(135deg,color-mix(in srgb,var(--gold) 20%,var(--bg-panel)),var(--bg-panel))}
.provider-filter-icon{width:32px;height:32px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:11px;font-weight:900;background:linear-gradient(145deg,color-mix(in srgb,var(--gold) 22%,var(--bg-panel)),var(--bg-panel));border:1px solid color-mix(in srgb,var(--gold) 30%,var(--border));color:var(--gold-light);animation:h888-icon-pulse-glow 2.4s ease-in-out infinite}
.provider-filter-pill strong{font-size:10.5px;color:#fff;text-transform:capitalize}
.provider-filter-pill small{font-size:9px;color:var(--text-muted)}
