/* ============================================================
   Holdem Club — cinza claro, preto e vermelho
   ============================================================ */
:root {
  --bg: #e9eaed;
  --surface: #f4f5f7;
  --card: #fbfbfc;
  --line: #d6d8dd;
  --line-2: #c5c8ce;
  --ink: #0c0c0e;
  --ink-2: #3d4047;
  --muted: #7d828c;
  --black: #0c0c0e;
  --black-2: #17181b;
  --black-3: #24262b;
  --red: #e00000;          /* vermelho do logo */
  --red-2: #ff2424;
  --red-dark: #990000;
  --red-soft: rgba(224, 0, 0, .1);
  --ok: #138a4b;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 0 rgba(255,255,255,.7) inset, 0 8px 24px -12px rgba(12,12,14,.25);
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --display: 'Rajdhani', 'Inter', system-ui, sans-serif;
  --nav-h: 68px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
  color-scheme: light;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; }
body {
  font: 15px/1.45 var(--font);
  color: var(--ink);
  background: var(--bg);
  background-image:
    radial-gradient(circle at 1px 1px, rgba(12,12,14,.06) 1px, transparent 0);
  background-size: 22px 22px;
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--display); letter-spacing: .02em; margin: 0; line-height: 1.1; }
[hidden] { display: none !important; }
.num { font-family: var(--display); font-variant-numeric: tabular-nums; font-weight: 700; }
.muted { color: var(--muted); }
.red { color: var(--red); }

/* ----------------------------------------------------- shell */
.topbar {
  position: sticky; top: 0; z-index: 30;
  padding: calc(var(--safe-t) + 10px) 16px 10px;
  background: rgba(12,12,14,.94);
  backdrop-filter: blur(14px) saturate(140%);
  color: #fff;
  display: flex; align-items: center; gap: 12px;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 700; font-size: 20px; letter-spacing: .06em; text-transform: uppercase; }
.brand-mark {
  width: 22px; height: 36px; display: grid; place-items: center; flex: none;
  color: var(--red); filter: drop-shadow(0 0 10px rgba(224,0,0,.45));
}
.brand-mark svg { width: 100%; height: 100%; fill: currentColor; }
.brand-mark-top { width: 24px; height: 40px; }
.brand small { display: block; font: 500 10px/1 var(--font); letter-spacing: .18em; color: #9a9ea6; }
.brand > span:last-child { min-width: 0; overflow-wrap: break-word; }
.brand { min-width: 0; }
@media (max-width: 440px) {
  .brand { font-size: 17px; letter-spacing: .04em; }
  .brand small { display: none; }
  .topbar { gap: 8px; }
}
.topbar .spacer { flex: 1; }
.chip-balance {
  display: flex; align-items: center; gap: 8px; padding: 6px 12px 6px 8px; border-radius: 999px;
  background: var(--black-3); border: 1px solid rgba(255,255,255,.08); font-size: 13px;
}
.chip-balance .dot { width: 18px; height: 18px; border-radius: 50%; background: conic-gradient(var(--red) 0 25%, #fff 0 50%, var(--red) 0 75%, #fff 0); box-shadow: 0 0 0 3px var(--red) inset; }
.icon-btn {
  width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.1);
  background: var(--black-3); color: #fff; cursor: pointer; transition: background .2s, transform .15s;
}
.icon-btn:hover { background: #2f3238; }
.icon-btn:active { transform: scale(.94); }
.icon-btn svg { width: 19px; height: 19px; }
.icon-btn.active { background: var(--red); border-color: var(--red); }

main {
  max-width: 760px; margin: 0 auto;
  padding: 18px 16px calc(var(--nav-h) + var(--safe-b) + 32px);
}
main.wide { max-width: 1180px; }
.view { animation: viewIn .35s cubic-bezier(.2,.8,.2,1); }
@keyframes viewIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ----------------------------------------------------- bottom nav */
.nav {
  position: fixed; z-index: 40; left: 50%; transform: translateX(-50%);
  bottom: calc(10px + var(--safe-b));
  width: min(560px, calc(100% - 20px));
  height: var(--nav-h);
  background: rgba(12,12,14,.92); backdrop-filter: blur(16px) saturate(150%);
  border: 1px solid rgba(255,255,255,.08); border-radius: 22px;
  display: grid; grid-template-columns: repeat(5, 1fr); padding: 6px;
  box-shadow: 0 18px 40px -14px rgba(0,0,0,.55);
}
.nav a {
  position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  color: #8d929b; font-size: 11px; font-weight: 600; letter-spacing: .02em; border-radius: 16px; transition: color .25s;
}
.nav a svg { width: 22px; height: 22px; transition: transform .25s; }
.nav a.active { color: #fff; }
.nav a.active svg { transform: translateY(-1px); }
.nav .live-dot { position: absolute; top: 9px; right: calc(50% - 16px); width: 7px; height: 7px; border-radius: 50%; background: var(--red-2); box-shadow: 0 0 0 0 var(--red); animation: pulse 1.8s infinite; }
.nav-indicator {
  position: absolute; z-index: 0; top: 6px; bottom: 6px; left: 6px;
  width: calc((100% - 12px) / 5); border-radius: 16px;
  background: linear-gradient(180deg, var(--red), var(--red-dark));
  box-shadow: 0 8px 20px -8px var(--red);
  transition: transform .45s cubic-bezier(.3,1.3,.5,1);
}
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(224,0,0,.6); } 70% { box-shadow: 0 0 0 8px rgba(224,0,0,0); } 100% { box-shadow: 0 0 0 0 rgba(224,0,0,0); } }

@media (min-width: 1000px) {
  .nav {
    left: 16px; top: calc(var(--safe-t) + 78px); bottom: auto; transform: none;
    width: 92px; height: auto; grid-template-columns: 1fr; grid-auto-rows: 74px;
  }
  .nav-indicator { width: auto; right: 6px; height: 74px; bottom: auto; }
  main { padding-bottom: 40px; }
  main.wide { padding-left: 124px; }
}

/* ----------------------------------------------------- tipografia de seção */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin: 6px 0 16px; }
.page-head h1 { font-size: 30px; text-transform: uppercase; }
.page-head .kicker { font-size: 11px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--red); margin-bottom: 4px; display: flex; align-items: center; gap: 8px; }
.section-title { font-family: var(--display); font-size: 15px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); margin: 26px 0 12px; display: flex; align-items: center; gap: 10px; }
.section-title::after { content: ''; flex: 1; height: 1px; background: linear-gradient(90deg, var(--line-2), transparent); }

/* ----------------------------------------------------- cards */
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 16px;
}
.stack { display: grid; gap: 12px; }
.grid-2 { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }

