/* ===== Tema (mesma paleta do projeto PNB) ===== */
:root {
  --bg: #000000;
  --bg-2: #03070f;
  --surface: #050c19;
  --surface-2: #081530;
  --surface-3: var(--secondary);
  --line: #0b1f45;
  --line-2: var(--secondary);
  --text: #d9dfe5;
  --text-strong: #f4f9ff;
  --muted: #6a839d;
  --primary: #0066ff;
  --primary-2: #1983ff;
  --primary-dark: #0047b3;
  --primary-3: #0052d6;
  /* as mesmas cores em "R G B", para as transparências (o admin → Personalização troca estas variáveis) */
  --p-rgb: 0 102 255;
  --p2-rgb: 25 131 255;
  --s-rgb: 0 41 116;
  --secondary: #002974;
  --input: rgb(var(--s-rgb) / .3);
  --green: #22c55e;
  --red: #f1003b;
  --amber: #f5b301;
  --violet: #7c5cff;
  --grad: linear-gradient(180deg, var(--primary-2) 0%, var(--primary) 100%);
  --topbar: linear-gradient(90deg, #0f9d58 0%, #0a7f8f 45%, var(--primary) 100%);
  --radius: 12px;
  --shadow: 0 12px 34px rgba(0, 0, 0, .55);
  --topbar-h: 43px;
  --header-h: 64px;
  --side-w: 240px;
  /* compatibilidade com nomes antigos */
  --cyan: var(--primary-2);
  --cyan-2: var(--primary);
  --blue: var(--primary);
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); }
body { min-height: 100vh; font-size: 14px; line-height: 1.45; -webkit-font-smoothing: antialiased; }
body.no-topbar { --topbar-h: 0px; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }
img { max-width: 100%; display: block; }
.hidden { display: none !important; }
.display { font-family: 'Bebas Neue', 'Inter', sans-serif; letter-spacing: .5px; font-weight: 400; }
::-webkit-scrollbar { height: 8px; width: 8px; }
::-webkit-scrollbar-thumb { background: var(--secondary); border-radius: 8px; }
::-webkit-scrollbar-track { background: transparent; }

