[hidden] { display: none !important; }
:root {
  --bg: #0f1216; --card: #171b21; --border: #262c35; --text: #e8ecf1; --muted: #8a94a3;
  --accent: #2bd47d; --accent-ink: #0f1216; --warn: #f2b33d; --danger: #f0565a;
  --radius: 12px;
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--text); font: 15px/1.5 Inter, "Segoe UI", system-ui, -apple-system, sans-serif;
  background: radial-gradient(1100px 520px at 78% -8%, rgba(43,212,125,.10), transparent 60%),
              linear-gradient(180deg, #0f1216 0%, #0c171a 100%) fixed; background-color: var(--bg); min-height: 100vh; }
a { color: var(--accent); }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 16px; }
header.top { display: flex; align-items: center; justify-content: space-between; padding: 20px 0; }
.brand { font-weight: 800; font-size: 22px; letter-spacing: .5px; color: var(--text); text-decoration: none; display: inline-flex; align-items: baseline; }
.brand::before { content: ""; width: 30px; height: 30px; align-self: center; margin-right: 8px; background: url(/assets/icon.svg) center/contain no-repeat; }
.brand span { color: var(--muted); font-weight: 400; font-size: 14px; margin-left: 8px; }
nav { white-space: nowrap; }
nav a { color: var(--muted); text-decoration: none; margin-left: 18px; }
nav a:hover { color: var(--text); }
nav a.lang { border: 1px solid var(--border); border-radius: 6px; padding: 2px 8px; font-size: 13px; }
.hero { padding: 48px 0 32px; }
.hero h1 { font-size: clamp(28px, 5vw, 44px); line-height: 1.15; margin: 0 0 12px; }
.hero p { color: var(--muted); max-width: 620px; font-size: 17px; margin: 0; }
.toggle { display: inline-flex; background: var(--card); border: 1px solid var(--border); border-radius: 999px; padding: 4px; margin: 28px 0 20px; }
.toggle button { background: none; border: 0; color: var(--muted); padding: 6px 14px; border-radius: 999px; cursor: pointer; font: inherit; }
.toggle button[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); font-weight: 600; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; padding-bottom: 48px; }
.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.plan { display: flex; flex-direction: column; gap: 10px; position: relative; }
.plan.featured { border-color: var(--accent); }
.badge { position: absolute; top: -11px; right: 16px; background: var(--accent); color: var(--accent-ink); font-size: 12px; font-weight: 700; padding: 2px 10px; border-radius: 999px; }
.plan h3 { margin: 0; font-size: 18px; }
.price { font-size: 30px; font-weight: 800; white-space: nowrap; line-height: 1.1; }
.price small { display: block; font-size: 13px; color: var(--muted); font-weight: 400; margin-top: 2px; }
.save { color: var(--accent); font-weight: 600; }
.plan ul { list-style: none; padding: 0; margin: 0 0 8px; color: var(--muted); font-size: 14px; flex: 1; }
.plan li::before { content: "✓ "; color: var(--accent); }
.btn { display: inline-block; text-align: center; background: var(--accent); color: var(--accent-ink); border: 0; border-radius: 8px; padding: 11px 16px; font-family: inherit; font-size: 15px; font-weight: 600; line-height: 1.2; cursor: pointer; text-decoration: none; }
.btn:hover { filter: brightness(1.06); }
.btn:disabled { opacity: .5; cursor: default; }
.btn.ghost { background: none; color: var(--muted); border: 1px solid var(--border); }
.narrow { max-width: 460px; margin: 32px auto 64px; }
label { display: block; font-size: 12px; color: var(--muted); margin: 0 0 4px; text-transform: uppercase; letter-spacing: .5px; }
input { width: 100%; background: var(--bg); color: var(--text); border: 1px solid var(--border); border-radius: 8px; padding: 10px 12px; font: inherit; margin-bottom: 14px; }
input:focus { outline: 2px solid var(--accent); outline-offset: -1px; }
.tabs { display: flex; gap: 8px; margin-bottom: 18px; }
.tabs button { flex: 1; background: none; border: 1px solid var(--border); color: var(--muted); border-radius: 8px; padding: 8px; cursor: pointer; font: inherit; }
.tabs button[aria-selected="true"] { color: var(--text); border-color: var(--accent); }
.msg { font-size: 14px; margin: 0 0 12px; }
.msg:empty { margin: 0; }
.msg.err { color: var(--danger); }
.msg.ok { color: var(--accent); }
.row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.row:last-child { border-bottom: 0; }
.muted { color: var(--muted); font-size: 14px; }
.status-pill { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 13px; font-weight: 600; }
.status-pill.on { background: #16382a; color: var(--accent); }
.status-pill.off { background: #3a1c1d; color: var(--danger); }
.stack > * + * { margin-top: 16px; }
.inline { display: flex; gap: 8px; }
.inline input { margin: 0; }
.center { text-align: center; }
footer { color: var(--muted); font-size: 13px; padding: 24px 0 40px; border-top: 1px solid var(--border); }
@media (max-width: 520px) { nav a { margin-left: 14px; } .brand span { display: none; } .hero { padding-top: 24px; } }
#buyerBox:not([hidden]) { margin-bottom: 0; }
#buyerBox:not([hidden]) + #account { margin-top: 16px; }

.options { display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; margin: 4px 0 20px; }
.options .label { color: var(--muted); font-size: 13px; margin-right: 8px; }
.options .toggle { margin: 0; }
.switch { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; user-select: none; }
.switch input { width: 38px; height: 22px; margin: 0; appearance: none; background: var(--border); border-radius: 999px; position: relative; cursor: pointer; transition: background .15s; }
.switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: var(--text); transition: transform .15s; }
.switch input:checked { background: var(--accent); }
.switch input:checked::after { transform: translateX(16px); background: var(--accent-ink); }
.switch input:disabled { opacity: .6; cursor: default; }
.hint { color: var(--muted); font-size: 12px; flex-basis: 100%; margin-top: -6px; }
.tag { display: inline-block; font-size: 12px; font-weight: 600; color: var(--accent); margin-top: 2px; }
.plan .btn[disabled] { background: var(--border); color: var(--muted); }
.switch { text-transform: none; letter-spacing: 0; font-size: 14px; color: var(--text); margin: 0; }

/* ===== painel /admin ===== */
.h { margin: 0 0 10px; font-size: 16px; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.kpi { display: flex; flex-direction: column; gap: 2px; padding: 18px; }
.kpi-v { font-size: 30px; font-weight: 800; line-height: 1.15; font-variant-numeric: tabular-nums; }
.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.scroll { overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { text-align: left; color: var(--muted); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .4px; padding: 6px 10px 8px 0; border-bottom: 1px solid var(--border); white-space: nowrap; }
.tbl td { padding: 9px 10px 9px 0; border-bottom: 1px solid var(--border); white-space: nowrap; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl .n { text-align: right; font-variant-numeric: tabular-nums; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 4px 14px; align-items: end; }
.form-grid .span2 { grid-column: 1 / -1; }
.form-grid .msg { display: inline; margin-left: 10px; }
select { width: 100%; background: var(--bg); color: var(--text); border: 1px solid var(--border); border-radius: 8px; padding: 10px 12px; font: inherit; margin-bottom: 14px; }
select:disabled { opacity: .5; }
.btn.sm { padding: 6px 12px; font-size: 13px; }
.keys { background: var(--bg); border: 1px solid var(--border); border-radius: 8px; padding: 12px; max-height: 280px; overflow: auto; font-size: 13px; }
.tbl .n + td, .tbl .n + th { padding-left: 16px; }
.form-grid input { height: 44px; }
select { height: 44px; }

/* ===== legal / arrependimento / conta ===== */
footer .legal-links { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; margin-top: 12px; white-space: normal; }
footer .legal-links a { color: var(--muted); margin: 0; }
footer .legal-links a:hover { color: var(--text); }
footer .legal-links a.pill-link { color: var(--text); border: 1px solid var(--border); border-radius: 999px; padding: 4px 12px; text-decoration: none; }
.legal { max-width: 760px; margin: 16px 0 48px; }
.legal h1 { font-size: clamp(26px, 4vw, 34px); margin: 8px 0 4px; }
.legal h2 { font-size: 18px; margin: 28px 0 8px; }
.legal p, .legal li { color: #c9d1db; }
.legal ul, .legal ol { padding-left: 20px; }
.legal li + li { margin-top: 4px; }
.tbl.wrap-cells td { white-space: normal; vertical-align: top; min-width: 120px; }
.h1 { font-size: 22px; margin: 0 0 6px; }
.label-like { display: block; font-size: 12px; color: var(--muted); margin: 14px 0 4px; text-transform: uppercase; letter-spacing: .5px; }
.toggle.kinds { margin: 0 0 14px; flex-wrap: wrap; border-radius: 14px; }
textarea { width: 100%; background: var(--bg); color: var(--text); border: 1px solid var(--border); border-radius: 8px; padding: 10px 12px; font: inherit; margin-bottom: 14px; resize: vertical; }
.code { font-size: 20px; font-weight: 800; letter-spacing: .5px; margin: 0; }
label.check { display: flex; gap: 10px; align-items: flex-start; text-transform: none; letter-spacing: 0; font-size: 14px; color: var(--muted); margin: 0 0 14px; cursor: pointer; }
label.check input { width: 18px; height: 18px; margin: 2px 0 0; flex: none; accent-color: var(--accent); }
.danger-zone summary { cursor: pointer; color: var(--muted); font-weight: 600; }
.danger-zone[open] summary { color: var(--text); margin-bottom: 8px; }
.btn.danger { background: var(--danger); color: #fff; }
.count { display: inline-block; min-width: 20px; padding: 0 6px; margin-left: 4px; border-radius: 999px; background: var(--warn); color: var(--accent-ink); font-size: 12px; font-weight: 700; }
.req { border-top: 1px solid var(--border); padding: 14px 0; display: flex; flex-direction: column; gap: 4px; }
.req:first-child { border-top: 0; }
.quote { margin: 6px 0; padding: 8px 12px; border-left: 3px solid var(--border); color: var(--text); white-space: pre-wrap; }
.inline.wrapit { flex-wrap: wrap; align-items: center; margin-top: 8px; }
.inline.wrapit input:not([type]) { flex: 1 1 260px; }
.inline.wrapit label.check { margin: 0; }
.status-pill.wait { background: #3a3218; color: var(--warn); }
.kpi.alert { border-color: var(--danger); } .kpi.alert .kpi-v { color: var(--danger); }
.node-form { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border); }
.node-form .span2 .btn { margin-right: 6px; }

/* ===== /baixar ===== */
.dl-grid { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.steps { margin: 4px 0 8px; padding-left: 20px; color: var(--muted); font-size: 14px; flex: 1; }
.steps li + li { margin-top: 6px; }
.btn.disabled { opacity: .5; pointer-events: none; }
details.small { font-size: 12px; }
details.small code { display: block; word-break: break-all; margin-top: 6px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.plan .steps li::before { content: none; }
.plan .local { font-size: 13px; margin-top: -4px; } .small-note { font-size: 13px; margin: -8px 0 16px; }
.fx-auto { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; margin: 4px 0 12px; }
.fx-auto label.check { margin: 0; }
.fx-credit { font-size: 11px; margin-left: auto; }
.ref-banner { margin: 16px 0 0; padding: 10px 14px; border: 1px solid var(--accent); border-radius: 8px; color: var(--accent); max-width: 620px; }
#refLink { font-size: 13px; }
.inline .btn { white-space: nowrap; }
.faq details { border-bottom: 1px solid var(--border); padding: 12px 0; }
.faq summary { cursor: pointer; font-weight: 600; color: var(--text); }
.faq details p { margin: 8px 0 0; }
.diag summary { cursor: pointer; color: var(--muted); font-size: 13px; }

/* ===== /jogos e /status ===== */
.games { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.card.game { display: flex; flex-direction: column; gap: 10px; padding: 16px; }
.card.game .plats { display: flex; gap: 6px; }
#filter { margin: 0 0 16px; }
.status-hero { display: flex; align-items: center; gap: 16px; }
.status-dot { width: 18px; height: 18px; border-radius: 50%; background: var(--muted); flex: none; }
.status-dot.ok { background: var(--accent); box-shadow: 0 0 0 6px #2bd47d22; }
.status-dot.degraded { background: var(--warn); box-shadow: 0 0 0 6px #f2b33d22; }
.status-dot.down { background: var(--danger); box-shadow: 0 0 0 6px #f0565a22; }

/* Cards de jogos: arte original por gênero (sem logos oficiais) */
.games { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; }
.game-tile { display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
  background: var(--card); color: var(--text); text-decoration: none; transition: transform .15s, border-color .15s; }
a.game-tile:hover { transform: translateY(-2px); border-color: var(--accent); }
.game-tile .art { aspect-ratio: 5 / 3; background: radial-gradient(circle at 30% 20%, var(--g1), var(--g2)); color: rgba(255,255,255,.85);
  display: grid; place-items: center; position: relative;
  background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px),
    radial-gradient(circle at 30% 20%, var(--g1), var(--g2));
  background-size: 16px 16px, 16px 16px, auto; }
.game-tile .art svg { width: 100%; height: 100%; }
.game-tile .genre { position: absolute; left: 8px; bottom: 6px; font-size: 10px; font-weight: 700; letter-spacing: .8px;
  text-transform: uppercase; color: rgba(255,255,255,.8); background: rgba(0,0,0,.28); padding: 1px 6px; border-radius: 4px; }
.game-tile .body { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 6px; }
.game-tile strong { font-size: 14px; line-height: 1.25; }
.game-tile .plats { display: flex; flex-wrap: wrap; gap: 4px; }
.game-tile .tag { font-size: 11px; padding: 1px 8px; }
.game-tile .tag.soon { background: transparent; border: 1px solid var(--warn); color: var(--warn); }
.game-tile.soon .art { filter: saturate(.5); }
.showcase { margin: 8px 0 36px; }
.showcase h2 { font-size: 18px; margin: 0 0 12px; }
.showcase .games { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
.showcase .more { display: inline-block; margin-top: 12px; }
@media (max-width: 480px) { .games, .showcase .games { grid-template-columns: repeat(2, 1fr); gap: 10px; } }

/* ---------------- Redesign (Canva): header, hero com o app, como funciona, mapa ---------------- */
.btn.sm { padding: 7px 14px; font-size: 14px; }
.btn.lg { padding: 14px 22px; font-size: 16px; border-radius: 10px; }
nav a.nav-cta { margin-left: 18px; color: var(--accent-ink); background: transparent; border: 1px solid var(--accent); color: var(--accent); }
nav a.nav-cta:hover { background: var(--accent); color: var(--accent-ink); }
.hero2 { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; padding: 56px 0 40px; }
.eyebrow { color: var(--accent); font-size: 13px; font-weight: 700; letter-spacing: 1.6px; text-transform: uppercase; margin-bottom: 10px; }
.hero2 h1 { font-size: clamp(34px, 5.2vw, 56px); line-height: 1.05; letter-spacing: -.5px; }
.hero2 h1 .hl { color: var(--accent); }
.feats { list-style: none; padding: 0; margin: 26px 0 0; display: flex; flex-wrap: wrap; gap: 22px; color: var(--muted); font-size: 14px; }
.feats li { display: flex; align-items: center; gap: 8px; }
.feats svg { width: 18px; height: 18px; fill: var(--accent); }
.hero-app { position: relative; background: linear-gradient(180deg, #161c22, #12171c); border: 1px solid var(--border); border-radius: 16px;
  padding: 18px 22px 20px; box-shadow: 0 30px 80px rgba(0,0,0,.5), 0 0 60px rgba(43,212,125,.08); }
.ha-top { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 17px; }
.ha-logo { width: 22px; height: 22px; background: url(/assets/icon.svg) center/contain no-repeat; }
.ha-dots { margin-left: auto; display: flex; gap: 6px; } .ha-dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--border); }
.ha-sub { display: flex; justify-content: space-between; color: var(--muted); font-size: 13px; margin: 14px 0 12px; }
.ha-on { color: var(--text); } .ha-on::before { content: "● "; color: var(--accent); }
.ha-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; border-top: 1px solid var(--border); padding-top: 14px; }
.ha-cols > div + div { border-left: 1px solid var(--border); padding-left: 18px; }
.ha-l { color: var(--muted); font-size: 13px; }
.ha-n { font-size: 44px; font-weight: 800; line-height: 1.1; } .ha-n small { font-size: 16px; color: var(--muted); font-weight: 500; margin-left: 4px; }
.ha-n.g { color: var(--accent); }
.ha-bars { display: flex; align-items: flex-end; gap: 3px; height: 34px; margin-top: 8px; }
.ha-bars i { flex: 1; background: var(--accent); border-radius: 2px; opacity: .85; } .ha-bars.dim i { background: #3a4350; }
.ha-gain { position: absolute; top: -14px; right: 18px; background: var(--accent); color: var(--accent-ink); font-weight: 800; padding: 4px 12px; border-radius: 999px; font-size: 14px; }
.ha-note { color: var(--muted); font-size: 11px; margin-top: 12px; }
.how h2, .routes-map h2 { font-size: 24px; margin: 0 0 16px; }
.how { margin: 8px 0 44px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.step { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 20px; position: relative; display: flex; flex-direction: column; gap: 6px; }
.step .num { position: absolute; top: 16px; right: 16px; width: 26px; height: 26px; border-radius: 50%; background: rgba(43,212,125,.15); color: var(--accent);
  display: grid; place-items: center; font-weight: 800; font-size: 13px; }
.step svg { width: 30px; height: 30px; fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 4px; }
.step p { margin: 0; color: var(--muted); font-size: 14px; }
.routes-map { display: grid; grid-template-columns: 340px 1fr; gap: 32px; align-items: center; background: var(--card); border: 1px solid var(--border);
  border-radius: 16px; padding: 24px 28px; margin: 0 0 48px; }
.routes-map p { color: var(--muted); margin: 0; font-size: 16px; }
.map { width: 100%; height: auto; }
.map .land { fill: #131b20; stroke: rgba(43,212,125,.35); stroke-width: 1.2; }
.map .rt path { fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-dasharray: 4 4; opacity: .85; }
.map .city circle { fill: var(--accent); }
.map .sp { fill: var(--accent); } .map .sp-glow { fill: rgba(43,212,125,.25); }
.map text { fill: var(--text); font-size: 11px; font-weight: 600; } .map text.b { font-size: 13px; fill: var(--accent); }
@media (max-width: 860px) {
  .hero2 { grid-template-columns: 1fr; gap: 30px; padding-top: 28px; }
  .steps { grid-template-columns: 1fr; }
  .routes-map { grid-template-columns: 1fr; padding: 20px; }
  .map { max-width: 320px; margin: 0 auto; }
  nav a.nav-cta { display: none; }
}
@media (max-width: 520px) { nav a[href="/jogos"] { display: none; } .ha-n { font-size: 36px; } }