.hero {
  position: relative; overflow: hidden; border-radius: 22px; padding: 20px; color: #fff;
  background:
    radial-gradient(120% 140% at 100% 0%, rgba(224,0,0,.55), transparent 55%),
    linear-gradient(160deg, #1b1c20, var(--black));
  border: 1px solid rgba(255,255,255,.06);
  box-shadow: 0 20px 40px -22px rgba(0,0,0,.7);
}
.hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .35;
  background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 26px 26px; mask-image: linear-gradient(200deg, #000, transparent 70%);
}
.hero > * { position: relative; }
.hero .date { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: #b9bcc3; }
.hero h2 { font-size: 28px; margin: 6px 0 14px; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-stat { flex: 1 1 90px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.08); border-radius: 14px; padding: 10px 12px; }
.hero-stat .num { font-size: 26px; display: block; line-height: 1; }
.hero-stat span:last-child { font-size: 11px; color: #a7abb3; text-transform: uppercase; letter-spacing: .1em; }
.live-pill { display: inline-flex; align-items: center; gap: 7px; font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; background: rgba(224,0,0,.16); color: var(--red-2); border: 1px solid rgba(224,0,0,.35); }
.live-pill i { width: 7px; height: 7px; border-radius: 50%; background: var(--red-2); animation: pulse 1.8s infinite; }

/* ----------------------------------------------------- evento */
.event { position: relative; padding: 0; overflow: hidden; }
.event-top { display: flex; gap: 14px; padding: 16px 16px 12px; }
.event-time { flex: none; width: 66px; text-align: center; border-radius: 12px; background: var(--black); color: #fff; padding: 8px 0 6px; align-self: flex-start; }
.event-time .num { font-size: 22px; display: block; line-height: 1; }
.event-time small { font-size: 10px; letter-spacing: .14em; color: #a9adb5; text-transform: uppercase; }
.event-info { min-width: 0; flex: 1; }
.event-info h3 { font-size: 21px; }
.event-info p { margin: 4px 0 0; color: var(--ink-2); font-size: 13.5px; }
.badge { display: inline-flex; align-items: center; gap: 5px; font-size: 10.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; padding: 3px 8px; border-radius: 6px; background: var(--black); color: #fff; margin-bottom: 6px; }
.badge.red { background: var(--red); }
.badge.outline { background: transparent; color: var(--ink-2); border: 1px solid var(--line-2); }
.badge.ok { background: var(--ok); }
.prices { display: grid; grid-template-columns: repeat(auto-fit, minmax(92px, 1fr)); border-top: 1px dashed var(--line-2); border-bottom: 1px dashed var(--line-2); background: var(--surface); }
.prices div { padding: 10px 14px; border-right: 1px dashed var(--line); }
.prices div:last-child { border-right: 0; }
.prices small { display: block; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.prices .num { font-size: 18px; }
.prices .gtd .num { color: var(--red); }
.event-foot { display: flex; align-items: center; gap: 14px; padding: 12px 16px 16px; flex-wrap: wrap; }
.capacity { flex: 1 1 140px; font-size: 12.5px; color: var(--ink-2); }
.bar { height: 6px; border-radius: 6px; background: var(--line); overflow: hidden; margin-top: 6px; }
.bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--red-dark), var(--red-2)); border-radius: inherit; transition: width .6s cubic-bezier(.2,.8,.2,1); }

/* ----------------------------------------------------- botões */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 8px 18px; border-radius: 13px; border: 1px solid transparent; cursor: pointer;
  font-weight: 700; font-size: 14px; letter-spacing: .02em; line-height: 1.2; text-align: center; overflow-wrap: break-word;
  transition: transform .15s, background .2s, box-shadow .2s, color .2s;
}
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: linear-gradient(180deg, var(--red-2), var(--red)); color: #fff; box-shadow: 0 10px 22px -10px var(--red), 0 1px 0 rgba(255,255,255,.25) inset; }
.btn-primary:hover { background: linear-gradient(180deg, #ff3b4a, #ea1222); }
.btn-dark { background: var(--black); color: #fff; }
.btn-dark:hover { background: var(--black-3); }
.btn-ghost { background: transparent; border-color: var(--line-2); color: var(--ink); }
.btn-ghost:hover { background: var(--surface); }
.btn-confirmed { background: var(--black); color: #fff; }
.btn-confirmed svg { color: var(--red-2); }
.btn-sm { min-height: 36px; padding: 6px 12px; font-size: 13px; border-radius: 10px; }
.btn-block { width: 100%; }
.btn-danger { background: transparent; color: var(--red); border-color: rgba(224,0,0,.35); }
.btn-danger:hover { background: var(--red-soft); }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.row.end { justify-content: flex-end; }
.row.between { justify-content: space-between; }

/* ----------------------------------------------------- dias da agenda */
.days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; margin-bottom: 16px; }
.day {
  position: relative; border: 1px solid var(--line); background: var(--card); border-radius: 14px; padding: 8px 0 9px; text-align: center; cursor: pointer;
  transition: background .25s, color .25s, transform .2s, border-color .25s;
}
.day:hover { transform: translateY(-2px); }
.day small { display: block; font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.day .num { font-size: 22px; line-height: 1.1; }
.day .dots { display: flex; justify-content: center; gap: 3px; height: 5px; margin-top: 3px; }
.day .dots i { width: 5px; height: 5px; border-radius: 50%; background: var(--red); }
.day.active { background: var(--black); color: #fff; border-color: var(--black); }
.day.active small { color: #a7abb3; }
.day.today::after { content: 'HOJE'; position: absolute; top: -7px; left: 50%; transform: translateX(-50%); font-size: 8.5px; font-weight: 800; letter-spacing: .12em; background: var(--red); color: #fff; padding: 1px 5px; border-radius: 4px; }

/* ----------------------------------------------------- ao vivo */
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }
.stat { background: var(--black); color: #fff; border-radius: 16px; padding: 12px 14px; position: relative; overflow: hidden; }
.stat::after { content: ''; position: absolute; right: -20px; top: -20px; width: 60px; height: 60px; border-radius: 50%; background: radial-gradient(var(--red), transparent 70%); opacity: .45; }
.stat .num { font-size: 30px; line-height: 1; display: block; }
.stat small { font-size: 10.5px; text-transform: uppercase; letter-spacing: .12em; color: #a7abb3; }
.ticker { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 14px; background: var(--red-soft); border: 1px solid rgba(224,0,0,.25); margin-bottom: 10px; font-size: 14px; }
.ticker svg { width: 18px; height: 18px; color: var(--red); flex: none; margin-top: 1px; }
.ticker time { display: block; font-size: 11px; color: var(--muted); margin-top: 2px; }

.ptable { padding: 0; overflow: hidden; }
.ptable-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; padding: 14px 16px 0; }
.ptable-head h3 { font-size: 20px; }
.felt {
  margin: 12px 16px; height: 92px; border-radius: 999px; position: relative;
  background: radial-gradient(ellipse at center, #2a2c31 0%, #141518 70%);
  border: 6px solid #2c2e33; box-shadow: 0 0 0 1px var(--line-2), inset 0 0 22px rgba(0,0,0,.6);
  display: grid; place-items: center; color: #fff;
}
.felt .blinds { text-align: center; }
.felt .blinds small { display: block; font-size: 9.5px; letter-spacing: .2em; color: #9ea2aa; text-transform: uppercase; }
.felt .blinds .num { font-size: 24px; line-height: 1; }
.seat { position: absolute; width: 14px; height: 14px; border-radius: 50%; background: #3a3d44; border: 2px solid #1a1b1f; transform: translate(-50%, -50%); transition: background .3s; }
.seat.on { background: var(--red); box-shadow: 0 0 8px rgba(224,0,0,.8); }
.ptable-foot { display: flex; justify-content: space-between; align-items: center; padding: 0 16px 14px; font-size: 13px; color: var(--ink-2); gap: 8px; flex-wrap: wrap; }
.ptable-foot b { color: var(--ink); }
.updated { font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 6px; }

/* ----------------------------------------------------- cardápio */
.tabs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px 0 12px; position: sticky; top: calc(var(--safe-t) + 58px); z-index: 5; background: linear-gradient(var(--bg) 80%, transparent); }
.tabs::-webkit-scrollbar { display: none; }
.tab { flex: none; height: 36px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--card); font-weight: 600; font-size: 13px; cursor: pointer; transition: all .2s; }
.tab.active { background: var(--black); color: #fff; border-color: var(--black); }
.menu-item { display: flex; gap: 12px; align-items: flex-start; padding: 14px 0; border-bottom: 1px solid var(--line); }
.menu-item:last-child { border-bottom: 0; }
.menu-item h4 { margin: 0; font-size: 15px; }
.menu-item p { margin: 3px 0 0; color: var(--muted); font-size: 13px; }
.menu-item .price { margin-left: auto; font-size: 18px; white-space: nowrap; }

/* ----------------------------------------------------- carteira */
.wallet-card {
  position: relative; overflow: hidden; border-radius: 24px; padding: 22px; color: #fff; min-height: 190px;
  background:
    radial-gradient(140% 120% at 0% 100%, rgba(224,0,0,.7), transparent 50%),
    linear-gradient(135deg, #202125, #0a0a0b 70%);
  box-shadow: 0 24px 40px -20px rgba(0,0,0,.6);
  display: flex; flex-direction: column; justify-content: space-between;
}
.wallet-card::after { content: ''; position: absolute; right: -24px; top: -30px; width: 150px; height: 268px; background: url(/logo.svg) no-repeat center / contain; opacity: .16; pointer-events: none; }
.wallet-card > * { position: relative; z-index: 1; }
.wallet-card .label { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: #c3c6cc; }
.wallet-card .num { font-size: 44px; line-height: 1; margin-top: 6px; }
.wallet-card .holder { font-size: 13px; color: #c3c6cc; letter-spacing: .08em; text-transform: uppercase; }
.tx { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.tx:last-child { border-bottom: 0; }
.tx-icon { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; flex: none; background: var(--surface); border: 1px solid var(--line); }
.tx-icon svg { width: 17px; height: 17px; }
.tx-icon.in { color: var(--ok); }
.tx-icon.out { color: var(--red); }
.tx .desc { flex: 1; min-width: 0; }
.tx .desc div { font-weight: 600; font-size: 14px; overflow-wrap: break-word; }
.tx .desc small { overflow-wrap: break-word; }
.tx .amt { white-space: nowrap; flex: none; margin-left: auto; }
/* tela estreita + valor alto: o valor desce para baixo da descrição em vez de espremê-la */
.tx { flex-wrap: wrap; }
.tx .desc { flex: 1 1 150px; }
.tx .desc small { color: var(--muted); font-size: 12px; }
.tx .amt { font-size: 18px; }
.tx .amt.in { color: var(--ok); }
.tx .amt.out { color: var(--red); }

.amounts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.amount { height: 52px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--card); cursor: pointer; font-family: var(--display); font-weight: 700; font-size: 18px; transition: all .2s; }
.amount.active { background: var(--black); color: #fff; border-color: var(--black); box-shadow: 0 0 0 2px var(--red) inset; }
.methods { display: grid; gap: 8px; }
.method { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--card); cursor: pointer; }
.method input { accent-color: var(--red); width: 18px; height: 18px; }
.method small { display: block; color: var(--muted); font-size: 12px; }
.pix-box { background: var(--surface); border: 1px dashed var(--line-2); border-radius: 14px; padding: 14px; display: flex; gap: 10px; align-items: center; }
.pix-box code { flex: 1; font-size: 14px; word-break: break-all; font-weight: 600; }

/* ----------------------------------------------------- forms */
.field { display: grid; gap: 6px; }
.field > span { font-size: 12px; font-weight: 600; color: var(--ink-2); letter-spacing: .02em; }
.input, select.input, textarea.input {
  width: 100%; height: 48px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line-2); background: #fff; outline: none;
  transition: border-color .2s, box-shadow .2s;
}
textarea.input { height: auto; min-height: 90px; padding: 12px 14px; resize: vertical; }
.input:focus { border-color: var(--ink); box-shadow: 0 0 0 4px rgba(12,12,14,.08); }
.form-grid { display: grid; gap: 12px; grid-template-columns: repeat(6, minmax(0, 1fr)); }
.form-grid > * { grid-column: span 6; }
.form-grid .s3 { grid-column: span 3; }
.form-grid .s2 { grid-column: span 2; }
.form-grid .s4 { grid-column: span 4; }
.form-grid .s1 { grid-column: span 1; }
@media (max-width: 520px) {
  .form-grid .s1 { grid-column: span 3; }
  .form-grid .s3 { grid-column: span 6; }
  .form-grid .s4 { grid-column: span 6; }
  .form-grid .s2 { grid-column: span 3; }
}
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--ink-2); }
.check input { accent-color: var(--red); width: 18px; height: 18px; margin-top: 1px; flex: none; }
.form-error { color: var(--red); font-size: 13px; font-weight: 600; min-height: 1em; }
.toggle-row { display: flex; gap: 6px; padding: 4px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.toggle-row button { flex: 1; height: 38px; border: 0; border-radius: 9px; background: transparent; font-weight: 700; cursor: pointer; transition: all .2s; }
.toggle-row button.active { background: var(--black); color: #fff; }
.toggle-row button.active.debit { background: var(--red); }

/* ----------------------------------------------------- auth */
.auth {
  min-height: 100dvh; display: grid; place-items: center; padding: calc(var(--safe-t) + 24px) 16px calc(var(--safe-b) + 24px);
  background:
    radial-gradient(80% 60% at 100% 0%, rgba(224,0,0,.45), transparent 60%),
    radial-gradient(60% 50% at 0% 100%, rgba(224,0,0,.25), transparent 60%),
    var(--black);
  color: #fff;
}
.auth-box { width: min(100%, 520px); }
.auth-logo { display: flex; flex-direction: column; align-items: center; text-align: center; margin-bottom: 24px; }
.auth-logo .brand-mark { width: 62px; height: 110px; margin-bottom: 18px; filter: drop-shadow(0 0 28px rgba(224,0,0,.55)); }
.auth-logo h1 { font-size: 34px; text-transform: uppercase; letter-spacing: .1em; }
.auth-logo p { color: #a7abb3; margin: 6px 0 0; }
.auth-logo-img { width: min(300px, 78vw); height: auto; filter: drop-shadow(0 0 30px rgba(224,0,0,.28)); margin-bottom: 4px; }
.auth-card { background: var(--surface); color: var(--ink); border-radius: 22px; padding: 20px; box-shadow: 0 30px 60px -20px rgba(0,0,0,.7); }
.auth-card .toggle-row { margin-bottom: 18px; }
.auth-legal { text-align: center; color: #7d828c; font-size: 12px; margin-top: 16px; }

/* ----------------------------------------------------- sheet / modal */
.sheet-backdrop {
  position: fixed; inset: 0; z-index: 80; background: rgba(8,8,10,.55); backdrop-filter: blur(4px);
  display: flex; align-items: flex-end; justify-content: center; animation: fade .25s;
}
.sheet {
  width: min(100%, 620px); max-height: 92dvh; overflow: auto; background: var(--surface);
  border-radius: 24px 24px 0 0; padding: 10px 18px calc(var(--safe-b) + 20px);
  animation: up .35s cubic-bezier(.2,.9,.2,1);
}
.sheet-grip { width: 42px; height: 5px; border-radius: 5px; background: var(--line-2); margin: 0 auto 12px; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; gap: 10px; }
.sheet-head h2 { font-size: 24px; text-transform: uppercase; }
.sheet-close { width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--card); cursor: pointer; display: grid; place-items: center; }
.sheet-close svg { width: 16px; height: 16px; }
@media (min-width: 700px) {
  .sheet-backdrop { align-items: center; }
  .sheet { border-radius: 24px; padding-bottom: 22px; }
  .sheet-grip { display: none; }
}
@keyframes fade { from { opacity: 0; } }
@keyframes up { from { transform: translateY(40px); opacity: 0; } }

/* ----------------------------------------------------- toast */
#toast { position: fixed; z-index: 100; left: 50%; bottom: calc(var(--nav-h) + var(--safe-b) + 24px); transform: translateX(-50%); display: grid; gap: 8px; width: min(92vw, 420px); pointer-events: none; }
.toast { background: var(--black); color: #fff; padding: 12px 16px; border-radius: 14px; font-weight: 600; font-size: 14px; box-shadow: 0 14px 30px -10px rgba(0,0,0,.6); border-left: 4px solid var(--ok); animation: up .3s; }
.toast.error { border-left-color: var(--red); }

/* ----------------------------------------------------- misc */
.empty { text-align: center; padding: 36px 16px; color: var(--muted); border: 1px dashed var(--line-2); border-radius: var(--radius); background: rgba(255,255,255,.35); }
.empty svg { width: 34px; height: 34px; color: var(--line-2); margin-bottom: 8px; }
.empty b { display: block; color: var(--ink-2); margin-bottom: 4px; font-size: 15px; }
.skeleton { height: 120px; border-radius: var(--radius); background: linear-gradient(90deg, #e2e3e6, #f0f1f3, #e2e3e6); background-size: 200% 100%; animation: shimmer 1.2s infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; font-size: 14px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 600; }
.list-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-bottom: 1px solid var(--line); cursor: pointer; transition: background .15s; }
.list-row:hover { background: var(--surface); }
.list-row:last-child { border-bottom: 0; }
.avatar { width: 38px; height: 38px; border-radius: 12px; background: var(--black); color: #fff; display: grid; place-items: center; font-family: var(--display); font-weight: 700; flex: none; }
.list-row .grow { flex: 1; min-width: 0; }
.list-row .grow div { font-weight: 600; overflow-wrap: break-word; }
.list-row .grow small { overflow-wrap: break-word; }
.list-row .grow small { color: var(--muted); }
.table-wrap { overflow-x: auto; }
.search { position: relative; }
.search svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--muted); }
.search .input { padding-left: 42px; }

/* ----------------------------------------------------- carteirinha / tempo de jogo */
.btn-hero-qr { width: 100%; margin-top: 12px; background: #fff; color: var(--ink); }
.btn-hero-qr:hover { background: #f0f1f3; }
.btn-hero-qr svg { color: var(--red); }
.hero-session { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #d9dbe0; margin: -6px 0 12px; }
.hero-session svg { width: 16px; height: 16px; color: var(--red-2); flex: none; }
.hero-session.light { color: var(--ink-2); margin: 0 0 12px; padding: 10px 12px; border-radius: 12px; background: var(--red-soft); }
.member-card { text-align: center; display: grid; justify-items: center; gap: 6px; }
.member-qr { background: #fff; padding: 14px; border-radius: 20px; border: 1px solid var(--line); box-shadow: 0 0 0 6px var(--black), 0 0 0 8px var(--red); margin: 8px 0 14px; }
.member-qr img { display: block; width: min(240px, 64vw); height: auto; image-rendering: pixelated; }
.member-name { font-family: var(--display); font-weight: 700; font-size: 22px; text-transform: uppercase; }
.member-code { font-size: 20px; letter-spacing: .12em; color: var(--red); }
.member-card p { margin: 6px 0 0; font-size: 13px; max-width: 300px; }
.member-mini { display: flex; align-items: center; gap: 14px; width: 100%; margin-top: 14px; text-align: left; cursor: pointer; font: inherit; color: inherit; }
.member-mini img { border-radius: 8px; border: 1px solid var(--line); background: #fff; padding: 4px; flex: none; }
.playtime { padding: 8px 0; }
.playtime + .playtime { border-top: 1px solid var(--line); }
.playtime .num { font-size: 17px; }

/* ----------------------------------------------------- check-in (admin) */
.checkin-grid { display: grid; gap: 16px; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 900px) { .checkin-grid { grid-template-columns: minmax(320px, 400px) 1fr; } }
.scan-input { height: 56px; font-size: 17px; font-weight: 600; letter-spacing: .04em; }
.scanner { position: relative; border-radius: 16px; overflow: hidden; background: var(--black); aspect-ratio: 4 / 3; margin-top: 12px; }
.scanner video { width: 100%; height: 100%; object-fit: cover; display: block; }
.scanner::after {
  content: ''; position: absolute; inset: 18% 22%; border-radius: 18px;
  box-shadow: 0 0 0 999px rgba(0,0,0,.45); border: 3px solid var(--red-2);
}
.scanner .scan-line { position: absolute; left: 22%; right: 22%; height: 2px; background: var(--red-2); box-shadow: 0 0 12px var(--red-2); top: 18%; animation: scanline 2s ease-in-out infinite alternate; z-index: 1; }
@keyframes scanline { to { top: 82%; } }
.result-head { display: flex; gap: 14px; align-items: center; }
.result-head .avatar { width: 56px; height: 56px; font-size: 20px; border-radius: 16px; }
.result-head h3 { font-size: 24px; }
.status-chip { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 12px; font-size: 14px; font-weight: 600; }
.status-chip svg { width: 18px; height: 18px; flex: none; }
.status-chip.ok { background: rgba(19,138,75,.12); color: var(--ok); }
.status-chip.info { background: var(--surface); color: var(--ink-2); border: 1px solid var(--line); }
.status-chip.warn { background: var(--red-soft); color: var(--red-dark); }
.seat-grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.seat-btn {
  text-align: left; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--card); cursor: pointer;
  display: grid; gap: 2px; transition: transform .15s, border-color .2s, background .2s; font: inherit; color: inherit;
}
.seat-btn:hover:not(:disabled) { border-color: var(--red); transform: translateY(-2px); }
.seat-btn:disabled { opacity: .5; cursor: not-allowed; }
.seat-btn b { font-family: var(--display); font-size: 18px; }
.seat-btn small { color: var(--muted); }
.seat-btn .cta { color: var(--red); font-weight: 700; font-size: 13px; margin-top: 4px; }
.seat-btn.current { background: var(--black); color: #fff; border-color: var(--black); }
.seat-btn.current:disabled { opacity: 1; cursor: default; }
.seat-btn.current small { color: #a7abb3; }
.seat-btn.current .cta { color: var(--red-2); }
.seated-list { display: grid; gap: 6px; margin-top: 4px; }
.seated { display: flex; align-items: center; gap: 8px; font-size: 13px; padding: 6px 8px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); }
.seated .grow { flex: 1; min-width: 0; overflow-wrap: break-word; font-weight: 600; }
.seated .num { font-size: 14px; color: var(--ink-2); }
.seated button { border: 0; background: transparent; color: var(--red); cursor: pointer; font-weight: 700; font-size: 12px; padding: 2px 4px; }

/* ----------------------------------------------------- avatar / foto */
img.avatar { object-fit: cover; background: var(--black); display: block; }
.avatar.ghost { background: var(--line); }
.avatar-btn { padding: 0; overflow: hidden; }
.avatar-btn .avatar { border-radius: 11px; }
.photo-edit { position: relative; cursor: pointer; flex: none; }
.photo-edit .avatar { border-radius: 22px; }
.photo-badge { position: absolute; right: -4px; bottom: -4px; width: 28px; height: 28px; border-radius: 50%; background: var(--red); color: #fff; display: grid; place-items: center; border: 3px solid var(--card); }
.photo-badge svg { width: 14px; height: 14px; }
.mini { border: 0; background: transparent; cursor: pointer; font: 600 12.5px var(--font); color: var(--muted); display: inline-flex; align-items: center; gap: 4px; padding: 4px 6px; border-radius: 8px; }
.mini svg { width: 14px; height: 14px; }
.mini:hover { background: var(--surface); color: var(--ink); }
.mini.on { color: var(--red); }
.mini.on svg { fill: currentColor; }
.mini.danger { color: var(--red); }

/* ----------------------------------------------------- curtidas e fórum */
.social { display: flex; gap: 6px; padding: 0 12px 12px; border-top: 1px solid var(--line); padding-top: 10px; margin-top: -4px; }
.social-btn { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 6px 12px; cursor: pointer; font: 600 13px var(--font); color: var(--ink-2); transition: all .2s; }
.social-btn svg { width: 16px; height: 16px; }
.social-btn:hover { border-color: var(--line-2); color: var(--ink); }
.social-btn.on { color: var(--red); border-color: rgba(224,0,0,.3); background: var(--red-soft); }
.social-btn.on svg { fill: currentColor; }
.social-btn.pop svg { animation: pop .3s; }
@keyframes pop { 50% { transform: scale(1.35); } }
.forum { display: flex; flex-direction: column; min-height: 40vh; }
#forum-list { flex: 1; }
.comment { display: flex; gap: 10px; padding: 10px 0; }
.comment + .comment { border-top: 1px solid var(--line); }
.comment.reply { margin-left: 44px; border-top: 0; padding-top: 2px; }
.comment-body { flex: 1; min-width: 0; }
.comment-head { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 13.5px; }
.comment-head .badge { margin: 0; padding: 1px 6px; font-size: 9.5px; }
.comment-head time { color: var(--muted); font-size: 12px; }
.comment p { margin: 3px 0 2px; font-size: 14.5px; white-space: pre-wrap; overflow-wrap: break-word; }
.comment-actions { display: flex; gap: 2px; margin-left: -6px; }
.composer { position: sticky; bottom: calc(-1 * (var(--safe-b) + 20px)); background: var(--surface); padding: 10px 0 4px; margin-top: 10px; border-top: 1px solid var(--line); }
.composer-row { display: flex; gap: 8px; align-items: flex-end; }
.composer textarea { min-height: 44px; height: 44px; resize: none; padding: 11px 14px; }
.btn-icon { width: 44px; height: 44px; padding: 0; flex: none; }
.replying { font-size: 13px; color: var(--ink-2); margin-bottom: 6px; display: flex; align-items: center; gap: 6px; }

/* ----------------------------------------------------- cardápio (meia porção) */
.menu-item .grow { flex: 1; min-width: 0; }
.price-pair { display: flex; gap: 12px; margin-left: auto; text-align: right; }
.price-pair span { display: grid; }
.price-pair small { font-size: 10px; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.price-pair b { font-size: 17px; white-space: nowrap; }

/* ----------------------------------------------------- cardápio em categorias (acordeão) */
.menu-acc { display: grid; gap: 10px; }
.acc { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; scroll-margin-top: calc(var(--safe-t) + 72px); transition: border-color .25s; }
.acc.open { border-color: var(--line-2); }
.acc-head { width: 100%; display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 0; background: transparent; cursor: pointer; text-align: left; font: inherit; color: inherit; }
.acc-head .grow { flex: 1; display: grid; }
.acc-head b { font-family: var(--display); font-size: 21px; letter-spacing: .03em; text-transform: uppercase; line-height: 1.1; }
.acc-head small { color: var(--muted); font-size: 12.5px; }
.acc-icon { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; background: var(--black); color: var(--red-2); flex: none; transition: background .25s, color .25s; }
.acc-icon svg { width: 22px; height: 22px; }
.acc.open .acc-icon { background: var(--red); color: #fff; }
.acc-chev { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--line); transition: transform .3s cubic-bezier(.2,.8,.2,1); }
.acc-chev svg { width: 16px; height: 16px; }
.acc.open .acc-chev { transform: rotate(180deg); }
.acc-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .35s cubic-bezier(.2,.8,.2,1); }
.acc.open .acc-body { grid-template-rows: 1fr; }
.acc-inner { overflow: hidden; padding: 0 16px; }
.acc.open .acc-inner { padding-bottom: 6px; border-top: 1px solid var(--line); }
.acc-sub { font-family: var(--display); font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: var(--red); margin: 16px 0 0; }

/* ----------------------------------------------------- carteira: coins e saque */
.wallet-sub { font-size: 12.5px; color: #c3c6cc; margin-top: 6px; }
.coins-card {
  display: flex; align-items: center; gap: 14px; margin-top: 10px; padding: 14px 16px; border-radius: 18px;
  background: linear-gradient(135deg, #2a2c31, #17181b); color: #fff; border: 1px solid rgba(255,255,255,.06); flex-wrap: wrap;
}
.coins-card .grow { flex: 1; min-width: 140px; }
.coins-card .label { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: #a7abb3; }
.coins-card .num { font-size: 26px; line-height: 1.1; }
.coin-badge { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 30% 30%, var(--red-2), var(--red-dark)); box-shadow: 0 0 0 3px rgba(255,255,255,.08), 0 6px 16px -6px var(--red); }
.coin-badge svg { width: 24px; height: 24px; color: #fff; }
.coins-note { font-size: 11.5px; color: #8d929b; }
.coins-how { color: #fff; border-color: rgba(255,255,255,.18); }
.coins-how:hover { background: rgba(255,255,255,.08); }
/* H$C dentro do cartão do saldo, menor, acima do nome */
.wallet-card .wallet-coins { display: flex; align-items: center; gap: 8px; }
.wallet-card .wallet-coins .num { font-size: 18px; margin: 0; }
.coin-mini { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 30% 30%, var(--red-2), var(--red-dark)); flex: none; }
.coin-mini svg { width: 13px; height: 13px; color: #fff; }
.wallet-how { margin-left: 4px; background: none; border: 1px solid rgba(255,255,255,.2); color: #e4e6ea; font: inherit; font-size: 11.5px; padding: 3px 10px; border-radius: 999px; cursor: pointer; }
.wallet-how:hover { background: rgba(255,255,255,.08); }

/* ----------------------------------------------------- carteira: minha comanda */
.section-title .live-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--red-2); vertical-align: middle; margin-left: 6px; animation: pulse 1.8s infinite; }
/* valores nunca quebram no meio: se não couberem lado a lado, o quadro desce para a linha de baixo */
.tab-kpis { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.tab-kpis > div { flex: 1 1 0; min-width: max-content; }
.tab-kpis > div { background: #fff; border: 1px solid rgba(0,0,0,.07); border-radius: 14px; padding: 10px 12px; min-width: 0; }
.tab-kpis small { display: block; font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: #8d929b; }
.tab-kpis b { font-size: 17px; display: block; margin-top: 2px; white-space: nowrap; }
.tab-kpis b.red, .tab-card .red { color: var(--red); }
.tab-card { display: grid; gap: 10px; margin-bottom: 10px; }
.tab-items { display: grid; }
.tab-item { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 7px 0; border-bottom: 1px dashed rgba(0,0,0,.08); font-size: 14px; }
.tab-item .desc { display: grid; min-width: 0; }
.tab-item .desc small { color: #8d929b; font-size: 12px; }
.tab-item b.in { color: #1f8a4c; }
.tab-total { border-bottom: 0; font-weight: 700; font-size: 16px; }
.tab-total b { font-size: 20px; }
.tab-closed { margin-top: 4px; font-size: 14px; }
.tab-closed summary { cursor: pointer; color: #6b7079; padding: 6px 0; }

/* ----------------------------------------------------- ao vivo: torneios */
.tlive-clock { display: grid; justify-items: center; gap: 2px; padding: 16px 12px; margin: 10px 0; border-radius: 16px; background: linear-gradient(135deg, #1d1e22, #0e0f11); color: #fff; text-align: center; }
.tlive-clock > span { font-size: 46px; line-height: 1; letter-spacing: .02em; }
.tlive-clock > b { font-size: 20px; color: #ff6b6b; }
.tlive-clock > small { font-size: 12px; color: #a7abb3; }
.tlive.is-paused .tlive-clock > span { opacity: .45; }
.tlive.is-break .tlive-clock { background: linear-gradient(135deg, #3a1012, #1a0708); }
.how-item { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); }
.how-item p { margin: 2px 0 0; color: var(--ink-2); font-size: 13.5px; }
.entry-btn { margin-left: auto; flex: none; }
.warn-row { background: var(--red-soft); }
.terms-scroll { max-height: 55vh; overflow: auto; border-radius: var(--radius); }
.aml-row { border: 1px solid var(--line); border-radius: 14px; padding: 12px; margin-top: 8px; display: grid; gap: 6px; }
.aml-row.pending { border-color: rgba(224,0,0,.35); background: var(--red-soft); }
.aml-row .grow { flex: 1; min-width: 0; }
.aml-flag { display: flex; gap: 8px; font-size: 13px; color: var(--ink-2); }
.aml-flag svg { width: 15px; height: 15px; color: var(--red); flex: none; margin-top: 2px; }
.filter-chip { display: flex; align-items: center; gap: 8px; height: 48px; padding: 0 8px 0 10px; border-radius: 12px; border: 1px solid var(--line-2); background: #fff; }
.filter-chip b { flex: 1; }
.examples { background: var(--surface); border: 1px dashed var(--line-2); border-radius: 12px; padding: 10px 14px; }
.examples ul { margin: 6px 0 0; padding-left: 18px; display: grid; gap: 4px; font-size: 13.5px; }
.steps { list-style: none; margin: 0 0 16px; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.steps li { display: grid; justify-items: center; gap: 4px; font-size: 11.5px; font-weight: 600; color: var(--muted); text-align: center; position: relative; }
.steps li i { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font: 700 12px var(--font); background: var(--line); color: var(--ink-2); }
.steps li.cur { color: var(--ink); }
.steps li.cur i { background: var(--red); color: #fff; box-shadow: 0 0 0 4px var(--red-soft); }
.steps li.done i { background: var(--black); color: #fff; }
.wd-summary { display: grid; justify-items: center; gap: 2px; padding: 14px; border-radius: 16px; background: var(--black); color: #fff; margin-bottom: 14px; text-align: center; }
.wd-summary small { color: #a7abb3; font-size: 12px; overflow-wrap: break-word; }
.wd-summary .num { font-size: 34px; line-height: 1.1; }
.success-ico { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: rgba(19,138,75,.12); color: var(--ok); }
.success-ico svg { width: 32px; height: 32px; }
.checklist { margin: 0; padding-left: 20px; display: grid; gap: 4px; font-size: 13.5px; color: var(--ink-2); }

/* ----------------------------------------------------- PIX */
.pix-pay { display: grid; justify-items: stretch; }
.pix-pay .member-qr { justify-self: center; }
.pix-pay .member-qr img { width: min(220px, 60vw); }
.pix-amount { text-align: center; display: grid; gap: 2px; }
.pix-amount .num { font-size: 34px; line-height: 1; }
.pix-amount small { color: var(--muted); font-size: 12px; letter-spacing: .08em; }
.pix-box code { display: block; font-size: 14px; word-break: break-all; font-weight: 600; }

/* ----------------------------------------------------- mesa pública: dealer */
.dealer-chip { position: absolute; transform: translate(-50%, -50%); width: 18px; height: 18px; border-radius: 50%; background: #fff; color: var(--black); font: 800 10px/18px var(--font); text-align: center; font-style: normal; box-shadow: 0 0 0 2px var(--black); }

/* ----------------------------------------------------- mapa de lugares (equipe) */
.hint { font-size: 13px; margin: 14px 0 10px; }
.tables-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); }
.seat-card.closed { opacity: .6; }
.seatmap { position: relative; aspect-ratio: 16 / 11; margin: 12px 4px 8px; }
.seatmap-felt {
  position: absolute; inset: 22% 19%; border-radius: 999px;
  background: radial-gradient(ellipse at center, #2b2d33 0%, #141518 72%);
  border: 8px solid #2a2c31; box-shadow: 0 0 0 1px var(--line-2), inset 0 0 26px rgba(0,0,0,.65), 0 12px 24px -14px rgba(0,0,0,.6);
  display: grid; place-items: center;
}
.felt-info { text-align: center; color: #fff; display: grid; gap: 1px; }
.felt-info small { font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: #9ea2aa; }
.felt-info b { font-size: clamp(18px, 4vw, 24px); line-height: 1.1; }
.seatmap-dealer { position: absolute; left: 50%; top: 22%; transform: translate(-50%, -50%); width: 26px; height: 26px; border-radius: 50%; background: #fff; color: var(--black); font: 800 12px/26px var(--font); text-align: center; box-shadow: 0 0 0 2px var(--black), 0 4px 10px rgba(0,0,0,.35); z-index: 2; }
.seat-slot {
  position: absolute; transform: translate(-50%, -50%); z-index: 3; border: 0; padding: 0; background: transparent; cursor: pointer;
  display: grid; justify-items: center; gap: 1px; font: inherit; color: inherit; width: 74px;
}
.seat-slot .seat-no { position: absolute; top: -4px; right: 12px; min-width: 17px; height: 17px; border-radius: 9px; background: var(--black); color: #fff; font: 700 10px/17px var(--font); font-style: normal; text-align: center; padding: 0 3px; z-index: 1; }
.seat-slot.free .plus {
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; font-size: 26px; font-weight: 300; line-height: 1;
  background: var(--card); color: var(--red); border: 2px dashed var(--line-2); transition: all .2s;
}
.seat-slot.free:hover:not(:disabled) .plus { background: var(--red); color: #fff; border: 2px solid var(--red); transform: scale(1.08); box-shadow: 0 6px 16px -6px var(--red); }
.seat-slot.free:disabled { cursor: not-allowed; opacity: .5; }
.seat-slot.taken .avatar { border-radius: 50%; box-shadow: 0 0 0 3px var(--red), 0 6px 14px -6px rgba(0,0,0,.5); }
.seat-slot.taken.guest .avatar { box-shadow: 0 0 0 3px var(--muted); background: var(--ink-2); }
.seat-name { font-size: 11px; font-weight: 700; line-height: 1.1; max-width: 74px; text-align: center; overflow-wrap: break-word; background: var(--card); padding: 1px 5px; border-radius: 6px; border: 1px solid var(--line); margin-top: 2px; }
.seat-time { font: 600 10px var(--font); color: var(--muted); }
.table-controls { display: grid; gap: 10px; padding-top: 12px; border-top: 1px solid var(--line); }
@media (max-width: 420px) {
  .seat-slot { width: 60px; }
  .seat-slot .avatar, .seat-slot.free .plus { width: 36px !important; height: 36px !important; font-size: 13px; }
  .seat-name { max-width: 60px; font-size: 10px; }
  .seat-slot .seat-no { right: 6px; }
  .seatmap { aspect-ratio: 1 / 1; }
}

/* ----------------------------------------------------- autocompletar */
.ac-list { display: grid; gap: 4px; max-height: 320px; overflow: auto; border: 1px solid var(--line); border-radius: 14px; padding: 4px; background: var(--card); box-shadow: var(--shadow); }
.ac-item { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; border: 0; background: transparent; cursor: pointer; text-align: left; font: inherit; color: inherit; }
.ac-item .grow { flex: 1; min-width: 0; display: grid; }
.ac-item .grow b { overflow-wrap: break-word; }
.ac-item small { color: var(--muted); font-family: var(--display); font-weight: 600; letter-spacing: .06em; }
.ac-item.active, .ac-item:hover { background: var(--red-soft); }
.or { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .14em; }
.or::before, .or::after { content: ''; flex: 1; height: 1px; background: var(--line); }

/* ----------------------------------------------------- política e auditoria */
.policy h3 { font-size: 18px; margin: 18px 0 6px; }
.policy p, .policy li { font-size: 14px; color: var(--ink-2); }
.policy ul { padding-left: 18px; margin: 0; display: grid; gap: 6px; }
.auth .policy { color: var(--ink); }
.auth-legal a { color: #b9bcc3; text-decoration: underline; }
a.status-chip { text-decoration: none; }
table.audit { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 640px; }
table.audit th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); padding: 10px 12px; border-bottom: 1px solid var(--line); }
table.audit td { padding: 9px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.audit tr.warn td { background: var(--red-soft); }

/* ----------------------------------------------------- admin */
.admin-tabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin-bottom: 18px; padding: 5px; background: var(--black); border-radius: 16px; }
.admin-tabs::-webkit-scrollbar { display: none; }
.admin-tabs a { flex: none; padding: 9px 14px; border-radius: 11px; color: #a7abb3; font-weight: 600; font-size: 13px; display: flex; align-items: center; gap: 7px; transition: all .2s; }
.admin-tabs a svg { width: 16px; height: 16px; }
.admin-tabs a.active { background: var(--red); color: #fff; }
.admin-tabs .count { background: #fff; color: var(--red); border-radius: 999px; font-size: 11px; padding: 0 6px; font-weight: 800; }
.kpis { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.kpi { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; position: relative; overflow: hidden; }
.kpi::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--red); }
.kpi small { font-size: 11px; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); }
.kpi .num { font-size: 32px; display: block; margin-top: 4px; }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line-2); border-radius: 11px; overflow: hidden; background: #fff; }
.stepper button { width: 36px; height: 36px; border: 0; background: transparent; cursor: pointer; font-size: 18px; font-weight: 700; }
.stepper button:hover { background: var(--surface); }
.stepper span { min-width: 54px; text-align: center; font-family: var(--display); font-weight: 700; font-size: 17px; }
.admin-table-card .row + .row { margin-top: 10px; }
.inline-input { height: 36px; border-radius: 10px; border: 1px solid var(--line-2); padding: 0 10px; background: #fff; width: 100%; min-width: 0; }

/* =====================================================================
   LAYOUT v2 — cabeçalho em degradê com entrada em diagonal e barra inferior
   com o Início em destaque (ambos com cantos retos), seções recolhíveis no Início.
   O restante do app mantém os cantos arredondados.
   ===================================================================== */
:root { --bar-h: 70px; --grad: linear-gradient(115deg, #050506 0%, #1c0406 48%, #8a0000 100%); }

/* ---------- cabeçalho em degradê (cantos retos) ---------- */
.topbar { background: var(--grad); backdrop-filter: none; border-bottom: 0; padding: calc(var(--safe-t) + 12px) 16px 10px; }
.topbar .chip-balance, .topbar .icon-btn, .topbar .avatar { border-radius: 0; }
/* botão de olho grudado no saldo, como nos apps de banco */
.balance-group { display: flex; align-items: stretch; }
.balance-group .chip-balance { border-right: 0; }
.eye-btn { width: 40px; height: 40px; display: grid; place-items: center; cursor: pointer; color: #fff;
  background: rgba(0,0,0,.35); border: 1px solid rgba(255,255,255,.16); border-left: 1px solid rgba(255,255,255,.08); }
.eye-btn:hover { background: rgba(255,255,255,.12); }
.eye-btn svg { width: 19px; height: 19px; }
.sensitive { white-space: nowrap; }
.wallet-eye { width: 34px; height: 34px; border-radius: 10px; background: rgba(255,255,255,.08); }
.brand-mark-top { width: 26px; height: 44px; }
.chip-balance { background: rgba(0,0,0,.35); border-color: rgba(255,255,255,.16); height: 40px; padding: 0 12px 0 10px; }
.icon-btn { width: 40px; height: 40px; background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.16); }
.icon-btn:hover { background: rgba(255,255,255,.16); }
.profile-btn { width: 46px; height: 46px; background: #fff; color: var(--black); border-color: #fff; }
.profile-btn:hover { background: #f0f1f3; }
.profile-btn.active { background: var(--red); color: #fff; border-color: var(--red); }
.profile-btn svg { width: 22px; height: 22px; }
.profile-btn .avatar { width: 100% !important; height: 100% !important; }

/* faixa que continua o degradê; o conteúdo "entra" por cima dela em diagonal */
.band { height: 54px; background: var(--grad); }
.stage {
  position: relative; margin-top: -54px; background: var(--bg);
  background-image: radial-gradient(circle at 1px 1px, rgba(12,12,14,.06) 1px, transparent 0); background-size: 22px 22px;
  clip-path: polygon(0 30px, 100% 0, 100% 100%, 0 100%);
  min-height: calc(100dvh - 120px);
}
.stage::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 30px; pointer-events: none;
  background: linear-gradient(to bottom right, transparent 49.5%, rgba(224,0,0,.9) 50%, transparent 51.5%); opacity: .55; }
main { padding-top: 40px; padding-bottom: calc(var(--bar-h) + var(--safe-b) + 40px); }

/* ---------- barra inferior ---------- */
.nav {
  left: 0; right: 0; bottom: 0; transform: none; width: auto;
  height: calc(var(--bar-h) + var(--safe-b)); padding: 0 0 var(--safe-b);
  background: #0b0b0d; backdrop-filter: none; border: 0; border-top: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 -12px 30px -14px rgba(0,0,0,.55); overflow: visible; border-radius: 0;
}
.nav-indicator { display: none; }
.nav a { color: #8d929b; font-size: 11.5px; font-weight: 600; gap: 4px; border-radius: 0; }
.nav a svg { width: 23px; height: 23px; }
.nav a.active { color: #fff; }
.nav a.active::before { content: ''; position: absolute; top: 0; left: 24%; right: 24%; height: 3px; background: var(--red); }
.nav a.center { justify-content: flex-end; padding-bottom: 12px; }
.nav a.center::before { display: none; }
.center-mark {
  position: absolute; top: -17px; left: 50%; width: 37px; height: 37px; transform: translateX(-50%) rotate(45deg);
  background: linear-gradient(135deg, var(--red-2), var(--red-dark)); display: grid; place-items: center;
  box-shadow: 0 0 0 5px #0b0b0d, 0 12px 26px -8px rgba(224,0,0,.8); transition: transform .25s;
}
.center-mark svg { transform: rotate(-45deg); width: 14px !important; height: 23px !important; fill: #fff; color: #fff; }
.nav a.center.active .center-mark { box-shadow: 0 0 0 5px #0b0b0d, 0 0 0 7px rgba(255,255,255,.9), 0 12px 26px -8px rgba(224,0,0,.9); }
.nav a.center:active .center-mark { transform: translateX(-50%) rotate(45deg) scale(.94); }
.nav .live-dot { top: 10px; width: 10px; height: 10px; border: 2px solid #0c0c0e; box-sizing: content-box; right: calc(50% - 19px); }
.nav a.is-live svg { color: #ff6b6b; } /* ícone do "Ao vivo" fica avermelhado quando há jogo acontecendo */

@media (min-width: 1000px) {
  .nav { left: 16px; right: auto; top: calc(var(--safe-t) + 112px); bottom: auto; width: 96px; height: auto; padding: 8px 0;
    grid-template-columns: 1fr; grid-auto-rows: 80px; border: 1px solid rgba(255,255,255,.08); }
  .nav a.active::before { top: 18%; bottom: 18%; left: 0; right: auto; width: 3px; height: auto; }
  .nav a.center { justify-content: center; padding-bottom: 0; }
  .center-mark { position: static; transform: rotate(45deg); width: 38px; height: 38px; margin-bottom: 8px; box-shadow: 0 8px 18px -8px rgba(224,0,0,.8); }
  .center-mark svg { width: 14px !important; height: 24px !important; }
  .nav a.center.active .center-mark { box-shadow: 0 0 0 2px #fff; }
  .nav a.center:active .center-mark { transform: rotate(45deg) scale(.94); }
  main { padding-bottom: 40px; padding-left: 128px; }
  main.wide { padding-left: 128px; }
}

/* ---------- Início: seções recolhíveis ---------- */
.home-sec { margin-top: 24px; }
.sec-head { width: 100%; display: flex; align-items: center; gap: 12px; padding: 0 0 14px; border: 0; background: none; cursor: pointer; font: inherit; color: var(--ink); text-align: left; }
.sec-ico { width: 36px; height: 36px; flex: none; display: grid; place-items: center; border: 1px solid var(--line-2); color: var(--ink-2); background: var(--card); border-radius: 11px; }
.sec-ico svg { width: 19px; height: 19px; }
.sec-title { font-size: 19px; font-weight: 500; letter-spacing: -.01em; min-width: 0; overflow-wrap: break-word; }
.sec-count { font: 800 11px var(--font); background: var(--red); color: #fff; padding: 2px 7px; border-radius: 999px; }
.sec-line { flex: 1; height: 1px; background: var(--line-2); min-width: 16px; }
.sec-chev { display: grid; place-items: center; }
.sec-chev svg { width: 22px; height: 22px; transform: rotate(180deg); transition: transform .25s; }
.home-sec.closed .sec-chev svg { transform: none; }
.home-sec.closed .sec-body { display: none; }

/* ---------- cartões que rolam para o lado ---------- */
.rail { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -16px; padding: 2px 16px 8px; scrollbar-width: none; }
.rail::-webkit-scrollbar { display: none; }
.tile {
  flex: 0 0 min(66%, 240px); min-height: 156px; scroll-snap-align: start; position: relative; overflow: hidden;
  display: flex; flex-direction: column; justify-content: flex-end; gap: 3px; padding: 14px; color: #fff;
  background: linear-gradient(160deg, #2a2c32 0%, #0c0c0e 72%); border-radius: var(--radius);
  box-shadow: 0 14px 28px -18px rgba(0,0,0,.7); transition: transform .2s;
}
.tile:hover { transform: translateY(-2px); }
.tile::before { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(135deg, rgba(255,255,255,.035) 0 2px, transparent 2px 14px); }
.tile::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(150,0,0,.6), transparent 62%); }
.tile > * { position: relative; z-index: 1; }
.tile .tile-suit { position: absolute; z-index: 0; right: -4px; top: -26px; font-size: 128px; line-height: 1; color: rgba(255,255,255,.07); }
/* no fluxo (e não flutuando por cima): título longo empurra o cartão em vez de ser cortado */
.tile-top { margin-bottom: auto; padding-bottom: 10px; font: 700 10.5px var(--font); letter-spacing: .14em; text-transform: uppercase; color: #c9ccd2; }
.tile-kicker { font: 700 10.5px var(--font); letter-spacing: .18em; text-transform: uppercase; color: #ff9a9a; }
.tile-title { font-family: var(--display); font-size: 21px; text-transform: uppercase; line-height: 1.05; }
.tile-meta { font-size: 12px; color: #d5d7dc; }
.tile-blinds { font-size: 26px; line-height: 1; }
.tile-bar { height: 4px; background: rgba(255,255,255,.16); margin: 6px 0 2px; }
.tile-bar i { display: block; height: 100%; background: var(--red-2); }
.tile.is-today { box-shadow: inset 0 0 0 2px rgba(255,255,255,.85), 0 14px 28px -18px rgba(0,0,0,.7); }
.tile-bar, .tile-bar i { border-radius: 4px; }
.tile-more { flex-basis: 150px; background: var(--black); justify-content: center; }
.tile-more::after, .tile-empty::after { display: none; }
.tile-empty { flex-basis: 100%; min-height: 110px; justify-content: center; }

/* ---------- banners ---------- */
.banner {
  position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: center; gap: 4px;
  min-height: 150px; padding: 22px 20px; color: #fff; background: linear-gradient(110deg, #0c0c0e 38%, #6a0000 100%);
  border-radius: 22px; box-shadow: 0 20px 40px -22px rgba(0,0,0,.7);
}
.banner::before { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(135deg, rgba(255,255,255,.03) 0 2px, transparent 2px 16px); }
.banner > * { position: relative; z-index: 1; }
.banner .banner-art { position: absolute; z-index: 0; right: -18px; bottom: -28px; color: rgba(255,255,255,.1); }
.banner-art svg { width: 170px; height: 170px; }
.banner-kicker { font-size: 11px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: #c9ccd2; }
.banner b { font-family: var(--display); font-size: 32px; text-transform: uppercase; line-height: 1; }
.banner-cta { font-weight: 700; font-size: 13px; color: #ff9c9c; margin-top: 8px; }
.banner-coins { background: linear-gradient(110deg, #17181b 30%, #3d0000 100%); }

/* ---------- ranking (app e gestão) ---------- */.rank-rules { margin-bottom: 12px; }
.rank-rules summary { cursor: pointer; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.rank-rules summary svg { width: 18px; height: 18px; color: var(--red); }
.rank-tiers { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.rank-tier > b { display: block; margin-bottom: 8px; font-size: 14px; }
.rank-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 6px; }
.rank-grid span { display: grid; padding: 6px 8px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); font-weight: 700; font-size: 14px; }
.rank-grid i { font-style: normal; font-size: 11px; font-weight: 600; color: var(--muted); }
.rank-grid .rest { grid-column: span 2; background: var(--red-soft); }
/* aba Ranking do app: pódio + lista enxuta */
.rank-grid.compact { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 5px; }
.rank-grid.compact span { padding: 5px 4px; text-align: center; font-size: 15px; }
.rank-grid.compact .rest { grid-column: span 5; display: flex; justify-content: space-between; align-items: center; padding: 6px 10px; }
.rk-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 6px 0 16px; }
.rk-head h1 { font-size: 30px; text-transform: uppercase; }
.rk-kicker { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--red); margin-bottom: 4px; }
.rk-kicker svg { width: 14px; height: 14px; }
.rk-rules-btn { border: 1px solid var(--line-2); background: var(--card); color: var(--ink); font: 600 13px var(--font); padding: 8px 14px; border-radius: 999px; cursor: pointer; }
.rk-rules-btn:hover { background: var(--surface); }
.rk-seg { display: flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); }
.rk-seg button { flex: 1 1 0; min-height: 38px; border: 0; border-radius: 999px; background: transparent; font: 700 14px var(--font); color: var(--ink-2); cursor: pointer; transition: background .2s, color .2s; }
.rk-seg button.on { background: var(--black); color: #fff; }
.rk-period { text-align: center; color: var(--muted); font-size: 13px; margin: 12px 0 14px; }
.rk-period::first-letter { text-transform: uppercase; }
.rk-select { width: 100%; margin: 12px 0 14px; height: 44px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--card); padding: 0 12px; font: 600 14px var(--font); color: var(--ink); }

.rk-podium { display: grid; grid-template-columns: 1fr 1.15fr 1fr; align-items: end; gap: 8px; padding: 22px 12px 0; border-radius: 24px; overflow: hidden; color: #fff;
  background: radial-gradient(90% 80% at 50% 0%, rgba(224,0,0,.45), transparent 70%), linear-gradient(170deg, #1d1e22, #0a0a0c); box-shadow: 0 20px 40px -24px rgba(0,0,0,.7); }
.rk-place { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; min-width: 0; }
.rk-ava { position: relative; margin-bottom: 8px; }
.rk-ava .avatar { border-radius: 50%; box-shadow: 0 0 0 3px #8b9099; }
.p1 .rk-ava .avatar { box-shadow: 0 0 0 3px #f3c13a, 0 0 24px rgba(243,193,58,.45); }
.p3 .rk-ava .avatar { box-shadow: 0 0 0 3px #c07a3f; }
.rk-medal { position: absolute; left: 50%; bottom: -9px; transform: translateX(-50%); width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center;
  font: 800 12px var(--font); color: #111; background: #c9ccd2; }
.p1 .rk-medal { background: #f3c13a; }
.p3 .rk-medal { background: #d18b4f; }
.rk-name { font-size: 14px; line-height: 1.15; margin-top: 4px; }
.rk-place.me .rk-name { color: #ff9c9c; }
.rk-pts { font-size: 18px; }
.p1 .rk-pts { font-size: 22px; }
.rk-pts small { font-size: 11px; color: #a7abb3; }
.rk-step { width: 100%; margin-top: 8px; border-radius: 12px 12px 0 0; background: rgba(255,255,255,.07); height: 34px; }
.p1 .rk-step { height: 58px; background: linear-gradient(180deg, var(--red-2), var(--red-dark)); }
.p2 .rk-step { height: 44px; }

.rk-me { display: flex; align-items: center; gap: 12px; margin-top: 12px; padding: 12px 16px; border-radius: 16px; background: var(--red-soft); border: 1px solid rgba(224,0,0,.25); }
.rk-me .num:first-child { font-size: 20px; color: var(--red); }
.rk-me b { flex: 1; }
.rk-me .num:last-child { font-size: 18px; }
.rk-list { list-style: none; margin: 12px 0 0; padding: 4px 16px; background: var(--card); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); }
.rk-list li { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.rk-list li:last-child { border-bottom: 0; }
.rk-list li.me { margin: 0 -10px; padding-left: 10px; padding-right: 10px; border-radius: 12px; background: var(--red-soft); border-bottom-color: transparent; }
.rk-list .avatar { border-radius: 50%; }
.rk-n { width: 24px; text-align: center; color: var(--muted); font-size: 15px; flex: none; }
.rk-who { flex: 1 1 auto; min-width: 0; font-weight: 600; font-size: 15px; }
.rk-p { font-size: 18px; flex: none; }
.rk-hint { text-align: center; color: var(--muted); font-size: 13px; margin: 14px 8px 0; }
.rk-empty { display: grid; justify-items: center; gap: 6px; text-align: center; padding: 40px 20px; border-radius: 24px; background: var(--card); border: 1px dashed var(--line-2); color: var(--muted); }
.rk-empty svg { width: 40px; height: 40px; color: var(--line-2); }
.rk-empty b { color: var(--ink); font-size: 16px; }
@media (max-width: 360px) { .rk-seg button { font-size: 13px; } .rk-podium { padding: 18px 8px 0; gap: 4px; } }
/* ---------- botão flutuante do cardápio (Início) ---------- */
.fab-menu { position: fixed; z-index: 40; right: 16px; bottom: calc(var(--bar-h, 70px) + var(--safe-b) + 18px);
  display: inline-flex; align-items: center; gap: 8px; padding: 12px 18px 12px 14px; border-radius: 999px; text-decoration: none;
  background: linear-gradient(180deg, var(--red-2), var(--red)); color: #fff; font-weight: 700; font-size: 14px;
  box-shadow: 0 14px 28px -10px rgba(224,0,0,.75), 0 0 0 3px rgba(255,255,255,.9); animation: fabIn .35s cubic-bezier(.2,.9,.2,1); }
.fab-menu svg { width: 22px; height: 22px; }
.fab-menu:active { transform: scale(.95); }
@keyframes fabIn { from { transform: translateY(16px) scale(.9); opacity: 0; } }
@media (min-width: 1000px) { .fab-menu { bottom: 28px; right: 28px; } }
.view.home { padding-bottom: 64px; } /* espaço para o botão flutuante não cobrir o fim da página */
.nowrap { white-space: nowrap; }
.tab-since { display: flex; align-items: center; gap: 5px; color: var(--red); font-weight: 600; font-size: 12.5px; margin-top: -4px; }
.tab-since svg { width: 13px; height: 13px; flex: none; } /* horários "20:15–22:40" não quebram no traço */

/* ---------- passagem do dealer: rake e jackpot ---------- */
.rake-open { display: grid; gap: 14px; border: 2px solid var(--red); }
.rake-live { display: grid; gap: 4px; }
.rake-live .live-pill { justify-self: start; }
.rake-live b { font-family: var(--display); font-size: 26px; text-transform: uppercase; }
.rake-live small { color: var(--muted); font-size: 13.5px; }
.rake-photo { display: grid; place-items: center; min-height: 150px; border-radius: 16px; border: 2px dashed var(--line-2); background: var(--surface); overflow: hidden; }
.rake-photo > span { display: grid; justify-items: center; gap: 4px; color: var(--muted); text-align: center; padding: 16px; }
.rake-photo > span svg { width: 34px; height: 34px; }
.rake-photo img { width: 100%; max-height: 360px; object-fit: contain; display: block; background: #000; }
.rake-vals { display: grid; justify-items: end; flex: none; }
.rake-vals b { font-size: 17px; }
.rake-vals small { color: var(--muted); font-size: 12px; white-space: nowrap; }

/* ---------- fila de espera das mesas ---------- */
.wl-box { display: flex; align-items: center; justify-content: space-between; gap: 8px 10px; flex-wrap: wrap; margin: 0 16px 14px; padding: 10px 12px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); font-size: 14px; }
.wl-box .btn-block { flex: 1 1 100%; }
.wl-box small { color: var(--muted); font-size: 12.5px; flex: 1 1 100%; }
.wl-box.go { display: grid; gap: 4px; background: rgba(19,138,75,.1); border-color: rgba(19,138,75,.45); color: var(--ok); }
.wl-box.go b { display: inline-flex; align-items: center; gap: 6px; font-size: 16px; }
.wl-box.go b svg { width: 18px; height: 18px; }
.wl-box.go span { color: var(--ink); }
.wl-alert { display: grid; justify-items: center; text-align: center; gap: 10px; padding: 6px 4px 4px; }
.wl-alert .wl-ico { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); color: var(--muted); }
.wl-alert.go .wl-ico { background: rgba(19,138,75,.14); color: var(--ok); animation: pulse 1.6s infinite; }
.wl-alert .wl-ico svg { width: 36px; height: 36px; }
.wl-alert > b { font-family: var(--display); font-size: 26px; text-transform: uppercase; }
.wl-alert p { margin: 0; font-size: 16px; color: var(--ink-2); }
.wl-alert small { color: var(--muted); font-size: 13.5px; }
.wl-staff { display: grid; gap: 6px; margin-top: 10px; padding: 10px 12px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.wl-staff > b { font-size: 13px; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-2); }
.wl-row { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 10px; background: var(--card); border: 1px solid var(--line); flex-wrap: wrap; }
.wl-row .grow { flex: 1 1 140px; display: grid; }
.wl-row small { color: var(--muted); font-size: 12px; }
.wl-row .avatar { border-radius: 50%; }
.wl-row.go { border-color: var(--ok); background: rgba(19,138,75,.08); }
.wl-row.go small { color: var(--ok); font-weight: 600; }

/* ---------- loja de H$C ---------- */
.wallet-card .wallet-coins { flex-wrap: wrap; }
.wallet-shop { display: inline-flex; align-items: center; gap: 5px; text-decoration: none; background: rgba(224,0,0,.35); border-color: rgba(255,120,120,.5); color: #fff; }
.wallet-shop svg { width: 13px; height: 13px; }
.shop-balance { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 12px 16px; border-radius: 16px; background: linear-gradient(135deg, #1d1e22, #0e0f11); color: #fff; margin-bottom: 14px; }
.shop-balance small { display: block; font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: #a7abb3; }
.shop-balance b { font-size: 22px; }
.shop-balance .wallet-how { margin-left: auto; }
.shop-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); }
.shop-item { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.shop-photo { aspect-ratio: 1 / 1; background: var(--surface); display: grid; place-items: center; color: var(--line-2); }
.shop-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.shop-photo svg { width: 46px; height: 46px; }
.shop-body { padding: 12px 14px 14px; display: grid; gap: 6px; flex: 1; align-content: start; }
.shop-body h3 { font-size: 18px; }
.shop-body p { margin: 0; font-size: 13.5px; color: var(--ink-2); }
.shop-price { font-size: 22px; color: var(--red); }

/* ---------- inscrição em torneio pelo app ---------- */
.treg { display: grid; gap: 6px; padding: 0 16px 14px; }
.treg small { color: var(--ink-2); font-size: 12.5px; }
.treg .badge { justify-self: start; margin: 0; }
.treg-opt { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: 12px; cursor: pointer; flex-wrap: wrap; }
.treg-opt input { accent-color: var(--red); width: 18px; height: 18px; }
.treg-opt .grow { flex: 1 1 140px; }
.treg-opt.on { border-color: var(--red); background: var(--red-soft); }

/* ---------- código por SMS ---------- */
.sms-row { display: flex; gap: 8px; align-items: stretch; flex-wrap: wrap; }
.sms-row .input { flex: 1 1 140px; }
.sms-row .btn { flex: 0 0 auto; min-height: 48px; }
.sms-field small { display: block; margin-top: 4px; font-size: 12.5px; }

/* ---------- relógios: cada algarismo numa casa de largura fixa ----------
   Na Rajdhani o "1" mede 0,33em e o "8" 0,54em; sem isto o relógio (centralizado) andava a cada segundo. */
.clock-digits { display: inline-flex; justify-content: center; letter-spacing: 0; }
.clock-digits i { font-style: normal; display: inline-block; width: .56em; text-align: center; }
.clock-digits i.cc { width: .26em; }

/* ---------- textos nunca cortados ----------
   Nomes, títulos e descrições longos quebram linha em vez de sumir ou vazar da tela;
   valores grandes diminuem em telas estreitas. */
body { overflow-wrap: break-word; }
h1, h2, h3, h4, .tile-title, .tile-meta, .tile-top, .banner b, .member-name, .ptable-head h3, .menu-item h4, .menu-item p,
.how-item, .status-chip span, .ticker div, .kv dd, .holder, .wallet-sub, .acc-head, .seat-btn b, .seat-btn small { overflow-wrap: break-word; min-width: 0; }
/* selos curtos ficam inteiros (nunca "EM ANDAMENT/O") */
.badge, .live-pill { white-space: nowrap; overflow-wrap: normal; flex: none; }
.page-head > div { min-width: 0; }
.page-head h1 { font-size: clamp(24px, 7.5vw, 30px); }
.ptable-head > div { min-width: 0; }
.wallet-card .num { font-size: clamp(30px, 11vw, 44px); }
.wallet-card .holder { min-width: 0; }
.stat { min-width: 0; }
.stat .num { font-size: clamp(22px, 7.5vw, 30px); }
/* números e valores: quebram só no espaço depois do "R$", nunca no meio do número */
.num { overflow-wrap: normal; }
.stat small { overflow-wrap: break-word; }
.kpi .num { font-size: clamp(22px, 7vw, 32px); }
.wd-summary .num { font-size: clamp(26px, 9vw, 34px); }
.tlive-clock > b, .tlive-clock > small { overflow-wrap: break-word; }
.tlive-clock > span { font-size: clamp(36px, 12vw, 46px); }
.price-pair { flex-wrap: wrap; justify-content: flex-end; }
.chip-balance { min-width: 0; }
.chip-balance .sensitive { font-size: clamp(11.5px, 3.3vw, 13px); }
.tab-item > span:first-child { min-width: 0; overflow-wrap: break-word; }
.tab-item > b { white-space: nowrap; flex: none; }
/* ---------- palavras nunca partidas ao meio ----------
   Em linhas com texto + botões, o texto tem uma largura mínima de leitura; se não couber tudo,
   os botões descem para a linha de baixo (antes o texto era espremido até ficar uma letra por linha). */
.list-row, .aml-row, .g-item { flex-wrap: wrap; }
.list-row .grow, .aml-row .grow { flex: 1 1 170px; }
.list-row > .row, .aml-row > .row { margin-left: auto; }
.prices { grid-template-columns: repeat(auto-fit, minmax(112px, 1fr)); }
.prices div { padding: 10px 12px; }
.prices small { letter-spacing: .1em; }
@media (max-width: 420px) {
  .stat small, .kpi small, .tab-kpis small { letter-spacing: .06em; font-size: 10px; }
  .stat { padding: 12px 10px; }
}
.toggle-row { flex-wrap: wrap; }
.toggle-row button { min-height: 38px; height: auto; padding: 6px 8px; line-height: 1.2; flex: 1 1 auto; }
/* filhos de grade podem encolher: tabelas largas rolam dentro do cartão em vez de esticar a página */
.stack { grid-template-columns: minmax(0, 1fr); }
.stack > *, .form-grid > * { min-width: 0; }
@media (max-width: 560px) { .form-grid .s2 { grid-column: span 3; } }
.admin-tabs a { white-space: nowrap; }
.tab { white-space: nowrap; }

/* ---------- foto do perfil no cabeçalho: redonda e 25% menor (46px → 35px) ---------- */
.topbar .profile-btn { width: 35px; height: 35px; border-radius: 50%; align-self: center; flex: none; }
.topbar .profile-btn .avatar { border-radius: 50%; }
.topbar .profile-btn svg { width: 18px; height: 18px; }

/* ---------- Fale conosco: botão flutuante só com ícone, que expande a conversa ---------- */
.fab-support { position: fixed; z-index: 41; right: 16px; bottom: calc(var(--bar-h, 70px) + var(--safe-b) + 76px);
  width: 52px; height: 52px; border-radius: 50%; border: 0; cursor: pointer; display: grid; place-items: center;
  background: var(--black, #0c0c0e); color: #fff; box-shadow: 0 12px 26px -10px rgba(0,0,0,.6), 0 0 0 3px rgba(255,255,255,.9);
  animation: fabIn .35s cubic-bezier(.2,.9,.2,1); transition: transform .15s, background .2s; }
.fab-support:active { transform: scale(.94); }
.fab-support svg { width: 24px; height: 24px; }
.fab-support > span { grid-area: 1 / 1; display: grid; place-items: center; transition: opacity .2s, transform .25s; }
.fab-support .ic-close { opacity: 0; transform: rotate(-90deg) scale(.6); }
.support.open .fab-support { background: var(--red); }
.support.open .fab-support .ic-open { opacity: 0; transform: rotate(90deg) scale(.6); }
.support.open .fab-support .ic-close { opacity: 1; transform: none; }
.fab-badge { position: absolute; top: -3px; right: -3px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: var(--red);
  color: #fff; font-size: 11px; font-weight: 800; font-style: normal; display: grid; place-items: center; border: 2px solid #fff; }
.support.open .fab-badge { display: none; }
.support-panel { position: fixed; z-index: 41; right: 16px; bottom: calc(var(--bar-h, 70px) + var(--safe-b) + 140px);
  width: min(380px, calc(100vw - 32px)); max-height: min(520px, calc(100dvh - var(--bar-h, 70px) - var(--safe-b) - 220px)); min-height: 260px;
  display: flex; flex-direction: column; background: var(--card); border-radius: 22px; overflow: hidden;
  box-shadow: 0 24px 60px -18px rgba(0,0,0,.55), 0 0 0 1px rgba(0,0,0,.06); transform-origin: calc(100% - 26px) calc(100% + 40px); animation: supportIn .28s cubic-bezier(.2,.9,.2,1); }
.support-panel[hidden] { display: none; }
@keyframes supportIn { from { transform: scale(.4); opacity: 0; } }
.support-head { display: flex; gap: 12px; align-items: center; padding: 14px 16px; background: var(--grad, #111); color: #fff; }
.support-head div { display: grid; min-width: 0; }
.support-head b { font-size: 16px; }
.support-head small { color: rgba(255,255,255,.75); font-size: 12px; overflow-wrap: break-word; }
.support-ic { width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.14); display: grid; place-items: center; flex: none; }
.support-ic svg { width: 20px; height: 20px; }
.support-msgs { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 8px; background: var(--surface); }
.sp-msg { max-width: 85%; align-self: flex-start; background: var(--card); border: 1px solid var(--line); border-radius: 16px 16px 16px 4px; padding: 8px 12px; }
.sp-msg.me { align-self: flex-end; background: var(--red); border-color: var(--red); color: #fff; border-radius: 16px 16px 4px 16px; }
.sp-msg p { margin: 0; font-size: 14px; white-space: pre-wrap; overflow-wrap: break-word; }
.sp-msg small { display: block; margin-top: 3px; font-size: 11px; opacity: .7; }
.support-form { display: flex; gap: 8px; align-items: flex-end; padding: 10px; border-top: 1px solid var(--line); background: var(--card); }
.support-form textarea { flex: 1; resize: none; min-height: 44px; max-height: 120px; padding-top: 11px; line-height: 1.35; }
.support-form .btn { width: 46px; height: 44px; padding: 0; flex: none; border-radius: 12px; }
.support-form .btn svg { width: 19px; height: 19px; }
@media (min-width: 1000px) {
  .fab-support { bottom: 86px; right: 28px; }
  .support-panel { bottom: 150px; right: 28px; max-height: min(560px, calc(100dvh - 190px)); }
}
.view.home { padding-bottom: 130px; }

/* ---------- data de nascimento: digitação com máscara + seletor em rolagem ---------- */
.dob { display: flex; gap: 8px; }
.dob .input { flex: 1; min-width: 0; font-variant-numeric: tabular-nums; letter-spacing: .04em; }
.dob-btn { flex: none; width: 48px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); display: grid; place-items: center; cursor: pointer; }
.dob-btn svg { width: 20px; height: 20px; }
.dob-btn:active { transform: scale(.95); }
.dob-hint { display: block; margin-top: 5px; font-size: 12.5px; color: var(--muted); overflow-wrap: break-word; }
.dob-hint.ok { color: var(--ok); font-weight: 700; }
.dob-hint.bad { color: var(--red); font-weight: 700; }
.wheel-wrap { display: grid; gap: 12px; }
.wheel-labels { display: grid; grid-template-columns: 1fr 1.6fr 1.2fr; text-align: center; font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.wheel { position: relative; display: grid; grid-template-columns: 1fr 1.6fr 1.2fr; height: 220px; border-radius: 16px; background: var(--surface); overflow: hidden;
  -webkit-mask-image: linear-gradient(transparent, #000 30%, #000 70%, transparent); mask-image: linear-gradient(transparent, #000 30%, #000 70%, transparent); }
.wheel-col { height: 220px; overflow-y: auto; scroll-snap-type: y mandatory; padding: 88px 0; scrollbar-width: none; overscroll-behavior: contain; outline: none; position: relative; z-index: 1; }
.wheel-col::-webkit-scrollbar { display: none; }
.wheel-item { height: 44px; display: grid; place-items: center; scroll-snap-align: center; font-size: 18px; font-weight: 600; color: var(--muted); cursor: pointer; font-variant-numeric: tabular-nums; white-space: nowrap; }
.wheel-item.on { color: var(--ink); font-weight: 800; font-size: 20px; }
.wheel-item.off { opacity: .3; }
.wheel-col:focus-visible .wheel-item.on { color: var(--red); }
.wheel-hl { position: absolute; left: 8px; right: 8px; top: 88px; height: 44px; border-radius: 12px; background: var(--card); box-shadow: 0 2px 10px -4px rgba(0,0,0,.25); pointer-events: none; }
.wheel-preview { text-align: center; font-weight: 700; color: var(--ink-2); overflow-wrap: break-word; }
@media (max-width: 380px) { .wheel-item { font-size: 16px; } .wheel-item.on { font-size: 17px; } }
/* ---------- jogadores: online agora / última conexão ---------- */
.pl-av { position: relative; flex: none; display: inline-flex; }
.pl-dot { position: absolute; right: -1px; bottom: -1px; width: 12px; height: 12px; border-radius: 50%; background: #1fb85f; border: 2px solid var(--card); box-shadow: 0 0 0 0 rgba(31,184,95,.6); animation: plPulse 2s infinite; }
@keyframes plPulse { 70% { box-shadow: 0 0 0 7px rgba(31,184,95,0); } 100% { box-shadow: 0 0 0 0 rgba(31,184,95,0); } }
.pl-seen { display: block; color: var(--muted); font-size: 12px; }
.pl-seen.on { color: var(--ok); font-weight: 700; }
.pl-filter { flex-wrap: wrap; }
.pl-filter button { white-space: nowrap; }
.list-row small.pl-seen.on, small.pl-seen.on { color: var(--ok); font-weight: 700; }

/* ---------- Fale conosco: assistente digitando ---------- */
.sp-typing { display: flex; gap: 4px; padding: 12px 14px; }
.sp-typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: spDot 1.2s infinite; }
.sp-typing i:nth-child(2) { animation-delay: .15s; }
.sp-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes spDot { 0%, 60%, 100% { opacity: .3; transform: none; } 30% { opacity: 1; transform: translateY(-3px); } }
/* ---------- cash-out ao levantar (dentro da tela do lugar e da correção de sessão) ---------- */
.co-box { display: grid; gap: 8px; padding: 12px; border-radius: 14px; background: var(--red-soft); border: 1px solid rgba(224,0,0,.25); }
.co-box .field { margin: 0; }
.co-box .chip-btn { justify-self: start; }
.co-box .check span { overflow-wrap: break-word; }
.co-amount { font-size: 20px; font-weight: 800; }
.co-amount::placeholder { font-size: 14px; font-weight: 500; }
.more-chips { border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; background: var(--card); }
.more-chips summary { cursor: pointer; font-weight: 700; display: flex; align-items: center; gap: 8px; list-style: none; }
.more-chips summary::-webkit-details-marker { display: none; }
.more-chips summary svg { width: 18px; height: 18px; }
.bi-box { background: rgba(19,138,75,.08); border-color: rgba(19,138,75,.3); }

.social-btns { display: grid; gap: 8px; }
.social-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; font-weight: 700; text-decoration: none; }
.social-btn svg { width: 20px; height: 20px; flex: none; }
.social-btn.google { background: #fff; color: #1f1f1f; border: 1px solid #dadce0; }
.social-btn.facebook { background: #1877f2; color: #fff; border: 1px solid #1877f2; }
.social-note { display: flex; gap: 10px; align-items: flex-start; padding: 12px; margin-bottom: 12px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); font-size: 13.5px; color: var(--ink-2); }
.social-note svg { width: 22px; height: 22px; flex: none; background: #1877f2; border-radius: 50%; }
.social-note span { min-width: 0; overflow-wrap: break-word; }
.social-note a { color: var(--red); font-weight: 700; }
hr.sep { border: 0; border-top: 1px solid var(--line); margin: 6px 0; }
.pix-spin { width: 16px; height: 16px; flex: none; border-radius: 50%; border: 2px solid var(--line); border-top-color: var(--red); animation: pixSpin 0.9s linear infinite; }
@keyframes pixSpin { to { transform: rotate(360deg); } }
.pix-done { display: grid; justify-items: center; gap: 6px; text-align: center; padding: 20px 8px; }
.pix-done svg { width: 48px; height: 48px; color: var(--ok); }
.pix-done b { font-size: 20px; }