/* ===== Barra promocional do topo ===== */
.topbar { position: fixed; top: 0; left: 0; right: 0; height: var(--topbar-h); z-index: 60; background: var(--topbar); display: flex; align-items: center; justify-content: center; gap: 12px; padding: 0 48px; color: #fff; font-weight: 800; font-size: 14px; text-transform: uppercase; letter-spacing: .2px; }
.topbar .bell { opacity: .9; }
.topbar .cta { background: #fff; color: #0b1730; font-weight: 700; text-transform: none; font-size: 13px; padding: 5px 12px; border-radius: 8px; white-space: nowrap; }
.topbar .x { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: #fff; opacity: .8; font-size: 18px; }
.topbar .txt { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ===== Header ===== */
.header { position: fixed; top: var(--topbar-h); left: 0; right: 0; height: var(--header-h); z-index: 50; background: var(--bg); border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 16px; padding: 0 16px; }
.header-left { width: calc(var(--side-w) - 16px); display: flex; align-items: center; justify-content: space-between; flex-shrink: 0; }
.logo { display: inline-flex; flex-direction: column; line-height: 1; }
.logo .logo-img { height: 32px; width: auto; display: block; }
.modal .modal-logo .logo-img { height: 46px; }
.footer .logo .logo-img { height: 40px; }
.logo b { font-family: 'Inter', sans-serif; font-weight: 900; font-style: italic; font-size: 24px; letter-spacing: -1px; color: #fff; }
.logo i { display: block; height: 4px; margin-top: 2px; border-radius: 4px; background: var(--grad); width: 86%; transform: skewX(-20deg); }
.icon-btn { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; color: var(--muted); }
.icon-btn:hover { background: var(--surface-2); color: var(--text); }
.mode-tabs { display: flex; gap: 4px; background: var(--surface); border: 1px solid var(--line); padding: 4px; border-radius: 12px; }
.mode-tabs a { height: 32px; padding: 0 14px; display: inline-flex; align-items: center; gap: 8px; border-radius: 9px; font-size: 13px; font-weight: 600; color: var(--muted); }
.mode-tabs a.active { background: var(--primary); color: var(--text-strong); }
.mode-tabs a:not(.active):hover { color: var(--text); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.balance-chip { display: flex; align-items: center; gap: 10px; background: var(--input); border: 1px solid var(--line-2); border-radius: 12px; padding: 4px 4px 4px 12px; }
.balance-chip .val { font-weight: 800; font-variant-numeric: tabular-nums; color: var(--text-strong); }
.balance-chip small { color: var(--muted); display: block; font-size: 10px; line-height: 1; }
.avatar { width: 40px; height: 40px; border-radius: 12px; background: var(--secondary); display: grid; place-items: center; font-weight: 800; color: var(--text-strong); }

/* ===== Botões ===== */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 18px; border-radius: 12px; font-weight: 700; font-size: 14px; transition: background .15s, transform .15s, border-color .15s; white-space: nowrap; }
.btn-primary { background: var(--primary); color: var(--text-strong); box-shadow: 0 6px 18px rgb(var(--p-rgb) / .28); }
.btn-primary:hover { background: var(--primary-2); }
.btn-ghost { background: var(--input); border: 1px solid rgba(255, 255, 255, .08); color: var(--text); }
.btn-ghost:hover { border-color: var(--primary); }
.btn-danger { background: var(--red); color: #fff; }
.btn-sm { height: 32px; padding: 0 12px; font-size: 13px; border-radius: 10px; }
.btn-block { width: 100%; }
.btn-lg { height: 52px; font-size: 15px; text-transform: uppercase; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

/* ===== Estrutura ===== */
.layout { padding-top: calc(var(--topbar-h) + var(--header-h)); }
.sidebar { position: fixed; top: calc(var(--topbar-h) + var(--header-h)); bottom: 0; left: 0; width: var(--side-w); background: var(--bg); border-right: 1px solid var(--line); overflow-y: auto; padding: 10px 8px 24px; z-index: 40; scrollbar-width: thin; }
.content { margin-left: var(--side-w); min-width: 0; }
body.side-collapsed .sidebar { transform: translateX(-100%); }
body.side-collapsed .content { margin-left: 0; }
.main { max-width: 1400px; margin: 0 auto; padding: 18px 20px 60px; }
.side-backdrop { display: none; }

/* Menu lateral */
.side-promos { display: grid; gap: 2px; margin-bottom: 6px; }
.side-img { display: block; border-radius: 10px; overflow: hidden; transition: transform .15s; }
.side-img:hover { transform: translateY(-1px); }
.side-img img { width: 100%; display: block; }
.side-mini { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 2px; }
.side-mini a { display: block; border-radius: 10px; overflow: hidden; }
.side-mini a img { width: 100%; display: block; }
.side-link.only-mobile { display: none; }
.side-title { font-size: 10px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: rgba(217, 223, 229, .7); padding: 16px 12px 6px; }
.side-link { display: flex; align-items: center; gap: 12px; height: 36px; padding: 0 12px; border-radius: 12px; color: var(--text); font-size: 14px; width: 100%; text-align: left; transition: background .2s, color .2s; }
.side-link:hover { background: linear-gradient(90deg, rgb(var(--p2-rgb) / .2), rgb(var(--p2-rgb) / .05) 60%, transparent); color: var(--text-strong); }
.side-link.active { background: var(--primary-2); color: var(--text-strong); font-weight: 500; }
.side-link .i { width: 16px; height: 16px; flex-shrink: 0; display: inline-grid; place-items: center; font-size: 14px; line-height: 1; color: var(--text); }
.side-link.active .i { color: var(--text-strong); }
.side-link img, .side-link .thumb { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; flex-shrink: 0; margin: 0 -3px; }
.side-link .lbl { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ===== Categorias (círculos) ===== */
.cats { display: flex; gap: 14px; overflow-x: auto; padding: 4px 2px 8px; scrollbar-width: none; justify-content: center; }
.cats::-webkit-scrollbar { display: none; }
.cat { display: flex; flex-direction: column; align-items: center; gap: 6px; flex-shrink: 0; width: 70px; font-size: 12px; color: var(--text); }
.cat .ring { width: 62px; height: 62px; border-radius: 50%; padding: 2px; background: linear-gradient(160deg, var(--primary-2), #0a2150 60%, var(--primary)); transition: transform .15s; }
.cat .ring span { width: 100%; height: 100%; border-radius: 50%; display: grid; place-items: center; font-size: 28px; background: radial-gradient(circle at 50% 35%, #0d2a66, #030914 75%); overflow: hidden; }
.cat .ring span img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.cat:hover .ring { transform: translateY(-2px) scale(1.04); }
.cat small { max-width: 70px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ===== Busca ===== */
.searchbar { position: relative; margin: 10px 0 16px; }
.searchbar input { width: 100%; height: 40px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .06); background: var(--input); padding: 0 14px 0 40px; outline: none; font-size: 14px; }
.searchbar input:focus { border-color: var(--primary); }
.searchbar::before { content: ''; position: absolute; left: 14px; top: 50%; width: 13px; height: 13px; border: 2px solid var(--muted); border-radius: 50%; transform: translateY(-62%); }
.searchbar::after { content: ''; position: absolute; left: 26px; top: 24px; width: 6px; height: 2px; background: var(--muted); transform: rotate(45deg); }

/* ===== Banners ===== */
.banners { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 12px) / 2); gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.banners::-webkit-scrollbar { display: none; }
.banner { scroll-snap-align: start; aspect-ratio: 2.25 / 1; border-radius: 14px; overflow: hidden; position: relative; display: flex; flex-direction: column; justify-content: center; gap: 6px; padding: 24px 28px; border: 1px solid var(--line); }
.banner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.banner h3 { margin: 0; font-family: 'Bebas Neue', sans-serif; font-weight: 400; font-size: clamp(30px, 3.4vw, 52px); line-height: .92; color: #fff; text-transform: uppercase; max-width: 70%; position: relative; }
.banner p { margin: 0; color: rgba(255, 255, 255, .85); max-width: 62%; position: relative; font-size: 13px; }
.banner .btn { align-self: flex-start; position: relative; margin-top: 6px; height: 34px; font-size: 13px; }
.banner::after { content: ''; position: absolute; right: -40px; bottom: -60px; width: 55%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(255, 255, 255, .16), transparent 65%); }
.theme-cyan { background: linear-gradient(115deg, var(--primary-deep, #003a99) 0%, var(--primary) 55%, var(--primary-2) 100%); }
.theme-blue { background: linear-gradient(115deg, #02102b 0%, #062a7a 55%, var(--primary) 120%); }
.theme-violet { background: linear-gradient(115deg, #1a0d4d 0%, #3b1fa8 55%, var(--primary) 120%); }

/* ===== Seções e fileiras ===== */
.section { margin-top: 26px; }
.section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; gap: 12px; }
.section-head h2 { margin: 0; font-size: 18px; font-weight: 700; display: flex; align-items: center; gap: 12px; color: var(--text); }
.section-head h2 .sq { width: 40px; height: 40px; border-radius: 12px; background: var(--primary); display: grid; place-items: center; font-size: 18px; flex-shrink: 0; overflow: hidden; }
.section-head h2 .sq img { width: 100%; height: 100%; object-fit: cover; }
.section-head .actions { display: flex; gap: 6px; align-items: center; }
.arrow-btn { width: 32px; height: 32px; border-radius: 8px; background: var(--surface-2); border: 1px solid var(--line); display: grid; place-items: center; color: var(--text); font-size: 14px; }
.arrow-btn:hover { border-color: var(--primary); }
.link { color: var(--primary-2); font-weight: 700; font-size: 13px; }
.row { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 4px; scrollbar-width: none; }
.row::-webkit-scrollbar { display: none; }
.row > * { scroll-snap-align: start; flex-shrink: 0; }
.grid-games { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.page-title { font-size: 24px; font-weight: 800; margin: 6px 0 16px; color: var(--text-strong); }
.muted { color: var(--muted); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }

/* ===== Card de jogo ===== */
.game { position: relative; width: 150px; aspect-ratio: 3 / 4; border-radius: 12px; overflow: hidden; cursor: pointer; background: var(--surface-2); border: 1px solid var(--line); transition: transform .2s, border-color .2s; }
.grid-games .game { width: auto; }
.game:hover { transform: translateY(-3px); border-color: var(--primary); }
.game .art { position: absolute; inset: 0; display: grid; place-items: center; font-size: 40px; font-weight: 900; color: rgba(255, 255, 255, .9); }
.game .art img { width: 100%; height: 100%; object-fit: cover; }
.game .info { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 10px 9px; background: linear-gradient(transparent, rgba(0, 0, 0, .92)); opacity: 0; transition: .2s; }
.game .art:not(:has(img)) ~ .info { opacity: 1; }
.game .info b { display: block; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #fff; }
.game .info small { color: var(--muted); font-size: 11px; }
.game .play { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 10px; text-align: center; background: rgba(0, 10, 30, .78); opacity: 0; transition: .2s; }
.game .play b { font-size: 13px; color: #fff; }
.game .play small { font-size: 11px; color: var(--muted); }
.game .play span { margin-top: 8px; background: var(--primary); color: #fff; font-weight: 700; font-size: 12px; padding: 7px 12px; border-radius: 10px; }
.game:hover .play { opacity: 1; }
.game .badge { position: absolute; top: 6px; left: 50%; transform: translateX(-50%); font-size: 9px; font-weight: 800; padding: 3px 8px; border-radius: 999px; background: var(--primary); color: #fff; white-space: nowrap; letter-spacing: .3px; }
.game .badge.live { background: var(--red); }
.top-game .paid { font-size: 10px; color: var(--green); font-weight: 700; margin-top: 4px; text-align: center; }

/* Ganhos recentes */

/* Provedores */
.providers { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.shortcuts { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.shortcut { border-radius: var(--radius); padding: 16px 14px; background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; font-weight: 700; }
.shortcut:hover { border-color: var(--primary); }
.shortcut .ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-size: 20px; background: var(--secondary); }

/* ===== Esportes ===== */
.match { width: 300px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; display: flex; flex-direction: column; gap: 12px; }
.match .meta { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); font-weight: 600; }
.match .meta .league { color: var(--primary-2); text-transform: uppercase; letter-spacing: .4px; }
.match .teams { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; text-align: center; font-weight: 700; }
.match .teams .crest { width: 38px; height: 38px; border-radius: 50%; margin: 0 auto 6px; display: grid; place-items: center; font-weight: 900; background: var(--secondary); }
.match .teams .vs { color: var(--muted); font-size: 12px; }
.odds { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.odds.two { grid-template-columns: repeat(2, 1fr); }
.odd { background: var(--input); border: 1px solid var(--line); border-radius: 10px; padding: 7px 4px; text-align: center; transition: .15s; }
.odd small { display: block; color: var(--muted); font-size: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.odd b { font-variant-numeric: tabular-nums; color: var(--text-strong); }
.odd:hover { border-color: var(--primary); }
.odd.selected { background: var(--primary); border-color: var(--primary); }
.odd.selected small { color: #cfe0ff; }
.odd s { color: var(--muted); font-size: 11px; margin-right: 4px; }
.boost { width: 280px; background: linear-gradient(160deg, #140f3d, var(--surface)); border: 1px solid #2a2370; border-radius: var(--radius); padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.boost .label { font-size: 11px; color: var(--amber); font-weight: 800; letter-spacing: .5px; }
.event-row { display: grid; grid-template-columns: 1fr minmax(280px, 380px); gap: 16px; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.event-row:last-child { border-bottom: 0; }
.event-row .who b { display: block; }
.event-row .who small { color: var(--muted); }
.leagues { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.chip { padding: 7px 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); font-weight: 600; font-size: 13px; color: var(--muted); }
.chip.active, .chip:hover { color: var(--text-strong); border-color: var(--primary); }
.chip.active { background: var(--primary); }
.more-markets { margin-top: 10px; display: grid; gap: 10px; }
.more-markets h4 { margin: 0 0 6px; font-size: 12px; color: var(--muted); font-weight: 700; }

/* ===== Bilhete ===== */
.betslip { position: fixed; right: 20px; bottom: 20px; width: 340px; max-height: 70vh; display: flex; flex-direction: column; background: var(--bg-2); border: 1px solid var(--primary); border-radius: 16px; box-shadow: var(--shadow); z-index: 65; overflow: hidden; }
.betslip header { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; background: var(--primary); color: #fff; font-weight: 800; cursor: pointer; }
.betslip .count { background: #fff; color: var(--primary); border-radius: 999px; padding: 1px 8px; font-size: 12px; margin-left: 6px; }
.betslip .body { overflow: auto; padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.betslip.collapsed .body, .betslip.collapsed footer { display: none; }
.leg { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; position: relative; }
.leg small { color: var(--muted); display: block; }
.leg .x { position: absolute; right: 8px; top: 8px; color: var(--muted); }
.leg .o { position: absolute; right: 12px; bottom: 10px; font-weight: 800; color: var(--primary-2); }
.betslip footer { padding: 12px; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.betslip .totals { display: flex; justify-content: space-between; font-size: 13px; }

/* ===== Missões / promoções ===== */
.mission { width: 280px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.grid-cards .mission { width: auto; }
.mission .top { display: flex; justify-content: space-between; align-items: center; }
.mission .ic { font-size: 26px; }
.pill { font-size: 10px; font-weight: 800; letter-spacing: .5px; padding: 3px 8px; border-radius: 999px; background: var(--secondary); color: #cfe0ff; text-transform: uppercase; }
.pill.green { color: var(--green); background: rgba(34, 197, 94, .12); }
.pill.red { color: #ff4d73; background: rgba(241, 0, 59, .14); }
.pill.amber { color: var(--amber); background: rgba(245, 179, 1, .12); }
.mission h4 { margin: 0; font-size: 15px; color: var(--text-strong); }
.mission .reward { color: var(--primary-2); font-weight: 800; }
.progress { height: 8px; background: var(--input); border-radius: 8px; overflow: hidden; }
.progress i { display: block; height: 100%; background: var(--primary); border-radius: 8px; }
.grid-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.promo { border-radius: 14px; padding: 22px; min-height: 160px; display: flex; flex-direction: column; gap: 8px; border: 1px solid var(--line); position: relative; overflow: hidden; }
.promo img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.promo h3 { margin: 0; font-family: 'Bebas Neue', sans-serif; font-weight: 400; font-size: 30px; line-height: 1; color: #fff; position: relative; }
.promo p { margin: 0; color: rgba(255, 255, 255, .85); position: relative; }
.promo .btn { margin-top: auto; align-self: flex-start; position: relative; }

/* ===== Chat ===== */
.chat { position: fixed; right: 20px; bottom: 80px; width: 340px; height: min(520px, 70vh); z-index: 56; background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 16px; display: flex; flex-direction: column; box-shadow: var(--shadow); }
.chat header { padding: 14px 16px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; font-weight: 800; }
.chat .msgs { flex: 1; overflow: auto; padding: 12px 16px; display: flex; flex-direction: column; gap: 10px; }
.chat .msg { display: flex; gap: 10px; }
.chat .msg .av { width: 30px; height: 30px; border-radius: 10px; flex-shrink: 0; display: grid; place-items: center; font-weight: 800; font-size: 12px; }
.chat .msg b { font-size: 12px; } .chat .msg time { color: var(--muted); font-size: 10px; margin-left: 6px; }
.chat .msg p { margin: 2px 0 0; word-break: break-word; }
.chat .msg.staff b { color: var(--primary-2); }
.chat form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); }
.chat input { flex: 1; height: 40px; border-radius: 12px; border: 1px solid var(--line); background: var(--input); padding: 0 14px; outline: none; }

/* ===== Modais e formulários ===== */
.modal-bg { position: fixed; inset: 0; z-index: 100; background: rgba(0, 0, 0, .78); backdrop-filter: blur(4px); display: grid; place-items: center; padding: 16px; animation: fade .2s; }
.modal { width: 100%; max-width: 440px; max-height: 92vh; overflow: auto; background: #03070f; border: 1px solid var(--line-2); border-radius: 20px; padding: 28px; position: relative; box-shadow: var(--shadow); animation: pop .25s; }
.modal h2 { margin: 0 0 4px; font-size: 22px; font-weight: 800; color: var(--text-strong); }
.modal h2.display, .modal .title-display { font-family: 'Inter', sans-serif; font-weight: 900; font-style: italic; text-transform: uppercase; font-size: 26px; text-align: center; letter-spacing: -.3px; line-height: 1.1; }
.modal .close { position: absolute; right: 16px; top: 14px; font-size: 20px; color: var(--muted); z-index: 2; }
.modal .modal-logo { display: flex; justify-content: center; margin-bottom: 18px; }
.modal .modal-logo .logo b { font-size: 40px; }
.modal .sub { text-align: center; color: var(--muted); font-size: 13px; margin: 6px 0 0; }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { transform: scale(.96); opacity: 0; } }
.form { display: grid; gap: 12px; margin-top: 16px; }
.field { display: grid; gap: 6px; }
.field label { font-size: 12px; font-weight: 600; color: var(--muted); }
.field input, .field select, .field textarea { height: 46px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .06); background: var(--input); padding: 0 14px; outline: none; }
.field textarea { height: 90px; padding: 10px 14px; resize: vertical; }
.field input:focus, .field select:focus { border-color: var(--primary); }
.two-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tabs { display: flex; gap: 4px; background: var(--surface); border: 1px solid var(--line); padding: 4px; border-radius: 12px; margin-top: 16px; }
.tabs button { flex: 1; height: 36px; border-radius: 9px; font-weight: 700; font-size: 13px; color: var(--muted); }
.tabs button.active { background: var(--primary); color: #fff; }
.amounts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.amounts button { height: 40px; border-radius: 10px; background: var(--input); border: 1px solid var(--line); font-weight: 700; }
.amounts button:hover { border-color: var(--primary); }
.qr { background: #fff; border-radius: 14px; padding: 10px; width: 220px; margin: 12px auto; }
.copy { display: flex; gap: 8px; }
.copy input { flex: 1; min-width: 0; height: 40px; border-radius: 10px; border: 1px solid var(--line); background: var(--input); padding: 0 12px; font-size: 12px; }
.notice { font-size: 12px; color: var(--muted); background: var(--surface); border: 1px dashed var(--line-2); padding: 10px 12px; border-radius: 10px; }
.terms { font-size: 11px; color: var(--muted); display: flex; gap: 10px; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px; }
.terms a { color: var(--primary-2); }
.age-gate { text-align: center; }
.age-gate .btns { display: grid; gap: 10px; margin-top: 24px; }

/* ===== Toast ===== */
.toasts { position: fixed; top: calc(var(--topbar-h) + var(--header-h) + 12px); right: 20px; z-index: 200; display: grid; gap: 8px; }
.toast { background: var(--surface-2); border: 1px solid var(--line-2); border-left: 4px solid var(--primary); padding: 12px 16px; border-radius: 12px; box-shadow: var(--shadow); max-width: 340px; animation: pop .2s; }
.toast.error { border-left-color: var(--red); }
.toast.success { border-left-color: var(--green); }

/* ===== Conta / tabelas ===== */
.account { display: grid; grid-template-columns: 240px 1fr; gap: 20px; }
.side-menu { display: grid; gap: 4px; align-content: start; }
.side-menu a { padding: 11px 14px; border-radius: 12px; color: var(--muted); font-weight: 600; }
.side-menu a.active, .side-menu a:hover { background: var(--surface-2); color: var(--text); }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.stat small { color: var(--muted); font-weight: 600; }
.stat b { display: block; font-size: 24px; margin-top: 4px; font-variant-numeric: tabular-nums; color: var(--text-strong); }
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table th { font-size: 11px; text-transform: uppercase; color: var(--muted); letter-spacing: .5px; }
.table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.pos { color: var(--green); } .neg { color: #ff4d73; }
.game-frame { position: fixed; inset: 0; z-index: 90; background: #000; display: flex; flex-direction: column; }
.game-frame .bar { height: 52px; display: flex; align-items: center; gap: 12px; padding: 0 16px; background: var(--bg-2); border-bottom: 1px solid var(--line); }
.game-frame iframe { flex: 1; border: 0; width: 100%; }
.empty { text-align: center; padding: 40px; color: var(--muted); }

/* ===== Rodapé (mesma estrutura do layout de referência) ===== */
.footer { margin-top: 40px; padding: 32px 20px 0; color: var(--muted); font-size: 12px; }
.footer .inner { max-width: 1400px; margin: 0 auto; }
.footer .foot-top { display: grid; grid-template-columns: 1fr; gap: 48px; }
.footer .about > * + * { margin-top: 24px; }
.footer .about .logo { display: inline-flex; }
.footer .about p { margin-bottom: 0; max-width: 320px; font-size: 12px; line-height: 1.65; color: var(--muted); }
.footer .social { display: flex; gap: 12px; }
.footer .social a { width: 40px; height: 40px; border-radius: 12px; background: rgba(0, 0, 0, .5); border: 1px solid rgb(var(--s-rgb) / .6); color: var(--muted); display: grid; place-items: center; transition: color .2s, border-color .2s; }
.footer .social a:hover { color: var(--text); border-color: var(--primary); }
.footer .social svg { width: 20px; height: 20px; }
.footer .foot-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.footer h4 { margin: 0 0 16px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--text); }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.footer ul a { display: flex; align-items: center; gap: 8px; font-size: 12px; line-height: 16px; color: var(--muted); transition: color .2s; }
.footer ul a:hover { color: var(--primary-2); }
.footer ul .dot { width: 4px; height: 4px; border-radius: 50%; background: rgba(255, 255, 255, .2); flex-shrink: 0; }
.btn-support { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 20px; border-radius: 12px; font-size: 14px; font-weight: 700; text-transform: uppercase; color: var(--text-strong); white-space: nowrap;
  background: linear-gradient(180deg, var(--primary) 0%, rgb(var(--p-rgb) / .9) 50%, var(--primary-dark) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .28), inset 0 0 0 1px rgba(255, 255, 255, .18); transition: box-shadow .3s, filter .3s; }
.btn-support:hover { filter: brightness(1.08); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), inset 0 0 0 1px rgba(255, 255, 255, .3), 0 0 16px rgb(var(--p-rgb) / .55); }
.btn-support svg { width: 16px; height: 16px; }

.footer .seals { display: flex; margin-top: 40px; border: 1px solid rgb(var(--s-rgb) / .6); border-radius: 16px; overflow: hidden; }
.footer .seal-list { flex: 1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-around; gap: 32px; padding: 24px 40px; border-right: 1px solid rgb(var(--s-rgb) / .6); }
.footer .seal { display: flex; align-items: center; gap: 10px; color: var(--text); }
.footer .seal i { font-style: normal; font-size: 26px; line-height: 1; }
.footer .seal b { width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--text); display: grid; place-items: center; font-size: 13px; }
.footer .seal small { font-size: 10px; line-height: 1.25; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.footer .seal-pix { display: flex; align-items: center; gap: 10px; padding: 24px 40px; color: var(--text); }
.footer .seal-pix .pix-mark { width: 40px; height: 40px; display: grid; place-items: center; font-size: 30px; color: #32bcad; transform: rotate(0deg); }
.footer .seal-pix small { display: block; font-size: 10px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.footer .seal-pix b { display: block; font-size: 14px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: var(--text); }

.footer .legal { margin-top: 16px; border: 1px solid rgb(var(--s-rgb) / .6); border-radius: 16px; overflow: hidden; }
.footer .legal-head { padding: 16px 24px; border-bottom: 1px solid rgb(var(--s-rgb) / .6); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--text); }
.footer .legal-body { padding: 24px; font-size: 11px; line-height: 1.6; color: var(--muted); }
.footer .legal-body p { margin: 0 0 16px; }
.footer .legal-body p:last-child { margin-bottom: 0; }

.footer .foot-bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 24px; }
.footer .age18 { display: flex; align-items: center; gap: 12px; }
.footer .age18 > b { width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--text-strong); display: grid; place-items: center; font-size: 13px; color: var(--text-strong); }
.footer .age18 > span { font-size: 10px; line-height: 1.3; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.footer .age18 strong { color: var(--text); font-size: 11px; }
.footer .copy-line { font-size: 10px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.footer .to-top { display: flex; width: max-content; align-items: center; gap: 10px; margin: 24px auto 0; padding: 14px 28px; border: 1px solid rgb(var(--s-rgb) / .6); border-bottom: 0; border-radius: 12px 12px 0 0; background: var(--surface); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--text); }
.footer .to-top span { color: var(--muted); }
.footer .to-top:hover { color: var(--primary-2); }

@media (min-width: 1024px) {
  .footer .foot-top { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .footer .about { grid-column: span 4; }
  .footer .foot-links { grid-column: span 8; padding-left: 48px; }
}
@media (max-width: 767px) {
  .footer .seals { flex-direction: column; }
  .footer .seal-list { border-right: 0; border-bottom: 1px solid rgb(var(--s-rgb) / .6); padding: 20px; gap: 20px; }
  .footer .seal-pix { justify-content: center; padding: 18px; }
}
@media (max-width: 639px) {
  .footer .foot-links { grid-template-columns: 1fr 1fr; }
  .footer .foot-links > div:last-child { grid-column: 1 / -1; }
  .btn-support { width: 100%; }

}

/* ===== Aviso de cookies ===== */
.cookie { position: fixed; left: 20px; bottom: 20px; z-index: 58; width: 400px; max-width: calc(100% - 24px); background: #03070f; border: 1px solid var(--line-2); border-radius: 16px; padding: 16px; display: flex; gap: 12px; box-shadow: var(--shadow); animation: pop .25s; }
.cookie .ck-ic { width: 40px; height: 40px; border-radius: 10px; background: var(--primary); display: grid; place-items: center; font-size: 20px; flex-shrink: 0; }
.cookie b { display: block; color: var(--text-strong); font-size: 15px; }
.cookie p { margin: 4px 0 10px; font-size: 12px; color: var(--muted); }
.cookie .ck-btns { display: flex; gap: 8px; }

/* ===== Responsivo ===== */
@media (max-width: 1100px) {
  .shortcuts { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
  .sidebar { transform: translateX(-100%); transition: transform .2s; z-index: 70; }
  body.side-open .sidebar { transform: none; }
  body.side-open .side-backdrop { display: block; position: fixed; inset: 0; z-index: 69; background: rgba(0, 0, 0, .6); }
  .content { margin-left: 0 !important; }
  .header-left { width: auto; gap: 8px; flex-direction: row-reverse; }
  .mode-tabs { display: none; }
  .side-link.only-mobile { display: flex; }
  .cookie { left: 8px; right: 8px; width: auto; bottom: 72px; }
  .banners { grid-auto-columns: 92%; }
  .cats { justify-content: flex-start; }
}
@media (max-width: 720px) {
  .header { padding: 0 12px; gap: 8px; }
  .topbar { font-size: 12px; padding: 0 40px 0 12px; justify-content: flex-start; }
  .main { padding: 12px 12px 90px; }
  .shortcuts { grid-template-columns: repeat(2, 1fr); }
  .account { grid-template-columns: 1fr; }
  .side-menu { grid-auto-flow: column; overflow-x: auto; }
  .event-row { grid-template-columns: 1fr; }
  .two-cols { grid-template-columns: 1fr; }
  .balance-chip small { display: none; }
  .balance-chip { padding-left: 10px; }
  .header-actions .btn { padding: 0 12px; }
  .header-actions .admin-link { display: none; }
  .banner { aspect-ratio: 1.9 / 1; padding: 18px; }
  .banner h3 { font-size: 34px; max-width: 80%; }
  .chat { left: 8px; right: 8px; width: auto; bottom: 70px; }
  .betslip { right: 8px; left: 8px; width: auto; bottom: 8px; }
  .toasts { left: 12px; right: 12px; }
  .grid-games { grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px; }
  .game { width: 112px; }
}
