/* HubArena · estilo "Claro e calmo": fundo claro, cartões brancos, verde só no que se toca. */
@font-face { font-family: 'Manrope'; font-style: normal; font-display: swap; font-weight: 200 800;
  src: url('/static/fonts/manrope-latin-wght-normal.woff2') format('woff2-variations'), url('/static/fonts/manrope-latin-wght-normal.woff2') format('woff2'); }
:root {
  --accent: #15803d; --accent-dark: #166534; --accent-soft: #eef7f0; --accent-softer: #f0fdf4;
  --bg: #f7f7f5; --card: #ffffff; --ink: #111827; --ink-2: #374151; --muted: #6b7280; --line: #f0f0ee; --line-2: #e5e7eb;
  --amber: #b45309; --amber-dot: #d97706; --amber-soft: #fffbeb; --red: #b91c1c; --red-dot: #dc2626; --red-soft: #fef2f2;
  --orange-soft: #fff4e6; --orange: #c2410c;
  --r: 18px; --r-sm: 12px;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--ink); font-family: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif; font-size: 15px; line-height: 1.4; -webkit-font-smoothing: antialiased; }
a { color: var(--accent); }
a:hover { color: var(--accent-dark); }
h1, h2, h3 { margin: 0; letter-spacing: -0.02em; }
h1 { font-size: 28px; font-weight: 800; }
h2 { font-size: 20px; font-weight: 800; }
p { margin: 0; }
img { max-width: 100%; }
button { font: inherit; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.xs { font-size: 12px; }
.b { font-weight: 800; }
.nowrap { white-space: nowrap; }
.center { text-align: center; }
.right { text-align: right; }
.grow { flex: 1; min-width: 0; }
.row { display: flex; align-items: center; gap: 12px; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.row-base { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.stack { display: flex; flex-direction: column; gap: 10px; }
.stack-sm { display: flex; flex-direction: column; gap: 6px; }
.stack-lg { display: flex; flex-direction: column; gap: 18px; }
.wrap { display: flex; flex-wrap: wrap; gap: 6px; }
.green { color: var(--accent); }
.red { color: var(--red); }
.amber { color: var(--amber); }
.hide { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- Cartões e listas ---------- */
.card { background: var(--card); border-radius: var(--r); padding: 16px; }
.card.tight { padding: 2px 16px; }
.card.pad-lg { padding: 22px; }
.card.sel { border: 2px solid var(--accent); }
.card.danger { background: var(--red-soft); }
.list > * { padding: 13px 0; border-bottom: 1px solid var(--line); }
.list > *:last-child { border-bottom: 0; }
.list-link { display: flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; }
.label { font-size: 14px; font-weight: 700; color: var(--muted); padding: 4px 4px 0; }
.kv { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.kv:last-child { border-bottom: 0; }
.kv > span:first-child { color: var(--muted); }
.kv > b, .kv > span:last-child { text-align: right; }

/* ---------- Botões ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 0; border-radius: 14px; padding: 12px 16px; font-weight: 800; font-size: 15px; background: var(--accent); color: #fff; text-decoration: none; white-space: nowrap; }
.btn:hover { background: var(--accent-dark); color: #fff; }
.btn.lg { padding: 16px; font-size: 16px; border-radius: 16px; }
.btn.sm { padding: 9px 14px; font-size: 14px; border-radius: 12px; }
.btn.block { display: flex; width: 100%; }
.btn.ghost { background: #fff; color: var(--ink); border: 1px solid var(--line-2); }
.btn.ghost:hover { background: #fafaf9; }
.btn.danger { background: #fff; color: var(--red); border: 1px solid var(--line-2); }
.btn.link { background: none; color: var(--accent); padding: 8px; }
.btn[disabled], .btn.disabled { opacity: .5; pointer-events: none; }
.btn.light { background: #fff; color: var(--ink); }
form.inline { display: inline; margin: 0; }

/* ---------- Status ---------- */
.dot { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; }
.dot::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: currentColor; flex-shrink: 0; }
.dot.paid { color: var(--accent); }
.dot.due { color: var(--amber); }
.dot.due::before { background: var(--amber-dot); }
.dot.late { color: var(--red); }
.dot.late::before { background: var(--red-dot); }
.dot.none { color: var(--muted); }
.badge { display: inline-block; font-size: 12px; font-weight: 800; padding: 3px 9px; border-radius: 999px; background: var(--accent); color: #fff; }
.badge.red { background: none; color: var(--red); padding: 0; }
.progress { height: 8px; border-radius: 999px; background: #ececea; overflow: hidden; }
.progress > i { display: block; height: 100%; background: var(--accent); border-radius: 999px; }

/* ---------- Formulários ---------- */
.field { display: flex; flex-direction: column; gap: 8px; }
.field > span { font-size: 14px; font-weight: 700; }
.input { background: #fff; border: 1.5px solid var(--line-2); border-radius: 14px; padding: 14px 16px; font-size: 17px; font-weight: 600; width: 100%; outline: none; }
.input:focus { border-color: var(--accent); }
.input.sm { padding: 10px 12px; font-size: 15px; border-radius: 12px; }
.phone-input { display: flex; align-items: center; gap: 10px; background: #fff; border: 1.5px solid var(--line-2); border-radius: 14px; padding: 0 16px; }
.phone-input:focus-within { border-color: var(--accent); }
.phone-input .input { border: 0; padding: 14px 0; }
.phone-input > span { color: var(--muted); font-weight: 600; font-size: 17px; }
.code-boxes { display: flex; gap: 8px; }
.code-boxes .input { text-align: center; font-size: 28px; font-weight: 800; letter-spacing: .5em; padding: 14px 8px; }
.alert { border-radius: 14px; padding: 12px 14px; font-size: 14px; font-weight: 600; }
.alert.err { background: var(--red-soft); color: var(--red); }
.alert.ok { background: var(--accent-softer); color: var(--accent-dark); }
.alert.info { background: #fff; color: var(--ink-2); }
.choice { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: 16px; border: 2px solid transparent; background: #fff; color: var(--ink); text-align: left; width: 100%; cursor: pointer; text-decoration: none; }
.choice:has(input:checked), .choice.on { border-color: var(--accent); }
.choice input[type=radio] { position: absolute; opacity: 0; pointer-events: none; }
.choice .t { font-size: 20px; font-weight: 800; }
.chip { padding: 9px 13px; border-radius: 999px; font-size: 14px; font-weight: 700; background: #fff; color: var(--ink-2); border: 1.5px solid var(--line-2); cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.chip.on, .chip:has(input:checked) { background: var(--accent); color: #fff; border-color: var(--accent); }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.switch { position: relative; width: 44px; height: 26px; border-radius: 999px; background: #d6d8d2; flex-shrink: 0; border: 0; padding: 0; }
.switch::after { content: ''; position: absolute; left: 3px; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.2); transition: left .15s; }
.switch.on { background: var(--accent); }
.switch.on::after { left: 21px; }
.stepper { display: flex; align-items: center; gap: 12px; }
.stepper button { width: 40px; height: 40px; border-radius: 12px; border: 1.5px solid var(--line-2); background: #fff; font-size: 20px; font-weight: 700; }
.stepper output, .stepper input { width: 48px; text-align: center; font-size: 20px; font-weight: 800; border: 0; background: none; }
.check { display: flex; align-items: center; gap: 12px; font-weight: 600; }
.check input { width: 22px; height: 22px; accent-color: var(--accent); }

/* ---------- Tela de celular (jogador e dono) ---------- */
.phone { max-width: 480px; margin: 0 auto; min-height: 100dvh; display: flex; flex-direction: column; }
.phone > .top { padding: 26px 18px 14px; display: flex; flex-direction: column; gap: 2px; position: relative; }
.phone > .top.row { flex-direction: row; align-items: center; gap: 12px; }
.phone > .body { flex: 1; display: flex; flex-direction: column; gap: 10px; padding: 0 14px 16px; }
.foot { position: sticky; bottom: 0; padding: 12px 16px 22px; background: linear-gradient(transparent, var(--bg) 18%); display: flex; flex-direction: column; gap: 6px; z-index: 2; }
.back { width: 40px; height: 40px; border-radius: 12px; background: #fff; display: inline-flex; align-items: center; justify-content: center; color: var(--ink); flex-shrink: 0; }
.days { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.days.seven { grid-template-columns: repeat(7, minmax(0, 1fr)); }
.day { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 0; border-radius: 14px; background: #fff; color: var(--ink); text-decoration: none; }
.day.on { background: var(--ink); color: #fff; }
.day.on.green { background: var(--accent); }
.day small { font-size: 12px; font-weight: 600; }
.day b { font-size: 18px; }
.slot-pick { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: 16px; border: 2px solid transparent; background: #fff; color: var(--ink); text-decoration: none; }
.slot-pick.on, .slot-pick:has(input:checked) { border-color: var(--accent); }
.slot-pick input { position: absolute; opacity: 0; }
.slot-pick .t { font-size: 20px; font-weight: 800; font-variant-numeric: tabular-nums; }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: #f3f4f6; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 800; color: var(--ink-2); flex-shrink: 0; }
.avatar.lg { width: 48px; height: 48px; font-size: 15px; background: var(--accent-soft); color: var(--accent); }
.avatar.sq { border-radius: 12px; }
.icon-box { width: 44px; height: 44px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; background: var(--accent-soft); color: var(--accent); }
.icon-box.orange { background: var(--orange-soft); color: var(--orange); }
.icon-box.grey { background: #f3f4f6; color: var(--muted); }
.qr { background: #fff; border-radius: 20px; padding: 18px; display: flex; justify-content: center; }
.qr img { width: 240px; height: 240px; image-rendering: pixelated; }
.copy-box { background: #fff; border-radius: 14px; padding: 12px 14px; font-family: ui-monospace, monospace; font-size: 12px; word-break: break-all; color: var(--ink-2); max-height: 64px; overflow: hidden; }
.timer { font-size: 28px; font-weight: 800; font-variant-numeric: tabular-nums; }
.sheet-bg { position: fixed; inset: 0; background: rgba(17,24,39,.45); display: flex; align-items: flex-end; justify-content: center; }
.sheet { background: var(--bg); border-radius: 24px 24px 0 0; padding: 22px 18px 28px; width: 100%; max-width: 480px; display: flex; flex-direction: column; gap: 14px; }

/* ---------- Painel do dono ---------- */
.app { display: flex; min-height: 100dvh; }
.sidebar { width: 240px; flex-shrink: 0; background: #fff; border-right: 1px solid #ececea; display: none; flex-direction: column; padding: 22px 14px; gap: 4px; position: sticky; top: 0; height: 100dvh; }
.sidebar .brand { display: flex; align-items: center; gap: 10px; padding: 0 8px 20px; color: var(--ink); text-decoration: none; }
.nav-item { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 12px; text-decoration: none; font-size: 15px; color: var(--ink-2); font-weight: 600; }
.nav-item:hover { background: #fafaf9; color: var(--ink); }
.nav-item.on { background: var(--accent-soft); color: var(--accent); font-weight: 800; }
.nav-item .count { margin-left: auto; font-size: 12px; font-weight: 800; color: var(--red); }
.main { flex: 1; min-width: 0; display: flex; flex-direction: column; padding: 22px 14px 96px; gap: 18px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 0 4px; }
.page-head .actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.search { flex: 1 1 280px; max-width: 420px; padding: 0 14px !important; }
.bottomnav { position: fixed; bottom: 0; left: 0; right: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); background: #fff; border-top: 1px solid #ececea; padding: 10px 6px 20px; z-index: 10; }
.bottomnav a { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; color: var(--muted); text-decoration: none; }
.bottomnav a.on { color: var(--accent); font-weight: 800; }
.kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.kpi { background: #fff; border-radius: var(--r); padding: 16px 18px; display: flex; flex-direction: column; gap: 2px; }
.kpi b { font-size: 24px; letter-spacing: -0.01em; }
.kpi span { font-size: 14px; color: var(--muted); }
.cols { display: grid; gap: 16px; }
.section-title { display: flex; justify-content: space-between; align-items: baseline; font-size: 15px; font-weight: 800; padding: 0 4px; }
.section-title a { font-size: 14px; font-weight: 700; }
.todo { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.todo:last-child { border-bottom: 0; }
.table { background: #fff; border-radius: var(--r); overflow: hidden; }
.table .tr { display: grid; gap: 12px; padding: 13px 18px; align-items: center; border-bottom: 1px solid var(--line); font-size: 15px; }
.table .tr:last-child { border-bottom: 0; }
.table .th { font-size: 13px; font-weight: 700; color: var(--muted); padding-top: 12px; padding-bottom: 12px; }
.table .tr.danger { background: var(--red-soft); }
.table .tr.sel { background: var(--accent-softer); }
.table .tr > * { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.table a.tr { color: var(--ink); text-decoration: none; }
.table a.tr:hover { background: #fafaf9; }
.bars { display: flex; gap: 6px; align-items: flex-end; }
.bars .bar { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.bars .bar i { display: block; width: 100%; border-radius: 6px; background: #cfe9d6; }
.bars .bar.on i { background: var(--accent); }
.bars .bar span { font-size: 11px; color: var(--muted); }
.bars .bar.on span { color: var(--ink); font-weight: 800; }
.grid-agenda { display: grid; grid-template-columns: 48px repeat(var(--courts, 2), minmax(0, 1fr)); gap: 8px; }
.grid-agenda .time { font-size: 13px; font-weight: 700; color: var(--muted); padding-top: 10px; }
.cell { border-radius: 12px; padding: 10px 12px; display: flex; flex-direction: column; justify-content: center; gap: 2px; min-height: 62px; text-decoration: none; color: var(--ink); border: 2px solid transparent; }
.cell.paid { background: var(--accent-softer); }
.cell.due { background: var(--amber-soft); }
.cell.late { background: var(--red-soft); }
.cell.free { border: 2px dashed #d6d8d2; color: var(--accent); font-weight: 700; font-size: 14px; }
.cell.past, .cell.closed { background: #efefec; color: #9ca3af; font-size: 13px; }
.cell.sel { border-color: var(--accent); }
.cell b { font-size: 14px; display: flex; align-items: center; gap: 6px; }
.cell b::before { content: ''; width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.cell.paid b::before { background: var(--accent); }
.cell.due b::before { background: var(--amber-dot); }
.cell.late b::before { background: var(--red-dot); }
.cell.free b::before, .cell.past b::before { display: none; }
.cell small { font-size: 12px; color: var(--muted); }
.legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: 13px; }
.flash { position: fixed; top: 14px; left: 50%; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 14px; font-weight: 700; font-size: 14px; z-index: 50; box-shadow: 0 10px 30px -10px rgba(0,0,0,.4); max-width: 90vw; }
.flash.err { background: var(--red); }

@media (min-width: 720px) {
  .kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .kpis.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .sidebar { display: flex; }
  .bottomnav { display: none; }
  .main { padding: 26px 32px 32px; gap: 20px; }
  .cols.side { grid-template-columns: minmax(0, 1fr) 380px; align-items: start; }
  .cols.half { grid-template-columns: 1fr 1fr; align-items: start; }
  h1 { font-size: 28px; }
  .only-mobile { display: none !important; }
}
@media (max-width: 1023px) {
  .only-desktop { display: none !important; }
  .table .tr.resp { grid-template-columns: 1fr auto !important; }
  .table .tr.resp > .opt { display: none; }
  .table .th.resp { display: none; }
}

/* ---------- Telão ---------- */
.tv { min-height: 100dvh; display: flex; flex-direction: column; gap: 22px; padding: 36px 44px; }
.tv .big { font-size: clamp(32px, 4vw, 52px); font-weight: 800; letter-spacing: -0.02em; line-height: 1.05; }

/* ---------- Site ---------- */
.site { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.site header { display: flex; align-items: center; justify-content: space-between; padding: 24px 0; gap: 16px; }
.site nav { display: flex; align-items: center; gap: 26px; font-weight: 600; }
.site nav a { color: var(--ink-2); text-decoration: none; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; color: var(--ink); text-decoration: none; letter-spacing: -0.01em; }
.logo i { width: 34px; height: 34px; border-radius: 10px; background: var(--accent); color: #fff; display: inline-flex; align-items: center; justify-content: center; }
.hero { display: grid; gap: 40px; align-items: center; padding: 40px 0 80px; }
.hero h1 { font-size: clamp(38px, 6vw, 60px); line-height: 1.05; letter-spacing: -0.035em; }
.hero p { font-size: 19px; color: #4b5563; line-height: 1.55; max-width: 600px; }
.site section { padding-bottom: 90px; }
.site h2 { font-size: clamp(28px, 3.5vw, 40px); letter-spacing: -0.025em; }
.g3 { display: grid; gap: 18px; }
.g2 { display: grid; gap: 14px; }
.feature { background: #fff; border-radius: 22px; padding: 26px; display: flex; flex-direction: column; gap: 10px; }
.feature p, .faq p { color: #4b5563; line-height: 1.55; }
.plan { background: #fff; border-radius: 22px; padding: 26px; display: flex; flex-direction: column; gap: 14px; border: 2px solid transparent; }
.plan.hl { border-color: var(--accent); }
.plan .price { font-size: 40px; font-weight: 800; letter-spacing: -0.02em; }
.cta { background: var(--accent); color: #fff; border-radius: 28px; padding: 48px; display: flex; gap: 32px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.mock-phone { width: 300px; border-radius: 40px; background: var(--ink); padding: 10px; box-shadow: 0 30px 60px -20px rgba(17,24,39,.35); margin: 0 auto; }
.mock-phone > div { border-radius: 31px; background: var(--bg); padding: 26px 16px 16px; display: flex; flex-direction: column; gap: 10px; }
@media (min-width: 900px) {
  .hero { grid-template-columns: 1fr 340px; }
  .g3 { grid-template-columns: repeat(3, 1fr); }
  .g2 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 700px) { .site nav .hide-sm { display: none; } }

/* Páginas de privacidade e termos */
.legal h2 { font-size: 21px; margin-top: 10px; }
.legal ul { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 8px; }
.legal article a, .legal-note a { color: inherit; text-decoration: underline; }
