/* EightOne Club: identidade da marca (preto, verde neon, Zalando Sans). Usado pelo app e pelo painel. */
:root {
  --bg: #0a0b0a;
  --surface: #131512;
  --surface-2: #1b1e19;
  --surface-3: #242822;
  --line: #2a2e27;
  --fg: #f1f3ec;
  --fg-2: #cfd3c7;
  --muted: #8f9588;
  --neon: #c6f82c;
  --neon-ink: #0a0b0a;
  --neon-soft: rgba(198, 248, 44, .12);
  --rocket: #ff8a3d;
  --danger: #ff5c5c;
  --ok: #5fd38d;
  --display: "Zalando Sans Expanded", "Archivo Black", "Arial Black", system-ui, sans-serif;
  --body: "Zalando Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  --r: 14px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--fg); }
body { font-family: var(--body); font-size: 15px; line-height: 1.5; -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; }
img { max-width: 100%; display: block; }
a { color: var(--neon); text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--neon); outline-offset: 2px; }
[hidden] { display: none !important; }
.num { font-variant-numeric: tabular-nums; }

.marca { font-family: var(--display); font-weight: 900; letter-spacing: .16em; font-size: 15px; line-height: 1; display: inline-flex; flex-direction: column; gap: 3px; color: var(--fg); }
.marca small { font-size: 8px; letter-spacing: .5em; color: var(--neon); font-weight: 600; }

.h1 { font-family: var(--display); font-weight: 900; text-transform: uppercase; font-size: 26px; line-height: 1.05; margin: 0; letter-spacing: .01em; text-wrap: balance; }
.h2 { font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: 15px; letter-spacing: .05em; margin: 0; }
.rotulo { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.mudo { color: var(--muted); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 12px; padding: 12px 16px; font-weight: 800; font-size: 14px; background: var(--neon); color: var(--neon-ink); text-transform: uppercase; letter-spacing: .04em; min-height: 46px; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.sec { background: var(--surface-2); color: var(--fg); border: 1px solid var(--line); }
.btn.fantasma { background: none; color: var(--fg); border: 1px solid var(--line); }
.btn.perigo { background: none; color: var(--danger); border: 1px solid color-mix(in srgb, var(--danger) 40%, var(--line)); }
.btn.peq { min-height: 34px; padding: 7px 12px; font-size: 12px; border-radius: 10px; }
.btn.largo { width: 100%; }
.btn svg { width: 18px; height: 18px; }

.campo { display: grid; gap: 6px; }
.campo > span { font-size: 13px; color: var(--fg-2); font-weight: 600; }
.campo small { color: var(--muted); font-size: 12px; }
.input { width: 100%; background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; padding: 12px 13px; font-size: 16px; color: var(--fg); }
.input:focus { border-color: var(--neon); outline: none; }
textarea.input { resize: vertical; min-height: 84px; }
select.input { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 34px; }

.chips { display: flex; flex-wrap: wrap; gap: 7px; }
.chip { background: var(--surface-2); border: 1px solid var(--line); color: var(--fg); border-radius: 999px; padding: 7px 13px; font-size: 13px; font-weight: 600; }
button.chip[aria-pressed="true"] { background: var(--neon); color: var(--neon-ink); border-color: var(--neon); }
.chip.estatico { padding: 4px 10px; font-size: 12px; }

.alternar { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; cursor: pointer; }
.alternar b { display: block; font-size: 14px; }
.alternar small { color: var(--muted); font-size: 12px; }
.sw { appearance: none; width: 44px; height: 26px; border-radius: 99px; background: var(--surface-3); border: 1px solid var(--line); position: relative; cursor: pointer; flex: none; transition: background .2s; margin: 0; }
.sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--muted); transition: transform .2s, background .2s; }
.sw:checked { background: var(--neon); border-color: var(--neon); }
.sw:checked::after { transform: translateX(18px); background: var(--neon-ink); }

.cartao { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
.av { width: 38px; height: 38px; border-radius: 50%; background: var(--surface-3); display: grid; place-items: center; font-weight: 800; font-size: 13px; color: var(--fg-2); flex: none; overflow: hidden; object-fit: cover; }
.av img { width: 100%; height: 100%; object-fit: cover; }

.aviso { padding: 11px 13px; border-radius: 12px; font-size: 13.5px; background: var(--surface-2); border: 1px solid var(--line); color: var(--fg-2); }
.aviso.erro { border-color: color-mix(in srgb, var(--danger) 50%, var(--line)); color: #ffc9c9; }
.aviso.ok { border-color: color-mix(in srgb, var(--neon) 40%, var(--line)); color: var(--fg); }

.toast { position: fixed; left: 50%; top: calc(env(safe-area-inset-top, 0px) + 14px); transform: translateX(-50%); background: var(--neon); color: var(--neon-ink); font-weight: 800; font-size: 14px; padding: 11px 18px; border-radius: 999px; z-index: 100; box-shadow: 0 12px 30px rgba(0,0,0,.5); max-width: calc(100% - 32px); text-align: center; animation: toast 3s ease forwards; }
.toast.erro { background: var(--danger); color: #fff; }
@keyframes toast { 0% { opacity: 0; transform: translate(-50%, -8px); } 10% { opacity: 1; transform: translate(-50%, 0); } 85% { opacity: 1; } 100% { opacity: 0; } }

.carregando { display: grid; place-items: center; padding: 40px; color: var(--muted); font-size: 13px; }
.vazio { text-align: center; padding: 36px 16px; color: var(--muted); display: grid; gap: 10px; justify-items: center; }
.vazio b { color: var(--fg); font-family: var(--display); text-transform: uppercase; font-size: 15px; }

@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
