/* ==========================================================================
   Escala FC — Design System
   Temas: gramado · arena · rubro · tricolor · canarinho · laranja · noturno
   Modos: light · dark · auto
   ========================================================================== */

@font-face {
  font-family: "Inter";
  src: url("../fonts/inter.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

/* ---------- Temas (cor de destaque) ---------- */
:root, [data-theme="gramado"] { --accent: #16a34a; --accent-2: #0d9488; --accent-ink: #15803d; }
[data-theme="arena"]     { --accent: #0ea5e9; --accent-2: #2563eb; --accent-ink: #0369a1; }
[data-theme="rubro"]     { --accent: #e11d48; --accent-2: #b91c1c; --accent-ink: #be123c; }
[data-theme="tricolor"]  { --accent: #7c3aed; --accent-2: #db2777; --accent-ink: #6d28d9; }
[data-theme="canarinho"] { --accent: #eab308; --accent-2: #16a34a; --accent-ink: #a16207; }
[data-theme="laranja"]   { --accent: #f97316; --accent-2: #dc2626; --accent-ink: #c2410c; }
[data-theme="noturno"]   { --accent: #475569; --accent-2: #0f172a; --accent-ink: #334155; }

/* ---------- Neutros: modo claro ---------- */
:root {
  --bg: #f3f6f4;
  --surface: #ffffff;
  --surface-2: #f8faf9;
  --surface-3: #eef2ef;
  --border: #e3e8e5;
  --border-strong: #cfd8d3;
  --text: #0f1a14;
  --text-2: #334155;
  --muted: #64748b;
  --income: #16a34a;
  --expense: #e11d48;
  --warn: #d97706;
  --info: #0284c7;
  --shadow-sm: 0 1px 2px rgba(15, 26, 20, .06);
  --shadow: 0 1px 3px rgba(15, 26, 20, .05), 0 10px 28px -14px rgba(15, 26, 20, .16);
  --shadow-lg: 0 28px 70px -28px rgba(15, 26, 20, .4);
  --sidebar-bg: #ffffff;
  --radius: 18px;
  --radius-sm: 11px;
  --sidebar-w: 268px;
  --accent-soft: color-mix(in srgb, var(--accent) 12%, transparent);
  --accent-grad: linear-gradient(135deg, var(--accent), var(--accent-2));
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}

/* ---------- Modo escuro ---------- */
[data-mode="dark"] {
  --bg: #070d0b;
  --surface: #0f1714;
  --surface-2: #131d19;
  --surface-3: #1a2621;
  --border: #1f2c27;
  --border-strong: #2b3b35;
  --text: #e8f0ec;
  --text-2: #c3cfc9;
  --muted: #869790;
  --income: #22c55e;
  --expense: #fb7185;
  --warn: #fbbf24;
  --info: #38bdf8;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 14px 32px -16px rgba(0, 0, 0, .7);
  --shadow-lg: 0 28px 70px -24px rgba(0, 0, 0, .85);
  --sidebar-bg: #0b1210;
  --accent-soft: color-mix(in srgb, var(--accent) 18%, transparent);
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  [data-mode="auto"] {
    --bg: #070d0b; --surface: #0f1714; --surface-2: #131d19; --surface-3: #1a2621; --border: #1f2c27; --border-strong: #2b3b35;
    --text: #e8f0ec; --text-2: #c3cfc9; --muted: #869790; --income: #22c55e; --expense: #fb7185; --warn: #fbbf24; --info: #38bdf8;
    --shadow-sm: 0 1px 2px rgba(0,0,0,.4); --shadow: 0 1px 2px rgba(0,0,0,.4), 0 14px 32px -16px rgba(0,0,0,.7); --shadow-lg: 0 28px 70px -24px rgba(0,0,0,.85);
    --sidebar-bg: #0b1210; --accent-soft: color-mix(in srgb, var(--accent) 18%, transparent);
    color-scheme: dark;
  }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font); font-size: 15px; line-height: 1.5; color: var(--text); background: var(--bg);
  -webkit-font-smoothing: antialiased; font-feature-settings: "cv11", "ss01", "tnum";
}
a { color: var(--accent-ink); text-decoration: none; }
[data-mode="dark"] a { color: color-mix(in srgb, var(--accent) 75%, white); }
@media (prefers-color-scheme: dark) { [data-mode="auto"] a { color: color-mix(in srgb, var(--accent) 75%, white); } }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3, h4 { margin: 0 0 .4em; line-height: 1.2; letter-spacing: -.02em; color: var(--text); }
h2 { font-size: 1.3rem; } h3 { font-size: 1.02rem; } h4 { font-size: .95rem; }
p { margin: 0 0 .8em; }
img { max-width: 100%; display: block; }
hr { border: 0; border-top: 1px solid var(--border); margin: 18px 0; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .86em; background: var(--surface-3); padding: 1px 6px; border-radius: 6px; }
pre { margin: 0; }
::selection { background: var(--accent-soft); }
.ic { width: 18px; height: 18px; flex-shrink: 0; vertical-align: -3px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

.muted { color: var(--muted); } .small { font-size: .85rem; } .center { text-align: center; }
.pos { color: var(--income) !important; } .neg { color: var(--expense) !important; } .warn { color: var(--warn) !important; }
.mt { margin-top: 14px; } .mb { margin-bottom: 18px; } .grow { flex: 1; min-width: 0; }
.nowrap { white-space: nowrap; } .selectable { user-select: all; }
.inline { display: inline-flex; margin: 0; }
.row-wrap { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.row-wrap.tight { gap: 6px; } .center-x { justify-content: center; }
.row-end { display: flex; justify-content: flex-end; gap: 8px; }
.row-between { display: flex; justify-content: space-between; gap: 12px; align-items: center; margin: 16px 0 12px; }
.row-between.wrap { flex-wrap: wrap; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 14px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 14px; }
.grid-2.gap { gap: 18px; }
.col-2 { grid-column: span 2; } .col-3 { grid-column: span 3; }
.w-160 { max-width: 160px; }

/* ---------- Botões ---------- */
.btn {
  --b: var(--surface-3); --c: var(--text);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 16px; min-height: 42px;
  border-radius: 12px; border: 1px solid transparent; background: var(--b); color: var(--c); font: 600 .92rem/1 var(--font);
  cursor: pointer; text-decoration: none !important; transition: transform .12s, box-shadow .15s, background .15s, opacity .15s; white-space: nowrap;
}
.btn:hover { filter: brightness(1.04); }
.btn:active { transform: translateY(1px) scale(.99); }
.btn[disabled], .btn.loading { opacity: .6; pointer-events: none; }
.btn-primary { --b: var(--accent-grad); --c: #fff; background: var(--accent-grad); box-shadow: 0 8px 20px -10px color-mix(in srgb, var(--accent) 80%, transparent); }
.btn-success { --b: var(--income); --c: #fff; }
.btn-danger { --b: var(--expense); --c: #fff; }
.btn-warn { --b: var(--warn); --c: #fff; }
.btn-wa { --b: #25d366; --c: #fff; }
.btn-ghost { --b: transparent; --c: var(--text-2); }
.btn-ghost:hover { background: var(--surface-3); }
.btn-ghost.danger, .danger { color: var(--expense) !important; }
.btn-outline { --b: transparent; border-color: var(--border-strong); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent-ink); }
.btn-light { --b: #fff; --c: #0f1a14; }
.btn-glass { --b: rgba(255, 255, 255, .16); --c: #fff; border-color: rgba(255, 255, 255, .25); backdrop-filter: blur(6px); }
.btn-sm { padding: 7px 12px; min-height: 34px; font-size: .84rem; border-radius: 10px; }
.btn-xs { padding: 4px 9px; min-height: 28px; font-size: .78rem; border-radius: 8px; gap: 4px; }
.btn-xs .ic, .btn-sm .ic { width: 16px; height: 16px; }
.btn-lg { padding: 14px 22px; min-height: 52px; font-size: 1rem; border-radius: 14px; }
.btn-block { width: 100%; }
.icon-btn {
  display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; border: 0; background: transparent;
  color: var(--text-2); cursor: pointer; transition: background .15s; padding: 0; flex-shrink: 0;
}
.icon-btn:hover { background: var(--surface-3); color: var(--text); text-decoration: none; }
.link-btn { background: none; border: 0; padding: 2px 4px; color: var(--accent-ink); font: 600 .82rem var(--font); cursor: pointer; }
.link-sm { font-size: .82rem; font-weight: 600; }

/* ---------- Formulários ---------- */
.form .field, .field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; min-width: 0; }
.field > span { font-size: .82rem; font-weight: 600; color: var(--text-2); }
.field.inline { flex-direction: row; align-items: center; margin: 0; gap: 8px; }
input, select, textarea {
  font: inherit; color: var(--text); background: var(--surface); border: 1px solid var(--border-strong); border-radius: 11px;
  padding: 10px 12px; min-height: 42px; width: 100%; transition: border-color .15s, box-shadow .15s;
}
textarea { resize: vertical; min-height: 80px; line-height: 1.45; }
textarea.mono { font-family: ui-monospace, Menlo, monospace; font-size: .85rem; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
input[type="checkbox"], input[type="radio"] { width: 18px; height: 18px; min-height: 0; accent-color: var(--accent); padding: 0; flex-shrink: 0; }
input[type="color"] { padding: 4px; height: 44px; cursor: pointer; }
input[type="file"] { padding: 8px; font-size: .85rem; }
input[type="file"]::file-selector-button { border: 0; background: var(--surface-3); color: var(--text); border-radius: 8px; padding: 6px 10px; margin-right: 10px; font: 600 .8rem var(--font); cursor: pointer; }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%2364748b' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; padding-right: 34px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; margin: 6px 0 14px; cursor: pointer; }
.check input { margin-top: 2px; }
.prefix-input { display: flex; align-items: stretch; }
.prefix-input em { display: grid; place-items: center; padding: 0 12px; background: var(--surface-3); border: 1px solid var(--border-strong); border-right: 0; border-radius: 11px 0 0 11px; font-style: normal; color: var(--muted); font-weight: 600; font-size: .9rem; }
.prefix-input input { border-radius: 0 11px 11px 0; }
.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 48px; }
.pw-wrap .icon-btn { position: absolute; right: 3px; top: 2px; }
.otp-input { font-size: 1.6rem; letter-spacing: .5em; text-align: center; font-weight: 700; }
fieldset { border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 18px 6px; margin: 0 0 18px; }
legend { font-weight: 700; padding: 0 8px; display: flex; gap: 8px; align-items: center; }

/* switch */
.switch { display: flex; align-items: center; gap: 12px; cursor: pointer; margin: 8px 0 12px; font-size: .9rem; position: relative; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.slider { width: 42px; height: 24px; border-radius: 99px; background: var(--border-strong); position: relative; flex-shrink: 0; transition: background .2s; }
.slider::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.3); transition: transform .2s; }
.switch input:checked + .slider { background: var(--accent); }
.switch input:checked + .slider::after { transform: translateX(18px); }
.switch input:focus-visible + .slider { outline: 2px solid var(--accent); outline-offset: 2px; }

/* segmentado */
.seg { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; background: var(--surface-3); border-radius: 13px; margin-bottom: 14px; }
.seg label, .seg > a, .seg > button { position: relative; margin: 0; }
.seg input { position: absolute; opacity: 0; inset: 0; cursor: pointer; width: 100%; height: 100%; margin: 0; }
.seg span, .seg > a, .seg > button {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 10px; font-weight: 600; font-size: .86rem;
  color: var(--text-2); border: 0; background: transparent; cursor: pointer; text-decoration: none !important; font-family: var(--font);
}
.seg input:checked + span, .seg > a.on, .seg > button.on { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); }
.seg-sm { margin: 0; }
.seg-sm span, .seg-sm > a, .seg-sm > button { padding: 6px 10px; font-size: .8rem; }

/* ---------- Layout do app ---------- */
.app { min-height: 100vh; }
.sidebar {
  position: fixed; inset: 0 auto 0 0; width: var(--sidebar-w); background: var(--sidebar-bg); border-right: 1px solid var(--border);
  display: flex; flex-direction: column; z-index: 40; transition: transform .25s ease;
}
.sidebar-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 18px 12px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text) !important; text-decoration: none !important; font-weight: 800; font-size: 1.08rem; letter-spacing: -.02em; min-width: 0; }
.brand-mark { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-grad); color: #fff; flex-shrink: 0; box-shadow: 0 8px 18px -8px var(--accent); }
.brand-mark .ic { width: 22px; height: 22px; }
.brand-logo { max-height: 40px; max-width: 190px; object-fit: contain; }
.brand-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.team-switch { display: flex; align-items: center; gap: 10px; margin: 2px 14px 8px; padding: 10px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 14px; }
.team-switch strong { display: block; font-size: .88rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.team-switch small { color: var(--muted); font-size: .75rem; }
.team-switch select { min-height: 34px; padding: 6px 30px 6px 8px; font-weight: 600; font-size: .86rem; border: 0; background-color: transparent; }
.nav { flex: 1; overflow-y: auto; padding: 4px 12px 12px; }
.nav-group { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); padding: 14px 10px 6px; }
.nav-link { display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 11px; color: var(--text-2) !important; font-weight: 550; font-size: .92rem; text-decoration: none !important; position: relative; transition: background .15s, color .15s; }
.nav-link:hover { background: var(--surface-3); color: var(--text) !important; }
.nav-link.active { background: var(--accent-soft); color: var(--accent-ink) !important; font-weight: 700; }
[data-mode="dark"] .nav-link.active { color: color-mix(in srgb, var(--accent) 70%, white) !important; }
@media (prefers-color-scheme: dark) { [data-mode="auto"] .nav-link.active { color: color-mix(in srgb, var(--accent) 70%, white) !important; } }
.nav-link.active::before { content: ""; position: absolute; left: -12px; top: 8px; bottom: 8px; width: 4px; border-radius: 0 4px 4px 0; background: var(--accent); }
.nav-badge { margin-left: auto; background: var(--expense); color: #fff; font-style: normal; font-size: .7rem; font-weight: 700; border-radius: 99px; padding: 2px 7px; min-width: 20px; text-align: center; }
.sidebar-foot { display: flex; align-items: center; gap: 6px; padding: 12px; border-top: 1px solid var(--border); }
.user-card { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; padding: 6px; border-radius: 12px; color: var(--text) !important; text-decoration: none !important; }
.user-card:hover { background: var(--surface-3); }
.user-meta { min-width: 0; display: flex; flex-direction: column; }
.user-meta strong { font-size: .86rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-meta small { color: var(--muted); font-size: .74rem; }
.backdrop { display: none; }
.shell { margin-left: var(--sidebar-w); min-height: 100vh; display: flex; flex-direction: column; }
.topbar {
  position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 10px; padding: 12px 28px; min-height: 66px;
  background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid color-mix(in srgb, var(--border) 60%, transparent);
}
.topbar-title { display: flex; align-items: center; gap: 6px; flex: 1; min-width: 0; }
.topbar-title h1 { font-size: 1.28rem; margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topbar-actions { display: flex; align-items: center; gap: 4px; }
[data-sound="1"] .snd-off, [data-sound="0"] .snd-on { display: none; }
.main { flex: 1; padding: 24px 28px 40px; width: 100%; max-width: 1380px; }
.app-foot { padding: 18px 28px 26px; color: var(--muted); font-size: .78rem; }
.only-mobile { display: none !important; }
.bottom-nav { display: none; }

/* ---------- Componentes ---------- */
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); margin-bottom: 18px; min-width: 0; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.panel-head h3 { margin: 0; display: flex; align-items: center; gap: 8px; font-size: 1rem; }
.panel-head h3 .ic { color: var(--accent); }
.panel h2 { display: flex; align-items: center; gap: 8px; font-size: 1.1rem; }
.panel.narrow, .form.narrow { max-width: 720px; }
.panel.highlight { border-color: color-mix(in srgb, var(--accent) 45%, var(--border)); background: linear-gradient(180deg, var(--accent-soft), var(--surface) 60%); }
.danger-zone { border-color: color-mix(in srgb, var(--expense) 35%, var(--border)); }
.danger-zone h3 .ic { color: var(--expense) !important; }
.page-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.page-head p { margin: 0; }
.section-title { display: flex; align-items: center; gap: 8px; font-size: 1.05rem; margin: 24px 0 12px; }
.two-col { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 18px; align-items: start; }
.grid-main-side { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 18px; align-items: start; }
.sticky { position: sticky; top: 84px; }

.badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 99px; font-size: .73rem; font-weight: 700; white-space: nowrap; line-height: 1.4; }
.badge .ic { width: 13px; height: 13px; }
.badge-success { background: color-mix(in srgb, var(--income) 15%, transparent); color: var(--income); }
.badge-warn { background: color-mix(in srgb, var(--warn) 16%, transparent); color: var(--warn); }
.badge-danger { background: color-mix(in srgb, var(--expense) 14%, transparent); color: var(--expense); }
.badge-info { background: color-mix(in srgb, var(--info) 15%, transparent); color: var(--info); }
.badge-muted { background: var(--surface-3); color: var(--muted); }
.badge-light { background: rgba(255, 255, 255, .2); color: #fff; backdrop-filter: blur(4px); }
.tag { font-size: .78rem; background: var(--surface-3); padding: 2px 7px; border-radius: 8px; }

.alert { display: flex; gap: 10px; align-items: center; padding: 12px 14px; border-radius: 13px; margin-bottom: 14px; font-size: .9rem; border: 1px solid; text-decoration: none !important; color: var(--text) !important; }
.alert .ic { flex-shrink: 0; }
.alert-success { background: color-mix(in srgb, var(--income) 10%, var(--surface)); border-color: color-mix(in srgb, var(--income) 30%, transparent); }
.alert-success .ic { color: var(--income); }
.alert-error, .alert-danger { background: color-mix(in srgb, var(--expense) 9%, var(--surface)); border-color: color-mix(in srgb, var(--expense) 30%, transparent); }
.alert-error .ic { color: var(--expense); }
.alert-warn { background: color-mix(in srgb, var(--warn) 10%, var(--surface)); border-color: color-mix(in srgb, var(--warn) 32%, transparent); }
.alert-warn .ic { color: var(--warn); }
.alert-info { background: color-mix(in srgb, var(--info) 9%, var(--surface)); border-color: color-mix(in srgb, var(--info) 28%, transparent); }
.alert-info .ic { color: var(--info); }
.alert.small { padding: 8px 10px; font-size: .8rem; margin: 10px 0 0; }
.banner { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 14px; margin-bottom: 18px; font-size: .9rem; color: #fff; flex-wrap: wrap; }
.banner span { flex: 1; min-width: 200px; }
.banner .btn { --b: #fff; --c: #111; }
.banner-info { background: linear-gradient(120deg, var(--accent), var(--accent-2)); }
.banner-warn { background: linear-gradient(120deg, #d97706, #ea580c); }
.banner-danger { background: linear-gradient(120deg, #e11d48, #9f1239); }

.tabs { display: flex; gap: 4px; padding: 4px; background: var(--surface-3); border-radius: 14px; overflow-x: auto; scrollbar-width: none; max-width: 100%; }
.tabs::-webkit-scrollbar { display: none; }
.tab { display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border-radius: 11px; color: var(--text-2) !important; font-weight: 600; font-size: .87rem; white-space: nowrap; text-decoration: none !important; }
.tab .ic { width: 16px; height: 16px; }
.tab:hover { color: var(--text) !important; }
.tab.active { background: var(--surface); color: var(--text) !important; box-shadow: var(--shadow-sm); }
.tab-count { font-style: normal; font-size: .72rem; background: var(--border-strong); border-radius: 99px; padding: 1px 7px; }
.tab-count.hot { background: var(--expense); color: #fff; }

.empty { text-align: center; padding: 48px 20px; background: var(--surface); border: 1px dashed var(--border-strong); border-radius: var(--radius); }
.empty h3 { margin-top: 10px; }
.empty-ic { width: 64px; height: 64px; margin: 0 auto; display: grid; place-items: center; border-radius: 20px; background: var(--accent-soft); color: var(--accent); }
.empty-ic .ic { width: 30px; height: 30px; }
.empty-ic.big { width: 84px; height: 84px; }

.table-wrap { overflow-x: auto; margin: 0 -4px; }
.table-wrap.panel { padding: 6px 10px; margin: 0 0 18px; }
.table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.table th { text-align: left; font-size: .74rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 700; padding: 10px; border-bottom: 1px solid var(--border); white-space: nowrap; }
.table td { padding: 10px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: var(--surface-2); }
.table .c { text-align: center; } .table .r { text-align: right; }
.table.small td, .table.small th { padding: 7px 8px; font-size: .82rem; }
.cell-ath { display: flex; align-items: center; gap: 10px; min-width: 0; }
.cell-ath span { display: flex; flex-direction: column; }

.list { list-style: none; margin: 0; padding: 0; }
.list li { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.list li:last-child { border-bottom: 0; }
.list li a.grow, .list li .grow { display: flex; flex-direction: column; color: var(--text); text-decoration: none; }
.list li a.grow:hover strong { color: var(--accent-ink); }
.list.compact li { padding: 8px 0; }
.list li strong { font-size: .9rem; }
.list li small { font-size: .78rem; }
.list li.today { background: var(--accent-soft); border-radius: 10px; padding: 8px; }

.kv { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px dashed var(--border); font-size: .9rem; align-items: center; }
.kv:last-child { border-bottom: 0; }
.kv-list { display: grid; gap: 10px; margin: 16px 0; }
.kv-list > div { display: flex; flex-direction: column; gap: 4px; text-align: left; }
.kv-list span { font-size: .78rem; color: var(--muted); font-weight: 600; }
.kv-list a, .kv-list code { word-break: break-all; }
.copy-field { display: flex; gap: 6px; }
.copy-field input { font-size: .84rem; background: var(--surface-2); }
.wa-preview { white-space: pre-wrap; background: #dcf8c6; color: #111b21; border-radius: 12px 12px 12px 2px; padding: 12px 14px; font: .86rem/1.45 var(--font); margin: 8px 0 12px; max-height: 340px; overflow: auto; box-shadow: var(--shadow-sm); }
[data-mode="dark"] .wa-preview { background: #005c4b; color: #e9edef; }
@media (prefers-color-scheme: dark) { [data-mode="auto"] .wa-preview { background: #005c4b; color: #e9edef; } }
.qr { display: grid; place-items: center; margin: 10px auto; padding: 12px; background: #fff; border-radius: 16px; width: max-content; max-width: 100%; }
.qr img, .qr svg { width: 220px; height: 220px; image-rendering: pixelated; }
.spinner { width: 16px; height: 16px; border: 2px solid var(--border-strong); border-top-color: var(--accent); border-radius: 50%; display: inline-block; animation: spin .8s linear infinite; vertical-align: -3px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* avatares e escudos */
.avatar { --h: 140; width: 38px; height: 38px; border-radius: 50%; display: inline-grid; place-items: center; background: hsl(var(--h) 55% 46%); color: #fff; font-weight: 700; font-size: .82rem; flex-shrink: 0; overflow: hidden; letter-spacing: -.02em; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar-sm { width: 30px; height: 30px; font-size: .7rem; }
.avatar-lg { width: 64px; height: 64px; font-size: 1.15rem; }
.avatar-xl { width: 88px; height: 88px; font-size: 1.6rem; box-shadow: 0 0 0 4px var(--surface), var(--shadow); }
.avatar.more { background: var(--surface-3); color: var(--text-2); }
.avatar-stack { display: flex; flex-wrap: wrap; }
.avatar-stack .avatar { box-shadow: 0 0 0 2px var(--surface); margin-right: -8px; }
.crest { --c1: #16a34a; --c2: #fff; width: 38px; height: 38px; border-radius: 12px; display: inline-grid; place-items: center; flex-shrink: 0; overflow: hidden; }
.crest img { width: 100%; height: 100%; object-fit: contain; }
.crest-txt { background: linear-gradient(135deg, var(--c1) 0 62%, color-mix(in srgb, var(--c1) 70%, black) 62%); color: var(--c2); font-weight: 900; font-size: .8rem; letter-spacing: -.03em; border: 2px solid color-mix(in srgb, var(--c2) 60%, transparent); clip-path: polygon(50% 0, 100% 14%, 100% 58%, 50% 100%, 0 58%, 0 14%); border-radius: 4px; padding-bottom: 4px; }
.crest-sm { width: 30px; height: 30px; font-size: .62rem; }
.crest-md { width: 48px; height: 48px; font-size: .9rem; }
.crest-lg { width: 64px; height: 64px; font-size: 1.1rem; }
.crest-xl { width: 104px; height: 104px; font-size: 1.8rem; }

.stars { color: #f59e0b; letter-spacing: 1px; font-size: .95rem; }
.stars .off { color: var(--border-strong); }
.card-y, .card-r { display: inline-block; width: 10px; height: 14px; border-radius: 2px; background: #facc15; vertical-align: -2px; margin: 0 3px 0 2px; }
.card-r { background: #ef4444; }

/* KPIs */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin-bottom: 18px; }
.kpis.small { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
.kpi { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 14px 16px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 2px; }
.kpi span { font-size: .76rem; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.kpi strong { font-size: 1.45rem; letter-spacing: -.03em; font-weight: 800; }
.kpi small { color: var(--muted); font-size: .78rem; }
.kpi.accent { background: var(--accent-grad); border: 0; color: #fff; }
.kpi.accent span, .kpi.accent small { color: rgba(255, 255, 255, .85); }
.kpi.accent strong { color: #fff; }
.kpi-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.kpi-grid.wide { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); margin-bottom: 18px; }
.kpi-card { display: flex; gap: 12px; align-items: center; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 14px; box-shadow: var(--shadow-sm); color: var(--text) !important; text-decoration: none !important; transition: transform .15s, box-shadow .15s; min-width: 0; }
a.kpi-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.kpi-card > div { min-width: 0; display: flex; flex-direction: column; }
.kpi-card small { color: var(--muted); font-size: .76rem; font-weight: 600; }
.kpi-card strong { font-size: 1.35rem; font-weight: 800; letter-spacing: -.03em; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kpi-card em { font-style: normal; font-size: .74rem; color: var(--muted); }
.kpi-card em.up { color: var(--income); } .kpi-card em.down { color: var(--expense); } .kpi-card em.warn { color: var(--warn); }
.kpi-ic { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; flex-shrink: 0; }
.kpi-ic .ic { width: 22px; height: 22px; }
.c-green { background: color-mix(in srgb, #16a34a 14%, transparent); color: #16a34a; }
.c-blue { background: color-mix(in srgb, #0284c7 14%, transparent); color: #0284c7; }
.c-amber { background: color-mix(in srgb, #d97706 15%, transparent); color: #d97706; }
.c-red { background: color-mix(in srgb, #e11d48 13%, transparent); color: #e11d48; }
.c-violet { background: color-mix(in srgb, #7c3aed 13%, transparent); color: #7c3aed; }
.c-teal { background: color-mix(in srgb, #0d9488 14%, transparent); color: #0d9488; }
.mini-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 12px 0; width: 100%; }
.mini-stats div { display: flex; flex-direction: column; align-items: center; background: var(--surface-2); border-radius: 12px; padding: 8px 4px; }
.mini-stats strong { font-size: 1.05rem; } .mini-stats span { font-size: .72rem; color: var(--muted); }
.mini-stats.big strong { font-size: 1.5rem; }
.stat-strip { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin: 16px 0; }
.stat-strip div { background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px; padding: 10px 4px; text-align: center; }
.stat-strip strong { display: block; font-size: 1.2rem; } .stat-strip span { font-size: .7rem; color: var(--muted); }

.progress { height: 8px; background: var(--surface-3); border-radius: 99px; overflow: hidden; margin-bottom: 12px; }
.progress span { display: block; height: 100%; background: var(--accent-grad); border-radius: 99px; transition: width .6s; }

/* toolbar / busca */
.toolbar { display: flex; gap: 10px; align-items: center; margin-bottom: 18px; flex-wrap: wrap; }
.toolbar.wrap > * { flex-shrink: 0; }
.toolbar select, .toolbar input:not([type=radio]) { width: auto; }
.search { display: flex; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--border-strong); border-radius: 12px; padding: 0 12px; min-width: 240px; flex: 1; max-width: 420px; }
.search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.search .ic { color: var(--muted); }
.search input { border: 0; padding: 10px 0; box-shadow: none !important; background: transparent; }
.search.grow { max-width: none; }

/* toasts e diálogos */
.toasts { position: fixed; right: 18px; bottom: 18px; display: flex; flex-direction: column; gap: 8px; z-index: 100; max-width: min(420px, calc(100vw - 36px)); }
.toast { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-lg); font-size: .9rem; animation: toastIn .3s ease; border-left: 4px solid var(--accent); }
.toast.error { border-left-color: var(--expense); } .toast.info { border-left-color: var(--info); } .toast.warn { border-left-color: var(--warn); }
.toast button { margin-left: auto; background: none; border: 0; color: var(--muted); cursor: pointer; font-size: 1.1rem; line-height: 1; }
.toast.out { animation: toastOut .25s ease forwards; }
@keyframes toastIn { from { opacity: 0; transform: translateY(10px) scale(.97); } }
@keyframes toastOut { to { opacity: 0; transform: translateX(30px); } }
dialog { border: 0; padding: 0; background: transparent; color: var(--text); max-width: calc(100vw - 24px); }
dialog::backdrop { background: rgba(4, 10, 8, .55); backdrop-filter: blur(3px); }
.confirm-dialog form, .modal > form { background: var(--surface); border-radius: 20px; padding: 24px; width: min(440px, calc(100vw - 32px)); box-shadow: var(--shadow-lg); border: 1px solid var(--border); }
.modal > form { width: min(560px, calc(100vw - 24px)); max-height: calc(100vh - 40px); overflow: auto; }
.confirm-dialog { text-align: center; }
.confirm-icon { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 12px; background: color-mix(in srgb, var(--expense) 13%, transparent); color: var(--expense); }
.confirm-dialog .row-end { justify-content: center; margin-top: 16px; }
.modal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.modal-head h3 { margin: 0; }
dialog[open] { animation: pop .2s ease; }
@keyframes pop { from { opacity: 0; transform: scale(.96); } }

.menu-dd { position: relative; }
.menu-dd summary { list-style: none; }
.menu-dd summary::-webkit-details-marker { display: none; }
.menu-dd-body { position: absolute; right: 0; top: calc(100% + 6px); background: var(--surface); border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow-lg); padding: 6px; min-width: 250px; z-index: 20; }
.menu-dd-body form { margin: 0; }
.menu-dd-body button { display: flex; width: 100%; gap: 10px; align-items: center; padding: 10px 12px; border: 0; background: none; border-radius: 10px; color: var(--text); font: 550 .88rem var(--font); cursor: pointer; text-align: left; }
.menu-dd-body button:hover { background: var(--surface-3); }

/* ---------- Telas de acesso (login, cadastro, convite, atleta) ---------- */
.auth { min-height: 100vh; display: grid; place-items: center; padding: 28px 14px; position: relative; overflow-x: hidden;
  background: radial-gradient(1000px 600px at 10% -10%, color-mix(in srgb, var(--accent) 30%, transparent), transparent 60%),
              radial-gradient(800px 500px at 110% 110%, color-mix(in srgb, var(--accent-2) 24%, transparent), transparent 60%), var(--bg); }
.auth-bg { position: fixed; inset: 0; pointer-events: none; z-index: 0; }
.pitch-lines { position: absolute; inset: 0; opacity: .08;
  background:
    radial-gradient(circle at 50% 50%, transparent 89px, currentColor 90px, currentColor 92px, transparent 93px),
    linear-gradient(90deg, transparent calc(50% - 1px), currentColor calc(50% - 1px), currentColor calc(50% + 1px), transparent calc(50% + 1px)),
    repeating-linear-gradient(90deg, transparent 0 80px, color-mix(in srgb, currentColor 40%, transparent) 80px 160px);
  color: var(--accent); mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%); }
.auth-wrap { width: 100%; max-width: 460px; position: relative; z-index: 1; }
.auth-wrap.wide { max-width: 760px; }
.auth.signup .auth-wrap, .auth.invite .auth-wrap, .auth.athlete-portal .auth-wrap { max-width: 560px; }
.auth-card { background: var(--surface); border: 1px solid var(--border); border-radius: 26px; padding: 30px 28px; box-shadow: var(--shadow-lg); }
.auth-brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.15rem; margin-bottom: 22px; }
.auth-brand .brand-logo { max-height: 48px; }
.auth-title { font-size: 1.55rem; margin-bottom: 4px; letter-spacing: -.03em; }
.auth-sub { color: var(--muted); margin-bottom: 20px; }
.auth-foot { text-align: center; color: var(--muted); font-size: .8rem; margin-top: 16px; }
.form-step-title { display: flex; align-items: center; gap: 10px; font-weight: 700; margin: 18px 0 12px; font-size: .95rem; }
.form-step-title span { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-ink); font-size: .8rem; }
.plan-pick { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; margin-bottom: 14px; }
.plan-opt { position: relative; cursor: pointer; }
.plan-opt input { position: absolute; opacity: 0; }
.plan-opt > span { display: flex; flex-direction: column; gap: 2px; padding: 12px; border: 2px solid var(--border); border-radius: 14px; transition: border-color .15s, background .15s; }
.plan-opt em { font-style: normal; font-weight: 800; font-size: 1.05rem; }
.plan-opt em small { font-weight: 500; color: var(--muted); font-size: .75rem; }
.plan-opt input:checked + span { border-color: var(--accent); background: var(--accent-soft); }
.plan-opt.hl > span::after { content: "★ Popular"; font-size: .68rem; font-weight: 700; color: var(--warn); }
.checklist { list-style: none; padding: 0; margin: 0 0 18px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; font-size: .85rem; }
.checklist li { display: flex; gap: 6px; align-items: center; }
.checklist .ok .ic { color: var(--income); } .checklist .fail .ic { color: var(--expense); } .checklist .fail { color: var(--expense); font-weight: 600; }
.install-done, .center { text-align: center; }
.big-check { width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 14px; background: color-mix(in srgb, var(--income) 15%, transparent); color: var(--income); animation: pop .4s ease; }
.big-check .ic { width: 44px; height: 44px; }
.photo-pick { display: flex; flex-direction: column; align-items: center; gap: 6px; cursor: pointer; margin: 0 auto 16px; width: max-content; }
.photo-pick input { position: absolute; opacity: 0; width: 1px; }
.photo-circle { width: 104px; height: 104px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-3); border: 2px dashed var(--border-strong); color: var(--muted); overflow: hidden; position: relative; transition: border-color .15s; }
.photo-pick:hover .photo-circle { border-color: var(--accent); color: var(--accent); }
.photo-circle .ic { width: 30px; height: 30px; }
.photo-circle img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.invite-team { display: flex; gap: 14px; align-items: center; padding-bottom: 16px; margin-bottom: 16px; border-bottom: 1px solid var(--border); }
.invite-team .auth-title { margin: 0; }
.ath-head { display: flex; gap: 16px; align-items: center; }
.ath-head .auth-title { margin: 0; }
.rsvp-card { border: 1px solid var(--border); border-left: 4px solid var(--c1, var(--accent)); border-radius: 16px; padding: 16px; margin-bottom: 12px; background: var(--surface-2); transition: box-shadow .2s; }
.rsvp-card.focus { box-shadow: 0 0 0 3px var(--accent-soft), var(--shadow); border-color: var(--accent); }
.rsvp-card h3 { margin: 8px 0; }
.rsvp-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.meta-list { list-style: none; padding: 0; margin: 0 0 10px; display: grid; gap: 4px; font-size: .88rem; color: var(--text-2); }
.meta-list li { display: flex; gap: 8px; align-items: flex-start; }
.meta-list .ic { width: 16px; height: 16px; color: var(--muted); margin-top: 2px; }
.meta-list em { color: var(--muted); }
.rsvp-state { margin: 10px 0; font-size: .88rem; }
.rsvp-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.rsvp-actions .btn { padding: 10px 6px; }
.score-mini { font-weight: 800; font-variant-numeric: tabular-nums; background: var(--surface-3); padding: 3px 9px; border-radius: 8px; font-size: .88rem; white-space: nowrap; display: inline-flex; gap: 6px; align-items: center; }
.score-mini.big { font-size: 1.05rem; padding: 6px 12px; }

/* ---------- Equipes ---------- */
.cards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.team-card { background: var(--surface); border: 1px solid var(--border); border-radius: 20px; overflow: hidden; box-shadow: var(--shadow); text-align: center; transition: transform .15s; }
.team-card:hover { transform: translateY(-3px); }
.team-card-band { height: 74px; background: linear-gradient(135deg, var(--c1), color-mix(in srgb, var(--c1) 55%, black)); position: relative; }
.team-card-band::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, transparent 0 24px, rgba(255,255,255,.06) 24px 48px); }
.team-card-body { padding: 0 18px 18px; margin-top: -36px; position: relative; display: flex; flex-direction: column; align-items: center; }
.team-card-body .crest { box-shadow: 0 0 0 4px var(--surface); background-color: var(--surface); }
.team-card-body h3 { margin: 10px 0 2px; }
.team-card-body p { margin: 0 0 4px; }
.team-preview { --c1: #16a34a; display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 20px; border-radius: 16px; margin-bottom: 14px;
  background: linear-gradient(160deg, var(--c1), color-mix(in srgb, var(--c1) 50%, black)); color: #fff; text-align: center; }
.team-preview strong { font-size: 1.1rem; }
.invite-hero { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; border-left: 5px solid var(--c1); }
.invite-hero h2 { margin: 0 0 4px; }
.invite-hero p { margin: 0; }

/* ---------- Atletas ---------- */
.pos-strip { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin-bottom: 16px; }
.pos-pill { display: flex; flex-direction: column; align-items: center; padding: 10px 4px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); color: var(--text) !important; text-decoration: none !important; border-top: 3px solid var(--pc, var(--accent)); }
.pos-pill b { font-size: 1.2rem; } .pos-pill span { font-size: .72rem; color: var(--muted); }
.pos-pill.active { background: var(--accent-soft); border-color: var(--accent); }
.pos-gol { --pc: #f59e0b; } .pos-zag { --pc: #0ea5e9; } .pos-lat { --pc: #06b6d4; } .pos-vol { --pc: #8b5cf6; } .pos-mei { --pc: #16a34a; } .pos-ata { --pc: #e11d48; }
.pos-tag { font-size: .68rem; font-weight: 800; letter-spacing: .03em; padding: 2px 7px; border-radius: 6px; background: var(--surface-3); color: var(--text-2); }
.bulk-bar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding: 10px 14px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; margin-bottom: 14px; }
.bulk-bar .check { margin: 0; }
.athlete-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.ath-card { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 18px 14px 14px; text-align: center; box-shadow: var(--shadow-sm); border-top: 4px solid var(--pc, var(--accent)); transition: transform .15s, box-shadow .15s; }
.ath-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.ath-check { position: absolute; top: 12px; left: 12px; }
.ath-main { display: flex; flex-direction: column; align-items: center; gap: 4px; color: var(--text) !important; text-decoration: none !important; position: relative; }
.ath-main strong { margin-top: 6px; font-size: .95rem; }
.ath-main small { font-size: .78rem; }
.ath-num { position: absolute; top: 40px; left: calc(50% + 18px); background: var(--text); color: var(--surface); font-size: .7rem; font-weight: 800; border-radius: 8px; padding: 1px 6px; }
.cap { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--warn); color: #fff; font-size: .65rem; font-weight: 800; vertical-align: 2px; }
.ath-meta { display: flex; justify-content: center; align-items: center; gap: 8px; margin: 8px 0; }
.stars-edit { display: inline-flex; }
.stars-edit button { background: none; border: 0; padding: 0 1px; font-size: 1rem; color: var(--border-strong); cursor: pointer; line-height: 1; }
.stars-edit button.on { color: #f59e0b; }
.stars-edit:hover button { color: #f59e0b; }
.stars-edit button:hover ~ button { color: var(--border-strong); }
.ath-stats { display: flex; justify-content: center; gap: 10px; font-size: .76rem; color: var(--muted); margin-bottom: 6px; }
.ath-stats b { color: var(--text); }
.ath-wa { position: absolute; top: 10px; right: 10px; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 9px; color: #25d366 !important; }
.ath-wa:hover { background: color-mix(in srgb, #25d366 14%, transparent); }
.ath-wa .ic { width: 17px; height: 17px; }
.rating-input { display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; gap: 2px; }
.rating-input input { position: absolute; opacity: 0; width: 1px; }
.rating-input label { font-size: 1.7rem; color: var(--border-strong); cursor: pointer; line-height: 1; }
.rating-input input:checked ~ label, .rating-input label:hover, .rating-input label:hover ~ label { color: #f59e0b; }
.profile-hero { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; border-top: 5px solid var(--c1, var(--accent)); }
.profile-hero h2 { margin-bottom: 4px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.profile-hero p { margin-bottom: 6px; }

/* ---------- Jogos ---------- */
.type-pick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.type-opt { position: relative; cursor: pointer; }
.type-opt input { position: absolute; opacity: 0; }
.type-opt > span { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; padding: 16px 8px; border: 2px solid var(--border); border-radius: 16px; transition: all .15s; height: 100%; }
.type-opt .ic { width: 26px; height: 26px; color: var(--muted); }
.type-opt small { color: var(--muted); font-size: .74rem; }
.type-opt input:checked + span { border-color: var(--accent); background: var(--accent-soft); }
.type-opt input:checked + span .ic { color: var(--accent); }
.conv-list { max-height: 420px; overflow-y: auto; margin: 10px -6px 0; padding: 0 6px; }
.conv-list.short { max-height: 260px; }
.conv-item { display: flex; align-items: center; gap: 10px; padding: 7px 6px; border-radius: 10px; cursor: pointer; font-size: .9rem; }
.conv-item:hover { background: var(--surface-2); }
[data-opp] { display: none; }
[data-opp].on { display: block; }
[data-opp].grid-2.on { display: grid; }

.match-hero { --c1: #16a34a; --c2: #334155; position: relative; overflow: hidden; border-radius: 24px; padding: 20px 22px; color: #fff; margin-bottom: 16px; box-shadow: var(--shadow-lg);
  background: linear-gradient(115deg, color-mix(in srgb, var(--c1) 85%, black) 0 48%, color-mix(in srgb, var(--c2) 80%, black) 52% 100%); }
.match-hero::before { content: ""; position: absolute; inset: 0; opacity: .12; background:
  radial-gradient(circle at 50% 50%, transparent 58px, #fff 59px, #fff 61px, transparent 62px),
  linear-gradient(90deg, transparent calc(50% - 1px), #fff calc(50% - 1px), #fff calc(50% + 1px), transparent calc(50% + 1px)); pointer-events: none; }
.match-hero.pelada, .match-hero.treino { background: linear-gradient(115deg, color-mix(in srgb, var(--c1) 85%, black) 0 48%, #075985 52%); }
.match-hero > * { position: relative; }
.match-hero-top { display: flex; justify-content: space-between; align-items: center; }
.match-hero .badge-info, .match-hero .badge-success, .match-hero .badge-muted { background: rgba(255,255,255,.2); color: #fff; }
.scoreboard { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 14px; margin: 18px 0 10px; }
.sb-team { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; min-width: 0; }
.sb-team strong { font-size: 1rem; overflow-wrap: anywhere; }
.sb-team .crest { background-color: rgba(255,255,255,.1); }
.sb-score { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 120px; }
.sb-score b { font-size: 3rem; font-weight: 900; line-height: 1; font-variant-numeric: tabular-nums; }
.sb-score i { font-style: normal; opacity: .7; font-size: 1.4rem; }
.sb-score:has(b) { flex-direction: row; gap: 12px; flex-wrap: wrap; justify-content: center; }
.sb-date { font-size: 1.9rem; font-weight: 900; letter-spacing: -.03em; }
.sb-time { font-size: 1rem; background: rgba(0,0,0,.25); padding: 2px 12px; border-radius: 99px; font-weight: 700; }
.sb-count { font-size: .78rem; opacity: .85; }
.match-meta { list-style: none; padding: 0; margin: 8px 0 0; display: flex; flex-wrap: wrap; gap: 6px 18px; justify-content: center; font-size: .88rem; }
.match-meta li { display: flex; align-items: center; gap: 6px; }
.match-meta a { color: #fff !important; text-decoration: underline; text-underline-offset: 3px; }
.challenge-note { text-align: center; margin-top: 10px; font-size: .86rem; display: flex; gap: 6px; justify-content: center; align-items: center; }
.match-notes { margin: 12px auto 0; max-width: 640px; text-align: center; font-size: .86rem; background: rgba(0,0,0,.2); border-radius: 12px; padding: 8px 12px; }
.rsvp-summary { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 4px; }
.rs { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 10px; text-align: center; border-bottom: 3px solid var(--rc); }
.rs strong { display: block; font-size: 1.5rem; font-weight: 800; color: var(--rc); }
.rs span { font-size: .74rem; color: var(--muted); font-weight: 600; }
.rs.ok { --rc: var(--income); } .rs.maybe { --rc: var(--warn); } .rs.wait { --rc: var(--muted); } .rs.no { --rc: var(--expense); }
.rs-bar { grid-column: 1 / -1; height: 26px; background: var(--surface-3); border-radius: 99px; position: relative; overflow: hidden; }
.rs-bar span { position: absolute; inset: 0 auto 0 0; background: var(--accent-grad); border-radius: 99px; transition: width .4s; }
.rs-bar em { position: relative; display: block; text-align: center; font-style: normal; font-size: .78rem; font-weight: 700; line-height: 26px; }
.rsvp-list { list-style: none; padding: 0; margin: 0; }
.rsvp-row { display: flex; align-items: center; gap: 10px; padding: 9px 4px; border-bottom: 1px solid var(--border); }
.rsvp-row:last-child { border-bottom: 0; }
.rsvp-row a.grow { display: flex; flex-direction: column; color: var(--text) !important; text-decoration: none !important; }
.rsvp-row small { font-size: .76rem; }
.rsvp-n { width: 22px; text-align: right; font-weight: 800; color: var(--income); font-size: .9rem; flex-shrink: 0; }
.rsvp-row.r-recusado { opacity: .55; }
.rsvp-row .seg { margin: 0; }
.rsvp-row .seg button { padding: 6px 8px; }
.rsvp-row .seg button .ic { width: 16px; height: 16px; }
.rsvp-row .seg button.on.confirmado { background: var(--income); color: #fff; }
.rsvp-row .seg button.on.talvez { background: var(--warn); color: #fff; }
.rsvp-row .seg button.on.recusado { background: var(--expense); color: #fff; }
.send-list { list-style: none; margin: 14px 0 0; padding: 0; }
.send-list li { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--border); }
.send-list li.sent .grow strong::after { content: " ✓"; color: var(--income); }
.send-list .grow { display: flex; flex-direction: column; } .send-list small { font-size: .76rem; }
.send-list li.current { background: var(--accent-soft); border-radius: 12px; padding: 8px; }
.api-send select { width: auto; flex: 1; min-width: 220px; }
.draw-form { align-items: flex-end; margin-bottom: 8px; }
.draw-form select { width: auto; }
.draw-grid { display: grid; gap: 14px; grid-template-columns: repeat(2, 1fr); margin-bottom: 14px; }
.draw-grid.n3 { grid-template-columns: repeat(3, 1fr); } .draw-grid.n4 { grid-template-columns: repeat(4, 1fr); }
.draw-team { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); animation: pop .35s ease backwards; }
.draw-team:nth-child(2) { animation-delay: .08s; } .draw-team:nth-child(3) { animation-delay: .16s; } .draw-team:nth-child(4) { animation-delay: .24s; }
.draw-team header { background: var(--sc); color: #fff; padding: 12px 16px; display: flex; justify-content: space-between; align-items: center; }
.draw-team header strong { font-size: 1.1rem; } .draw-team header span { font-size: .78rem; opacity: .9; }
.draw-team ul { list-style: none; margin: 0; padding: 8px 12px; }
.draw-team li { display: flex; align-items: center; gap: 8px; padding: 6px 0; border-bottom: 1px solid var(--border); font-size: .9rem; }
.draw-team li:last-child { border: 0; }
.mini-select { width: 52px; min-height: 30px; padding: 2px 18px 2px 6px; font-size: .78rem; background-position: right 3px center; background-size: 12px; border-radius: 8px; }
.score-input { display: flex; align-items: flex-end; justify-content: center; gap: 16px; margin: 6px 0 16px; }
.score-input label { display: flex; flex-direction: column; align-items: center; gap: 6px; font-weight: 700; font-size: .88rem; text-align: center; max-width: 180px; }
.score-input input { width: 96px; height: 76px; font-size: 2.4rem; font-weight: 900; text-align: center; border-radius: 16px; }
.score-input b { font-size: 1.8rem; color: var(--muted); padding-bottom: 18px; }
.sumula td { padding: 6px 8px; }
.num-sm { width: 58px; min-height: 36px; padding: 4px 6px; text-align: center; }
.side-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--sc); vertical-align: 1px; }
.pay-list { list-style: none; margin: 10px 0 0; padding: 0; }
.pay-list li { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--border); }
.pay-list .grow { display: flex; flex-direction: column; }
.pay-list .switch { margin: 0; font-size: .8rem; font-weight: 600; }
.pay-lbl { min-width: 60px; }
.match-list { display: flex; flex-direction: column; gap: 10px; }
.month-sep { margin: 14px 4px 2px; font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.match-row { display: flex; align-items: center; gap: 14px; padding: 12px 16px; background: var(--surface); border: 1px solid var(--border); border-radius: 18px; color: var(--text) !important; text-decoration: none !important; box-shadow: var(--shadow-sm); border-left: 5px solid var(--tc, var(--accent)); transition: transform .15s, box-shadow .15s; }
.match-row:hover { transform: translateX(3px); box-shadow: var(--shadow); }
.match-row .grow { display: flex; flex-direction: column; gap: 2px; }
.match-row.t-pelada { --tc: var(--info); } .match-row.t-amistoso { --tc: var(--income); } .match-row.t-oficial { --tc: var(--warn); } .match-row.t-treino { --tc: var(--muted); }
.match-row.late { background: color-mix(in srgb, var(--expense) 5%, var(--surface)); }
.date-block { display: flex; flex-direction: column; align-items: center; min-width: 54px; padding: 6px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--border); line-height: 1.1; }
.date-block b { font-size: 1.45rem; font-weight: 900; } .date-block span { font-size: .7rem; text-transform: uppercase; font-weight: 700; color: var(--muted); } .date-block small { font-size: .72rem; font-weight: 700; color: var(--accent-ink); }
.conf-pill { display: flex; flex-direction: column; align-items: center; padding: 6px 12px; border-radius: 12px; background: var(--accent-soft); line-height: 1.15; font-size: .82rem; color: var(--text-2); }
.conf-pill b { font-size: 1.15rem; color: var(--accent-ink); } .conf-pill small { font-size: .66rem; color: var(--muted); }
.conf-pill.sm { flex-direction: row; padding: 3px 9px; } .conf-pill.sm b { font-size: .9rem; }
.chev { color: var(--muted); }
.chip-res { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 7px; font-size: .72rem; font-weight: 800; color: #fff; }
.chip-res.win { background: #16a34a; } .chip-res.draw { background: #94a3b8; } .chip-res.loss { background: #e11d48; }
.form-guide { display: inline-flex; gap: 4px; align-items: center; }
.versus { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; text-align: center; gap: 10px; }
.versus > div { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.vs { font-size: 1.6rem; font-weight: 900; color: var(--muted); }
.challenge-list { display: grid; gap: 14px; }
.challenge-card h3 { margin: 0; }
.challenge-card blockquote { margin: 0 0 12px; padding: 10px 14px; background: var(--surface-2); border-left: 3px solid var(--accent); border-radius: 0 10px 10px 0; font-size: .9rem; }
.challenge-card blockquote.reply { border-left-color: var(--info); }
.challenge-card input { flex: 1; min-width: 200px; }
.link-panel { display: flex; gap: 12px; align-items: center; text-decoration: none !important; color: var(--text) !important; }
.link-panel > .ic { width: 28px; height: 28px; color: var(--accent); }
.link-panel span { display: flex; flex-direction: column; gap: 2px; }

/* ---------- Calendário ---------- */
.cal-nav { display: flex; align-items: center; gap: 6px; }
.cal-nav h2 { margin: 0 6px; min-width: 170px; text-align: center; font-size: 1.2rem; }
.calendar { padding: 10px; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.cal-head div { text-align: center; font-size: .74rem; font-weight: 700; color: var(--muted); text-transform: uppercase; padding: 6px 0; }
.cal-day { min-height: 108px; background: var(--surface-2); border-radius: 12px; padding: 6px; position: relative; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.cal-day.out { background: transparent; }
.cal-day.past { opacity: .75; }
.cal-day.today { background: var(--accent-soft); box-shadow: inset 0 0 0 2px var(--accent); }
.cal-num { font-size: .8rem; font-weight: 700; color: var(--text-2); }
.cal-ev { display: block; font-size: .72rem; padding: 3px 6px; border-radius: 7px; background: color-mix(in srgb, var(--tc) 18%, var(--surface)); border-left: 3px solid var(--tc); color: var(--text) !important; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-decoration: none !important; }
.cal-ev.s-cancelado { text-decoration: line-through !important; opacity: .55; }
.cal-ev b { font-weight: 800; }
.cal-bday { font-size: .7rem; color: var(--warn); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal-add { position: absolute; top: 4px; right: 4px; opacity: 0; width: 22px; height: 22px; display: grid; place-items: center; border-radius: 7px; background: var(--surface); color: var(--muted) !important; transition: opacity .15s; }
.cal-add .ic { width: 14px; height: 14px; }
.cal-day:hover .cal-add { opacity: 1; }
.cal-agenda { display: none; }
.date-chip { display: inline-grid; place-items: center; min-width: 52px; padding: 5px 6px; border-radius: 10px; background: color-mix(in srgb, var(--tc, var(--accent)) 14%, transparent); color: var(--text); font-size: .78rem; font-weight: 800; }
.date-chip.bday { --tc: #f59e0b; }

/* ---------- Gráficos ---------- */
.chart-box { position: relative; height: 260px; }
.chart-box.sm { height: 210px; }
.chart-box canvas { width: 100% !important; height: 100% !important; }
.chart-empty { height: 180px; display: grid; place-content: center; justify-items: center; text-align: center; color: var(--muted); font-size: .86rem; gap: 6px; border: 1px dashed var(--border-strong); border-radius: 14px; padding: 16px; }
.chart-empty .ic { width: 30px; height: 30px; opacity: .6; }
.chart-empty p { margin: 0; max-width: 240px; }
.donut-center { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; pointer-events: none; padding-bottom: 28px; }
.donut-center b { font-size: 1.5rem; font-weight: 900; } .donut-center small { font-size: .72rem; color: var(--muted); }
.boards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.board { margin: 0; }
.podium-list, .bar-list { list-style: none; padding: 0; margin: 0; }
.podium-list li, .bar-list li { display: flex; align-items: center; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--border); font-size: .9rem; }
.podium-list li:last-child, .bar-list li:last-child { border: 0; }
.podium-list a, .bar-list a { color: var(--text) !important; }
.pl-pos { width: 24px; height: 24px; border-radius: 8px; display: grid; place-items: center; font-size: .74rem; font-weight: 800; background: var(--surface-3); color: var(--text-2); flex-shrink: 0; }
.podium-list .p1 .pl-pos, .bar-list li:nth-child(1) .pl-pos { background: linear-gradient(135deg, #fbbf24, #d97706); color: #fff; }
.podium-list .p2 .pl-pos, .bar-list li:nth-child(2) .pl-pos { background: linear-gradient(135deg, #cbd5e1, #64748b); color: #fff; }
.podium-list .p3 .pl-pos, .bar-list li:nth-child(3) .pl-pos { background: linear-gradient(135deg, #fdba74, #b45309); color: #fff; }
.bar { height: 6px; background: var(--surface-3); border-radius: 99px; margin-top: 4px; overflow: hidden; }
.bar span { display: block; height: 100%; background: var(--accent-grad); border-radius: 99px; }
.bar-list b { font-size: 1.05rem; }
.pitch-mini { display: grid; gap: 8px; }
.pm-row { display: flex; align-items: center; gap: 10px; }
.pm-row .pos-tag { width: 40px; text-align: center; }
.pm-bar { flex: 1; height: 10px; background: var(--surface-3); border-radius: 99px; overflow: hidden; }
.pm-bar span { display: block; height: 100%; background: var(--accent-grad); border-radius: 99px; }
.pm-row b { width: 22px; text-align: right; }

/* ---------- Caixa ---------- */
.ledger { list-style: none; padding: 0; margin: 0; }
.ledger li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.ledger li:last-child { border: 0; }
.ledger .grow { display: flex; flex-direction: column; } .ledger small { font-size: .76rem; }
.led-ic { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; flex-shrink: 0; }
.entrada .led-ic { background: color-mix(in srgb, var(--income) 13%, transparent); color: var(--income); }
.saida .led-ic { background: color-mix(in srgb, var(--expense) 13%, transparent); color: var(--expense); }

/* ---------- Painel (dashboard) ---------- */
.welcome { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.welcome h2 { font-size: 1.55rem; margin: 0; letter-spacing: -.03em; }
.welcome p { margin: 0; }
.quick-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.qa { display: flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 13px; background: var(--surface); border: 1px solid var(--border); color: var(--text) !important; font-weight: 600; font-size: .86rem; text-decoration: none !important; box-shadow: var(--shadow-sm); transition: transform .15s, border-color .15s; }
.qa .ic { color: var(--accent); }
.qa:hover { transform: translateY(-2px); border-color: var(--accent); }
.onboarding .steps-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px 14px; }
.steps-list li a { display: flex; align-items: center; gap: 8px; font-size: .88rem; color: var(--text-2) !important; padding: 4px 0; }
.steps-list li.ok a { color: var(--muted) !important; text-decoration: line-through !important; }
.steps-list li.ok .ic { color: var(--income); }
.dash-top { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 16px; margin-bottom: 16px; }
.next-match { --c1: #16a34a; position: relative; overflow: hidden; border-radius: 24px; padding: 20px 22px; color: #fff; box-shadow: var(--shadow-lg); display: flex; flex-direction: column; gap: 6px;
  background: radial-gradient(500px 260px at 100% 0%, rgba(255,255,255,.18), transparent 60%), linear-gradient(140deg, color-mix(in srgb, var(--c1) 90%, black), color-mix(in srgb, var(--c1) 45%, #020617)); }
.next-match::after { content: ""; position: absolute; right: -60px; bottom: -60px; width: 220px; height: 220px; border-radius: 50%; border: 2px solid rgba(255,255,255,.12); box-shadow: 0 0 0 40px rgba(255,255,255,.03); }
.next-match > * { position: relative; z-index: 1; }
.nm-head { display: flex; justify-content: space-between; align-items: center; }
.nm-label { display: flex; align-items: center; gap: 6px; font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; opacity: .9; }
.next-match h3 { color: #fff; font-size: 1.45rem; margin: 6px 0 0; letter-spacing: -.03em; }
.nm-when { margin: 0; opacity: .9; font-size: .9rem; }
.countdown { display: flex; gap: 8px; margin: 10px 0 4px; }
.countdown .cd { background: rgba(0,0,0,.25); border-radius: 12px; padding: 6px 10px; text-align: center; min-width: 58px; backdrop-filter: blur(4px); }
.countdown .cd b { display: block; font-size: 1.35rem; font-weight: 900; font-variant-numeric: tabular-nums; line-height: 1.1; }
.countdown .cd small { font-size: .64rem; text-transform: uppercase; letter-spacing: .06em; opacity: .85; }
.countdown .live { background: #ef4444; padding: 6px 12px; border-radius: 99px; font-weight: 800; font-size: .85rem; animation: pulse 1.4s infinite; }
@keyframes pulse { 50% { opacity: .6; } }
.nm-body { display: flex; align-items: center; gap: 16px; margin: 8px 0; }
.ring { --p: 0; width: 86px; height: 86px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center;
  background: conic-gradient(#fff calc(var(--p) * 1%), rgba(255,255,255,.18) 0); }
.ring > div { width: 70px; height: 70px; border-radius: 50%; background: color-mix(in srgb, var(--c1) 60%, #020617); display: grid; place-content: center; text-align: center; line-height: 1.05; }
.ring b { font-size: 1.5rem; font-weight: 900; } .ring small { font-size: .62rem; opacity: .85; }
.nm-counts { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; font-size: .74rem; font-weight: 700; }
.nm-counts span { padding: 3px 8px; border-radius: 99px; background: rgba(255,255,255,.14); }
.nm-counts .ok::before { content: "● "; color: #4ade80; } .nm-counts .maybe::before { content: "● "; color: #fbbf24; } .nm-counts .wait::before { content: "● "; color: #cbd5e1; } .nm-counts .no::before { content: "● "; color: #fb7185; }
.next-match .avatar-stack .avatar { box-shadow: 0 0 0 2px color-mix(in srgb, var(--c1) 60%, #020617); }
.nm-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
.empty-next h3 { margin-top: 14px; }
.empty-next .nm-actions { margin-top: auto; padding-top: 18px; }
.dash-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.dash-grid .panel { margin: 0; }
.span-2 { grid-column: span 2; }

/* ---------- Assinatura / planos ---------- */
.plans-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin-bottom: 18px; }
.plans-grid.admin { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.plan-card { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: 22px; padding: 24px 20px 20px; box-shadow: var(--shadow); display: flex; flex-direction: column; text-align: center; }
.plan-card.hl { border: 2px solid var(--accent); box-shadow: 0 20px 50px -24px var(--accent); }
.plan-card.sel { outline: 3px solid var(--accent-soft); }
.plan-card.off { opacity: .55; }
.plan-card h3 { font-size: 1.15rem; margin-bottom: 2px; }
.plan-flag { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--accent-grad); color: #fff; font-size: .72rem; font-weight: 800; padding: 4px 12px; border-radius: 99px; white-space: nowrap; }
.plan-flag.alt { background: var(--text); color: var(--surface); }
.price { font-size: 2rem; font-weight: 900; letter-spacing: -.04em; margin: 8px 0 0; }
.price small { font-size: .85rem; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.plan-card ul { list-style: none; padding: 0; margin: 14px 0 18px; text-align: left; display: grid; gap: 7px; font-size: .88rem; flex: 1; }
.plan-card li { display: flex; gap: 8px; align-items: flex-start; }
.plan-card li .ic { color: var(--income); width: 17px; height: 17px; margin-top: 1px; }
.pay-btns { display: grid; gap: 8px; }
.sub-status { display: flex; gap: 16px; align-items: center; border-left: 6px solid var(--sc); }
.sub-status h2 { margin: 0; } .sub-status p { margin: 4px 0 0; }
.sub-ic { width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; background: color-mix(in srgb, var(--sc) 14%, transparent); color: var(--sc); flex-shrink: 0; }
.sub-ic .ic { width: 28px; height: 28px; }
.s-success { --sc: var(--income); } .s-info { --sc: var(--info); } .s-warn { --sc: var(--warn); } .s-danger { --sc: var(--expense); }
.pix-pay { margin: 0 auto; }
.price-lg { font-size: 2.2rem; font-weight: 900; margin: 6px 0 10px; }
.pix-qr { width: 240px; height: 240px; margin: 10px auto; border-radius: 14px; background: #fff; padding: 8px; }
.pix-status { margin: 16px 0 8px; padding: 12px; border-radius: 12px; background: var(--surface-2); font-weight: 600; display: flex; gap: 8px; justify-content: center; align-items: center; }
.pix-status.ok { background: color-mix(in srgb, var(--income) 14%, transparent); color: var(--income); }

/* ---------- Preferências ---------- */
.theme-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; margin-bottom: 18px; }
.theme-opt { position: relative; cursor: pointer; }
.theme-opt input { position: absolute; opacity: 0; }
.theme-opt span { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border: 2px solid var(--border); border-radius: 13px; font-weight: 600; font-size: .86rem; }
.theme-opt i { width: 20px; height: 20px; border-radius: 50%; background: var(--tc); box-shadow: inset 0 0 0 2px rgba(255,255,255,.4); }
.theme-opt input:checked + span { border-color: var(--tc); background: color-mix(in srgb, var(--tc) 10%, transparent); }
.brand-preview { padding: 18px; background: var(--surface-2); border-radius: 14px; display: flex; align-items: center; gap: 10px; font-weight: 800; margin-bottom: 12px; }
.icon-preview img { width: 84px; height: 84px; border-radius: 22px; box-shadow: var(--shadow); margin-bottom: 12px; }

/* ---------- Landing ---------- */
.landing { background: var(--bg); }
.lp-nav { position: sticky; top: 0; z-index: 20; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px clamp(16px, 4vw, 48px); background: color-mix(in srgb, var(--bg) 80%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid color-mix(in srgb, var(--border) 50%, transparent); }
.lp-nav nav { display: flex; align-items: center; gap: 6px; }
.lp-nav nav > a:not(.btn) { padding: 8px 12px; color: var(--text-2) !important; font-weight: 600; font-size: .9rem; }
.lp-hero { position: relative; overflow: hidden; padding: clamp(40px, 7vw, 90px) clamp(16px, 4vw, 48px);
  background: radial-gradient(900px 500px at 0% 0%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 60%), radial-gradient(700px 500px at 100% 100%, color-mix(in srgb, var(--accent-2) 18%, transparent), transparent 60%); }
.lp-hero .pitch-lines { opacity: .06; }
.lp-hero-inner { position: relative; max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 99px; background: var(--accent-soft); color: var(--accent-ink); font-weight: 700; font-size: .8rem; }
.lp-copy h1 { font-size: clamp(2rem, 4.6vw, 3.4rem); line-height: 1.04; letter-spacing: -.045em; margin: 16px 0; font-weight: 900; }
.lead { font-size: 1.12rem; color: var(--text-2); max-width: 560px; }
.lp-cta { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 22px; }
.lp-proof { display: flex; gap: 28px; margin-top: 30px; }
.lp-proof div { display: flex; flex-direction: column; } .lp-proof strong { font-size: 1.6rem; font-weight: 900; } .lp-proof span { color: var(--muted); font-size: .82rem; }
.lp-mock { position: relative; height: 420px; }
.mock-card { position: absolute; background: var(--surface); border: 1px solid var(--border); border-radius: 20px; box-shadow: var(--shadow-lg); padding: 16px; animation: float 6s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-10px); } }
.mock-match { top: 10px; left: 0; width: 300px; }
.mock-head { display: flex; justify-content: space-between; font-size: .8rem; color: var(--muted); font-weight: 600; }
.mock-title { font-weight: 800; margin: 10px 0; }
.mock-bar { height: 10px; background: var(--surface-3); border-radius: 99px; overflow: hidden; }
.mock-bar span { display: block; height: 100%; background: var(--accent-grad); }
.mock-row { display: flex; justify-content: space-between; font-size: .78rem; color: var(--muted); margin: 6px 0 10px; }
.mock-avatars { display: flex; }
.mock-avatars i { --h: 120; width: 32px; height: 32px; border-radius: 50%; background: hsl(var(--h) 55% 46%); color: #fff; display: grid; place-items: center; font-style: normal; font-size: .68rem; font-weight: 700; margin-right: -8px; box-shadow: 0 0 0 2px var(--surface); }
.mock-wa { top: 150px; right: 0; width: 270px; animation-delay: -2s; background: #0b141a; border-color: #0b141a; }
.wa-bubble { background: #005c4b; color: #e9edef; border-radius: 12px 12px 12px 2px; padding: 10px 12px; font-size: .84rem; line-height: 1.5; }
.mock-score { bottom: 10px; left: 40px; width: 260px; animation-delay: -4s; }
.mock-score > div:not(.form-guide) { display: flex; justify-content: space-between; padding: 5px 0; }
.mock-score strong { font-size: 1.3rem; font-weight: 900; }
.mock-score .form-guide { margin-top: 8px; }
.lp-section { max-width: 1200px; margin: 0 auto; padding: clamp(40px, 6vw, 80px) clamp(16px, 4vw, 48px); }
.lp-section > h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); text-align: center; letter-spacing: -.04em; font-weight: 900; }
.lp-features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 30px; }
.feature { background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 22px; box-shadow: var(--shadow-sm); transition: transform .2s; }
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.feature h3 { margin: 14px 0 6px; } .feature p { color: var(--muted); font-size: .9rem; margin: 0; }
.feature-ic { width: 48px; height: 48px; border-radius: 15px; display: grid; place-items: center; background: var(--accent-grad); color: #fff; }
.feature-ic .ic { width: 24px; height: 24px; }
.steps { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 30px; counter-reset: s; }
.steps li { position: relative; padding: 20px; border-radius: 20px; background: var(--surface); border: 1px solid var(--border); }
.steps li > span { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-ink); font-weight: 900; margin-bottom: 12px; }
.steps p { color: var(--muted); margin: 0; font-size: .9rem; }
.lp-section .plans-grid { margin-top: 34px; }
.faq { max-width: 760px; margin: 26px auto 0; display: grid; gap: 10px; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 4px 18px; }
.faq summary { cursor: pointer; font-weight: 700; padding: 14px 0; list-style: none; display: flex; justify-content: space-between; }
.faq summary::after { content: "+"; font-size: 1.3rem; color: var(--accent); line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq p { color: var(--text-2); }
.lp-final { text-align: center; padding: clamp(50px, 7vw, 90px) 20px; margin: 0 clamp(12px, 3vw, 40px) 30px; border-radius: 32px; color: #fff; background: var(--accent-grad); position: relative; overflow: hidden; }
.lp-final h2 { color: #fff; font-size: clamp(1.7rem, 3.4vw, 2.6rem); font-weight: 900; letter-spacing: -.04em; margin-bottom: 20px; }
.lp-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; padding: 20px clamp(16px, 4vw, 48px) 30px; font-size: .85rem; }
.lp-foot .brand-mark { width: 30px; height: 30px; border-radius: 10px; }
.lp-foot > span:first-child, .lp-foot > a:first-child { display: flex; align-items: center; gap: 8px; font-weight: 800; color: var(--text) !important; }
.wa-float { position: fixed; right: 18px; bottom: 18px; width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; background: #25d366; color: #fff !important; box-shadow: 0 12px 30px -8px rgba(37, 211, 102, .7); z-index: 30; }
.wa-float .ic { width: 28px; height: 28px; }

/* ---------- Página pública da equipe ---------- */
.public-team { --c1: #16a34a; }
.pt-hero { color: #fff; padding: 40px 20px 70px; background: linear-gradient(135deg, var(--c1), color-mix(in srgb, var(--c1) 40%, #020617)); position: relative; overflow: hidden; }
.pt-hero::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, transparent 0 40px, rgba(255,255,255,.05) 40px 80px); }
.pt-inner { position: relative; z-index: 1; max-width: 1000px; margin: 0 auto; display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
.pt-inner h1 { color: #fff; font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 900; margin: 0 0 6px; }
.pt-inner p { margin: 0 0 4px; opacity: .92; display: flex; gap: 6px; align-items: center; }
.pt-inner .crest { background-color: rgba(255,255,255,.1); box-shadow: 0 0 0 4px rgba(255,255,255,.2); }
.pt-main { max-width: 1000px; margin: -40px auto 0; padding: 0 16px 30px; position: relative; z-index: 2; }
.pt-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }

/* ---------- Responsivo ---------- */
@media (max-width: 1200px) {
  .dash-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lp-features { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1080px) {
  .dash-top { grid-template-columns: 1fr; }
  .kpi-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .two-col, .grid-main-side { grid-template-columns: 1fr; }
  .sticky { position: static; }
  .lp-hero-inner { grid-template-columns: 1fr; }
  .lp-mock { height: 380px; max-width: 560px; margin: 0 auto; width: 100%; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .draw-grid.n3, .draw-grid.n4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  :root { --sidebar-w: 280px; }
  .sidebar { transform: translateX(-102%); box-shadow: var(--shadow-lg); }
  body.nav-open .sidebar { transform: none; }
  body.nav-open .backdrop { display: block; position: fixed; inset: 0; background: rgba(4, 10, 8, .5); z-index: 35; backdrop-filter: blur(2px); }
  .shell { margin-left: 0; }
  .only-mobile { display: inline-grid !important; }
  .only-desktop { display: none !important; }
  .topbar { padding: 10px 14px; min-height: 58px; padding-top: max(10px, env(safe-area-inset-top)); }
  .topbar-title h1 { font-size: 1.1rem; }
  .main { padding: 16px 14px 100px; }
  .app-foot { display: none; }
  .bottom-nav {
    display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(14px); border-top: 1px solid var(--border);
    padding: 6px 6px max(6px, env(safe-area-inset-bottom));
  }
  .bottom-nav a, .bottom-nav button { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 0; font: 600 .66rem var(--font); color: var(--muted) !important; background: none; border: 0; text-decoration: none !important; cursor: pointer; }
  .bottom-nav .ic { width: 22px; height: 22px; }
  .bottom-nav .fab { width: 54px; height: 54px; margin: -22px auto 0; border-radius: 18px; background: var(--accent-grad); color: #fff !important; justify-content: center; box-shadow: 0 10px 24px -8px var(--accent); }
  .bottom-nav .fab .ic { width: 26px; height: 26px; }
  .toasts { bottom: 86px; }
  .wa-float { bottom: 18px; }
  .dash-grid { grid-template-columns: 1fr; }
  .span-2 { grid-column: auto; }
  .kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .onboarding .steps-list { grid-template-columns: 1fr 1fr; }
  .calendar .cal-grid:not(.cal-head) .cal-day { min-height: 64px; }
  .cal-ev { font-size: 0; padding: 0; height: 6px; border-radius: 3px; border-left: 0; background: var(--tc); }
  .cal-bday { font-size: 0; } .cal-bday::before { content: "🎂"; font-size: .7rem; }
  .cal-add { display: none; }
  .cal-agenda { display: block; }
  .cal-nav h2 { min-width: 0; font-size: 1.05rem; }
  .lp-nav nav > a:not(.btn) { display: none; }
  .pos-strip { grid-template-columns: repeat(3, 1fr); }
  .type-pick { grid-template-columns: repeat(2, 1fr); }
  .rsvp-summary { grid-template-columns: repeat(4, 1fr); gap: 6px; }
  .rs { padding: 8px 4px; } .rs strong { font-size: 1.2rem; } .rs span { font-size: .64rem; }
}
@media (max-width: 640px) {
  body { font-size: 14.5px; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .col-2, .col-3 { grid-column: auto; }
  .panel { padding: 16px; border-radius: 16px; }
  .auth-card { padding: 24px 18px; border-radius: 22px; }
  .page-head { align-items: stretch; }
  .page-head > .btn, .page-head > .row-wrap { width: 100%; }
  .page-head > .row-wrap .btn { flex: 1; }
  .search { min-width: 0; max-width: none; width: 100%; }
  .toolbar > * { flex: 1 1 auto; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .kpi strong { font-size: 1.15rem; }
  .kpi-card { padding: 12px; gap: 10px; }
  .kpi-ic { width: 38px; height: 38px; border-radius: 11px; }
  .kpi-card strong { font-size: 1.1rem; }
  .athlete-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .ath-card { padding: 14px 8px 10px; }
  .ath-stats { gap: 6px; font-size: .7rem; }
  .cards-grid { grid-template-columns: 1fr; }
  .match-row { padding: 10px 12px; gap: 10px; }
  .match-row .chev { display: none; }
  .conf-pill { padding: 5px 8px; }
  .scoreboard { gap: 6px; }
  .sb-score b { font-size: 2.3rem; }
  .sb-date { font-size: 1.4rem; }
  .match-hero { padding: 16px 14px; border-radius: 20px; }
  .crest-lg { width: 52px; height: 52px; }
  .draw-grid, .draw-grid.n3, .draw-grid.n4 { grid-template-columns: 1fr; }
  .stat-strip { grid-template-columns: repeat(5, 1fr); gap: 4px; }
  .stat-strip strong { font-size: 1rem; }
  .welcome h2 { font-size: 1.3rem; }
  .quick-actions { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
  .qa { justify-content: center; padding: 10px 8px; font-size: .8rem; }
  .countdown .cd { min-width: 0; flex: 1; }
  .lp-features { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .lp-mock { height: 360px; transform: scale(.9); transform-origin: top center; }
  .mock-match { width: 260px; } .mock-wa { width: 230px; } .mock-score { width: 230px; left: 10px; }
  .checklist { grid-template-columns: 1fr; }
  .onboarding .steps-list { grid-template-columns: 1fr; }
  .rsvp-row .seg button { padding: 6px; }
  .profile-hero { text-align: center; justify-content: center; }
  .profile-hero h2 { justify-content: center; }
  .profile-hero .row-wrap { justify-content: center; }
  .score-input input { width: 80px; height: 66px; font-size: 2rem; }
  .table th, .table td { padding: 8px 6px; }
  .sub-status { flex-direction: column; text-align: center; }
  .modal > form, .confirm-dialog form { padding: 18px; }
}

/* impressão (QR do convite) */
@media print {
  .sidebar, .topbar, .bottom-nav, .app-foot, .btn, .tabs, .toasts { display: none !important; }
  .shell { margin: 0; } .main { padding: 0; }
  .panel { box-shadow: none; border: 0; }
  .grid-main-side { display: block; }
}

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