/*
 * RetroBet — feito por Jcscripts
 * Suporte / WhatsApp: (45) 99905-7184 — https://wa.me/5545999057184
 * Não remova os créditos.
 */
/* ============================================================
   RetroBet — app.css v1.0.1 (cores vêm de /theme.php, do banco)
   Regras de estabilidade: nada de animação de entrada com
   deslocamento, espaço das imagens reservado, hover só em mouse,
   inputs 16px (sem zoom do iOS), sem highlight de toque.
   ============================================================ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; overflow-x: clip; scrollbar-gutter: stable; scroll-behavior: smooth; }
html.modal-open { overflow: hidden; }
body {
    font-family: var(--font); font-size: 15px; line-height: 1.45;
    background: var(--bg); color: var(--text);
    min-height: 100vh; min-height: 100dvh; overflow-x: clip;
    padding-bottom: calc(72px + env(safe-area-inset-bottom));
    -webkit-font-smoothing: antialiased; font-variant-numeric: tabular-nums;
}
body::before {
    content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none;
    background:
        radial-gradient(900px 420px at 85% -8%, color-mix(in srgb, var(--primary) 20%, transparent), transparent 62%),
        radial-gradient(700px 380px at -10% 8%, color-mix(in srgb, var(--secondary) 12%, transparent), transparent 58%);
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; color: inherit; touch-action: manipulation; }
a, button, input, select { outline: none; }
:focus-visible { outline: 2px solid var(--secondary); outline-offset: 2px; }
[hidden] { display: none !important; }
.ico { flex-shrink: 0; vertical-align: -0.2em; }
.container { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }
.center { text-align: center; }
@media (max-width: 560px) { .hide-xs { display: none !important; } .container { padding: 0 12px; } }

/* ── Faixa de conta demo ─────────────────────────────── */
.demo-strip {
    background: repeating-linear-gradient(135deg, #b45309, #b45309 14px, #92400e 14px, #92400e 28px);
    color: #fff; font-size: 11px; font-weight: 800; letter-spacing: 1.2px;
    text-align: center; padding: 6px 10px; text-transform: uppercase;
}
.demo-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #fff; margin-right: 8px; animation: blink 1.4s infinite; }

/* ── Topbar ──────────────────────────────────────────── */
.topbar { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 96%, var(--text)); border-bottom: 1px solid color-mix(in srgb, var(--text) 8%, transparent); }
.topbar-inner { display: flex; align-items: center; gap: 14px; height: 60px; }
.brand { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 19px; min-width: 0; }
.brand img { height: 34px; width: auto; max-width: 150px; object-fit: contain; }
.brand-mark { color: var(--primary); display: grid; }
.brand-text { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topnav { display: flex; gap: 2px; margin-left: 6px; }
.topnav a { padding: 8px 12px; border-radius: 10px; color: var(--muted); font-weight: 600; font-size: 14px; }
.topnav a.on { color: var(--text); background: color-mix(in srgb, var(--text) 7%, transparent); }
@media (max-width: 820px) { .topnav { display: none; } }
.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.balance-pill { --bp-c: var(--muted); display: flex; align-items: center; gap: 9px; background: var(--surface); border: 1px solid color-mix(in srgb, var(--text) 10%, transparent); padding: 5px 12px 5px 6px; border-radius: 12px; line-height: 1.15; min-width: 92px; transition: border-color .3s, box-shadow .3s; }
.balance-pill.bp-up { --bp-c: var(--success); }
.balance-pill.bp-down { --bp-c: var(--danger, #ef4444); }
.bp-ico { width: 30px; height: 30px; flex: none; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--secondary) 16%, transparent); color: var(--secondary); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--secondary) 30%, transparent); }
.bp-ico svg { width: 20px; height: 20px; }
.bp-ico text { fill: currentColor; font-size: 10.5px; font-weight: 800; font-family: inherit; letter-spacing: -.3px; }
.bp-main { display: flex; flex-direction: column; align-items: flex-end; min-width: 0; }
.bp-top { display: flex; align-items: center; gap: 6px; }
.bp-label { font-size: 9px; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; }
.bp-delta { display: inline-flex; align-items: center; gap: 2px; font-size: 9.5px; font-weight: 800; color: var(--bp-c); font-variant-numeric: tabular-nums; }
.bp-delta svg { width: 7px; height: 7px; fill: currentColor; transition: transform .3s; }
.bp-down .bp-delta svg { transform: rotate(180deg); }
.bp-flat .bp-delta { display: none; }
.bp-value { font-weight: 800; font-size: 14px; color: var(--text); white-space: nowrap; font-variant-numeric: tabular-nums; transition: color .35s; }
.balance-pill.fx-up { border-color: color-mix(in srgb, var(--success) 60%, transparent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--success) 16%, transparent); }
.balance-pill.fx-up .bp-value { color: var(--success); }
.balance-pill.fx-down { border-color: color-mix(in srgb, var(--danger, #ef4444) 60%, transparent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--danger, #ef4444) 16%, transparent); }
.balance-pill.fx-down .bp-value { color: var(--danger, #ef4444); }
@media (max-width: 380px) { .bp-ico { display: none; } .balance-pill { padding-left: 12px; } .bp-value::before { content: 'R$ '; } }
.avatar { width: 38px; height: 38px; border-radius: 50%; background: linear-gradient(135deg, var(--primary), var(--secondary)); color: #fff; font-weight: 800; font-size: 15px; border: none; cursor: pointer; display: grid; place-items: center; }
.user-menu { position: relative; }
.dropdown { position: absolute; right: 0; top: calc(100% + 10px); width: 236px; background: var(--surface); border: 1px solid color-mix(in srgb, var(--text) 10%, transparent); border-radius: var(--radius); padding: 6px; display: none; box-shadow: 0 18px 50px rgba(0,0,0,.5); }
.dropdown.open { display: block; animation: fade .14s ease; }
.dd-head { padding: 10px 12px; border-bottom: 1px solid color-mix(in srgb, var(--text) 8%, transparent); margin-bottom: 6px; display: flex; flex-direction: column; min-width: 0; }
.dd-head strong, .dd-head small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dd-head small { color: var(--muted); }
.dropdown a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 8px; font-size: 14px; font-weight: 500; }
.dropdown a .ico { color: var(--muted); }
.dd-danger, .dd-danger .ico { color: var(--danger) !important; }

/* ── Botões ──────────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: none; cursor: pointer; font-weight: 700; border-radius: calc(var(--radius) - 3px); padding: 12px 20px; font-size: 15px; line-height: 1.2; user-select: none; white-space: nowrap; transition: filter .15s, background-color .15s, opacity .15s; }
.btn:active { filter: brightness(.9); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-sm { padding: 9px 14px; font-size: 13px; border-radius: 10px; }
.btn-lg { padding: 15px 24px; font-size: 16px; width: 100%; min-height: 52px; }
.btn-primary { background: linear-gradient(90deg, var(--primary), color-mix(in srgb, var(--primary) 55%, var(--secondary))); color: #fff; }
.btn-glow { box-shadow: 0 4px 20px color-mix(in srgb, var(--primary) 45%, transparent); }
.btn-ghost { background: color-mix(in srgb, var(--text) 8%, transparent); color: var(--text); }
.btn-outline { background: transparent; border: 1px solid color-mix(in srgb, var(--text) 22%, transparent); color: var(--text); }
.btn .spinner { width: 16px; height: 16px; border: 2px solid rgba(255,255,255,.35); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }

/* ── Cards / forms ───────────────────────────────────── */
.card { background: var(--surface); border: 1px solid color-mix(in srgb, var(--text) 8%, transparent); border-radius: var(--radius); padding: 20px; }
@media (max-width: 560px) { .card { padding: 16px; } }
.card h2 { font-size: 17px; margin-bottom: 14px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 6px; }
.input, select.input, textarea.input { width: 100%; min-width: 0; background: var(--surface2); color: var(--text); border: 1px solid color-mix(in srgb, var(--text) 12%, transparent); border-radius: 10px; padding: 12px 14px; font-size: 16px; font-family: inherit; min-height: 48px; appearance: none; -webkit-appearance: none; transition: border-color .15s; }
select.input { background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 18px) 21px, calc(100% - 13px) 21px; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 34px; }
.input:focus { border-color: var(--primary); }
.input:disabled { opacity: .7; }
.input-hint { font-size: 12px; color: var(--muted); margin-top: 5px; }
.form-error { color: var(--danger); font-size: 13px; min-height: 0; }
.form-error:empty { display: none; }

/* ── Auth ────────────────────────────────────────────── */
.auth-wrap { min-height: calc(100dvh - 220px); display: grid; place-items: center; padding: 24px 12px; }
.auth-card { width: 100%; max-width: 420px; }
.auth-card h1 { font-size: 23px; margin-bottom: 4px; }
.auth-card .sub { color: var(--muted); font-size: 14px; margin-bottom: 20px; }
.auth-alt { text-align: center; margin-top: 16px; font-size: 14px; color: var(--muted); }
.auth-alt a { color: var(--secondary); font-weight: 700; }
.big-ico { width: 84px; height: 84px; margin: 0 auto 12px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--text) 7%, transparent); color: var(--muted); }
.big-ico.ok { background: color-mix(in srgb, var(--success) 15%, transparent); color: var(--success); }

/* ── Hero / banners ──────────────────────────────────── */
.hero { margin: 14px 0 6px; }
.banner-slider { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--surface); }
/* Altura segue a proporção real da imagem (desktop e mobile) — nunca corta */
.banner-track { display: grid; }
.banner-slide { grid-area: 1 / 1; display: flex; align-items: center; opacity: 0; visibility: hidden; transition: opacity .6s ease, visibility .6s; }
.banner-slide.on { opacity: 1; visibility: visible; }
.banner-slide picture, .banner-slide a { display: block; width: 100%; }
.banner-slide img { display: block; width: 100%; height: auto; }
.banner-mid { display: grid; gap: 12px; margin: 18px 0 4px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.banner-mid-item { border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.banner-mid-item img { display: block; width: 100%; height: auto; }
.hero-fallback { border-radius: var(--radius); padding: clamp(22px, 5vw, 44px); background: linear-gradient(120deg, color-mix(in srgb, var(--primary) 42%, var(--bg)), color-mix(in srgb, var(--secondary) 22%, var(--bg))); border: 1px solid color-mix(in srgb, var(--text) 8%, transparent); }
.hero-fallback h1 { font-size: clamp(21px, 4.2vw, 38px); line-height: 1.15; max-width: 540px; }
.hero-fallback p { color: color-mix(in srgb, var(--text) 75%, transparent); margin: 10px 0 18px; max-width: 460px; font-size: clamp(13px, 2.4vw, 15px); }
.hero-fallback .btn { margin: 0 6px 6px 0; }

/* ── Live wins ───────────────────────────────────────── */
.livewins { overflow: hidden; margin: 14px 0 4px; height: 52px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); }
.livewins-track { display: flex; gap: 10px; width: max-content; animation: marquee 40s linear infinite; will-change: transform; }
.lw-chip { display: flex; align-items: center; gap: 10px; height: 52px; background: var(--surface); border: 1px solid color-mix(in srgb, var(--success) 22%, transparent); border-radius: 12px; padding: 0 14px 0 8px; white-space: nowrap; }
.lw-chip img { width: 34px; height: 34px; border-radius: 8px; object-fit: cover; }
.lw-name { font-size: 11px; color: var(--muted); }
.lw-win { font-size: 13px; font-weight: 800; color: var(--success); }

/* ── Lobby ───────────────────────────────────────────── */
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 22px 0 12px; }
.section-head h2 { font-size: 19px; display: flex; align-items: center; gap: 8px; }
.section-head h2 .ico { color: var(--primary); }
.link-more { color: var(--muted); font-size: 13px; display: inline-flex; align-items: center; gap: 2px; white-space: nowrap; }
.lobby-tools { display: flex; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; min-width: 0; }
.filter-chips { min-width: 0; max-width: 100%; }
.search { flex: 1 1 200px; min-width: 0; max-width: 100%; display: flex; align-items: center; gap: 8px; background: var(--surface); border: 1px solid color-mix(in srgb, var(--text) 10%, transparent); border-radius: 12px; padding: 0 12px; height: 44px; color: var(--muted); }
.search input { flex: 1; min-width: 0; background: none; border: none; color: var(--text); font-size: 16px; font-family: inherit; }
.search input::-webkit-search-cancel-button { display: none; }
.filter-chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.filter-chips::-webkit-scrollbar { display: none; }
.fchip { display: inline-flex; align-items: center; gap: 5px; height: 44px; padding: 0 14px; border-radius: 12px; border: 1px solid color-mix(in srgb, var(--text) 10%, transparent); background: var(--surface); color: var(--muted); font-weight: 700; font-size: 13px; cursor: pointer; white-space: nowrap; }
.fchip.on { background: color-mix(in srgb, var(--primary) 24%, var(--surface)); border-color: var(--primary); color: var(--text); }

.games-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 1080px) { .games-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
@media (max-width: 860px)  { .games-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; } }
@media (max-width: 620px)  { .games-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; } }
@media (max-width: 330px)  { .games-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.game-card { display: flex; flex-direction: column; min-width: 0; text-align: left; cursor: pointer; background: var(--surface); border: 1px solid color-mix(in srgb, var(--text) 8%, transparent); border-radius: var(--radius); overflow: hidden; padding: 0; transition: border-color .15s, box-shadow .2s; }
.gc-cover { position: relative; display: block; aspect-ratio: 1 / 1; background: var(--surface2); overflow: hidden; }
.gc-cover img { width: 100%; height: 100%; object-fit: cover; }
.gc-badge { position: absolute; top: 7px; left: 7px; display: inline-flex; align-items: center; gap: 3px; font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: .4px; padding: 3px 7px; border-radius: 20px; color: #fff; }
.badge-hot { background: linear-gradient(90deg, #f59e0b, #ef4444); }
.badge-new { background: linear-gradient(90deg, var(--secondary), var(--primary)); }
.gc-x { position: absolute; top: 7px; right: 7px; font-size: 11px; font-weight: 800; padding: 3px 7px; border-radius: 20px; background: rgba(5,8,18,.78); color: var(--secondary); }
.gc-play { position: absolute; inset: 0; display: grid; place-items: center; opacity: 0; background: rgba(5,8,18,.45); transition: opacity .18s; }
.gc-play span { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, var(--primary), var(--secondary)); color: #fff; padding-left: 3px; }
.gc-info { display: flex; flex-direction: column; gap: 6px; padding: 9px 10px 10px; min-width: 0; align-items: flex-start; }
.gc-name { font-weight: 700; font-size: 13px; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
@media (max-width: 620px) { .gc-info { padding: 7px 8px 8px; gap: 5px; } .gc-name { font-size: 12px; } .gc-x { font-size: 10px; } }
@media (hover: hover) and (pointer: fine) {
    .game-card:hover { border-color: var(--primary); box-shadow: 0 10px 30px color-mix(in srgb, var(--primary) 30%, transparent); }
    .game-card:hover .gc-play { opacity: 1; }
    .btn-primary:hover, .btn-ghost:hover { filter: brightness(1.12); }
    .topnav a:hover, .dropdown a:hover { color: var(--text); background: color-mix(in srgb, var(--text) 7%, transparent); }
    .balance-pill:hover { border-color: var(--primary); }
}
.game-card:active { border-color: var(--primary); }
.chip { display: inline-block; font-size: 9px; font-weight: 800; letter-spacing: .4px; padding: 3px 8px; border-radius: 20px; text-transform: uppercase; white-space: nowrap; }
.chip-meta { background: color-mix(in srgb, var(--secondary) 20%, transparent); color: var(--secondary); }
.chip-easy { background: rgba(34,197,94,.18); color: #4ade80; }
.chip-medium { background: rgba(167,139,250,.2); color: #c4b5fd; }
.chip-hard { background: rgba(239,68,68,.2); color: #f87171; }
.chip-default { background: color-mix(in srgb, var(--text) 12%, transparent); color: var(--muted); }
.trust-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 26px; }
@media (max-width: 700px) { .trust-row { grid-template-columns: 1fr; gap: 8px; } }
.trust { display: flex; gap: 12px; align-items: center; background: var(--surface); border: 1px solid color-mix(in srgb, var(--text) 8%, transparent); border-radius: var(--radius); padding: 14px; }
.trust .ico { color: var(--secondary); }
.trust b { display: block; font-size: 14px; }
.trust span { font-size: 12px; color: var(--muted); }

/* ── Modal de aposta ─────────────────────────────────── */
.modal-overlay { position: fixed; inset: 0; z-index: 90; display: none; align-items: flex-end; justify-content: center; background: rgba(2,4,12,.78); }
.modal-overlay.open { display: flex; animation: fade .16s ease; }
.modal { background: var(--surface); width: 100%; max-width: 460px; border-radius: var(--radius) var(--radius) 0 0; padding: 18px 16px calc(18px + env(safe-area-inset-bottom)); border: 1px solid color-mix(in srgb, var(--text) 10%, transparent); border-bottom: none; max-height: 94dvh; overflow-y: auto; overscroll-behavior: contain; }
@media (min-width: 640px) { .modal-overlay { align-items: center; padding: 20px; } .modal { border-radius: var(--radius); border-bottom: 1px solid color-mix(in srgb, var(--text) 10%, transparent); padding: 22px; } }
.modal-head { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; }
.modal-head img { width: 56px; height: 56px; border-radius: 12px; object-fit: cover; flex-shrink: 0; background: var(--surface2); }
.mh-txt { min-width: 0; flex: 1; }
.modal-head h3 { font-size: 17px; line-height: 1.2; }
.modal-head small { font-size: 12px; display: block; }
.modal-close { background: var(--surface2); border: none; color: var(--muted); width: 36px; height: 36px; border-radius: 50%; cursor: pointer; display: grid; place-items: center; flex-shrink: 0; }
.rules-box { background: var(--surface2); border-radius: 12px; padding: 12px 14px; font-size: 13px; color: var(--muted); margin-bottom: 14px; display: grid; gap: 8px; border: 1px dashed color-mix(in srgb, var(--secondary) 35%, transparent); }
.rules-box b { color: var(--text); }
.rules-box p { font-size: 12px; line-height: 1.5; }
.rb-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.rb-row > span:first-child { display: inline-flex; align-items: center; gap: 6px; }
.bet-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 12px; }
.bet-opt { background: var(--surface2); border: 1px solid color-mix(in srgb, var(--text) 12%, transparent); color: var(--text); border-radius: 10px; padding: 0 4px; height: 44px; font-weight: 700; cursor: pointer; font-size: 13px; white-space: nowrap; }
.bet-opt.on { border-color: var(--primary); background: color-mix(in srgb, var(--primary) 22%, var(--surface2)); }
.win-preview { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin: 12px 0; background: color-mix(in srgb, var(--success) 10%, var(--surface2)); border: 1px solid color-mix(in srgb, var(--success) 30%, transparent); border-radius: 12px; padding: 12px 14px; font-size: 13px; }
.win-preview strong { color: var(--success); font-size: 19px; white-space: nowrap; }
/* Personalização (somente conta demo) */
.demo-custom { background: var(--surface2); border: 1px solid color-mix(in srgb, var(--primary) 35%, transparent); border-radius: 12px; padding: 12px 14px; margin-bottom: 14px; display: grid; gap: 12px; }
.dc-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; }
.dc-head > span:first-child { display: inline-flex; align-items: center; gap: 6px; }
.dc-head .ico { color: var(--primary); }
.dc-tag { font-size: 10px; font-weight: 800; letter-spacing: .6px; text-transform: uppercase; padding: 3px 8px; border-radius: 20px; background: color-mix(in srgb, var(--primary) 22%, transparent); color: var(--text); }
.dc-block { display: grid; gap: 8px; }
.dc-label { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--muted); }
.dc-label b { color: var(--secondary); font-size: 15px; }
.dc-seg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.dc-seg.five { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.dc-opt { background: var(--surface); border: 1px solid color-mix(in srgb, var(--text) 12%, transparent); color: var(--text); border-radius: 9px; min-height: 38px; padding: 4px 2px; font-size: 12px; font-weight: 700; cursor: pointer; line-height: 1.15; }
.dc-seg.five .dc-opt { font-size: 11px; }
.dc-opt.on { border-color: var(--primary); background: color-mix(in srgb, var(--primary) 22%, var(--surface)); }
.dc-range { width: 100%; accent-color: var(--primary); height: 28px; margin: 0; cursor: pointer; }
.dc-minmax { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); margin-top: -4px; }

/* ── Páginas internas ────────────────────────────────── */
.page { min-height: 60vh; }
.page-head { margin: 20px 0 16px; }
.page-head h1 { font-size: clamp(19px, 4.5vw, 24px); display: flex; align-items: center; gap: 8px; }
.page-head h1 .ico { color: var(--primary); }
.page-head p { color: var(--muted); margin-top: 4px; font-size: 14px; }
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; margin-bottom: 16px; }
@media (max-width: 420px) { .stat-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.stat { background: var(--surface); border-radius: var(--radius); padding: 14px; border: 1px solid color-mix(in srgb, var(--text) 8%, transparent); min-width: 0; }
.st-label { font-size: 10px; text-transform: uppercase; letter-spacing: .8px; color: var(--muted); }
.st-value { font-size: clamp(16px, 4.6vw, 21px); font-weight: 800; margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st-primary { color: var(--secondary); }
.st-green { color: var(--success); }
.list { display: grid; gap: 8px; }
.list-item { display: flex; align-items: center; gap: 12px; background: var(--surface); border: 1px solid color-mix(in srgb, var(--text) 7%, transparent); border-radius: 12px; padding: 11px 12px; min-width: 0; }
.list-item > img { flex-shrink: 0; }
.li-ico { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: var(--surface2); color: var(--muted); flex-shrink: 0; }
.li-main { flex: 1; min-width: 0; }
.li-title { font-weight: 600; font-size: 14px; }
.li-sub { font-size: 12px; color: var(--muted); overflow-wrap: anywhere; }
.li-amount { font-weight: 800; font-size: 14px; white-space: nowrap; }
.amount-pos { color: var(--success); }
.amount-neg { color: var(--danger); }
.status-tag { display: inline-block; font-size: 9px; font-weight: 800; text-transform: uppercase; padding: 3px 7px; border-radius: 20px; letter-spacing: .4px; white-space: nowrap; vertical-align: middle; }
.tag-pending { background: color-mix(in srgb, var(--warning) 18%, transparent); color: var(--warning); }
.tag-paid, .tag-won, .tag-active { background: color-mix(in srgb, var(--success) 18%, transparent); color: var(--success); }
.tag-failed, .tag-rejected, .tag-lost, .tag-blocked { background: color-mix(in srgb, var(--danger) 18%, transparent); color: var(--danger); }
.tag-processing, .tag-open { background: color-mix(in srgb, var(--secondary) 18%, transparent); color: var(--secondary); }
.empty { text-align: center; padding: 40px 16px; color: var(--muted); }

/* ── PIX / QR ────────────────────────────────────────── */
.qr-box { display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 14px; }
#dep-qr { width: 222px; height: 222px; background: #fff; border-radius: 14px; padding: 11px; }
#dep-qr img { width: 200px; height: 200px; image-rendering: pixelated; }
.copy-area { display: flex; gap: 8px; width: 100%; background: var(--surface2); border-radius: 10px; padding: 6px 6px 6px 12px; align-items: center; border: 1px solid color-mix(in srgb, var(--text) 10%, transparent); }
.copy-area input { flex: 1; background: none; border: none; color: var(--muted); font-size: 16px; min-width: 0; font-family: inherit; }
.waiting-pill { display: inline-flex; align-items: center; gap: 8px; color: var(--warning); font-weight: 700; font-size: 14px; }
.waiting-pill .spinner { width: 14px; height: 14px; border: 2px solid color-mix(in srgb, var(--warning) 35%, transparent); border-top-color: var(--warning); border-radius: 50%; animation: spin .8s linear infinite; }

/* ── Indique ─────────────────────────────────────────── */
.ref-link-box { display: flex; gap: 8px; }
.ref-link-box .input { flex: 1; }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 18px 0; }
@media (max-width: 640px) { .steps { grid-template-columns: 1fr; } }
.step-card { background: var(--surface); border-radius: var(--radius); padding: 16px; border: 1px solid color-mix(in srgb, var(--text) 8%, transparent); }
.step-num { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; background: linear-gradient(135deg, var(--primary), var(--secondary)); color: #fff; margin-bottom: 10px; }

/* ── Footer / bottomnav ──────────────────────────────── */
.footer { border-top: 1px solid color-mix(in srgb, var(--text) 8%, transparent); margin-top: 40px; padding: 22px 0; }
.footer-inner { display: flex; gap: 16px; justify-content: space-between; align-items: center; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.footer-inner strong { color: var(--text); }
.footer-links { display: flex; align-items: center; gap: 16px; }
.age-badge { border: 2px solid var(--danger); color: var(--danger); border-radius: 50%; width: 34px; height: 34px; display: grid; place-items: center; font-weight: 800; font-size: 11px; flex-shrink: 0; }
.bottomnav { position: fixed; bottom: 0; left: 0; right: 0; z-index: 55; height: calc(64px + env(safe-area-inset-bottom)); display: grid; grid-template-columns: repeat(5, 1fr); align-items: start; padding: 8px 4px env(safe-area-inset-bottom); background: var(--surface); border-top: 1px solid color-mix(in srgb, var(--text) 9%, transparent); }
@media (min-width: 821px) { .bottomnav { display: none; } body { padding-bottom: 0; } }
.bottomnav a { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 10px; color: var(--muted); font-weight: 600; min-width: 0; }
.bottomnav a.on { color: var(--secondary); }
.bn-ico { height: 24px; display: grid; place-items: center; }
.bn-center .bn-ico { width: 46px; height: 46px; border-radius: 50%; margin-top: -24px; color: #fff; background: linear-gradient(135deg, var(--primary), var(--secondary)); box-shadow: 0 6px 18px color-mix(in srgb, var(--primary) 50%, transparent); border: 3px solid var(--surface); }
.bn-center { color: var(--text) !important; }

/* ── Toasts (embaixo, sem cobrir o topo) ─────────────── */
.toasts { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(80px + env(safe-area-inset-bottom)); z-index: 200; display: grid; gap: 8px; width: min(92vw, 400px); pointer-events: none; }
@media (min-width: 821px) { .toasts { bottom: 24px; } }
.toast { background: var(--surface2); border-radius: 12px; padding: 12px 14px; font-size: 14px; font-weight: 600; border: 1px solid color-mix(in srgb, var(--text) 14%, transparent); border-left: 4px solid var(--secondary); box-shadow: 0 10px 34px rgba(0,0,0,.5); animation: fade .2s ease; }
.toast.success { border-left-color: var(--success); }
.toast.error { border-left-color: var(--danger); }
.toast.out { opacity: 0; transition: opacity .25s; }

/* ── Animações (só opacidade/rotação: nada que mexa no layout) ── */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes blink { 50% { opacity: .35; } }
@keyframes marquee { from { transform: translate3d(0,0,0); } to { transform: translate3d(-50%,0,0); } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } .livewins-track { animation: none; } }

/* ── Micro roleta da dificuldade ─────────────────────── */
.spin-overlay { position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; background: rgba(2,4,12,.82); animation: fade .15s ease; }
.spin-box { width: min(86vw, 300px); text-align: center; }
.spin-title { font-size: 12px; font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.spin-window { position: relative; height: 156px; overflow: hidden; border-radius: var(--radius); background: var(--surface); border: 1px solid color-mix(in srgb, var(--text) 12%, transparent);
  -webkit-mask-image: linear-gradient(transparent, #000 30%, #000 70%, transparent); mask-image: linear-gradient(transparent, #000 30%, #000 70%, transparent); }
.spin-reel { will-change: transform; }
.spin-item { height: 52px; display: grid; place-items: center; font-size: 22px; font-weight: 800; letter-spacing: .5px; text-transform: uppercase; color: color-mix(in srgb, var(--text) 55%, transparent); }
.spin-marker { position: absolute; left: 10px; right: 10px; top: 52px; height: 52px; border-radius: calc(var(--radius) - 4px); border: 2px solid var(--primary); box-shadow: 0 0 24px color-mix(in srgb, var(--primary) 45%, transparent), inset 0 0 18px color-mix(in srgb, var(--primary) 20%, transparent); pointer-events: none; transition: border-color .2s, box-shadow .2s; }
.spin-overlay.done .spin-marker { border-color: var(--success); box-shadow: 0 0 30px color-mix(in srgb, var(--success) 55%, transparent); }
.spin-item.hit { color: #fff; animation: pop .35s ease; }
.spin-item.hit.s-easy { color: #4ade80; } .spin-item.hit.s-medium { color: #c4b5fd; } .spin-item.hit.s-hard { color: #f87171; }
.spin-sub { margin-top: 12px; font-size: 13px; color: var(--muted); font-weight: 600; }
@keyframes pop { 0% { transform: scale(1); } 50% { transform: scale(1.15); } 100% { transform: scale(1); } }

/* ── Perfil ──────────────────────────────────────────── */
.prof-wrap { max-width: 640px; padding-top: 18px; display: grid; gap: 14px; }
.prof-hero { display: flex; gap: 16px; align-items: center; padding: 20px; border-radius: var(--radius);
  background: linear-gradient(120deg, color-mix(in srgb, var(--primary) 34%, var(--surface)), color-mix(in srgb, var(--secondary) 16%, var(--surface)));
  border: 1px solid color-mix(in srgb, var(--text) 9%, transparent); }
.prof-av { width: 64px; height: 64px; border-radius: 50%; flex: none; display: grid; place-items: center; font-weight: 800; font-size: 22px; color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--secondary)); box-shadow: 0 0 0 4px color-mix(in srgb, var(--bg) 60%, transparent); }
.prof-id { min-width: 0; }
.prof-id h1 { font-size: clamp(18px, 4.6vw, 22px); line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.prof-id p { color: color-mix(in srgb, var(--text) 70%, transparent); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.prof-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.ptag { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 700; padding: 4px 9px; border-radius: 20px; background: color-mix(in srgb, var(--bg) 45%, transparent); color: var(--text); }
.prof-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); background: var(--surface); border: 1px solid color-mix(in srgb, var(--text) 8%, transparent); border-radius: var(--radius); }
.prof-stats > div { padding: 14px 10px; text-align: center; min-width: 0; }
.prof-stats > div + div { border-left: 1px solid color-mix(in srgb, var(--text) 8%, transparent); }
.prof-stats span { display: block; font-size: 10px; text-transform: uppercase; letter-spacing: .8px; color: var(--muted); }
.prof-stats b { display: block; font-size: clamp(15px, 4.2vw, 19px); margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.prof-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
@media (max-width: 420px) { .prof-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.prof-grid a { display: flex; flex-direction: column; align-items: center; gap: 7px; padding: 14px 6px; border-radius: var(--radius); background: var(--surface);
  border: 1px solid color-mix(in srgb, var(--text) 8%, transparent); font-size: 12px; font-weight: 600; color: var(--muted); }
.pg-ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; color: var(--secondary); background: color-mix(in srgb, var(--secondary) 12%, transparent); }
.prof-grid a:active { border-color: var(--primary); }
@media (hover: hover) and (pointer: fine) { .prof-grid a:hover { border-color: var(--primary); color: var(--text); } }
.prof-card { display: grid; gap: 0; }
.pc-head { display: flex; gap: 12px; align-items: center; margin-bottom: 16px; }
.pc-head h2 { margin: 0; font-size: 16px; }
.pc-head p { font-size: 12px; color: var(--muted); }
.pc-ic { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; flex: none; color: var(--primary); background: color-mix(in srgb, var(--primary) 14%, transparent); }
.pc-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 520px) { .pc-row { grid-template-columns: 1fr; gap: 0; } }
.input.locked { display: flex; align-items: center; gap: 8px; color: var(--muted); background: color-mix(in srgb, var(--surface2) 60%, transparent); }
.input.locked .ico { color: var(--success); }
.pc-btn { margin-top: 6px; width: 100%; min-height: 48px; }
.pw-meter { height: 4px; border-radius: 4px; background: color-mix(in srgb, var(--text) 10%, transparent); overflow: hidden; margin: -4px 0 10px; }
.pw-meter i { display: block; height: 100%; width: 0; transition: width .2s, background-color .2s; }
.pw-meter i.w { background: var(--danger); } .pw-meter i.m { background: var(--warning); } .pw-meter i.s { background: var(--success); }
.prof-card .form-error { margin-bottom: 6px; }
.prof-out { margin-bottom: 8px; }

/* Bônus em dobro na recarga */
.dep-bonus { display: flex; align-items: center; gap: 12px; padding: 12px 14px; margin-bottom: 14px; border-radius: 12px; background: linear-gradient(135deg, color-mix(in srgb, var(--success) 18%, var(--surface)), var(--surface)); border: 1px solid color-mix(in srgb, var(--success) 45%, transparent); }
.db-ico { width: 42px; height: 42px; flex: none; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--success) 22%, transparent); color: var(--success); }
.db-txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.db-txt b { font-size: 14px; }
.db-txt span { font-size: 12.5px; color: var(--muted); }
.db-txt strong { color: var(--text); }
.db-txt .db-hl { color: var(--success); }
.db-tag { flex: none; font-weight: 900; font-size: 15px; letter-spacing: .5px; color: var(--bg); background: var(--success); padding: 6px 9px; border-radius: 9px; }
.db-pay { display: inline-flex; align-items: center; justify-content: center; gap: 6px; max-width: 100%; box-sizing: border-box; text-align: center; line-height: 1.3; font-size: 13px; font-weight: 700; color: var(--success); background: color-mix(in srgb, var(--success) 12%, transparent); border: 1px solid color-mix(in srgb, var(--success) 35%, transparent); padding: 7px 14px; border-radius: 999px; }
.db-pay svg { flex: none; }
.qr-box > .db-pay { justify-self: stretch; min-width: 0; border-radius: 12px; }
