/* GoalPool — Bolão de Futebol.
   Sistema visual: estádio noturno, superfícies de vidro escuro, verde-esmeralda para ação, ciano para informação,
   violeta para recursos especiais e dourado para conquistas. Contraste calibrado para WCAG 2.2 AA. */

:root {
  /* Superfícies */
  --bg: #050a14;
  --bg-2: #07101f;
  --bg-elev: #0a1424;
  --surface: #0d1a2d;
  --surface-2: #122238;
  --surface-3: #1a2d48;
  --glass: linear-gradient(180deg, rgba(22, 38, 62, .78), rgba(10, 19, 34, .86));
  --glass-strong: linear-gradient(180deg, rgba(24, 42, 68, .9), rgba(11, 21, 37, .94));
  --line: rgba(140, 170, 210, .14);
  --line-strong: rgba(140, 170, 210, .28);
  --highlight: inset 0 1px 0 rgba(255, 255, 255, .05);
  /* Texto */
  --ink: #eef3fa;
  --muted: #9fb0c6;
  --faint: #7f90a8;
  /* Marca e estados */
  --green: #2ee89a;
  --green-strong: #18cf82;
  --green-ink: #03150d;
  --green-soft: rgba(46, 232, 154, .12);
  --cyan: #4fd8ef;
  --cyan-soft: rgba(79, 216, 239, .12);
  --blue: #4f8dff;
  --violet: #a78bfa;
  --violet-soft: rgba(167, 139, 250, .14);
  --pink: #ff6fb1;
  --gold: #f5c451;
  --gold-soft: rgba(245, 196, 81, .14);
  --silver: #c9d2de;
  --bronze: #d9925a;
  --orange: #ff9f4a;
  --warning: #f7b955;
  --warning-soft: rgba(247, 185, 85, .13);
  --danger: #ff8f8f;
  --danger-solid: #c4313a;
  --danger-soft: rgba(255, 120, 120, .12);
  /* Compatibilidade com nomes usados em estilos inline */
  --green-900: var(--green); --green-700: var(--green); --green-600: var(--green-strong); --green-50: var(--green-soft);
  --danger-bg: var(--danger-soft); --info-bg: var(--cyan-soft);
  /* Forma e profundidade */
  --radius: 18px;
  --radius-sm: 12px;
  --radius-pill: 999px;
  --shadow: var(--highlight), 0 18px 40px -18px rgba(0, 0, 0, .7);
  --shadow-lift: var(--highlight), 0 24px 50px -16px rgba(0, 0, 0, .8);
  --glow-green: 0 0 0 1px rgba(46, 232, 154, .45), 0 10px 30px -6px rgba(46, 232, 154, .45);
  /* Espaço, tipografia e movimento */
  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px; --space-5: 24px; --space-6: 32px; --space-7: 48px;
  --font: "Inter", "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Inter", "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --dur: .2s;
  --sidebar-w: 264px;
  --bottom-nav-h: 66px;
  color-scheme: dark;
  font-family: var(--font);
  color: var(--ink);
  line-height: 1.5;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh;
  background:
    radial-gradient(900px 520px at 85% -10%, rgba(46, 232, 154, .08), transparent 70%),
    radial-gradient(800px 600px at -10% 20%, rgba(79, 141, 255, .07), transparent 70%),
    var(--bg);
  background-attachment: fixed;
}
main { flex: 1; display: block; }
img { max-width: 100%; }
a { color: var(--cyan); text-underline-offset: 3px; }
a:hover { color: #8be8f7; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.02em; }
h1 { font-size: clamp(1.7rem, 3vw, 2.35rem); font-weight: 850; }
h2 { font-size: 1.22rem; font-weight: 780; }
h3 { font-size: 1.04rem; font-weight: 720; }
p { margin: 0 0 1em; }
code { font-family: ui-monospace, "Cascadia Code", Consolas, monospace; background: var(--surface-2); padding: 1px 6px; border-radius: 6px; }
.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 var(--space-5); }
.narrow { max-width: 480px; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.inline { display: inline; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; }
.skip-link { position: absolute; left: -999px; top: 8px; z-index: 60; background: var(--green); color: var(--green-ink); padding: 8px 14px; border-radius: 8px; font-weight: 700; }
.skip-link:focus { left: 8px; }
.icon { width: 20px; height: 20px; flex: none; display: inline-block; vertical-align: middle; }

/* ================================================================ Estrutura: barra lateral (desktop), topo e barra inferior (celular) */
.app-main { min-width: 0; min-height: 100vh; display: flex; flex-direction: column; }
.sidebar { display: none; }
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--ink); text-decoration: none; }
.brand:hover { color: var(--ink); }
.brand-logo { width: 38px; height: 38px; flex: none; display: block; filter: drop-shadow(0 4px 14px rgba(46, 232, 154, .3)); }
.brand-text { display: flex; flex-direction: column; line-height: 1.02; }
.brand-name { font-family: var(--font-display); font-weight: 900; font-size: 1.28rem; letter-spacing: -.03em; }
.brand-name .pool { background: linear-gradient(90deg, var(--green), var(--cyan)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand-tagline { font-size: .62rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); font-weight: 750; margin-top: 3px; }

@media (min-width: 1024px) {
  body.app { display: grid; grid-template-columns: var(--sidebar-w) minmax(0, 1fr); }
  .sidebar {
    display: flex; flex-direction: column; gap: 18px; position: sticky; top: 0; height: 100vh; overflow-y: auto; padding: 22px 16px 18px;
    background: linear-gradient(180deg, rgba(10, 20, 36, .96), rgba(5, 10, 20, .98)); border-right: 1px solid var(--line);
  }
  .sidebar .brand { padding: 4px 8px 10px; }
  .app-topbar { display: none; }
}
.side-nav, .side-groups { display: flex; flex-direction: column; gap: 3px; }
.side-nav a, .side-groups a {
  display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 9px 12px; border-radius: 12px; text-decoration: none;
  color: var(--muted); font-weight: 650; border: 1px solid transparent; transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}
.side-nav a:hover, .side-groups a:hover { background: rgba(255, 255, 255, .04); color: var(--ink); }
.side-nav a[aria-current="page"], .side-groups a[aria-current="page"] {
  color: var(--ink); background: linear-gradient(90deg, rgba(46, 232, 154, .16), rgba(46, 232, 154, .03)); border-color: rgba(46, 232, 154, .22);
  box-shadow: inset 3px 0 0 var(--green);
}
.side-nav a[aria-current="page"] .icon { color: var(--green); }
.side-nav .badge { margin-left: auto; }
.side-title { font-size: .7rem; text-transform: uppercase; letter-spacing: .14em; color: var(--faint); font-weight: 800; margin: 0 12px 6px; }
.side-group-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .92rem; }
.role-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); flex: none; }
.side-foot { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.side-user { display: flex; align-items: center; gap: 10px; padding: 0 6px; min-width: 0; }
.side-user-name { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.avatar { width: 36px; height: 36px; flex: none; border-radius: 50%; display: grid; place-items: center; font-weight: 850; font-size: .82rem; color: var(--green-ink); background: linear-gradient(135deg, var(--green), var(--cyan)); }

.topbar { position: sticky; top: 0; z-index: 30; padding-top: env(safe-area-inset-top); background: rgba(5, 10, 20, .78); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); min-height: 64px; padding: 0 var(--space-4); }
.public-topbar { position: absolute; left: 0; right: 0; background: linear-gradient(180deg, rgba(3, 7, 15, .75), rgba(3, 7, 15, 0)); border-bottom: 0; backdrop-filter: none; -webkit-backdrop-filter: none; }
.public-topbar .topbar-inner { padding: 6px var(--space-5) 0; }
body.public .app-main > main { padding-top: 0; }
.topnav { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.topnav a { text-decoration: none; color: #d6e0ee; font-weight: 650; padding: 8px 12px; border-radius: var(--radius-pill); }
.topnav a:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.topnav a.btn { color: var(--green-ink); background: var(--green); padding: 8px 18px; }
.badge { display: inline-block; min-width: 20px; padding: 0 6px; border-radius: 10px; background: var(--gold); color: #1b1402; font-size: .72rem; font-weight: 850; text-align: center; line-height: 20px; }

.bottom-nav { display: none; }
@media (max-width: 1023px) {
  body.has-bottom-nav { padding-bottom: calc(var(--bottom-nav-h) + env(safe-area-inset-bottom)); }
  .bottom-nav {
    display: grid; grid-template-columns: repeat(4, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    height: calc(var(--bottom-nav-h) + env(safe-area-inset-bottom)); padding: 0 6px env(safe-area-inset-bottom);
    background: rgba(6, 12, 23, .92); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-top: 1px solid var(--line);
    box-shadow: 0 -12px 30px rgba(0, 0, 0, .35);
  }
  .bottom-nav a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; text-decoration: none; color: var(--muted); font-size: .72rem; font-weight: 750; position: relative; min-height: 48px; }
  .bottom-nav a[aria-current="page"] { color: var(--green); }
  .bottom-nav a[aria-current="page"]::before { content: ""; position: absolute; top: 0; width: 34px; height: 3px; border-radius: 0 0 4px 4px; background: var(--green); box-shadow: 0 0 12px var(--green); }
  .bottom-nav .icon { width: 23px; height: 23px; }
  .bottom-nav .badge { position: absolute; top: 7px; left: calc(50% + 6px); }
}

/* ================================================================ Botões */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px;
  border: 1px solid transparent; border-radius: var(--radius-sm); color: var(--green-ink);
  background: linear-gradient(180deg, #45f0ab, var(--green-strong)); padding: 10px 22px; font: inherit; font-weight: 800;
  text-decoration: none; cursor: pointer; text-align: center; letter-spacing: -.005em;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 10px 26px -8px rgba(46, 232, 154, .55);
  transition: transform var(--dur) var(--ease), filter var(--dur) var(--ease), box-shadow var(--dur) var(--ease), background var(--dur) var(--ease);
}
.btn:hover { color: var(--green-ink); filter: brightness(1.07); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 14px 32px -8px rgba(46, 232, 154, .7); }
.btn:active { transform: translateY(1px); }
.btn[disabled], .btn:disabled { opacity: .5; cursor: not-allowed; box-shadow: none; filter: none; }
.btn .icon { width: 18px; height: 18px; }
.btn-small { min-height: 38px; padding: 6px 15px; font-size: .88rem; }
.btn-ghost { background: rgba(255, 255, 255, .03); color: var(--ink); border-color: var(--line-strong); box-shadow: none; }
.btn-ghost:hover { background: rgba(255, 255, 255, .07); color: var(--ink); border-color: rgba(79, 216, 239, .6); box-shadow: none; filter: none; }
.btn-gold { background: linear-gradient(180deg, #ffd978, var(--gold)); color: #1b1402; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4), 0 10px 26px -8px rgba(245, 196, 81, .55); }
.btn-gold:hover { color: #1b1402; }
.btn-danger { background: var(--danger-solid); color: #fff; box-shadow: none; }
.btn-danger:hover { background: #a9252e; color: #fff; box-shadow: none; filter: none; }
.btn-block { display: flex; width: 100%; }
.link-button { background: none; border: 0; padding: 0; font: inherit; font-weight: 650; color: var(--cyan); cursor: pointer; min-height: 32px; }
.link-button:hover { text-decoration: underline; }
.link-button.muted { color: var(--muted); }
.actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

/* ================================================================ Mensagens e estados */
.messages { margin-top: var(--space-4); }
.alert { padding: 13px 16px 13px 46px; border-radius: var(--radius-sm); margin-bottom: 10px; background: var(--cyan-soft); border: 1px solid rgba(79, 216, 239, .3); position: relative; }
.alert::before { content: "i"; position: absolute; left: 14px; top: 13px; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-weight: 850; font-size: .75rem; background: var(--cyan); color: #04141a; }
.alert-success { background: var(--green-soft); border-color: rgba(46, 232, 154, .35); }
.alert-success::before { content: "✓"; background: var(--green); color: var(--green-ink); }
.alert-error { background: var(--danger-soft); border-color: rgba(255, 120, 120, .4); color: #ffd6d6; }
.alert-error::before { content: "!"; background: var(--danger); color: #2a0606; }
.alert-warning { background: var(--warning-soft); border-color: rgba(247, 185, 85, .4); }
.alert-warning::before { content: "!"; background: var(--warning); color: #241500; }
.notice { border: 1px solid rgba(245, 196, 81, .32); border-left: 4px solid var(--gold); background: linear-gradient(90deg, rgba(245, 196, 81, .12), rgba(245, 196, 81, .04)); padding: 14px 18px; border-radius: var(--radius-sm); overflow-wrap: anywhere; }
.empty {
  text-align: center; padding: 34px 18px; color: var(--muted); border: 1px dashed var(--line-strong); border-radius: var(--radius);
  background: radial-gradient(60% 100% at 50% 0%, rgba(79, 216, 239, .06), transparent 70%), rgba(255, 255, 255, .012);
}
.empty::before { content: ""; display: block; width: 46px; height: 46px; margin: 0 auto 12px; border-radius: 50%; opacity: .55;
  background: radial-gradient(circle at 35% 30%, #fff 0 2px, transparent 3px), conic-gradient(from 0deg, var(--surface-3), var(--surface-2), var(--surface-3)); border: 1px solid var(--line-strong); }

/* ================================================================ Cartões, páginas e formulários */
.card { background: var(--glass); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--space-5); box-shadow: var(--shadow); min-width: 0; }
.page { padding-top: var(--space-6); padding-bottom: var(--space-7); }
.page-header { display: flex; justify-content: space-between; align-items: flex-end; gap: var(--space-4); flex-wrap: wrap; margin-bottom: var(--space-5); }
.page-header p { margin: 0; }
.eyebrow { font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; font-weight: 850; color: var(--green); margin-bottom: 8px; }
.form-field { margin-bottom: var(--space-4); border: 0; padding: 0; min-width: 0; }
.form-field label, .form-field legend { display: block; font-weight: 650; margin-bottom: 7px; color: var(--ink); font-size: .94rem; }
.form-field input, .form-field textarea, .form-field select, .inline-form select, .inline-form input[type=text], .copy-box input {
  width: 100%; min-height: 48px; padding: 12px 14px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  font: inherit; color: var(--ink); background: rgba(4, 9, 18, .65); transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease), background var(--dur) var(--ease);
}
.form-field input::placeholder, .form-field textarea::placeholder { color: #6f8098; }
.form-field input[type=checkbox], .form-field input[type=radio] { width: auto; min-height: 0; accent-color: var(--green); }
.form-field input[type=file] { padding: 10px; }
.form-field input:hover, .form-field textarea:hover, .form-field select:hover { border-color: rgba(140, 170, 210, .42); }
.form-field input:focus, .form-field textarea:focus, .form-field select:focus, .inline-form select:focus, .inline-form input:focus, .copy-box input:focus {
  outline: none; border-color: var(--green); background: rgba(4, 9, 18, .85); box-shadow: 0 0 0 3px rgba(46, 232, 154, .2);
}
.form-field select option { background: var(--surface); color: var(--ink); }
.helptext { display: block; color: var(--muted); font-size: .84rem; margin-top: 6px; }
.errorlist { list-style: none; padding: 0; margin: 6px 0 0; color: var(--danger); font-size: .87rem; font-weight: 650; }
.errorlist li::before { content: "! "; }
.form-errors { background: var(--danger-soft); border: 1px solid rgba(255, 120, 120, .4); color: #ffd6d6; padding: 10px 14px; border-radius: var(--radius-sm); margin-bottom: var(--space-4); }
.form-row { display: grid; gap: 0 var(--space-4); grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.inline-form { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.inline-form select, .inline-form input[type=text] { flex: 1; min-width: 0; width: auto; }
.copy-box { display: flex; gap: 8px; flex-wrap: wrap; }
.copy-box input, input.copy-box { flex: 1; min-width: 0; font-family: ui-monospace, monospace; font-size: .85rem; width: 100%; color: var(--ink); background: rgba(4, 9, 18, .65); border: 1px solid var(--line-strong); border-radius: var(--radius-sm); padding: 10px; }
.toggle-row { display: flex; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); cursor: pointer; min-height: 48px; }
.toggle-row:last-of-type { border-bottom: 0; }
.toggle-row input { flex: none; width: 22px; height: 22px; margin: 0; accent-color: var(--green); }
.auth-footer { margin-top: var(--space-4); text-align: center; }

/* ================================================================ Grade, indicadores e etiquetas */
.grid { display: grid; gap: var(--space-4); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.grid-counters { grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); }
.stat { --tone: var(--green); position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 2px; align-items: flex-start; border-radius: var(--radius); padding: 16px; border: 1px solid var(--line); background: var(--glass); box-shadow: var(--shadow); min-width: 0; }
.stat:has(> .stat-icon) { flex-direction: row; align-items: center; gap: 14px; }
.stat::after { content: ""; position: absolute; right: -40px; bottom: -60px; width: 150px; height: 150px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--tone) 22%, transparent), transparent 70%); pointer-events: none; }
.stat-icon { width: 44px; height: 44px; flex: none; border-radius: 13px; display: grid; place-items: center; color: var(--tone); background: color-mix(in srgb, var(--tone) 14%, transparent); border: 1px solid color-mix(in srgb, var(--tone) 32%, transparent); }
.stat-icon .icon { width: 22px; height: 22px; }
.stat-label { color: var(--muted); font-size: .76rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.stat-value { font-size: 1.85rem; font-weight: 900; color: var(--ink); letter-spacing: -.03em; line-height: 1.1; }
.stat.cyan { --tone: var(--cyan); } .stat.gold { --tone: var(--gold); } .stat.violet { --tone: var(--violet); } .stat.pink { --tone: var(--pink); }
.tag { display: inline-flex; align-items: center; gap: 5px; font-size: .73rem; font-weight: 780; padding: 3px 10px; border-radius: var(--radius-pill); background: var(--green-soft); color: #8ff5c8; border: 1px solid rgba(46, 232, 154, .28); white-space: nowrap; vertical-align: middle; }
.tag-dev { background: var(--warning-soft); color: #ffd79a; border-color: rgba(247, 185, 85, .35); }
.tag-muted { background: rgba(148, 170, 200, .1); color: var(--muted); border-color: var(--line); }
.tag-danger { background: var(--danger-soft); color: #ffc2c2; border-color: rgba(255, 120, 120, .35); }
.tag-info { background: var(--cyan-soft); color: #9eeaf7; border-color: rgba(79, 216, 239, .32); }
.tag-violet { background: var(--violet-soft); color: #d2c4ff; border-color: rgba(167, 139, 250, .35); }
.tag-gold { background: var(--gold-soft); color: #ffe19b; border-color: rgba(245, 196, 81, .4); }

/* ================================================================ Listas, tabelas e abas */
.list { list-style: none; margin: 0; padding: 0; }
.list-item { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.list-item:last-child { border-bottom: 0; }
.table-wrap { overflow-x: auto; border-radius: var(--radius-sm); }
table { width: 100%; border-collapse: collapse; font-size: .95rem; font-variant-numeric: tabular-nums; }
th, td { text-align: left; padding: 12px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--faint); font-weight: 750; font-size: .72rem; text-transform: uppercase; letter-spacing: .09em; background: rgba(255, 255, 255, .02); }
tbody tr { transition: background var(--dur) var(--ease); }
tbody tr:hover { background: rgba(255, 255, 255, .025); }
tr.mine td { background: rgba(46, 232, 154, .08); }
tr.mine td:first-child { box-shadow: inset 3px 0 0 var(--green); }
tfoot td { border-top: 1px solid var(--line-strong); border-bottom: 0; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 8px 18px; margin: 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; overflow-wrap: anywhere; }
.rules { display: grid; gap: 12px; margin: 0; }
.rules dt { font-weight: 750; }
.rules dd { margin: 2px 0 0; color: var(--muted); }
.status-legend { display: grid; gap: 8px; margin: 0; }
.status-legend div { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.status-legend dt { min-width: 110px; }
.status-legend dd { margin: 0; color: var(--muted); font-size: .9rem; }
.pagination { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: var(--space-4); flex-wrap: wrap; }
.tabs { display: flex; gap: 6px; margin-bottom: var(--space-4); flex-wrap: wrap; padding: 5px; border-radius: var(--radius-pill); background: rgba(4, 9, 18, .55); border: 1px solid var(--line); width: fit-content; max-width: 100%; }
.tabs a, .tabs button { padding: 8px 16px; border-radius: var(--radius-pill); text-decoration: none; color: var(--muted); border: 0; background: none; font: inherit; font-size: .88rem; font-weight: 700; min-height: 38px; display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.tabs a:hover, .tabs button:hover { color: var(--ink); }
.tabs a.active, .tabs button[aria-pressed="true"] { background: linear-gradient(180deg, #45f0ab, var(--green-strong)); color: var(--green-ink); box-shadow: 0 6px 18px -6px rgba(46, 232, 154, .6); }
details > summary { cursor: pointer; }

/* ================================================================ Fotografia e capas (estádio) */
.photo { position: relative; isolation: isolate; overflow: hidden; background: #050a14 center / cover no-repeat; }
.photo::before { content: ""; position: absolute; inset: 0; z-index: -1; background: inherit; background-size: cover; background-position: inherit; transform: scale(1.02); }
.photo-hero { background-image: url("../img/hero.0031b24dd58d.webp"); background-position: 60% 50%; }
.photo-pitch { background-image: url("../img/pitch.2a2581602c7b.webp"); background-position: 50% 40%; }
.photo-crowd { background-image: url("../img/crowd.aec639385a32.webp"); background-position: 50% 30%; }
.cover {
  position: relative; isolation: isolate; overflow: hidden; border-radius: 22px; border: 1px solid var(--line); margin-bottom: var(--space-5);
  background-color: #050a14; background-size: cover; background-position: 50% 40%; box-shadow: var(--shadow-lift);
}
.cover::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(4, 8, 16, .94) 0%, rgba(4, 8, 16, .72) 45%, rgba(4, 8, 16, .25) 100%), linear-gradient(0deg, rgba(4, 8, 16, .85), transparent 55%); }
.cover-inner { position: relative; padding: 28px 28px 26px; display: flex; gap: 18px; align-items: flex-end; flex-wrap: wrap; min-height: 200px; }
.cover-inner > .grow { flex: 1 1 260px; min-width: 0; }
.cover h1 { margin: 0 0 6px; overflow-wrap: anywhere; text-shadow: 0 2px 18px rgba(0, 0, 0, .5); }
.cover .lead { color: #c9d5e6; margin: 0; }
.cover-meta { display: flex; gap: 8px 16px; flex-wrap: wrap; color: #c3d0e2; font-size: .92rem; margin-top: 6px; }
.cover-meta span { display: inline-flex; align-items: center; gap: 6px; }
.cover-meta .icon { width: 17px; height: 17px; color: var(--green); }
.cover-art { position: absolute; right: 22px; top: 50%; transform: translateY(-50%); width: 150px; z-index: 0; pointer-events: none; filter: drop-shadow(0 10px 30px rgba(245, 196, 81, .35)); }
.cover-art + .cover-inner { padding-right: 190px; }
@media (max-width: 640px) {
  .cover-inner { padding: 20px 18px; min-height: 170px; }
  .cover-art { width: 72px; right: 12px; top: 14px; transform: none; opacity: .95; }
  .cover-art + .cover-inner { padding-right: 18px; padding-top: 96px; }
}
.back-link { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); text-decoration: none; font-weight: 650; font-size: .9rem; margin-bottom: 12px; }
.back-link:hover { color: var(--ink); }
.back-link .icon { width: 18px; height: 18px; }

/* ================================================================ Página pública (landing) */
.hero { min-height: min(100vh, 860px); display: flex; align-items: center; padding: 120px 0 90px; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(3, 7, 15, .95) 0%, rgba(3, 7, 15, .75) 40%, rgba(3, 7, 15, .2) 75%), linear-gradient(0deg, var(--bg) 0%, transparent 35%); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(2.3rem, 6vw, 4.1rem); font-weight: 900; letter-spacing: -.04em; line-height: 1.02; margin-bottom: 18px; text-shadow: 0 4px 30px rgba(0, 0, 0, .6); }
.hero h1 .accent { background: linear-gradient(90deg, var(--green), var(--cyan)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { font-size: 1.15rem; max-width: 580px; color: #cfdaea; }
.hero .actions { margin-top: 28px; }
.hero .actions .btn { min-height: 52px; padding: 12px 28px; font-size: 1.02rem; }
.hero-badges { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 26px; }
.hero-logo { width: 64px; height: 64px; margin-bottom: 18px; filter: drop-shadow(0 8px 24px rgba(46, 232, 154, .4)); }
.hero-visual { position: relative; display: grid; place-items: center; min-height: 360px; }
.hero-visual .trophy { width: min(320px, 80%); filter: drop-shadow(0 30px 60px rgba(245, 196, 81, .35)); animation: float 6s var(--ease) infinite alternate; }
.hero-visual .ball { position: absolute; width: 120px; right: 4%; bottom: 0; filter: drop-shadow(0 20px 30px rgba(0, 0, 0, .6)); }
@keyframes float { from { transform: translateY(0); } to { transform: translateY(-12px); } }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; } .hero-visual { display: none; } .hero { min-height: 0; padding: 110px 0 70px; } }
.section { padding: 72px 0; position: relative; }
.section-alt { background: linear-gradient(180deg, rgba(13, 26, 45, .6), rgba(5, 10, 20, 0)); border-top: 1px solid var(--line); }
.section-title { text-align: center; margin-bottom: 10px; font-size: clamp(1.6rem, 3.6vw, 2.4rem); font-weight: 900; letter-spacing: -.03em; }
.section-sub { text-align: center; color: var(--muted); max-width: 640px; margin: 0 auto 36px; }
.step-number { width: 44px; height: 44px; border-radius: 14px; background: linear-gradient(135deg, var(--green), var(--cyan)); color: var(--green-ink); display: grid; place-items: center; font-weight: 900; font-size: 1.1rem; margin-bottom: 14px; box-shadow: 0 10px 24px -8px rgba(46, 232, 154, .6); }
.feature { background: var(--glass); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease); }
.feature:hover { transform: translateY(-2px); border-color: var(--line-strong); }
.feature h3 { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.feature-icon { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--green-soft); color: var(--green); margin-bottom: 14px; border: 1px solid rgba(46, 232, 154, .25); }
.feature-icon svg { width: 24px; height: 24px; }
.feature-icon.cyan { background: var(--cyan-soft); color: var(--cyan); border-color: rgba(79, 216, 239, .25); }
.feature-icon.violet { background: var(--violet-soft); color: var(--violet); border-color: rgba(167, 139, 250, .25); }
.feature-icon.gold { background: var(--gold-soft); color: var(--gold); border-color: rgba(245, 196, 81, .3); }
.feature-icon.pink { background: rgba(255, 111, 177, .12); color: var(--pink); border-color: rgba(255, 111, 177, .3); }
.cta-band { position: relative; isolation: isolate; overflow: hidden; text-align: center; padding: 72px 24px; border-radius: 26px; border: 1px solid rgba(46, 232, 154, .25); background: #050a14 url("../img/crowd.aec639385a32.webp") center 35% / cover no-repeat; box-shadow: var(--shadow-lift); }
.cta-band::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(70% 90% at 50% 0%, rgba(4, 8, 16, .35), rgba(4, 8, 16, .9) 80%); }
.cta-band h2 { font-size: clamp(1.7rem, 4.4vw, 2.8rem); font-weight: 900; letter-spacing: -.03em; text-transform: uppercase; text-shadow: 0 4px 24px rgba(0, 0, 0, .7); }
.cta-band .crown { width: 46px; color: var(--gold); margin-bottom: 8px; }
.feature-checks { list-style: none; padding: 0; margin: 18px auto 26px; display: grid; gap: 10px; max-width: 420px; text-align: left; }
.feature-checks li { display: flex; gap: 10px; align-items: center; font-weight: 650; }
.feature-checks .icon { color: var(--green); }

/* ================================================================ Entrada, cadastro e recuperação (estádio) */
.stadium { position: relative; isolation: isolate; overflow: hidden; background: #050a14 url("../img/hero.0031b24dd58d.webp") 62% 50% / cover no-repeat; }
.stadium::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(3, 7, 15, .92) 0%, rgba(3, 7, 15, .7) 42%, rgba(3, 7, 15, .15) 80%), linear-gradient(0deg, rgba(3, 7, 15, .8), transparent 40%); }
.auth-shell { min-height: 100vh; display: flex; align-items: center; padding: 110px 0 80px; }
.auth-shell .container.narrow { margin-left: max(24px, calc((100% - 1180px) / 2 + 24px)); }
.auth-shell .card { background: linear-gradient(180deg, rgba(14, 26, 44, .82), rgba(7, 14, 26, .9)); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-color: rgba(140, 170, 210, .22); box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .8), var(--highlight); padding: 30px 28px; }
.auth-shell h1 { font-size: 1.7rem; }
.stadium::after { z-index: -2; }
.auth-shell::before { content: ""; position: absolute; right: 7%; bottom: 9%; width: clamp(140px, 17vw, 240px); aspect-ratio: 1; z-index: -1; background: url("../img/ball.9f7482f3e72c.svg") center / contain no-repeat; filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .7)); pointer-events: none; }
@media (max-width: 900px) { .auth-shell::before { display: none; } .auth-shell .container.narrow { margin: 0 auto; } }
@media (max-width: 760px) { .stadium { background-position: 70% 50%; } .stadium::after { background: linear-gradient(0deg, rgba(3, 7, 15, .94) 22%, rgba(3, 7, 15, .45) 62%, rgba(3, 7, 15, .25)); } .auth-shell { padding: 88px 0 48px; } .auth-shell .card { padding: 24px 18px; } }
.auth-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.auth-brand img { width: 54px; height: 54px; filter: drop-shadow(0 8px 20px rgba(46, 232, 154, .4)); }
.auth-brand .brand-name { font-size: 1.6rem; }
.auth-slogan { color: var(--muted); font-size: .9rem; margin: -6px 0 18px; }
.auth-page { padding-top: 40px; padding-bottom: 56px; }

/* ================================================================ Painel do torcedor (centro de comando) */
.welcome { border-radius: 24px; margin-bottom: var(--space-5); }
.welcome .cover-inner { min-height: 220px; align-items: center; }
.welcome h1 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); margin-bottom: 4px; }
.quick-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.section-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin: 0 0 14px; flex-wrap: wrap; }
.section-head h2 { margin: 0; display: flex; align-items: center; gap: 10px; }
.section-head h2 .icon { color: var(--green); }
.dash-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: var(--space-5); align-items: start; }
@media (max-width: 1100px) { .dash-grid { grid-template-columns: 1fr; } }
.round-cards { display: grid; gap: var(--space-4); grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); }
.round-card { --hue: 155; position: relative; overflow: hidden; border-radius: var(--radius); border: 1px solid var(--line); background: var(--glass); box-shadow: var(--shadow); display: flex; flex-direction: column; min-width: 0; transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease); }
.round-card:hover { transform: translateY(-3px); border-color: hsl(var(--hue) 70% 55% / .5); }
.round-card-media { height: 108px; background: #050a14 url("../img/pitch.2a2581602c7b.webp") center 45% / cover; position: relative; }
.round-card-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, hsl(var(--hue) 70% 30% / .25), rgba(10, 19, 34, .95)); }
.round-card-media .group-crest { position: absolute; left: 16px; bottom: -20px; z-index: 1; box-shadow: 0 8px 20px rgba(0, 0, 0, .5); }
.round-card-media .deadline-chip { position: absolute; right: 12px; top: 12px; z-index: 1; }
.round-card-body { padding: 28px 16px 16px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.round-card-body strong { font-size: 1.05rem; overflow-wrap: anywhere; }
.round-card-body .btn { margin-top: auto; }
.round-card-body .meta { color: var(--muted); font-size: .86rem; margin-bottom: 12px; }

/* ================================================================ Grupos (clubes e comunidade) */
.group-crest { --hue: 155; width: 46px; height: 46px; flex: none; border-radius: 14px; display: grid; place-items: center; font-weight: 900; font-size: 1.02rem; letter-spacing: -.02em; color: hsl(var(--hue) 95% 86%);
  background: radial-gradient(circle at 30% 20%, hsl(var(--hue) 65% 42%), hsl(var(--hue) 60% 16%) 75%); border: 1px solid hsl(var(--hue) 75% 60% / .5); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .15); }
.group-crest.mini { width: 30px; height: 30px; border-radius: 9px; font-size: .7rem; }
.group-crest.large { width: 78px; height: 78px; border-radius: 22px; font-size: 1.7rem; border-width: 2px; box-shadow: 0 12px 30px rgba(0, 0, 0, .5), inset 0 1px 0 rgba(255, 255, 255, .2); }
.group-tiles { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); }
.group-tile { --hue: 155; position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 12px; padding: 16px; border-radius: var(--radius); border: 1px solid var(--line); text-decoration: none; color: var(--ink); min-width: 0;
  background: radial-gradient(120% 90% at 100% 0%, hsl(var(--hue) 70% 40% / .22), transparent 60%), var(--glass); box-shadow: var(--shadow); transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease); }
.group-tile:hover { color: var(--ink); transform: translateY(-2px); border-color: hsl(var(--hue) 70% 55% / .5); }
.group-tile .name { font-weight: 800; overflow-wrap: anywhere; }
.group-tile .sub { color: var(--muted); font-size: .85rem; }
.group-tile .go { position: absolute; right: 14px; top: 16px; color: var(--faint); }
.group-card { --hue: 155; position: relative; overflow: hidden; border-radius: var(--radius); border: 1px solid var(--line); padding: 18px; background: var(--glass); display: flex; gap: 14px; align-items: center; }
.group-card .group-body { min-width: 0; flex: 1; }
.group-card .group-name { font-weight: 800; display: block; overflow-wrap: anywhere; }
.role-owner { background: var(--gold-soft); color: #ffe19b; border-color: rgba(245, 196, 81, .4); }
.role-moderator { background: var(--violet-soft); color: #d2c4ff; border-color: rgba(167, 139, 250, .35); }
.group-banner { --hue: 155; position: relative; isolation: isolate; overflow: hidden; border-radius: 22px; margin-bottom: var(--space-5); border: 1px solid var(--line); display: flex; gap: 18px; align-items: flex-end; flex-wrap: wrap; padding: 96px 24px 22px;
  background: #050a14 url("../img/crowd.aec639385a32.webp") center 30% / cover no-repeat; box-shadow: var(--shadow-lift); }
.group-banner::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(5, 10, 20, .97) 18%, rgba(5, 10, 20, .55) 60%, hsl(var(--hue) 70% 25% / .35)); }
.group-banner-text { flex: 1 1 220px; min-width: 0; }
.group-banner h1 { margin: 2px 0 4px; overflow-wrap: anywhere; text-shadow: 0 2px 16px rgba(0, 0, 0, .6); }
.group-banner .group-crest { width: 78px; height: 78px; border-radius: 22px; font-size: 1.7rem; border-width: 2px; box-shadow: 0 12px 30px rgba(0, 0, 0, .5); }
@media (max-width: 640px) { .group-banner { padding: 70px 18px 18px; } .group-banner .group-crest { width: 60px; height: 60px; font-size: 1.3rem; } }

/* ================================================================ Painel do administrador do grupo */
.admin-layout { display: grid; grid-template-columns: 236px minmax(0, 1fr); gap: var(--space-5); }
.admin-layout > * { min-width: 0; }
.sidenav { display: flex; flex-direction: column; gap: 3px; position: sticky; top: 20px; align-self: start; padding: 8px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--glass); }
.sidenav a { padding: 10px 12px; border-radius: 11px; text-decoration: none; color: var(--muted); display: flex; align-items: center; gap: 10px; font-weight: 650; border: 1px solid transparent; min-height: 44px; }
.sidenav a .icon { width: 18px; height: 18px; }
.sidenav a:hover { background: rgba(255, 255, 255, .04); color: var(--ink); }
.sidenav a.active { background: linear-gradient(90deg, rgba(46, 232, 154, .16), rgba(46, 232, 154, .03)); color: var(--ink); border-color: rgba(46, 232, 154, .25); box-shadow: inset 3px 0 0 var(--green); }
.sidenav a.active .icon { color: var(--green); }
.sidenav-title { font-size: .7rem; text-transform: uppercase; letter-spacing: .12em; color: var(--faint); margin: 12px 12px 4px; }
@media (max-width: 900px) {
  .admin-layout { grid-template-columns: 1fr; }
  .sidenav { flex-direction: row; overflow-x: auto; position: static; padding: 6px; scrollbar-width: thin; border-radius: var(--radius-pill); }
  .sidenav a { white-space: nowrap; border-radius: var(--radius-pill); min-height: 40px; padding: 8px 14px; }
  .sidenav a.active { box-shadow: none; background: linear-gradient(180deg, #45f0ab, var(--green-strong)); color: var(--green-ink); }
  .sidenav a.active .icon { color: var(--green-ink); }
  .sidenav-title { display: none; }
}

/* ================================================================ Partidas, agenda e palpites */
.crest { --hue: 200; width: 38px; height: 38px; flex: none; border-radius: 50% 50% 46% 46% / 42% 42% 58% 58%; display: inline-grid; place-items: center; font-size: .7rem; font-weight: 900; letter-spacing: -.02em;
  color: hsl(var(--hue) 90% 88%); background: linear-gradient(160deg, hsl(var(--hue) 60% 42%) 0 48%, hsl(var(--hue) 55% 22%) 52%); border: 2px solid hsl(var(--hue) 70% 70% / .55); box-shadow: 0 4px 12px rgba(0, 0, 0, .4), inset 0 1px 0 rgba(255, 255, 255, .25); }
.crest.large { width: 74px; height: 74px; font-size: 1.15rem; border-width: 3px; }
.match-card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--glass); padding: 14px 16px; box-shadow: var(--shadow); }
.match-teams { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; }
.match-team { display: flex; align-items: center; gap: 10px; min-width: 0; font-weight: 750; }
.match-team span { overflow-wrap: anywhere; }
.match-team.away { flex-direction: row-reverse; text-align: right; }
.match-vs { color: var(--faint); font-weight: 900; font-size: .8rem; letter-spacing: .08em; }
.match-meta { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; margin-top: 10px; color: var(--muted); font-size: .85rem; }
.match-line { transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease); }
.match-line:hover { border-color: var(--line-strong); }
.agenda-day { margin: 22px 0 10px; font-size: .74rem; font-weight: 850; letter-spacing: .14em; text-transform: uppercase; color: var(--cyan); display: flex; align-items: center; gap: 10px; }
.agenda-day::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 10px var(--cyan); }
.agenda-day::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, var(--line-strong), transparent); }
.agenda-filter { margin-bottom: 4px; }
.deadline-chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: var(--radius-pill); font-weight: 750; font-size: .83rem; background: rgba(6, 30, 40, .75); border: 1px solid rgba(79, 216, 239, .4); color: #b7f1fb; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.deadline-chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.deadline-chip.soon { background: rgba(40, 26, 4, .8); border-color: rgba(247, 185, 85, .55); color: #ffd79a; }
.deadline-chip.closed { background: rgba(20, 28, 40, .8); border-color: var(--line); color: var(--muted); }
.pick-row { padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--glass); margin-bottom: 14px; box-shadow: var(--shadow); }
.picks-form .pick-row { margin: 0 0 14px; }
.pick-row > div:first-child { margin-bottom: 12px; }
.pick-legend { padding: 0; margin-bottom: 14px; font-weight: 750; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; width: 100%; }
.pick-number { display: inline-grid; place-items: center; min-width: 28px; height: 28px; border-radius: 50%; background: var(--surface-3); color: var(--ink); font-size: .8rem; font-weight: 850; }
.pick-row.is-pending .pick-number { background: var(--warning-soft); color: #ffd79a; }
.pick-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.pick-options input { position: absolute; opacity: 0; pointer-events: none; }
.pick-options label {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; text-align: center; min-height: 72px; padding: 10px 6px;
  border: 1px solid var(--line-strong); border-radius: 14px; cursor: pointer; font-weight: 850; font-size: .95rem; line-height: 1.15; word-break: break-word;
  background: rgba(4, 9, 18, .6); color: var(--ink);
  transition: transform var(--dur) var(--ease), background var(--dur) var(--ease), border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.pick-options label:hover { border-color: var(--green); background: rgba(46, 232, 154, .06); }
.pick-options input:checked + label { background: linear-gradient(180deg, #4af2b0, var(--green-strong)); border-color: var(--green); color: var(--green-ink); box-shadow: var(--glow-green); transform: translateY(-2px); }
.pick-options input:checked + label::before { content: "✓"; font-size: .95rem; }
.pick-options input:focus-visible + label { outline: 2px solid var(--cyan); outline-offset: 2px; }
.pick-kind { font-size: .64rem; font-weight: 750; text-transform: uppercase; letter-spacing: .07em; opacity: .85; }
.pick-row.has-error { border-color: rgba(255, 120, 120, .5); }
.pick-row.has-error .pick-options label { border-color: rgba(255, 120, 120, .5); }
.hit { color: var(--green); font-weight: 800; }
.miss { color: var(--danger); font-weight: 800; }
.score-hit { color: var(--green); font-weight: 700; }
.score-miss { color: var(--danger); }
.score-pending, .score-postponed, .score-cancelled { color: var(--muted); }
.sticky-actions { position: sticky; bottom: 0; z-index: 10; background: rgba(8, 15, 28, .94); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); padding: 14px 16px 10px; border: 1px solid var(--line); border-radius: var(--radius) var(--radius) 0 0; margin-top: 8px; box-shadow: 0 -14px 30px rgba(0, 0, 0, .4); }
body.has-bottom-nav .sticky-actions { bottom: calc(var(--bottom-nav-h) + env(safe-area-inset-bottom)); }
@media (min-width: 1024px) { body.has-bottom-nav .sticky-actions { bottom: 0; } }
.picks-bar { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.picks-progress { flex: 1; min-width: 150px; font-size: .9rem; }
.progress { height: 8px; background: var(--surface-3); border-radius: 999px; overflow: hidden; margin-top: 6px; }
.progress-fill { height: 100%; width: 0; background: linear-gradient(90deg, var(--green), var(--cyan)); box-shadow: 0 0 12px rgba(46, 232, 154, .6); transition: width .25s var(--ease); }
@media (max-width: 400px) { .pick-options { gap: 6px; } .pick-options label { font-size: .84rem; padding: 8px 4px; } .crest { width: 32px; height: 32px; font-size: .62rem; } }

/* Explicação de pontos: em telas pequenas, cada partida vira um bloco com rótulos. */
@media (max-width: 600px) {
  table.breakdown thead { display: none; }
  table.breakdown, table.breakdown tbody, table.breakdown tfoot, table.breakdown tr, table.breakdown td { display: block; width: 100%; }
  table.breakdown tr { padding: 10px 0; border-bottom: 1px solid var(--line); }
  table.breakdown td { border: 0; padding: 3px 0; }
  table.breakdown td:first-child { font-weight: 700; }
  table.breakdown td[data-label]::before { content: attr(data-label) ": "; color: var(--muted); font-size: .85rem; }
  table.breakdown tfoot td[colspan] { display: none; }
}

/* ================================================================ Classificação (ranking de campeões) */
.podium { display: grid; grid-template-columns: 1fr 1.15fr 1fr; gap: 12px; align-items: end; margin: 8px 0 24px; }
.podium-place { position: relative; text-align: center; border-radius: 20px 20px 14px 14px; padding: 18px 10px 16px; border: 1px solid var(--line); background: var(--glass); min-width: 0; text-decoration: none; color: var(--ink); box-shadow: var(--shadow); }
.podium-place:hover { color: var(--ink); border-color: var(--line-strong); }
.podium-place .medal { width: 42px; height: 42px; margin: 0 auto 10px; border-radius: 50%; display: grid; place-items: center; font-weight: 900; color: #191207; box-shadow: 0 6px 16px rgba(0, 0, 0, .4), inset 0 1px 0 rgba(255, 255, 255, .6); }
.podium-place .who { font-weight: 800; overflow-wrap: anywhere; display: block; }
.podium-place .pts { font-size: 1.45rem; font-weight: 900; display: block; letter-spacing: -.02em; }
.podium-place .pts small { font-size: .7rem; font-weight: 700; color: var(--muted); }
.podium-place.slot1 { order: 2; padding-top: 30px; }
.podium-place.slot2 { order: 1; }
.podium-place.slot3 { order: 3; }
.podium-place.p1 { border-color: rgba(245, 196, 81, .6); background: radial-gradient(100% 80% at 50% 0%, rgba(245, 196, 81, .28), transparent 70%), var(--glass); box-shadow: 0 20px 44px -12px rgba(245, 196, 81, .35), var(--highlight); }
.podium-place.p1 .medal { background: linear-gradient(145deg, #fff0b8, var(--gold) 60%, #b07d1c); width: 54px; height: 54px; font-size: 1.15rem; }
.podium-place.p2 { border-color: rgba(201, 210, 222, .45); background: radial-gradient(100% 80% at 50% 0%, rgba(201, 210, 222, .14), transparent 70%), var(--glass); }
.podium-place.p2 .medal { background: linear-gradient(145deg, #ffffff, var(--silver) 60%, #8a95a6); }
.podium-place.p3 { border-color: rgba(217, 146, 90, .5); background: radial-gradient(100% 80% at 50% 0%, rgba(217, 146, 90, .16), transparent 70%), var(--glass); }
.podium-place.p3 .medal { background: linear-gradient(145deg, #ffd0a8, var(--bronze) 60%, #8c5226); }
.podium-place.is-mine { box-shadow: 0 0 0 2px var(--green), var(--shadow); }
.rank-pos { display: inline-grid; place-items: center; min-width: 32px; height: 32px; border-radius: 10px; font-weight: 900; background: var(--surface-3); }
.rank-pos.p1 { background: linear-gradient(145deg, #ffe6a0, var(--gold)); color: #191207; box-shadow: 0 0 16px rgba(245, 196, 81, .45); }
.rank-pos.p2 { background: linear-gradient(145deg, #ffffff, var(--silver)); color: #10151c; }
.rank-pos.p3 { background: linear-gradient(145deg, #ffcfa6, var(--bronze)); color: #1d0e03; }
.rank-pts { font-weight: 900; font-size: 1.1rem; }
.ranking-table tbody tr.p1 td { background: rgba(245, 196, 81, .08); }
.ranking-table tbody tr.p1 td:first-child { box-shadow: inset 3px 0 0 var(--gold); }
.ranking-table td { vertical-align: middle; }
.rank-who { display: flex; align-items: center; gap: 10px; min-width: 0; }
.rank-who .avatar { width: 32px; height: 32px; font-size: .72rem; }
.hits-inline { display: none; }
@media (max-width: 520px) { .ranking-table .col-hits { display: none; } .hits-inline { display: inline; } .ranking-table th, .ranking-table td { padding: 10px 6px; } .rank-who .avatar { display: none; } }
.ranking-state { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 12px; }
@media (max-width: 420px) { .podium { gap: 6px; } .podium-place { padding: 14px 6px; } .podium-place .pts { font-size: 1.15rem; } }

/* ================================================================ Assistente por etapas */
.stepper { list-style: none; display: flex; gap: 4px; padding: 0; margin: 12px 0 8px; overflow-x: auto; }
.stepper li { flex: 1; min-width: 58px; color: var(--muted); position: relative; }
.stepper li a { display: block; text-decoration: none; color: var(--muted); }
.stepper .step-dot { display: grid; place-items: center; width: 36px; height: 36px; margin: 0 auto 6px; border-radius: 50%; border: 2px solid var(--line-strong); background: var(--bg-elev); font-weight: 850; color: var(--muted); position: relative; z-index: 1; }
.stepper .step-label { display: block; text-align: center; font-size: .8rem; }
.stepper li.done .step-dot { background: var(--green-soft); border-color: var(--green); color: var(--green); }
.stepper li.current .step-dot { background: var(--green); border-color: var(--green); color: var(--green-ink); box-shadow: var(--glow-green); }
.stepper li.current .step-label { color: var(--ink); font-weight: 750; }
.wizard-actions { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }

/* ================================================================ Pagamentos */
.payment-terms { margin: 12px 0; }
.payment-terms ul { margin: 8px 0 0; padding-left: 20px; }
.payment-terms li { margin-bottom: 6px; }
.pay-status { display: flex; gap: 14px; align-items: flex-start; border-radius: var(--radius); padding: 18px; border: 1px solid var(--line); background: var(--glass); margin-bottom: 16px; box-shadow: var(--shadow); }
.pay-status .pay-icon { width: 44px; height: 44px; flex: none; border-radius: 13px; display: grid; place-items: center; font-weight: 900; }
.pay-status.awaiting { border-color: rgba(247, 185, 85, .45); background: linear-gradient(90deg, rgba(247, 185, 85, .14), rgba(247, 185, 85, .03)), var(--glass); }
.pay-status.awaiting .pay-icon { background: var(--warning); color: #241500; }
.pay-status.confirmed { border-color: rgba(46, 232, 154, .4); background: linear-gradient(90deg, rgba(46, 232, 154, .14), rgba(46, 232, 154, .03)), var(--glass); }
.pay-status.confirmed .pay-icon { background: var(--green); color: var(--green-ink); }
.amount { font-size: 1.9rem; font-weight: 900; letter-spacing: -.03em; }
.pay-option { display: flex; gap: 14px; align-items: center; padding: 16px; border-radius: var(--radius-sm); border: 1px solid var(--line-strong); background: rgba(4, 9, 18, .55); }
.pay-option.selected { border-color: var(--green); background: linear-gradient(90deg, rgba(46, 232, 154, .12), rgba(46, 232, 154, .02)); box-shadow: var(--glow-green); }
.pay-option .stat-icon { --tone: var(--green); }

/* ================================================================ Notificações */
.notif-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.notif-item { display: flex; gap: 14px; align-items: flex-start; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--glass); box-shadow: var(--shadow); }
.notif-item.unread { border-color: rgba(46, 232, 154, .3); background: linear-gradient(90deg, rgba(46, 232, 154, .08), transparent 55%), var(--glass); }
.notif-icon { width: 46px; height: 46px; flex: none; border-radius: 14px; display: grid; place-items: center; background: var(--cyan-soft); color: var(--cyan); border: 1px solid rgba(79, 216, 239, .3); }
.notif-icon svg { width: 22px; height: 22px; }
.notif-icon.k-pool { background: var(--green-soft); color: var(--green); border-color: rgba(46, 232, 154, .3); }
.notif-icon.k-result { background: var(--gold-soft); color: var(--gold); border-color: rgba(245, 196, 81, .35); }
.notif-icon.k-payment { background: var(--green-soft); color: var(--green); border-color: rgba(46, 232, 154, .3); }
.notif-icon.k-appeal, .notif-icon.k-team { background: var(--violet-soft); color: var(--violet); border-color: rgba(167, 139, 250, .35); }
.notif-icon.k-security { background: var(--danger-soft); color: var(--danger); border-color: rgba(255, 120, 120, .35); }
.notif-icon.k-group { background: rgba(79, 141, 255, .14); color: #8fb6ff; border-color: rgba(79, 141, 255, .35); }
.notif-body { flex: 1; min-width: 0; }
.notif-title { font-weight: 780; overflow-wrap: anywhere; }
.notif-time { color: var(--faint); font-size: .8rem; white-space: nowrap; }
.unread-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--green); margin-right: 6px; vertical-align: middle; box-shadow: 0 0 8px var(--green); }

/* ================================================================ Conta, segurança, equipe e outros blocos */
.reminder-box { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 16px; margin: 12px 0 16px; background: rgba(4, 9, 18, .5); }
.reminder-box h3 { margin-bottom: 6px; }
.account-page .card { margin-bottom: 16px; }
.account-page .card .btn { margin-top: 4px; }
.account-value { font-weight: 650; overflow-wrap: anywhere; }
.account-list { margin: 0 0 12px; padding-left: 20px; }
.account-page .notice { margin-bottom: 12px; }
.card-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.card-head h2 { margin: 0; }
.card-head .stat-icon { width: 40px; height: 40px; }
.session-list { list-style: none; margin: 16px 0; padding: 0; }
.session-item { margin-bottom: 12px; }
.session-head { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; overflow-wrap: anywhere; }
.mfa-secret { overflow-wrap: anywhere; font-size: 1rem; letter-spacing: .06em; }
.mfa-codes { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; padding: 16px; }
.mfa-codes code { font-size: 1rem; }
.team-member { border-bottom: 1px solid var(--line); padding: 12px 0; }
.team-member:last-of-type { border-bottom: 0; }
.team-member .actions { flex-wrap: wrap; }

/* ================================================================ Rodapé */
.footer { border-top: 1px solid var(--line); background: rgba(3, 7, 14, .9); color: var(--muted); font-size: .85rem; margin-top: auto; }
.footer-inner { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 22px var(--space-5); align-items: center; }
.footer-brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 750; }
.footer-brand img { width: 26px; height: 26px; }

@media (max-width: 640px) {
  .container { padding-left: var(--space-4); padding-right: var(--space-4); }
  .page { padding-top: var(--space-5); }
  .card { padding: 18px; }
}

/* ================================================================ Movimento reduzido */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* ================================================================ Linhas de rodada (listas de bolões) */
.round-row { flex-wrap: nowrap; }
.round-row-body { flex: 1; min-width: 0; }
.round-row-body strong { overflow-wrap: anywhere; }
.round-ico { width: 42px; height: 42px; flex: none; border-radius: 12px; display: grid; place-items: center; font-weight: 900; color: var(--muted); background: var(--surface-3); border: 1px solid var(--line-strong); }
.round-ico.open { color: var(--green); background: var(--green-soft); border-color: rgba(46, 232, 154, .35); }
.round-ico.closed, .round-ico.scoring { color: var(--cyan); background: var(--cyan-soft); border-color: rgba(79, 216, 239, .35); }
.round-ico.finished { color: var(--gold); background: var(--gold-soft); border-color: rgba(245, 196, 81, .35); }
.round-ico .icon { width: 20px; height: 20px; }
@media (max-width: 520px) { .round-row { flex-wrap: wrap; } .round-row .actions { width: 100%; padding-left: 54px; } }

/* Linha de partida (agenda) */
.match-row { display: flex; align-items: center; gap: 14px; }
.match-row .match-teams { flex: 1; min-width: 0; }
.match-time { flex: none; display: flex; flex-direction: column; align-items: flex-end; font-weight: 850; font-size: 1.05rem; line-height: 1.1; padding-left: 14px; border-left: 1px solid var(--line); min-width: 62px; }
.match-time small { font-size: .72rem; color: var(--faint); font-weight: 700; }
@media (max-width: 480px) { .match-time { display: none; } }
.agenda-list { display: grid; gap: 10px; list-style: none; margin: 0; padding: 0; }
.agenda-list > li { border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; background: rgba(4, 9, 18, .45); transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease); }
.agenda-list > li:hover { border-color: var(--line-strong); background: rgba(255, 255, 255, .025); }
[hidden] { display: none !important; }

/* Palpite instantâneo: confronto em destaque e escolhas 1 · X · 2 */
.picks-form.card { background: none; border: 0; box-shadow: none; padding: 0; }
.pick-match { display: grid; grid-template-columns: auto 1fr auto 1fr; align-items: center; gap: 10px; padding: 6px 0 14px; border-bottom: 1px solid var(--line); margin-bottom: 14px; }
.pick-match .pick-number { align-self: start; }
.pick-side { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; min-width: 0; }
.pick-side strong { overflow-wrap: anywhere; font-size: 1.02rem; }
.pick-vs { display: flex; flex-direction: column; align-items: center; gap: 6px; font-weight: 900; font-size: 1.3rem; letter-spacing: .06em; color: var(--muted); }
.pick-vs small { font-size: .72rem; font-weight: 700; letter-spacing: 0; color: var(--faint); white-space: nowrap; }
.pick-prompt { font-weight: 800; margin: 0 0 10px; }
.pick-sym { font-size: 1.6rem; font-weight: 900; line-height: 1; }
.pick-team { font-size: .78rem; font-weight: 700; opacity: .9; }
.pick-options input:checked + label .pick-team { opacity: 1; }
@media (max-width: 420px) { .pick-match { grid-template-columns: auto 1fr auto 1fr; gap: 6px; } .pick-match .crest.large { width: 52px; height: 52px; font-size: .9rem; } .pick-vs { font-size: 1rem; } .pick-side strong { font-size: .9rem; } }
.title-with-icon { display: flex; align-items: center; gap: 14px; min-width: 0; }
.title-with-icon .stat-icon { --tone: var(--green); width: 52px; height: 52px; border-radius: 16px; }
.title-with-icon .stat-icon .icon { width: 26px; height: 26px; }
.title-with-icon p { margin: 2px 0 0; }

/* Tabelas que viram cartões no celular */
@media (max-width: 640px) {
  table.stack-table thead { display: none; }
  table.stack-table, table.stack-table tbody, table.stack-table tr, table.stack-table td { display: block; width: 100%; }
  table.stack-table tr { padding: 14px 4px; border-bottom: 1px solid var(--line); }
  table.stack-table td { border: 0; padding: 4px 0; }
  table.stack-table td[data-label]::before { content: attr(data-label); display: block; color: var(--faint); font-size: .7rem; font-weight: 750; text-transform: uppercase; letter-spacing: .08em; }
  table.stack-table td.actions { padding-top: 10px; }
}

/* Conta */
.account-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 16px; align-items: start; }
.account-page .account-grid .card { margin-bottom: 0; }
.card-head.stat { all: unset; display: flex; align-items: center; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; --tone: var(--green); }
.card-head.stat.cyan { --tone: var(--cyan); } .card-head.stat.violet { --tone: var(--violet); } .card-head.stat.gold { --tone: var(--gold); }
.card-head.stat::after { display: none; }
.profile-avatar { width: 76px; height: 76px; font-size: 1.6rem; box-shadow: 0 12px 30px rgba(46, 232, 154, .35); }

/* Ajustes de celular: indicadores, ações rápidas e barra de palpites */
.welcome.photo-hero { background-position: 50% 22%; }
.stat > div { min-width: 0; }
.stat-label { overflow-wrap: anywhere; }
@media (max-width: 520px) {
  .grid-counters { grid-template-columns: 1fr 1fr; gap: 10px; }
  .stat:has(> .stat-icon) { flex-direction: column; align-items: flex-start; gap: 8px; padding: 14px; }
  .stat-icon { width: 38px; height: 38px; border-radius: 11px; }
  .stat-label { font-size: .68rem; letter-spacing: .06em; }
  .stat-value { font-size: 1.6rem; }
  .quick-actions .btn { min-height: 40px; padding: 8px 14px; font-size: .9rem; }
  .welcome .cover-inner { min-height: 0; }
}
.picks-bar .actions { flex-wrap: nowrap; }
@media (max-width: 520px) {
  .picks-bar { gap: 8px; padding: 10px 12px 8px; }
  .picks-progress { flex-basis: 100%; }
  .picks-bar .actions { width: 100%; }
  .picks-bar .actions .btn { flex: 1; min-height: 42px; padding: 8px 10px; }
}

.rules-wide .rules { display: block; columns: 2 320px; column-gap: 32px; }
.rules-wide .rules > * { break-inside: avoid; }
.rules-wide .rules dt { margin-top: 12px; }
.page-title { margin-bottom: 16px; }
.page-title h1 { margin: 0; }
.title-with-icon.cyan .stat-icon { --tone: var(--cyan); } .title-with-icon.violet .stat-icon { --tone: var(--violet); }
.title-with-icon.gold .stat-icon { --tone: var(--gold); } .title-with-icon.pink .stat-icon { --tone: var(--pink); }
.topnav { flex-wrap: nowrap; }
@media (max-width: 480px) {
  .public-topbar .topbar-inner { padding: 6px var(--space-4) 0; }
  .public-topbar .brand-logo { width: 32px; height: 32px; }
  .public-topbar .brand-name { font-size: 1.1rem; }
  .public-topbar .brand-tagline { font-size: .52rem; letter-spacing: .14em; }
  .topnav { gap: 2px; }
  .topnav a { padding: 8px 8px; font-size: .9rem; }
  .topnav a.btn { padding: 6px 12px; min-height: 36px; }
}
