:root {
  --bg: #0a0a0a;
  --bar: #111111;
  --panel: #161616;
  --panel-2: #1c1c1c;
  --line: #262626;
  --text: #f5f5f5;
  --muted: #a3a3a3;
  --gold: #e6b83a;
  --gold-2: #f2c94c;
  --gold-dark: #6b5520;
  --green: #1fb37f;
  --wine: #8b3a35;
  --search: #1e2a3a;
  --top: 52px;
  --side: 194px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 14px;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }

/* ---------- Topo ---------- */
.topbar {
  position: fixed; inset: 0 0 auto 0; height: var(--top); z-index: 50;
  display: flex; align-items: center; gap: 16px; padding: 0 12px 0 14px;
  background: var(--bar); border-bottom: 1px solid var(--line);
}
.menu-toggle { display: none; font-size: 20px; padding: 6px; }
.top-tabs { display: flex; gap: 22px; height: 100%; }
.top-tabs a {
  display: flex; align-items: center; gap: 6px; font-weight: 700; font-size: 13px;
  color: var(--muted); border-bottom: 2px solid transparent; padding: 0 2px;
}
.top-tabs a.active { color: var(--text); border-color: var(--gold); }
.top-tabs .ico { font-size: 13px; }
.brand { display: flex; align-items: center; gap: 6px; margin-left: 130px; }
.brand img { height: 22px; width: auto; }
.gift { font-size: 18px; }
.top-actions { margin-left: auto; margin-right: 135px; display: flex; align-items: center; gap: 14px; }
.balance {
  display: flex; align-items: center; gap: 4px; height: 30px; padding: 0 10px;
  border: 1px solid #333; border-radius: 6px; font-weight: 700; font-size: 13px;
}
.balance small { font-size: 9px; color: var(--muted); }
.balance button { color: var(--muted); margin-left: 4px; }
.btn-gold {
  background: var(--gold); color: #fff; font-weight: 600; border-radius: 6px;
  height: 32px; padding: 0 8px; font-size: 13px; text-shadow: 0 1px 1px rgba(0,0,0,.25);
}
.btn-gold:hover { background: var(--gold-2); }
.btn-gold.sm { height: 24px; width: 100%; font-size: 11px; font-weight: 800; color: #1a1a1a; text-shadow: none; }
.avatar {
  width: 30px; height: 30px; border-radius: 50%; background: #fff; color: #111;
  display: grid; place-items: center;
}

/* ---------- Menu lateral ---------- */
.sidebar {
  position: fixed; top: var(--top); bottom: 0; left: 0; width: var(--side); z-index: 40;
  background: var(--bar); border-right: 1px solid var(--line); overflow-y: auto;
  padding-top: 46px;
}
.side-cta {
  position: relative; display: flex; flex-direction: column; margin: 0 11px 9px; padding: 11px 14px;
  border-radius: 6px; min-height: 51px; justify-content: center;
}
.side-cta small { font-size: 9px; opacity: .8; letter-spacing: .3px; }
.side-cta strong { font-size: 12.5px; }
.side-cta.chat { background: linear-gradient(90deg, #22c08a, #149e6e); }
.side-cta.roulette { background: linear-gradient(90deg, #8f3b37, #6f2e2b); }
.cta-ico { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); font-size: 18px; }
.side-cta.roulette .cta-ico { font-size: 24px; }
.side-group { border-top: 1px solid var(--line); }
.side-group:first-child { margin-top: 2px; }
.side-head {
  width: 100%; display: flex; justify-content: space-between; align-items: center;
  padding: 14px 14px; font-weight: 800; font-size: 12.5px;
}
.chev { color: var(--muted); transition: transform .2s; font-size: 12px; }
.side-group:not(.open) .chev { transform: rotate(180deg); }
.side-group ul { list-style: none; margin: 0; padding: 0 0 6px; }
.side-group:not(.open) ul { display: none; }
.side-group li a, .side-extra a {
  display: flex; align-items: center; gap: 12px; padding: 10px 14px 10px 16px; font-size: 13px; color: #e5e5e5;
}
.side-group li a:hover, .side-extra a:hover { background: #1a1a1a; }
.si { width: 18px; text-align: center; font-size: 13px; filter: grayscale(.2); }
.side-extra { border-top: 1px solid var(--line); padding: 6px 0 20px; }

/* ---------- Conteúdo ---------- */
.content {
  margin-left: var(--side); padding: calc(var(--top) + 20px) 0 30px;
}
.content > * { max-width: 1060px; margin-left: auto; margin-right: auto; }
.panel { background: #121212; border-radius: 4px; }

.hero { position: relative; overflow: hidden; border-radius: 6px; aspect-ratio: 1200 / 445; margin-bottom: 14px; }
.hero-track { display: flex; height: 100%; transition: transform .6s ease; }
.hero-slide { flex: 0 0 100%; height: 100%; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; }
.hero-dots { position: absolute; bottom: 10px; left: 0; right: 0; display: flex; justify-content: center; gap: 7px; }
.hero-dots button { width: 9px; height: 9px; border-radius: 9px; background: #ccc; opacity: .75; transition: width .3s; }
.hero-dots button.active { width: 22px; background: var(--gold); opacity: 1; }

.cats { padding: 14px 8px 8px; margin-bottom: 14px; }
.cats-row { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.cats-row::-webkit-scrollbar { display: none; }
.cat { flex: 0 0 63px; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; font-size: 11px; color: #d4d4d4; line-height: 1.25; }
.cat-ico {
  width: 50px; height: 50px; border-radius: 50%; background: var(--gold-dark);
  display: grid; place-items: center; font-size: 20px;
}
.cat:hover .cat-ico { background: #85692a; }

.search { padding: 14px; margin-bottom: 18px; }
.search-box { display: flex; align-items: center; background: var(--search); border-radius: 4px; height: 43px; padding: 0 14px; }
.search-box input { flex: 1; background: none; border: 0; outline: none; color: var(--text); font-size: 14px; }
.search-box input::placeholder { color: #8796a8; }
.provider-btn { font-size: 12px; color: #e5e5e5; }

/* ---------- Linhas de jogos ---------- */
.row-sec { margin-bottom: 22px; padding: 0 14px; }
.row-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.row-head h2, .rec-title { margin: 0; font-size: 18px; font-weight: 800; letter-spacing: -.2px; }
.rec-title { font-size: 15px; margin: 0 0 10px; }
.row-tools { display: flex; align-items: center; gap: 22px; }
.row-nav { display: flex; gap: 18px; }
.arr { font-size: 26px; line-height: 1; color: #fff; padding: 0 4px; }
.arr[data-dir="-1"] { color: #555; }
.ver-tudo { color: #d4d4d4; font-size: 13px; }
.row {
  display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 0 7px 4px; scroll-padding: 0 7px;
  scrollbar-width: none;
}
.row::-webkit-scrollbar { display: none; }

.game {
  position: relative; flex: 0 0 160px; height: 200px; border-radius: 6px; overflow: hidden;
  scroll-snap-align: start; background: var(--panel);
}
.game img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s; }
.game:hover img { transform: scale(1.05); }
.game::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.85) 0%, rgba(0,0,0,0) 45%); }
.star { position: absolute; top: 6px; left: 8px; z-index: 2; font-size: 17px; color: #fff; text-shadow: 0 1px 2px #000; }
.game-info { position: absolute; left: 7px; right: 7px; bottom: 7px; z-index: 2; display: flex; flex-direction: column; }
.game-info strong { font-size: 12.5px; font-weight: 600; line-height: 1.35; }
.game-info small { font-size: 11px; color: #d4d4d4; }

/* Recomendados */
.sec-rec { background: #121212; padding-top: 12px; padding-bottom: 12px; border-radius: 4px; }
.rec { flex: 0 0 245px; display: flex; gap: 12px; align-items: center; scroll-snap-align: start; }
.rec img { width: 72px; height: 72px; border-radius: 4px; object-fit: cover; }
.rec div { flex: 1; display: flex; flex-direction: column; gap: 3px; }
.rec strong { font-size: 13px; }
.rec small { font-size: 11px; color: var(--muted); text-transform: uppercase; margin-bottom: 6px; }

/* Top 10 */
.top-item { flex: 0 0 auto; display: flex; align-items: center; scroll-snap-align: start; }
.top-item .num { height: 216px; width: auto; margin-right: -26px; opacity: .95; }
.sec-top10 .game { flex-basis: 174px; height: 216px; scroll-snap-align: none; }

/* Ligas */
.league { flex: 0 0 calc((100% - 28px) / 3); min-width: 260px; border-radius: 6px; overflow: hidden; scroll-snap-align: start; }
.league img { width: 100%; aspect-ratio: 337 / 118; object-fit: cover; }

/* Provedores */
.prov {
  flex: 0 0 162px; height: 80px; border-radius: 6px; background: var(--panel-2);
  display: grid; place-items: center; padding: 14px 18px; scroll-snap-align: start;
}
.prov img { max-height: 46px; width: auto; object-fit: contain; }

/* ---------- Rodapé ---------- */
.footer { margin-left: var(--side); border-top: 2px solid var(--gold); padding: 34px 14px 26px; }
.foot-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 26px; }
.foot-logo { height: 22px; width: auto; margin-left: 12px; }
.lang { font-size: 13px; }
.tg { width: 30px; height: 30px; border-radius: 50%; background: var(--gold-dark); display: grid; place-items: center; font-size: 13px; }
.foot-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.foot-cols h4 { margin: 0 0 16px; font-size: 16px; }
.foot-cols a { display: block; margin-bottom: 11px; color: #d4d4d4; }
.foot-cols a:hover { color: #fff; }
.pay-box {
  border: 1px solid var(--line); border-radius: 4px; height: 44px; display: flex; align-items: center;
  justify-content: center; gap: 6px; font-size: 22px; color: #9ca3af; letter-spacing: .5px;
}
.pix-mark { color: #32bcad; font-size: 22px; }
.legal { color: var(--muted); font-size: 12.5px; border-top: 1px solid var(--line); padding-top: 20px; margin: 36px 0 24px; }
.foot-badges { display: flex; align-items: center; gap: 48px; background: #0d0d0d; padding: 16px 0; }
.bga { font-weight: 800; font-size: 17px; letter-spacing: -.3px; }
.bga sup { font-size: 8px; }
.gt { font-weight: 900; font-size: 26px; color: #7b3fa0; font-style: italic; }

/* ---------- Flutuantes ---------- */
.chat-fab {
  position: fixed; right: 18px; bottom: 18px; z-index: 60; width: 58px; height: 58px; border-radius: 50%;
  background: #2c3e50; display: grid; place-items: center; box-shadow: 0 4px 14px rgba(0,0,0,.5);
}
.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px); z-index: 70;
  background: #222; border: 1px solid var(--gold); color: #fff; padding: 10px 16px; border-radius: 8px;
  font-size: 13px; opacity: 0; pointer-events: none; transition: .25s; max-width: calc(100% - 32px);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.test-badge {
  position: fixed; left: 8px; bottom: 8px; z-index: 80; background: #b91c1c; color: #fff;
  font-size: 10px; font-weight: 800; letter-spacing: .5px; padding: 4px 8px; border-radius: 4px; pointer-events: none;
}

/* ---------- Responsivo ---------- */
@media (max-width: 1200px) {
  .brand { margin-left: 24px; }
  .top-actions { margin-right: 0; }
}
@media (max-width: 900px) {
  :root { --side: 0px; }
  .menu-toggle { display: block; }
  .top-tabs { display: none; }
  .brand { margin-left: 0; }
  .sidebar { width: 240px; transform: translateX(-100%); transition: transform .25s; padding-top: 16px; }
  body.sidebar-open .sidebar { transform: none; }
  .content { padding-left: 16px; padding-right: 16px; }
  .row-sec { padding: 0; }
  .game { flex-basis: 128px; height: 168px; }
  .sec-top10 .game { flex-basis: 128px; height: 168px; }
  .top-item .num { height: 160px; margin-right: -18px; }
  .foot-cols { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .balance { display: none; }
  .row-head h2 { font-size: 15px; }
  .arr, .row-nav { display: none; }
}


/* ---------- Painel de conteúdo e integração ---------- */
.admin-link { color: #d8b55a; font-size: 12px; font-weight: 700; padding: 7px 9px; border: 1px solid #5e4a1d; border-radius: 6px; }
.admin-link:hover { background: #2a2312; }
.admin-backdrop { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; background: rgba(0,0,0,.78); }
.admin-backdrop[hidden] { display: none; }
.admin-panel { position: relative; width: min(860px, 100%); max-height: min(780px, 92vh); overflow: auto; background: #151515; border: 1px solid #4b3b18; border-radius: 14px; box-shadow: 0 24px 90px rgba(0,0,0,.65); padding: 28px; }
.admin-close { position: absolute; right: 18px; top: 12px; color: #aaa; font-size: 30px; line-height: 1; }
.admin-close:hover { color: #fff; }
.admin-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding-right: 24px; }
.eyebrow { color: var(--gold); font-size: 10px; font-weight: 800; letter-spacing: 1.4px; }
.admin-head h2 { margin: 5px 0 0; font-size: 25px; }
.admin-status { color: #81d8b2; background: #123126; border: 1px solid #225d48; padding: 7px 10px; border-radius: 20px; font-size: 11px; white-space: nowrap; }
.admin-tabs { display: flex; gap: 8px; border-bottom: 1px solid var(--line); margin: 24px 0 20px; }
.admin-tab { padding: 10px 14px; color: var(--muted); border-bottom: 2px solid transparent; font-weight: 700; }
.admin-tab.active { color: #fff; border-color: var(--gold); }
.admin-note { color: #b6b6b6; line-height: 1.55; font-size: 12px; margin: 0 0 18px; }
.admin-note code, .api-result { color: #d7c184; }
.banner-form, .api-form { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; background: #101010; border: 1px solid var(--line); padding: 16px; border-radius: 9px; }
.banner-form label, .api-form label { display: flex; flex-direction: column; gap: 6px; color: #bdbdbd; font-size: 11px; font-weight: 700; }
.banner-form label:first-child { grid-column: span 1; }
.banner-form label:nth-child(2) { grid-column: span 1; }
.banner-form input, .api-form input { height: 36px; border: 1px solid #363636; border-radius: 5px; background: #1b1b1b; color: #fff; padding: 0 10px; outline: none; }
.banner-form input:focus, .api-form input:focus { border-color: var(--gold); }
.check-label { flex-direction: row !important; align-items: center; padding-top: 22px; }
.check-label input { width: 16px; height: 16px; accent-color: var(--gold); }
.form-actions { grid-column: 1 / -1; display: flex; gap: 9px; align-items: center; margin-top: 2px; }
.btn-secondary { height: 32px; border: 1px solid #414141; border-radius: 6px; padding: 0 12px; color: #ddd; font-size: 12px; }
.btn-secondary:hover { background: #292929; }
.banner-list { display: grid; gap: 8px; margin-top: 16px; }
.banner-item { display: grid; grid-template-columns: 120px 1fr auto; gap: 12px; align-items: center; padding: 8px; border: 1px solid #2d2d2d; background: #1b1b1b; border-radius: 7px; }
.banner-item.inactive { opacity: .5; }
.banner-item img { width: 120px; height: 48px; object-fit: cover; border-radius: 4px; background: #292929; }
.banner-item strong, .banner-item small { display: block; }
.banner-item small { color: var(--muted); font-size: 11px; margin-top: 3px; }
.banner-actions { display: flex; gap: 8px; }
.banner-actions button { color: var(--gold-2); font-size: 11px; }
.banner-actions button:last-child { color: #db817b; }
.empty-state, .api-result { padding: 14px; border: 1px dashed #3a3a3a; color: var(--muted); font-size: 12px; }
.api-form { grid-template-columns: 1fr 1fr; }
.api-form label:first-child { grid-column: 1 / -1; }
.api-result { margin-top: 14px; }
.hero-empty { display: grid; place-items: center; width: 100%; color: var(--muted); background: linear-gradient(135deg, #1b1b1b, #282111); }
.toast.error { border-color: #b44d45; }
@media (max-width: 620px) {
  .admin-panel { padding: 20px 14px; }
  .admin-head { display: block; }
  .admin-status { display: inline-block; margin-top: 12px; }
  .banner-form, .api-form { grid-template-columns: 1fr; }
  .banner-form label, .api-form label, .api-form label:first-child { grid-column: auto; }
  .check-label { padding-top: 0; }
  .banner-item { grid-template-columns: 76px 1fr; }
  .banner-item img { width: 76px; height: 40px; }
  .banner-actions { grid-column: 2; }
  .admin-link { font-size: 0; padding: 6px; }
  .admin-link::first-letter { font-size: 15px; }
}

/* Ajustes para o cabeçalho PIXWINN real */
.brand { position: absolute; left: 50%; transform: translateX(-50%); margin-left: 0; }
.top-actions { margin-right: 0; }
.auth-btn { font-size: 13px; font-weight: 700; padding: 7px 3px; }
.auth-btn.login { color: #f1f1f1; }
.auth-btn.register { color: var(--gold-2); }
.language { color: #e2e2e2; font-size: 12px; padding: 7px 2px; }
.language span { color: #999; font-size: 9px; }
.test-badge { display: none; }
@media (max-width: 1200px) {
  .brand { position: static; transform: none; margin-left: 24px; }
}
@media (max-width: 900px) {
  .brand { margin-left: 0; }
}
@media (max-width: 520px) {
  .language { display: none; }
}
