/* LiveGames — interface do site (painel, admin, página inicial). Preto, cinza e branco.
   Cor só onde significa algo: ao vivo (vermelho), ok (verde), atenção (âmbar). */
:root {
  --bg: #09090b;
  --bg-2: #0c0c0e;
  --surface: #111113;
  --surface-2: #18181b;
  --surface-3: #1f1f23;
  --border: #232327;
  --border-2: #2e2e33;
  --border-3: #3f3f46;
  --text: #fafafa;
  --text-2: #d4d4d8;
  --muted: #a1a1aa;
  --subtle: #71717a;
  --faint: #52525b;
  --primary: #fafafa;
  --primary-fg: #09090b;
  --live: #ef4444;
  --good: #22c55e;
  --good-fg: #86efac;
  --bad: #ef4444;
  --bad-fg: #fca5a5;
  --warn: #f59e0b;
  --warn-fg: #fcd34d;
  --ring: 0 0 0 2px var(--bg), 0 0 0 4px #fafafa59;
  --r-sm: 8px;
  --r: 10px;
  --r-lg: 14px;
  --shadow: 0 1px 0 #ffffff08 inset, 0 10px 30px -12px #000000b3;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --font: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --title: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "Cascadia Code", Consolas, monospace;
  /* compatibilidade com estilos antigos ainda escritos no JS */
  --line: var(--border);
  --line2: var(--border-2);
  --card: var(--surface);
  --card2: var(--surface-2);
  --acc: var(--primary);
  --r-old: 16px;
}
* { box-sizing: border-box; }
html { color-scheme: dark; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; color: var(--text); background: var(--bg);
  font: 400 14px/1.55 var(--font); font-feature-settings: "cv11", "ss01", "ss03"; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
/* luz bem fraca no topo: profundidade sem cor */
body::before {
  content: ""; position: fixed; inset: 0 0 auto 0; height: 420px; pointer-events: none; z-index: -1;
  background: radial-gradient(900px 320px at 50% -120px, #ffffff0d, transparent 70%);
}
::selection { background: #fafafa33; }
a { color: var(--text); text-decoration: none; text-underline-offset: 3px; }
a:hover { text-decoration: underline; text-decoration-color: var(--border-3); }
h1, h2, h3 { font-family: var(--title); margin: 0; line-height: 1.15; letter-spacing: -0.02em; font-weight: 600; }
h1 { letter-spacing: -0.035em; }
h2 { font-size: 20px; }
h3 { font-size: 16px; }
b, strong { font-weight: 600; }
p { margin: 0 0 10px; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.grow { flex: 1; }
.hidden { display: none !important; }
:focus-visible { outline: none; box-shadow: var(--ring); }

/* rolagem discreta */
* { scrollbar-width: thin; scrollbar-color: var(--border-3) transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--border-2); border-radius: 10px; border: 3px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-thumb:hover { background-color: var(--border-3); }
::-webkit-scrollbar-track { background: transparent; }

/* ---------- topo ---------- */
.top { position: sticky; top: 0; z-index: 20; background: #09090bcc; backdrop-filter: saturate(1.2) blur(14px); -webkit-backdrop-filter: saturate(1.2) blur(14px); border-bottom: 1px solid var(--border); }
.top .wrap { display: flex; align-items: center; gap: 14px; height: 60px; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font: 600 16px var(--font); letter-spacing: -0.02em; }
.logo:hover { text-decoration: none; }
.logo .mark { width: 26px; height: 26px; flex: none; display: block; transition: transform .35s var(--ease); }
.logo:hover .mark { transform: rotate(-6deg) scale(1.04); }
.logo .wm span { color: var(--subtle); }
.me { display: flex; align-items: center; gap: 10px; }
.me img { width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--border-2); }
.me .small { color: var(--text-2); }

/* ---------- botões ---------- */
.btn {
  appearance: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px; white-space: nowrap;
  height: 36px; padding: 0 14px; border-radius: var(--r); border: 1px solid var(--border-2); background: var(--surface-2); color: var(--text);
  font: 500 13.5px var(--font); letter-spacing: -0.005em; cursor: pointer; user-select: none; text-decoration: none;
  transition: background .18s var(--ease), border-color .18s var(--ease), color .18s var(--ease), transform .12s var(--ease), box-shadow .18s var(--ease);
}
.btn:hover { background: var(--surface-3); border-color: var(--border-3); text-decoration: none; }
.btn:active { transform: translateY(1px) scale(.99); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; transform: none; }
.btn.primary, .btn.discord { background: var(--primary); color: var(--primary-fg); border-color: var(--primary); box-shadow: 0 1px 0 #ffffff40 inset, 0 6px 18px -8px #ffffff40; }
.btn.primary:hover, .btn.discord:hover { background: #e4e4e7; border-color: #e4e4e7; }
.btn.ghost { background: transparent; border-color: transparent; color: var(--text-2); }
.btn.ghost:hover { background: var(--surface-2); border-color: var(--border); color: var(--text); }
.btn.good { background: #22c55e14; border-color: #22c55e40; color: var(--good-fg); }
.btn.good:hover { background: #22c55e24; border-color: #22c55e66; }
.btn.bad { background: transparent; border-color: #ef444440; color: var(--bad-fg); }
.btn.bad:hover { background: #ef444414; border-color: #ef444473; }
.btn.sm { height: 30px; padding: 0 10px; font-size: 12.5px; border-radius: var(--r-sm); gap: 6px; }
.btn .ic { opacity: .9; }

/* ---------- cards ---------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 20px; box-shadow: var(--shadow); }
.card h2, .card h3 { display: flex; align-items: center; gap: 8px; }
.card h3 { margin-bottom: 14px; }
.card > h2 + p, .card > .row + p { margin-top: 6px; }
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 900px) { .g2, .g3 { grid-template-columns: 1fr; } }

/* ---------- página inicial ---------- */
.hero { padding: 72px 0 48px; display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(36px, 5.4vw, 60px); font-weight: 600; }
.hero h1 span { color: var(--subtle); }
.hero p { font-size: 16.5px; color: var(--muted); max-width: 560px; margin-top: 18px; }
.hero .eyebrow { display: inline-flex; align-items: center; gap: 8px; height: 28px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--border-2); background: var(--surface); color: var(--text-2); font-size: 12.5px; font-weight: 500; margin-bottom: 18px; }
.hero .eyebrow i { width: 6px; height: 6px; border-radius: 50%; background: var(--live); box-shadow: 0 0 0 3px #ef444426; }
.hero .phone { aspect-ratio: 9 / 16; width: 100%; max-width: 310px; justify-self: center; border-radius: 34px; overflow: hidden; background: #000;
  border: 1px solid var(--border-2); box-shadow: 0 0 0 8px #111113, 0 0 0 9px var(--border-2), 0 40px 80px -30px #000; }
.hero .phone iframe { width: 100%; height: 100%; border: 0; display: block; }
@media (max-width: 900px) { .hero { grid-template-columns: 1fr; padding-top: 40px; } }
.section-title { display: flex; align-items: baseline; gap: 12px; margin-bottom: 14px; }
.section-title h2 { font-size: 22px; }

.games { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.game { display: flex; flex-direction: column; gap: 12px; position: relative; overflow: hidden; transition: border-color .2s var(--ease), transform .25s var(--ease); }
.game:hover { border-color: var(--border-3); transform: translateY(-2px); }
.game .thumb { position: relative; aspect-ratio: 1 / 1; border-radius: var(--r); overflow: hidden; background: #000; border: 1px solid var(--border); }
.game .thumb img { transition: transform .5s var(--ease); }
.game:hover .thumb img { transform: scale(1.025); }
.game .thumb iframe { position: absolute; left: 0; top: 0; width: 100%; height: 129%; border: 0; transform: translateY(-11%); pointer-events: none; }
.game .em { font-size: 30px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 5px; font: 500 11.5px var(--font); height: 22px; padding: 0 8px; border-radius: 999px; border: 1px solid var(--border-2); background: var(--surface-2); color: var(--text-2); }
.chip.bad { border-color: #ef444433; background: #ef44440f; color: var(--bad-fg); }
.chip.good { border-color: #22c55e33; background: #22c55e0f; color: var(--good-fg); }

.steps { counter-reset: s; }
.steps .card::before { counter-increment: s; content: counter(s, decimal-leading-zero); display: block; margin-bottom: 14px; font: 500 12px var(--mono); color: var(--subtle); letter-spacing: .04em; }
.steps .card h3 { margin-bottom: 8px; }

/* ---------- formulários ---------- */
input, select, textarea {
  font: 400 13.5px var(--font); color: var(--text); background: var(--bg-2); border: 1px solid var(--border-2); border-radius: var(--r-sm);
  height: 36px; padding: 0 11px; outline: none; min-width: 0; transition: border-color .15s var(--ease), box-shadow .15s var(--ease), background .15s var(--ease);
}
textarea { height: auto; padding: 9px 11px; resize: vertical; }
input::placeholder, textarea::placeholder { color: var(--faint); }
input:hover, select:hover, textarea:hover { border-color: var(--border-3); }
input:focus, select:focus, textarea:focus { border-color: #71717a; box-shadow: 0 0 0 3px #fafafa14; }
input[type=number] { font-variant-numeric: tabular-nums; }
select {
  appearance: none; -webkit-appearance: none; padding-right: 32px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23a1a1aa' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center;
}
select option, select optgroup { background: var(--surface-2); color: var(--text); }
input[type=file] { height: auto; padding: 6px; }
input[type=file]::file-selector-button { font: 500 12.5px var(--font); color: var(--text); background: var(--surface-3); border: 1px solid var(--border-2); border-radius: 6px; padding: 5px 10px; margin-right: 10px; cursor: pointer; }

/* slider: trilho fino; a parte preenchida usa --p (atualizado pelo common.js) */
input[type=range] {
  -webkit-appearance: none; appearance: none; height: 20px; padding: 0; border: 0; background: transparent; cursor: pointer; box-shadow: none; --p: 50%;
}
input[type=range]:focus { box-shadow: none; }
input[type=range]::-webkit-slider-runnable-track { height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--text) 0 var(--p), var(--border-2) var(--p) 100%); }
input[type=range]::-moz-range-track { height: 4px; border-radius: 4px; background: var(--border-2); }
input[type=range]::-moz-range-progress { height: 4px; border-radius: 4px; background: var(--text); }
input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 16px; height: 16px; margin-top: -6px; border-radius: 50%; background: var(--text); border: 0;
  box-shadow: 0 0 0 4px #09090b, 0 1px 4px #000; transition: transform .15s var(--ease), box-shadow .15s var(--ease);
}
input[type=range]::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: var(--text); border: 0; box-shadow: 0 0 0 4px #09090b; }
input[type=range]:hover::-webkit-slider-thumb { transform: scale(1.12); }
input[type=range]:active::-webkit-slider-thumb { transform: scale(1.2); }
input[type=range]:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 4px #09090b, 0 0 0 6px #fafafa59; }

/* checkbox = interruptor */
input[type=checkbox] {
  -webkit-appearance: none; appearance: none; position: relative; flex: none; width: 34px; height: 20px; padding: 0; margin: 0;
  border-radius: 999px; background: var(--surface-3); border: 1px solid var(--border-3); cursor: pointer; vertical-align: middle;
  transition: background .2s var(--ease), border-color .2s var(--ease);
}
input[type=checkbox]::before {
  content: ""; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: var(--muted);
  box-shadow: 0 1px 2px #0008; transition: transform .22s var(--ease), background .2s var(--ease);
}
input[type=checkbox]:checked { background: var(--text); border-color: var(--text); }
input[type=checkbox]:checked::before { transform: translateX(14px); background: var(--bg); }
input[type=checkbox]:disabled { opacity: .4; cursor: not-allowed; }
input[type=checkbox]:focus { box-shadow: none; }
input[type=checkbox]:focus-visible { box-shadow: var(--ring); }

label.f { display: flex; flex-direction: column; gap: 7px; font-weight: 500; font-size: 12.5px; color: var(--muted); }
label.f input:not([type=checkbox]), label.f select { color: var(--text); }
label.f:has(> input[type=checkbox]) { flex-direction: row; align-items: center; gap: 10px; color: var(--text-2); }
.field-row { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: center; }
.copy { display: flex; gap: 8px; }
.copy input { flex: 1; font: 400 12px var(--mono); color: var(--text-2); }

/* ---------- status ---------- */
.badge { display: inline-flex; align-items: center; gap: 7px; height: 26px; padding: 0 10px; border-radius: 999px; font: 500 12px var(--font); color: var(--text-2); background: var(--surface-2); border: 1px solid var(--border-2); white-space: nowrap; }
.badge i { width: 6px; height: 6px; border-radius: 50%; background: var(--faint); flex: none; }
.badge.live { color: var(--text); }
.badge.live i { background: var(--live); box-shadow: 0 0 0 3px #ef444426; animation: live 1.6s ease-in-out infinite; }
.badge.wait i { background: var(--warn); }
.badge.ok i { background: var(--good); box-shadow: 0 0 0 3px #22c55e1f; }
@keyframes live { 50% { box-shadow: 0 0 0 5px #ef444400; opacity: .7; } }
.alert { padding: 11px 14px; border-radius: var(--r); background: #ef44440d; border: 1px solid #ef444433; color: var(--bad-fg); }
.alert.info { background: var(--surface-2); border-color: var(--border-2); color: var(--text-2); }

/* ---------- painel ---------- */
.page { padding: 28px 0 72px; display: grid; gap: 16px; }
.tabs { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 14px; padding: 4px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--border); width: fit-content; max-width: 100%; }
.tab { display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 12px; border-radius: 8px; border: 1px solid transparent; background: transparent; color: var(--muted); font: 500 13px var(--font); cursor: pointer; transition: color .15s var(--ease), background .2s var(--ease), border-color .2s var(--ease); }
.tab:hover { color: var(--text); }
.tab.on { background: var(--surface-3); border-color: var(--border-2); color: var(--text); box-shadow: 0 1px 2px #0006; }
.picker { max-height: 440px; overflow: auto; padding: 2px; display: grid; grid-template-columns: repeat(auto-fill, minmax(156px, 1fr)); gap: 8px; }
.pick { text-align: left; padding: 12px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface-2); color: var(--text); cursor: pointer; font: 500 13.5px var(--font);
  transition: border-color .18s var(--ease), background .18s var(--ease), transform .18s var(--ease); }
.pick:hover { border-color: var(--border-3); background: var(--surface-3); }
.pick:active { transform: scale(.985); }
.pick .em { font-size: 24px; display: block; }
.pick small { display: block; color: var(--subtle); font-weight: 400; margin-top: 3px; line-height: 1.35; }
.pick.on { border-color: var(--text); background: var(--surface-3); box-shadow: 0 0 0 1px var(--text) inset; }
.pick .ic-box { background: var(--bg-2); }
.pick.on .ic-box { background: var(--text); color: var(--bg) !important; border-color: var(--text); }
.pick.on .ic-box svg { color: var(--bg) !important; stroke: var(--bg); }
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 16px; align-items: start; }
@media (max-width: 1050px) { .layout { grid-template-columns: 1fr; } .layout .sticky { position: static; max-height: none; overflow: visible; } }
.preview { aspect-ratio: 9 / 16; width: 100%; border-radius: 12px; overflow: hidden; border: 1px solid var(--border); background: #000; }
.preview iframe { width: 100%; height: 100%; border: 0; display: block; }
/* coluna lateral fixa: se for mais alta que a tela, rola por dentro */
.sticky { position: sticky; top: 76px; display: grid; gap: 14px; max-height: calc(100vh - 92px); overflow-y: auto; overscroll-behavior: contain; padding-right: 2px; }

table { width: 100%; border-collapse: separate; border-spacing: 0; }
th, td { text-align: left; padding: 10px 10px; border-bottom: 1px solid var(--border); vertical-align: middle; }
th { font: 500 11.5px var(--font); color: var(--subtle); text-transform: uppercase; letter-spacing: .06em; background: var(--bg-2); }
th:first-child { border-top-left-radius: 8px; } th:last-child { border-top-right-radius: 8px; }
tbody tr { transition: background .15s var(--ease); }
tbody tr:hover { background: #ffffff05; }
tbody tr:last-child td { border-bottom: 0; }
td input:not([type=checkbox]), td select { width: 100%; }
.trig td:nth-child(1) { width: 150px; }
.trig td:nth-child(4) { width: 80px; }
.trig td:last-child { width: 40px; }
@media (max-width: 700px) {
  .trig thead { display: none; }
  .trig tr { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 10px 0; border-bottom: 1px solid var(--border); }
  .trig td { border: 0; padding: 0; width: auto !important; }
}

.feed { display: flex; flex-direction: column; gap: 4px; max-height: 320px; overflow: auto; }
.feed .ev { display: flex; gap: 9px; align-items: center; padding: 7px 10px; border-radius: 8px; background: var(--surface-2); border: 1px solid transparent; font-size: 12.5px; color: var(--text-2); animation: rise .35s var(--ease) both; }
.feed .ev img { width: 22px; height: 22px; border-radius: 6px; }
.feed .ev b { color: var(--text); font-weight: 600; }
.feed .ev.act { background: var(--bg-2); border-color: var(--border); }
.stat { display: flex; gap: 8px; }
.stat .n { flex: 1; text-align: center; padding: 14px 10px; border-radius: 12px; font: 600 28px var(--font); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; background: var(--surface-2); border: 1px solid var(--border); }
.stat .w { color: var(--good-fg); }
.stat .l { color: var(--bad-fg); }
.stat small { display: block; font: 500 11.5px var(--font); color: var(--subtle); letter-spacing: .04em; text-transform: uppercase; margin-top: 2px; }

.widgets { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.wbox { border: 1px solid var(--border); border-radius: 12px; padding: 12px; background: var(--bg-2); display: grid; gap: 10px; transition: border-color .2s var(--ease); }
.wbox:hover { border-color: var(--border-3); }
.wbox .pv { height: 90px; border-radius: 8px; overflow: hidden; background: repeating-conic-gradient(#141416 0 25%, #0f0f11 0 50%) 0 0 / 18px 18px; border: 1px solid var(--border); }
.wbox iframe { width: 100%; height: 100%; border: 0; color-scheme: light; }
.preview iframe, .game .thumb iframe, .hero .phone iframe { color-scheme: light; }

/* ---------- ícones (SVG Lucide) ---------- */
.ic { display: inline-block; flex: none; vertical-align: -0.2em; }
.btn .ic, .tab .ic, .chip .ic, .badge .ic { vertical-align: -0.22em; }
h1 .ic, h2 .ic, h3 .ic { vertical-align: -0.12em; margin-right: 2px; color: var(--muted) !important; stroke: currentColor; }
.ic-box { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--border-2); color: var(--text-2); flex: none; }
.ic-box.lg { width: 44px; height: 44px; border-radius: 12px; }
.gicon { width: 26px; height: 26px; object-fit: contain; display: inline-grid; place-items: center; }

/* ---------- modal / presentes ---------- */
.modal { position: fixed; inset: 0; background: #000000b3; backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); z-index: 60; display: grid; place-items: center; padding: 16px; animation: fade .2s var(--ease); }
.modal-box { width: min(860px, 100%); max-height: 86vh; display: flex; flex-direction: column; gap: 10px; animation: pop .28s var(--ease); }
.gifts { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 6px; overflow: auto; padding: 2px; }
.gift { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 6px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface-2); color: var(--text-2); cursor: pointer; font: 500 12px var(--font); text-align: center; transition: border-color .15s var(--ease), background .15s var(--ease), transform .15s var(--ease); }
.gift:hover { border-color: var(--border-3); background: var(--surface-3); color: var(--text); transform: translateY(-1px); }
.gift img { width: 50px; height: 50px; object-fit: contain; }
.gift span { line-height: 1.2; }
.gift small { color: var(--warn-fg); font-weight: 500; font-variant-numeric: tabular-nums; }

/* ---------- toast ---------- */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); display: flex; align-items: center; gap: 9px; z-index: 70;
  background: var(--surface-2); color: var(--text); border: 1px solid var(--border-2); padding: 11px 16px; border-radius: 12px; font: 500 13.5px var(--font);
  box-shadow: 0 16px 40px -12px #000, 0 1px 0 #ffffff0d inset; animation: toast .32s var(--ease); }
.toast.err { border-color: #ef444455; }
.toast.hidden { display: none; }

footer { padding: 40px 0 48px; color: var(--subtle); font-size: 12.5px; text-align: center; border-top: 1px solid var(--border); margin-top: 24px; }

/* ---------- movimento (suave e curto) ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.985); } to { opacity: 1; transform: none; } }
@keyframes toast { from { opacity: 0; transform: translate(-50%, 10px); } to { opacity: 1; transform: translate(-50%, 0); } }
.page > *, .hero > *, main > section { animation: rise .5s var(--ease) both; }
.page > *:nth-child(2), .hero > *:nth-child(2) { animation-delay: .05s; }
.page > *:nth-child(3) { animation-delay: .1s; }
.page > *:nth-child(4) { animation-delay: .15s; }
.page > *:nth-child(n+5) { animation-delay: .2s; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-delay: 0s !important; transition-duration: .001ms !important; }
}

/* =====================================================================
   Frente ADMIN + PÁGINA INICIAL (admin.html/admin.js, index.html/hub.js)
   ===================================================================== */
/* .page zerava o respiro lateral do .wrap: abaixo de 1200px o conteúdo encostava na borda */
.wrap.page { padding-left: 24px; padding-right: 24px; }
@media (max-width: 600px) { .wrap, .wrap.page { padding-left: 16px; padding-right: 16px; } }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.faint { color: var(--faint); }
.count { color: var(--subtle); font-size: 13px; font-weight: 500; font-variant-numeric: tabular-nums; }

/* cabeçalho de página */
.page-head { display: flex; align-items: flex-end; gap: 16px; flex-wrap: wrap; padding: 8px 0 2px; }
.page-head h1 { font-size: 30px; }
.page-head p { margin: 6px 0 0; color: var(--muted); font-size: 14px; }

/* cabeçalho de card */
.card-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; min-height: 32px; }
.card-head h2 { font-size: 16px; letter-spacing: -0.015em; }
.card-sub { margin: 6px 0 16px; color: var(--muted); font-size: 13px; max-width: 720px; }

/* números do topo */
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 800px) { .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.kpi { display: grid; gap: 6px; padding: 16px 18px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--shadow); transition: border-color .2s var(--ease); }
.kpi:hover { border-color: var(--border-2); }
.kpi-l { display: flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 500; color: var(--muted); }
.kpi-l i { width: 6px; height: 6px; border-radius: 50%; background: var(--live); box-shadow: 0 0 0 3px #ef444426; animation: live 1.6s ease-in-out infinite; }
.kpi-v { font: 600 28px/1.1 var(--font); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; color: var(--text); }

/* moedas recebidas */
.coins-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 24px; align-items: start; }
@media (max-width: 900px) { .coins-grid { grid-template-columns: 1fr; } }
.metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
@media (max-width: 560px) { .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.metric { display: grid; gap: 4px; min-width: 0; padding: 12px 14px; border-radius: var(--r); background: var(--surface-2); border: 1px solid var(--border); }
.metric.main { grid-column: 1 / -1; padding: 16px 18px; background: var(--bg-2); }
.metric-l { font-size: 12px; font-weight: 500; color: var(--subtle); }
.metric-v { display: flex; align-items: center; gap: 10px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font: 600 20px/1.15 var(--font); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; color: var(--text); }
.metric.main .metric-v { font-size: 36px; letter-spacing: -0.04em; }
.chart { margin-top: 20px; }
.chart-h, .chart-x { display: flex; justify-content: space-between; gap: 12px; font-size: 12px; color: var(--subtle); font-variant-numeric: tabular-nums; }
.chart-h { margin-bottom: 10px; }
.chart-h span:first-child { color: var(--muted); font-weight: 500; }
.chart-x { margin-top: 8px; }
.bars { display: flex; align-items: flex-end; gap: 3px; height: 120px; border-bottom: 1px solid var(--border-2); }
.bar { position: relative; flex: 1; min-width: 3px; height: 100%; display: flex; align-items: flex-end; }
.bar i { display: block; width: 100%; height: var(--h); border-radius: 3px 3px 0 0; background: var(--muted); opacity: .5; transform-origin: bottom;
  transition: opacity .15s var(--ease), background .15s var(--ease); }
.bar:last-child i { opacity: .8; }
.bar.zero i { background: var(--border-2); opacity: 1; }
.bar:hover i { background: var(--text); opacity: 1; }
.bar::after { content: attr(data-tip); position: absolute; left: 50%; bottom: calc(var(--h) + 8px); z-index: 2; pointer-events: none; white-space: nowrap;
  padding: 5px 8px; border-radius: 6px; background: var(--surface-3); border: 1px solid var(--border-2); color: var(--text); box-shadow: 0 8px 20px -8px #000;
  font: 500 11.5px var(--font); font-variant-numeric: tabular-nums; opacity: 0; transform: translate(-50%, 4px); transition: opacity .15s var(--ease), transform .15s var(--ease); }
.bar:hover::after { opacity: 1; transform: translate(-50%, 0); }
.bar:nth-child(-n+5)::after { left: 0; transform: translate(0, 4px); }
.bar:nth-last-child(-n+5)::after { left: auto; right: 0; transform: translate(0, 4px); }
.bar:nth-child(-n+5):hover::after, .bar:nth-last-child(-n+5):hover::after { transform: none; }
.bars.anim .bar i { animation: grow .6s var(--ease) both; animation-delay: calc(var(--i) * 12ms); }
@keyframes grow { from { transform: scaleY(0); } to { transform: none; } }

/* ranking */
.rank { border-left: 1px solid var(--border); padding-left: 24px; min-width: 0; }
@media (max-width: 900px) { .rank { border-left: 0; padding-left: 0; border-top: 1px solid var(--border); padding-top: 18px; } }
.rank-h { font-size: 12.5px; font-weight: 500; color: var(--muted); margin-bottom: 6px; }
.rank-r { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 9px 0; border-bottom: 1px solid var(--border); }
.rank-r:last-child { border-bottom: 0; }
.rank-n { width: 20px; flex: none; font: 500 12px var(--mono); color: var(--subtle); }
.rank-name { flex: 1; min-width: 0; display: grid; line-height: 1.3; }
.rank-name span, .rank-name small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank-name small { color: var(--subtle); font-size: 12px; }
.rank-v { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-variant-numeric: tabular-nums; }
.av { width: 28px; height: 28px; flex: none; border-radius: 50%; object-fit: cover; background: var(--surface-3); border: 1px solid var(--border-2); }
.av.ph { display: inline-grid; place-items: center; font: 600 12px var(--font); color: var(--muted); }
.empty { color: var(--subtle); font-size: 13px; padding: 10px 0; }

/* formulário curto (Liberar ID) */
.inline-form { display: flex; gap: 8px; flex-wrap: wrap; }
.inline-form input { flex: 1 1 220px; }

/* opções liga/desliga (categorias temporárias) */
.opts { display: grid; gap: 8px; }
.opt { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface-2); transition: border-color .2s var(--ease), background .2s var(--ease); }
.opt:hover { border-color: var(--border-2); }
.opt .ic-box { background: var(--bg-2); color: var(--muted); transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease); }
.opt.on .ic-box { background: var(--text); color: var(--bg); border-color: var(--text); }
.opt-t { flex: 1; min-width: 150px; display: grid; gap: 2px; }
.opt-t b { font-weight: 600; }
.opt-t span { color: var(--muted); font-size: 12.5px; }

/* tabela de usuários (card sem respiro, tabela encosta nas bordas) */
.card.flush { padding: 0; overflow: hidden; }
.card.flush > .card-head { padding: 14px 20px; border-bottom: 1px solid var(--border); }
.table-wrap { overflow-x: auto; }
.table-wrap th:first-child, .table-wrap th:last-child { border-radius: 0; }
.table-wrap th { white-space: nowrap; }
.table-wrap th:first-child, .table-wrap td:first-child { padding-left: 20px; }
.table-wrap th:last-child, .table-wrap td:last-child { padding-right: 20px; }
.search { position: relative; display: inline-flex; align-items: center; }
.search .ic { position: absolute; left: 11px; color: var(--subtle); pointer-events: none; }
.search input { width: 240px; padding-left: 32px; }
@media (max-width: 600px) { .search, .search input { width: 100%; } }
.th-sort { appearance: none; display: inline-flex; align-items: center; gap: 5px; margin: 0; padding: 0; border: 0; background: none; cursor: pointer;
  font: inherit; color: inherit; text-transform: inherit; letter-spacing: inherit; transition: color .15s var(--ease); }
.th-sort:hover, .th-sort.on { color: var(--text); }
.th-sort .ic { opacity: .45; transition: opacity .15s var(--ease); }
.th-sort.on .ic { opacity: 1; }
.user { display: flex; align-items: center; gap: 10px; white-space: nowrap; }
.user-n { font-weight: 500; color: var(--text); }
.user .chip { height: 20px; padding: 0 7px; font-size: 11px; color: var(--muted); }
td.mono { font: 400 12px var(--mono); color: var(--muted); white-space: nowrap; }
td.nowrap { white-space: nowrap; }
td .badge { height: 22px; padding: 0 8px; margin-left: 8px; font-size: 11.5px; }
td.act { width: 1%; text-align: right; }
td.empty-row { padding: 28px 20px; text-align: center; color: var(--subtle); }
.num { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; font-variant-numeric: tabular-nums; color: var(--text); }
.num.zero { color: var(--faint); }
.btn.icon { width: 30px; padding: 0; }
.btn.ghost.del { color: var(--bad-fg); }
.btn.ghost.del:hover { background: #ef444414; border-color: #ef444433; color: var(--bad-fg); }

/* registro de segurança */
.log { display: flex; flex-direction: column; max-height: 360px; overflow: auto; }
.log-r { display: grid; grid-template-columns: 100px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--border); font-size: 13px; color: var(--text-2); }
.log-r:last-child { border-bottom: 0; }
.log-m { overflow-wrap: anywhere; }
.log-r time { font: 400 11.5px var(--mono); color: var(--subtle); white-space: nowrap; }
@media (max-width: 600px) { .log-r { grid-template-columns: 1fr; gap: 4px; } }

/* página inicial */
.hero-cta { margin-top: 26px; }
.hero p.hero-note { margin-top: 16px; font-size: 12.5px; color: var(--subtle); }
.gift-inline { white-space: nowrap; }
.gift-inline img { width: 22px; height: 22px; vertical-align: -5px; margin-right: 3px; }
.hero .phone img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sec { padding: 40px 0 8px; scroll-margin-top: 72px; }
.section-title .count { font-size: 13px; }
.tab .n { color: var(--faint); font-size: 12px; font-variant-numeric: tabular-nums; transition: color .15s var(--ease); }
.tab:hover .n, .tab.on .n { color: var(--subtle); }
.game h3 { margin: 0; }
.game p { margin: 0; }
.game-head { display: flex; align-items: center; gap: 12px; min-width: 0; }
.game-head .ic-box { color: var(--text-2); transition: border-color .2s var(--ease), color .2s var(--ease); }
.game:hover .game-head .ic-box { border-color: var(--border-3); color: var(--text); }
.game .chip.cat { align-self: flex-start; }
.game .foot { margin-top: auto; padding-top: 2px; }
.game .thumb img.tn { position: absolute; inset: 0; width: 100%; height: auto; transform: translateY(-11%); }
.game:hover .thumb img.tn { transform: translateY(-11%) scale(1.025); }
footer .foot { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; text-align: left; }
footer .foot span:first-child { color: var(--text-2); font-weight: 500; }

/* ========== painel do streamer (frente: painel) — classes pn-* usadas só pelo painel.js ========== */
/* cabeçalho de card: ícone cinza 18px + título; status/botões à direita */
.pn-head { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; min-height: 30px; margin-bottom: 12px; }
.card .pn-head > h3 { margin: 0; }
.pn-head .badge:empty { display: none; }
.modal-box .pn-head { margin-bottom: 4px; }
.pn-count { font: 500 12px var(--font); color: var(--subtle); font-variant-numeric: tabular-nums; }
.pn-sub { margin: -4px 0 16px; color: var(--muted); font-size: 12.5px; line-height: 1.55; }
.pn-note { margin: 12px 0 0; color: var(--subtle); font-size: 12px; line-height: 1.55; }
.pn-empty { padding: 8px 2px; }
.pn-mt { margin-top: 12px; }
.pn-mb { margin-bottom: 16px; }
.pn-g4 { gap: 4px; }
.pn-g6 { gap: 6px; }
.pn-section { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--border); }
.card h3.pn-subh { font-size: 14px; margin: 0 0 8px; }
.pn-lbl { display: inline-flex; align-items: center; gap: 8px; font: 600 13.5px/1.3 var(--font); color: var(--text); letter-spacing: -0.01em; }
.pn-inl { display: inline-flex; align-items: center; gap: 6px; }
.pn-strong { font-weight: 600; color: var(--text); }
.pn-dot { color: var(--faint); }
.pn-num { font-variant-numeric: tabular-nums; }
.pn-ell { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pn-bar { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 16px; }

/* busca com ícone */
.pn-search { position: relative; display: flex; align-items: center; width: 220px; max-width: 100%; }
.pn-search .ic { position: absolute; left: 11px; color: var(--subtle); pointer-events: none; }
.pn-search input { width: 100%; padding-left: 34px; }
.pn-search.wide { width: 100%; }
@media (max-width: 560px) { .pn-head .pn-search { width: 100%; } }

/* abas e cards de jogo */
.pn-tab-n { color: var(--subtle); font-size: 12px; font-variant-numeric: tabular-nums; transition: color .15s var(--ease); }
.tab.on .pn-tab-n { color: var(--muted); }
.pick .pn-pick-ic { display: grid; margin-bottom: 10px; color: var(--text-2); transition: background .18s var(--ease), border-color .18s var(--ease), color .18s var(--ease); }

/* botões só com ícone, botão do feed, imagem de presente dentro de botão */
.btn.pn-icon { width: 36px; padding: 0; }
.btn.sm.pn-icon { width: 30px; }
.btn.sm.pn-icon.pn-xs { width: 26px; height: 26px; border-radius: 6px; }
.btn.pn-del:hover { color: var(--bad-fg); }
.btn.sm.pn-mini { height: 22px; padding: 0 8px; font-size: 11.5px; border-radius: 6px; vertical-align: middle; }
.btn.pn-block { width: 100%; margin-top: 8px; }
.pn-gi { width: 18px; height: 18px; }

/* coluna lateral */
.card.pn-tight { padding: 16px; }
.pn-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.pn-actions .btn { width: 100%; }

/* live */
.pn-connect input { min-width: 180px; }
.pn-alert { display: flex; align-items: flex-start; gap: 10px; }
.pn-alert > .ic { margin-top: 2px; flex: none; }

/* configuração do jogo */
.badge.pn-badge-err { color: var(--warn-fg); border-color: #f59e0b40; background: #f59e0b0f; }
.pn-how { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 0; color: var(--muted); font-size: 12.5px; }
.pn-t { font-weight: 600; }
.pn-t.red { color: #fca5a5; }
.pn-t.blue { color: #93c5fd; }
.pn-t.green { color: #86efac; }
.pn-settings { margin-top: 20px; gap: 16px 20px; }
.pn-settings label.f:has(> input[type=checkbox]) { align-self: end; min-height: 36px; }
.pn-range-h { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.pn-val { color: var(--text); font-weight: 500; font-variant-numeric: tabular-nums; }
.pn-avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex: none; background: var(--surface-2); border: 1px solid var(--border-2); }
.row.pn-nowrap { flex-wrap: nowrap; gap: 8px; }
.pn-cell { display: flex; align-items: center; gap: 8px; flex-wrap: nowrap; }
.pn-cell > .ic { color: var(--muted); }
.pn-slot { display: inline-grid; place-items: center; width: 18px; flex: none; color: var(--muted); }
.pn-every { display: flex; align-items: center; gap: 8px; white-space: nowrap; color: var(--muted); font-size: 12.5px; }
.trig .pn-every input { width: 90px; }
.pn-table { overflow: auto; border: 1px solid var(--border); border-radius: var(--r); }
.pn-table th { white-space: nowrap; }
.pn-table th:first-child, .pn-table th:last-child { border-radius: 0; }
.pn-table th, .pn-table td { padding-left: 8px; padding-right: 8px; }
.pn-table th:first-child, .pn-table td:first-child { padding-left: 12px; }
.pn-table th:last-child, .pn-table td:last-child { padding-right: 12px; }
.pn-table .trig td:nth-child(4) { width: 64px; }
@media (max-width: 700px) { .pn-table { border: 0; border-radius: 0; } .pn-table .trig td { padding: 0; } }

/* testar */
.pn-test { display: grid; gap: 16px; }
.pn-k { display: block; margin-bottom: 8px; font: 500 11.5px var(--font); color: var(--subtle); text-transform: uppercase; letter-spacing: .06em; }
.pn-wrap { display: flex; flex-wrap: wrap; gap: 8px; }
.pn-join { display: inline-flex; gap: 6px; }
.pn-join input { width: 150px; height: 30px; font-size: 12.5px; }

/* sons */
.pn-sound-ctl { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-bottom: 12px; }
.pn-vol { display: inline-flex; align-items: center; gap: 10px; font: 500 12.5px var(--font); color: var(--text-2); }
.pn-vol .ic { color: var(--muted); }
.pn-vol input[type=range] { width: 140px; }
.pn-rules { border: 1px solid var(--border); border-radius: var(--r); padding: 0 12px; }
.pn-rules > p { margin: 0; padding: 14px 0; }
.pn-rule { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.pn-rule:last-child { border-bottom: 0; }
.pn-rule-who { min-width: 190px; }
.pn-rule select { min-width: 170px; height: 30px; font-size: 12.5px; }
.pn-rule input[type=range] { width: 96px; }
.feed.pn-feed-sm { max-height: 220px; }
.feed.pn-feed-200 { max-height: 200px; }
.feed.pn-feed-260 { max-height: 260px; }
.feed .ev .pn-evic { margin: 0 3px; }

/* moedas */
.pn-coin { min-width: 0; padding: 10px 8px; text-align: center; border-radius: var(--r); background: var(--surface-2); border: 1px solid var(--border); }
.pn-coin.big { padding: 16px 12px; }
.pn-coin-v { display: flex; align-items: center; justify-content: center; gap: 6px; font: 600 15px/1.3 var(--font); color: var(--text); letter-spacing: -0.01em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pn-coin.big .pn-coin-v { font-size: 26px; letter-spacing: -0.03em; gap: 8px; }
.pn-coin small { display: block; margin-top: 2px; font: 500 11px var(--font); color: var(--subtle); text-transform: uppercase; letter-spacing: .06em; }
.pn-coin-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 8px; }

/* links e widgets */
.row.pn-opts { gap: 20px; margin: 12px 0; }
.pn-steps { line-height: 1.7; }
.pn-secret { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px 16px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border); }
.pn-secret p { margin: 0; display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12.5px; }
.pn-secret p .ic { flex: none; }
.pn-wctl { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 16px; margin-bottom: 16px; }
.pn-wctl select { min-width: 180px; }
.pn-wctl label.f.pn-end { height: 36px; }
.wbox .pv.pn-pv-tall { height: 210px; }
.wbox.pn-feature { grid-template-columns: 150px minmax(0, 1fr); align-items: center; gap: 16px; margin-bottom: 16px; border-color: var(--border-2); }
.wbox .pv.pn-pv-game { height: auto; aspect-ratio: 1000 / 1290; }
.pn-feature-b { display: grid; gap: 8px; min-width: 0; }
@media (max-width: 520px) { .wbox.pn-feature { grid-template-columns: 1fr; } .wbox .pv.pn-pv-game { max-width: 180px; } }
.copy.pn-copy-sm input { height: 30px; }
.pn-meta { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--subtle); }
.pn-meta b { color: var(--text-2); font-weight: 500; font-variant-numeric: tabular-nums; }

/* placar / TOP */
.pn-sec { margin-top: 16px; }
.pn-subrow { display: flex; align-items: center; gap: 8px; min-height: 30px; margin-bottom: 8px; }
.pn-pos { width: 24px; flex: none; display: inline-flex; justify-content: center; color: var(--subtle); font: 500 12px var(--font); font-variant-numeric: tabular-nums; }
.feed .ev img.pn-round { border-radius: 50%; }
.pn-pts { display: inline-flex; align-items: center; gap: 4px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.stat small.pn-stat-l { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 0 0 4px; }
.stat .n.pn-team.red { background: #ef44440f; border-color: #ef444433; color: #fca5a5; }
.stat .n.pn-team.blue { background: #3b82f60f; border-color: #3b82f633; color: #93c5fd; }
.stat .n.pn-team.green { background: #22c55e0f; border-color: #22c55e33; color: #86efac; }
.pn-tdot { width: 8px; height: 8px; border-radius: 50%; flex: none; background: var(--faint); }
.pn-team.red .pn-tdot { background: #ef4444; }
.pn-team.blue .pn-tdot { background: #3b82f6; }
.pn-team.green .pn-tdot { background: #22c55e; }
.row.pn-resets { gap: 8px; margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--border); }

/* sem permissão */
.card.pn-lock { max-width: 560px; margin: 48px auto; padding: 32px 28px; text-align: center; }
.pn-lock .ic-box { display: grid; margin: 0 auto 16px; }
.pn-lock h2 { margin-bottom: 8px; }
.pn-lock .copy { max-width: 360px; margin: 16px auto; }
/* ========== fim: painel do streamer ========== */

/* ========== Teste Grátis (admin, painel, início) ========== */
.kpis.k5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (max-width: 1000px) { .kpis.k5 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 800px) { .kpis.k5 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.free-on { display: flex; align-items: center; flex-wrap: wrap; gap: 16px 24px; }
.free-clock { display: grid; gap: 6px; }
.free-time { font: 600 40px/1 var(--mono); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; color: var(--text); }
.free-end { font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.free-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-left: auto; }
@media (max-width: 560px) { .free-acts { margin-left: 0; } .free-time { font-size: 34px; } }
.free-note { margin: 14px 0 0; font-size: 12.5px; color: var(--subtle); }
.free-form { display: grid; grid-template-columns: 96px 96px minmax(0, 280px) auto; gap: 12px; align-items: end; justify-content: start; }
@media (max-width: 700px) { .free-form { grid-template-columns: 1fr 1fr; } .free-form .wide, .free-form .btn { grid-column: 1 / -1; } }
tr.is-banned td:not(.keep) { opacity: .45; }
tr.is-banned .user-n { text-decoration: line-through; }
.alert.pn-free { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.pn-free-t { color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }
.pn-free-new { display: flex; align-items: center; gap: 10px; max-width: 420px; margin: 16px auto; text-align: left; }

/* assinatura mensal / pagamento Pix */
.alert.good { background: #22c55e14; border-color: #22c55e44; color: #86efac; }
.alert.warn { background: #f59e0b14; border-color: #f59e0b44; color: #fcd34d; }
.alert.pn-sub { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.pn-pay-cta { margin: 14px 0 4px; display: flex; justify-content: center; }
.pn-pay { width: min(440px, 100%); text-align: center; }
.pn-pay .muted { text-align: center; }
.pn-pay-wait, .pn-pay-st { display: flex; align-items: center; justify-content: center; gap: 8px; }
.pn-pay-st { margin-top: 4px; }
.pn-qr { display: grid; place-items: center; margin: 8px 0; }
.pn-qr img { width: 220px; height: 220px; border-radius: 12px; background: #fff; padding: 8px; }
.pn-paylbl { display: block; text-align: left; font-size: 12px; color: var(--muted); margin: 8px 0 2px; }
.pn-pay .copy { margin-top: 2px; }
.hero .eyebrow.free i { background: var(--good); box-shadow: 0 0 0 3px #22c55e26; }
.hero .eyebrow b { font-weight: 600; color: var(--text); font-variant-numeric: tabular-nums; }
/* ========== fim: Teste Grátis ========== */
/* ========== widget legenda: modelo / idioma / colunas ========== */
.pn-lctl { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 8px 10px; }
.pn-lctl label.f { gap: 5px; font-size: 12px; }
.pn-lctl select { width: 100%; min-width: 0; height: 32px; font-size: 12.5px; }
/* ========== fim: widget legenda ========== */