/* =========================================================
   União Mauá Futsal · tema "quadra à noite"
   Azul do escudo + dourado das estrelas (acento raro)
   ========================================================= */
:root {
  --night: #0b0e35;
  --navy: #141a63;
  --royal: #2b31c4;
  --royal-2: #5157e6;
  --royal-soft: #e7e8fb;
  --gold: #e3b341;
  --gold-deep: #9a6d0a;
  --gold-soft: #fbf1d6;
  --ink: #141733;
  --muted: #565b7c;
  --line: #dcdfee;
  --line-strong: #9ea3c4;
  --bg: #edeff8;
  --card: #fbfbfe;
  --ok: #157a46;
  --ok-soft: #dcf3e5;
  --warn: #8d5a00;
  --warn-soft: #fdf0d3;
  --bad: #b3261e;
  --bad-soft: #fbe2df;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 1px 2px rgba(11, 14, 53, .06), 0 8px 24px -12px rgba(11, 14, 53, .18);
  --shadow-lg: 0 24px 60px -24px rgba(11, 14, 53, .45);
  --ease: cubic-bezier(.22, .61, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --display: "Saira Condensed", "Arial Narrow", system-ui, sans-serif;
  --text: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  --side-w: 248px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: hidden; overflow-x: clip; }
body {
  margin: 0;
  font-family: var(--text);
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden; overflow-x: clip;
  animation: page-in .5s var(--ease-out) both;
}
@keyframes page-in { from { opacity: 0; } }
a { color: var(--royal); text-underline-offset: 3px; }
a:hover { color: var(--navy); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .6rem; }
h1 { font-family: var(--display); font-weight: 800; font-size: 2.2rem; letter-spacing: .01em; text-transform: uppercase; }
h2 { font-family: var(--display); font-weight: 700; font-size: 1.35rem; letter-spacing: .02em; text-transform: uppercase; color: var(--navy); }
h3 { font-size: 1rem; font-weight: 700; }
p { margin: 0 0 .8rem; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.nowrap { white-space: nowrap; }
.ico { flex: none; vertical-align: middle; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 6px; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--gold); color: var(--night); padding: .5rem 1rem; border-radius: 8px; font-weight: 700; }
.skip:focus { left: 8px; }

/* ---------- Ambiente: linhas de quadra ao fundo ---------- */
.ambient { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.ambient::before {
  content: ""; position: absolute; width: 70vmax; height: 70vmax; right: -20vmax; top: -30vmax; border-radius: 50%;
  background: radial-gradient(circle, rgba(81, 87, 230, .16), transparent 65%);
  animation: drift 70s var(--ease) infinite alternate; animation-delay: -12s;
}
.court { position: absolute; right: -6vw; bottom: -10vh; width: 70vw; max-width: 1100px; fill: none; stroke: rgba(43, 49, 196, .07); stroke-width: 1.2; }
@keyframes drift { to { transform: translate(-18vmax, 22vmax) scale(1.15); } }

/* ---------- Estrutura: menu lateral + conteúdo ---------- */
.shell { position: relative; z-index: 1; margin-left: var(--side-w); min-height: 100vh; display: flex; flex-direction: column; }
.shell.no-side { margin-left: 0; }
main { width: 100%; max-width: 1240px; margin: 0 auto; padding: 28px 32px 40px; flex: 1; }
main:focus { outline: none; }
.app-foot { text-align: center; color: var(--muted); font-size: .78rem; padding: 0 16px 24px; }

.side {
  position: fixed; inset: 0 auto 0 0; width: var(--side-w); z-index: 30;
  background:
    radial-gradient(120% 60% at 0% 0%, rgba(81, 87, 230, .35), transparent 60%),
    linear-gradient(180deg, var(--navy), var(--night) 70%);
  color: #fff; display: flex; flex-direction: column; padding: 22px 14px 14px;
  box-shadow: 8px 0 32px -16px rgba(11, 14, 53, .6);
}
.brand { display: flex; align-items: center; gap: .7rem; color: #fff; text-decoration: none; padding: 0 6px; }
.brand:hover { color: #fff; }
.brand img { width: 46px; height: 46px; object-fit: contain; background: #fff; border-radius: 50%; padding: 3px; box-shadow: 0 0 0 2px rgba(227, 179, 65, .55); }
.brand b { display: block; font-family: var(--display); font-weight: 800; font-size: 1.3rem; letter-spacing: .06em; line-height: 1; }
.brand small { display: block; font-family: var(--mono); font-size: .66rem; color: var(--gold); letter-spacing: .38em; margin-top: 3px; }
.stars { color: var(--gold); letter-spacing: .5em; font-size: .7rem; padding: 10px 8px 0; opacity: .9; }
.side-tag { margin: 14px 6px 0; display: inline-flex; gap: .4rem; align-items: center; font-family: var(--mono); font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: #c9cbff; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .12); padding: .35rem .6rem; border-radius: 999px; width: fit-content; }
.nav { display: flex; flex-direction: column; gap: 2px; margin-top: 22px; flex: 1; overflow-y: auto; }
.nav a {
  position: relative; display: flex; align-items: center; gap: .75rem; color: #c3c6ee; text-decoration: none;
  padding: .62rem .8rem; border-radius: 10px; font-weight: 600; font-size: .92rem;
  transition: background .25s var(--ease), color .25s var(--ease), transform .25s var(--ease);
}
.nav a:hover { background: rgba(255, 255, 255, .07); color: #fff; transform: translateX(2px); }
.nav a.active { background: rgba(255, 255, 255, .12); color: #fff; }
.nav a.active::before { content: ""; position: absolute; left: -14px; top: 22%; bottom: 22%; width: 4px; border-radius: 0 4px 4px 0; background: var(--gold); }
.nav a.active .ico { color: var(--gold); }
.side-foot { display: flex; align-items: center; gap: .4rem; border-top: 1px solid rgba(255, 255, 255, .1); padding-top: 12px; margin-top: 12px; }
.me { flex: 1; display: flex; align-items: center; gap: .6rem; color: #fff; text-decoration: none; padding: .35rem .4rem; border-radius: 10px; min-width: 0; transition: background .25s var(--ease); }
.me:hover, .me.active { background: rgba(255, 255, 255, .08); color: #fff; }
.me b { display: block; font-size: .9rem; }
.me small { display: block; color: #a9acd8; font-size: .74rem; }
.me .avatar { background: var(--gold); color: var(--night); }
.icon-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .16); background: transparent; color: #dfe1ff; cursor: pointer; transition: background .25s var(--ease); }
.icon-btn:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.mob-bar { display: none; }
.scrim { display: none; }

/* ---------- Cabeçalho das páginas: faixa da quadra ---------- */
main > .page-head {
  position: relative; overflow: hidden; isolation: isolate;
  background:
    radial-gradient(90% 140% at 100% 0%, rgba(81, 87, 230, .55), transparent 60%),
    linear-gradient(120deg, var(--night), var(--navy));
  color: #fff; border-radius: 20px; padding: 26px 28px; margin-bottom: 22px; box-shadow: var(--shadow-lg);
}
main > .page-head::after {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .16;
  background:
    radial-gradient(circle at 78% 50%, transparent 58px, #fff 59px, #fff 60px, transparent 61px),
    linear-gradient(90deg, transparent calc(78% - 1px), #fff calc(78% - 1px), #fff 78%, transparent 78%);
}
main > .page-head h1 { color: #fff; margin: 0; font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
main > .page-head h1::after { content: ""; display: block; width: 46px; height: 4px; border-radius: 4px; background: var(--gold); margin-top: 8px; }
main > .page-head .muted, main > .page-head p { color: #c8cbf3 !important; }
main > .page-head label { color: #c8cbf3; }
main > .page-head select, main > .page-head input { background: rgba(255, 255, 255, .96); border-color: transparent; }
main > .page-head .btn.secondary { background: rgba(255, 255, 255, .1); color: #fff; border-color: rgba(255, 255, 255, .25); }
main > .page-head .badge.b-gold { background: var(--gold); color: var(--night); }

.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.page-head h1, .page-head h2 { margin: 0; }

/* ---------- Cards e grade ---------- */
.card {
  position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 22px; margin-bottom: 18px;
}
.card > h2:first-child, .card > h3:first-child { margin-top: 0; }
.grid { display: grid; gap: 18px; }
.grid > .card { margin-bottom: 0; }
.grid + .card, .grid + .grid { margin-top: 18px; }
.grid { margin-bottom: 18px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-wide { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(148px, 1fr)); gap: 14px; margin-bottom: 18px; }
.stat {
  position: relative; overflow: hidden; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px 18px 14px; box-shadow: var(--shadow);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.stat:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.stat::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--royal); opacity: .85; }
.stat b { display: block; font-family: var(--display); font-weight: 800; font-size: 2rem; line-height: 1.05; font-variant-numeric: tabular-nums; letter-spacing: .01em; }
.stat span { color: var(--muted); font-size: .76rem; font-family: var(--mono); text-transform: uppercase; letter-spacing: .06em; }
.stat.ok::before { background: var(--ok); } .stat.ok b { color: var(--ok); }
.stat.bad::before { background: var(--bad); } .stat.bad b { color: var(--bad); }
.stat.warn::before { background: #d08a00; } .stat.warn b { color: var(--warn); }

/* ---------- Gráficos ---------- */
.chart { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 8px; align-items: end; height: 190px; padding-top: 18px; }
.chart .col { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 6px; min-width: 0; }
.chart .bar {
  width: 100%; max-width: 38px; border-radius: 8px 8px 3px 3px; position: relative;
  background: linear-gradient(180deg, var(--royal-2), var(--royal));
  transform-origin: bottom; animation: grow .9s var(--ease-out) both;
}
.chart .col:nth-child(2n) .bar { animation-delay: .05s; }
.chart .col.current .bar { background: linear-gradient(180deg, #f0c865, var(--gold)); }
.chart .bar .v { position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%); margin-bottom: 4px; font-family: var(--mono); font-size: .62rem; color: var(--muted); white-space: nowrap; }
.chart .lbl { font-family: var(--mono); font-size: .66rem; color: var(--muted); text-transform: uppercase; }
@keyframes grow { from { transform: scaleY(0); } }
.ring { --p: 0; width: 132px; height: 132px; border-radius: 50%; display: grid; place-items: center; flex: none;
  background: conic-gradient(var(--ok) calc(var(--p) * 1%), #e1e4f2 0); }
.ring::before { content: ""; grid-area: 1 / 1; width: 100px; height: 100px; border-radius: 50%; background: var(--card); }
.ring b { grid-area: 1 / 1; font-family: var(--display); font-size: 1.9rem; font-weight: 800; color: var(--ink); z-index: 1; }
.ring-wrap { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
.legend { display: grid; gap: 6px; font-size: .88rem; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: middle; }

/* ---------- Tabelas ---------- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 -6px; padding: 0 6px; }
table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: .92rem; }
th, td { text-align: left; padding: .65rem .7rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { font-family: var(--mono); font-size: .68rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 500; background: #f3f4fb; }
thead th:first-child { border-radius: 9px 0 0 9px; } thead th:last-child { border-radius: 0 9px 9px 0; }
thead th { border-bottom: 0; }
tbody tr { transition: background .2s var(--ease); }
tbody tr:hover td { background: #f6f7fd; }
tr:last-child td { border-bottom: 0; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
tr.is-blocked td { background: #fff6f5; }
td a { font-weight: 700; text-decoration: none; }
td a:hover { text-decoration: underline; }

/* ---------- Badges ---------- */
.badge { display: inline-flex; align-items: center; gap: .3rem; padding: .16rem .6rem; border-radius: 999px; font-size: .74rem; font-weight: 700; white-space: nowrap; line-height: 1.4; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .8; }
.b-pago { background: var(--ok-soft); color: var(--ok); }
.b-isento { background: var(--royal-soft); color: var(--royal); }
.b-pendente { background: var(--warn-soft); color: var(--warn); }
.b-atrasado, .b-bloqueado { background: var(--bad-soft); color: var(--bad); }
.b-neutro, .b-futuro { background: #eceef6; color: var(--muted); }
.b-gold { background: var(--gold-soft); color: #74520a; }
.shirt {
  display: inline-grid; place-items: center; min-width: 2.1rem; height: 2.1rem; padding: 0 .3rem; border-radius: 9px;
  background: linear-gradient(160deg, var(--royal), var(--navy)); color: #fff;
  font-family: var(--display); font-weight: 800; font-size: 1.05rem; font-variant-numeric: tabular-nums;
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .25);
}
.shirt.gk { background: linear-gradient(160deg, #f0c865, var(--gold)); color: var(--night); }

/* ---------- Formulários ---------- */
form { margin: 0; }
label { display: block; font-size: .82rem; font-weight: 700; margin-bottom: .3rem; color: #2b2f52; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=date], input[type=month], input[type=tel], input[type=time], input[type=file], select, textarea {
  width: 100%; padding: .62rem .75rem; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); font: inherit; background: #fff; color: var(--ink);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
input[type=file] { padding: .45rem; background: #f6f7fd; border-style: dashed; }
input:hover, select:hover, textarea:hover { border-color: #7d82ab; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--royal); box-shadow: 0 0 0 4px rgba(43, 49, 196, .15); }
textarea { min-height: 96px; resize: vertical; }
.field { margin-bottom: .9rem; }
.row { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.check { display: inline-flex; align-items: center; gap: .45rem; font-weight: 600; cursor: pointer; margin: 0; }
input[type=checkbox], input[type=radio] { width: 1.15rem; height: 1.15rem; accent-color: var(--royal); cursor: pointer; }
.multi { display: flex; flex-wrap: wrap; gap: .5rem 1rem; padding: .6rem .7rem; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: #fff; }
input.mini { width: 4.4rem; padding: .4rem .4rem; text-align: center; font-family: var(--display); font-weight: 700; font-size: 1rem; }

.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
  padding: .62rem 1.1rem; border-radius: 10px; border: 1px solid transparent; font: inherit; font-weight: 700; font-size: .92rem;
  cursor: pointer; text-decoration: none; background: var(--royal); color: #fff; white-space: nowrap;
  box-shadow: 0 6px 16px -8px rgba(43, 49, 196, .8);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease), filter .2s var(--ease);
}
.btn:hover { color: #fff; transform: translateY(-1px); filter: brightness(1.08); box-shadow: 0 10px 22px -10px rgba(43, 49, 196, .9); }
.btn:active { transform: translateY(0); }
.btn.secondary { background: #fff; color: var(--navy); border-color: var(--line-strong); box-shadow: none; }
.btn.secondary:hover { color: var(--navy); border-color: var(--royal); }
.btn.gold { background: linear-gradient(180deg, #efc65c, var(--gold)); color: var(--night); box-shadow: 0 8px 20px -10px rgba(154, 109, 10, .9); }
.btn.gold:hover { color: var(--night); }
.btn.danger { background: #fff; color: var(--bad); border-color: #eeb2ac; box-shadow: none; }
.btn.danger:hover { color: var(--bad); background: var(--bad-soft); }
.btn.ok { background: var(--ok); box-shadow: 0 6px 16px -8px rgba(21, 122, 70, .8); }
.btn.sm { padding: .34rem .68rem; font-size: .8rem; border-radius: 8px; }
.btn.wa { background: #1c9e50; box-shadow: 0 6px 16px -8px rgba(28, 158, 80, .8); }
.actions { display: flex; gap: .45rem; flex-wrap: wrap; align-items: center; }
.inline { display: inline; }

/* ---------- Avisos ---------- */
.flash { display: flex; gap: .6rem; align-items: center; padding: .85rem 1.1rem; border-radius: var(--radius); margin-bottom: 18px; font-weight: 600; animation: slide-in .45s var(--ease-out) both; }
.flash::before { font-size: 1.1rem; }
.flash.ok { background: var(--ok-soft); color: #0f4f2d; border: 1px solid #a9dcbd; }
.flash.ok::before { content: "✓"; }
.flash.erro { background: var(--bad-soft); color: #7d1a14; border: 1px solid #efb7b1; }
.flash.erro::before { content: "!"; font-weight: 800; }
@keyframes slide-in { from { opacity: 0; transform: translateY(-8px); } }
.alert { padding: .8rem 1rem; border-radius: 12px; background: var(--warn-soft); color: #5f3d00; border: 1px solid #efd398; margin-bottom: 14px; }
.alert.bad { background: var(--bad-soft); color: #7d1a14; border-color: #efb7b1; }

/* ---------- Componentes ---------- */
.tabs { display: inline-flex; gap: 4px; flex-wrap: wrap; margin-bottom: 18px; background: #e1e4f2; padding: 4px; border-radius: 12px; }
.tabs a { padding: .45rem .95rem; border-radius: 9px; text-decoration: none; color: var(--muted); font-weight: 700; font-size: .86rem; transition: background .2s var(--ease), color .2s var(--ease); }
.tabs a:hover { color: var(--navy); }
.tabs a.active { background: #fff; color: var(--navy); box-shadow: var(--shadow); }
.filters { display: flex; gap: .7rem; flex-wrap: wrap; align-items: end; }
.filters .field { margin: 0; min-width: 160px; }
.notice { position: relative; border-left: 4px solid var(--royal); padding: .3rem 0 .3rem 1rem; margin-bottom: 16px; }
.notice.ata { border-color: var(--gold); }
.notice h3 { margin: .3rem 0 .2rem; font-size: 1.02rem; }
.notice .body { white-space: pre-wrap; color: #33375a; }
.contact { display: flex; gap: .85rem; align-items: center; padding: .75rem 0; border-bottom: 1px solid var(--line); }
.contact:last-child { border-bottom: 0; }
.avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--royal-soft); color: var(--royal); display: grid; place-items: center; font-weight: 800; flex: none; font-family: var(--display); font-size: 1.1rem; }
.pix-box { display: flex; gap: 18px; align-items: flex-start; flex-wrap: wrap; }
.pix-box img { width: 172px; height: 172px; border: 1px solid var(--line); border-radius: 12px; padding: 6px; background: #fff; }
.copy-field { display: flex; gap: .4rem; }
.copy-field input { font-family: var(--mono); font-size: .78rem; }
.months { display: flex; flex-wrap: wrap; gap: .45rem; }
.months label { font-weight: 600; border: 1px solid var(--line-strong); border-radius: 10px; padding: .4rem .7rem; background: #fff; display: inline-flex; gap: .4rem; align-items: center; margin: 0; cursor: pointer; transition: border-color .2s var(--ease), background .2s var(--ease); }
.months label:has(input:checked) { border-color: var(--royal); background: var(--royal-soft); }
.history { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 8px; }
.history .h { border: 1px solid var(--line); border-radius: 10px; padding: .55rem .7rem; background: #fff; display: grid; gap: 4px; justify-items: start; }
.history .h b { font-size: .84rem; }
pre.message {
  white-space: pre-wrap; background: #e9f7ee; border: 1px solid #bfe5cc; border-radius: 14px 14px 14px 4px; padding: 16px;
  font-family: var(--text); font-size: .95rem; margin: 0 0 14px; max-height: 70vh; overflow: auto;
}
.player-row.disabled { opacity: .55; }
.score { font-family: var(--display); font-size: 2.6rem; font-weight: 800; font-variant-numeric: tabular-nums; color: var(--navy); line-height: 1; }
.empty { color: var(--muted); padding: 1.4rem 0; text-align: center; }
.kicker { font-family: var(--mono); font-size: .7rem; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); }

/* Cartão do atleta (área dos pais) */
.player-card { display: flex; gap: 16px; align-items: center; }
.jersey {
  position: relative; width: 74px; height: 80px; flex: none; display: grid; place-items: center; padding-top: 10px;
  font-family: var(--display); font-weight: 800; font-size: 2rem; color: #fff;
  background: linear-gradient(160deg, var(--royal-2), var(--navy));
  clip-path: polygon(22% 0, 38% 6%, 62% 6%, 78% 0, 100% 16%, 90% 36%, 82% 32%, 82% 100%, 18% 100%, 18% 32%, 10% 36%, 0 16%);
}
.jersey.gk { background: linear-gradient(160deg, #f0c865, var(--gold-deep)); color: var(--night); }

/* Reveal na entrada (cards) */
.card, .stat { animation: rise .55s var(--ease-out) both; }
.stats .stat:nth-child(2) { animation-delay: .05s; } .stats .stat:nth-child(3) { animation-delay: .1s; }
.stats .stat:nth-child(4) { animation-delay: .15s; } .stats .stat:nth-child(5) { animation-delay: .2s; } .stats .stat:nth-child(6) { animation-delay: .25s; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }

/* ---------- Login ---------- */
.login {
  min-height: 100vh; display: grid; grid-template-columns: 1.1fr 1fr; background: var(--bg);
}
.login-art {
  position: relative; overflow: hidden; isolation: isolate; color: #fff; padding: 48px; display: flex; flex-direction: column; justify-content: space-between;
  background:
    radial-gradient(80% 60% at 70% 30%, rgba(81, 87, 230, .55), transparent 65%),
    linear-gradient(150deg, var(--navy), var(--night) 70%);
}
.login-art svg.court { position: absolute; left: -10%; width: 120%; right: auto; bottom: -38%; stroke: rgba(255, 255, 255, .07); z-index: -1; max-width: none; }
/* Escudo: silhueta clara e translúcida com brilho dourado, centralizada */
.crest-wrap { position: relative; flex: 1; display: grid; place-items: center; min-height: 260px; }
.crest-wrap::before {
  content: ""; position: absolute; width: min(420px, 70%); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(227, 179, 65, .22), rgba(81, 87, 230, .12) 45%, transparent 70%);
  animation: pulse 7s var(--ease) infinite alternate;
}
/* Escudo nas cores originais sobre um foco de luz suave (sem círculo sólido) */
.login-art .crest {
  position: relative; width: min(330px, 62%); height: auto;
  filter: drop-shadow(0 14px 28px rgba(11, 14, 53, .35));
  animation: float 8s var(--ease) infinite alternate;
}
.crest-wrap .crest-glow {
  position: absolute; width: min(520px, 95%); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, .92) 0%, rgba(238, 240, 255, .7) 30%, rgba(190, 194, 255, .28) 50%, transparent 68%);
}
.crest-ghost {
  position: absolute; width: min(620px, 120%); left: 50%; top: 50%; transform: translate(-50%, -50%);
  filter: brightness(0) invert(1); opacity: .04; pointer-events: none;
}
@keyframes pulse { from { transform: scale(.94); opacity: .8; } to { transform: scale(1.06); opacity: 1; } }
@keyframes float { to { transform: translateY(-10px); } }
.login-art h2 { color: #fff; font-size: clamp(2.2rem, 4vw, 3.4rem); line-height: .95; margin: 0 0 .6rem; font-weight: 800; }
.login-art h2 em { font-style: normal; color: var(--gold); }
.login-art p { color: #c8cbf3; max-width: 34ch; margin: 0; }
.login-form { display: grid; place-items: center; padding: 32px 20px; }
.login-card { width: 100%; max-width: 380px; }
.login-card h1 { color: var(--navy); font-size: 2.2rem; margin-bottom: .2rem; }
.login-card .btn { width: 100%; margin-top: .5rem; padding: .8rem 1rem; }
.login-card form { margin-top: 1.4rem; }

/* ---------- Responsivo ---------- */
@media (max-width: 1100px) {
  .grid-3 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 960px) {
  .shell { margin-left: 0; }
  .side { transform: translateX(-105%); transition: transform .35s var(--ease-out); }
  body.menu-open .side { transform: none; }
  body.menu-open .scrim { display: block; position: fixed; inset: 0; z-index: 25; background: rgba(11, 14, 53, .5); }
  .mob-bar {
    display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 20;
    padding: 10px 16px; background: linear-gradient(90deg, var(--night), var(--navy)); color: #fff;
  }
  .mob-bar .brand img { width: 38px; height: 38px; }
  .mob-bar .brand b { font-size: 1.1rem; }
  main { padding: 18px 16px 32px; }
  .grid-2, .grid-3, .grid-wide { grid-template-columns: 1fr; }
  .login { grid-template-columns: 1fr; }
  .login-art { padding: 28px 20px; min-height: 0; align-items: center; text-align: center; gap: 18px; }
  .crest-wrap { min-height: 180px; }
  .login-art .crest { width: 160px; }
  .crest-wrap .crest-glow { width: 250px; }
  .crest-ghost { width: 340px; }
  .login-art p { margin: 0 auto; }
}
@media (max-width: 600px) {
  main > .page-head { padding: 20px 18px; border-radius: 16px; }
  .card { padding: 16px; }
  .hide-sm { display: none; }
  .pix-box img { width: 150px; height: 150px; }
  .stat b { font-size: 1.6rem; }
  .chart { height: 150px; gap: 4px; }
  .chart .bar .v { display: none; }
  .filters .field { min-width: 0; flex: 1 1 140px; }
}
@media (pointer: coarse) {
  .btn { min-height: 44px; }
  .btn.sm { min-height: 38px; }
  .nav a { min-height: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
body.paused *, body.paused *::before, body.paused *::after { animation-play-state: paused !important; }
.badge.plain::before { display: none; }

/* Importação da súmula */
.import-card { border: 1px dashed var(--royal-2); background: linear-gradient(180deg, #f4f5ff, var(--card)); }
.import-head { display: flex; gap: 14px; align-items: center; }
.import-ico { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--royal); color: #fff; flex: none; }

/* Recuperação de senha */
.label-row { display: flex; justify-content: space-between; align-items: baseline; gap: .5rem; }
.label-row label { margin-bottom: .3rem; }
.code-input { font-family: var(--mono) !important; font-size: 1.5rem !important; letter-spacing: .5em; text-align: center; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: var(--royal); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* =========================================================
   Ajustes v2: sino, cards clicáveis, ficha, documentos e mobile
   ========================================================= */

/* ---------- Topo (desktop) com o sino ---------- */
.topbar { display: flex; justify-content: flex-end; max-width: 1240px; width: 100%; margin: 0 auto; padding: 18px 32px 0; }
.topbar + main { padding-top: 12px; }
.bell-btn { position: relative; display: inline-flex; align-items: center; gap: .45rem; padding: .45rem .85rem; border-radius: 999px; background: var(--card); border: 1px solid var(--line); color: var(--navy); font-weight: 700; font-size: .86rem; text-decoration: none; box-shadow: var(--shadow); transition: border-color .2s var(--ease); }
.bell-btn:hover, .bell-btn.active { border-color: var(--royal); color: var(--navy); }
.bell-count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--bad); color: #fff; font-size: .72rem; font-weight: 800; font-family: var(--text); }
.bell-count[hidden] { display: none; }
.icon-btn.bell { position: relative; }
.icon-btn.bell .bell-count { position: absolute; top: -5px; right: -5px; border: 2px solid var(--night); }
.toast { position: fixed; right: 18px; bottom: 18px; z-index: 60; max-width: 340px; background: var(--night); color: #fff; padding: .85rem 1.1rem; border-radius: 14px; box-shadow: var(--shadow-lg); text-decoration: none; font-size: .9rem; animation: slide-in .4s var(--ease-out) both; border-left: 4px solid var(--gold); }
.toast:hover { color: #fff; }
.toast.out { opacity: 0; transform: translateY(8px); transition: opacity .5s, transform .5s; }
.notif { display: flex; gap: .8rem; align-items: flex-start; padding: .8rem 0; border-bottom: 1px solid var(--line); }
.notif:last-child { border-bottom: 0; }
.notif.new { background: linear-gradient(90deg, var(--gold-soft), transparent 70%); margin: 0 -12px; padding-left: 12px; padding-right: 12px; border-radius: 10px; }
.notif .avatar { width: 34px; height: 34px; font-size: .95rem; }

/* ---------- Cards de número clicáveis (filtros) ---------- */
a.stat { display: block; text-decoration: none; color: inherit; }
a.stat:hover { color: inherit; }
a.stat .go { position: absolute; right: 12px; top: 12px; color: var(--line-strong); font-size: .9rem; transition: transform .2s var(--ease), color .2s var(--ease); }
a.stat:hover .go { color: var(--royal); transform: translateX(2px); }
.stat.selected { border-color: var(--royal); box-shadow: 0 0 0 3px rgba(43, 49, 196, .18), var(--shadow); }
.filter-head { display: flex; justify-content: space-between; align-items: center; gap: .8rem; flex-wrap: wrap; margin-bottom: .6rem; }
.filter-head h2 { margin: 0; }

/* Barras horizontais por categoria */
.hbars { display: grid; gap: 10px; }
.hbar { display: grid; grid-template-columns: 92px 1fr 96px; gap: 10px; align-items: center; font-size: .86rem; text-decoration: none; color: inherit; }
.hbar:hover { color: var(--royal); }
.hbar .track { height: 12px; border-radius: 999px; background: #e1e4f2; overflow: hidden; display: flex; }
.hbar .track i { display: block; height: 100%; background: var(--ok); }
.hbar b { font-family: var(--display); font-size: 1rem; }
.hbar .pct { text-align: right; font-family: var(--mono); font-size: .76rem; color: var(--muted); }

/* ---------- Ficha do atleta ---------- */
.profile { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.photo { width: 108px; height: 108px; border-radius: 22px; flex: none; background: var(--royal-soft) center / cover no-repeat; display: grid; place-items: center; color: var(--royal); font-family: var(--display); font-weight: 800; font-size: 2.6rem; box-shadow: 0 0 0 3px #fff, 0 0 0 5px rgba(227, 179, 65, .6); }
.photo.sm { width: 46px; height: 46px; border-radius: 12px; font-size: 1.2rem; box-shadow: none; }
.dl { display: grid; grid-template-columns: max-content 1fr; gap: .35rem 1rem; margin: 0; font-size: .92rem; }
.dl dt { color: var(--muted); font-size: .8rem; font-family: var(--mono); text-transform: uppercase; letter-spacing: .05em; padding-top: .15rem; }
.dl dd { margin: 0; font-weight: 600; }
.doc-row { display: flex; gap: .8rem; align-items: center; justify-content: space-between; padding: .7rem 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.doc-row:last-child { border-bottom: 0; }
.doc-row .doc-name { display: flex; gap: .6rem; align-items: center; min-width: 0; }
.doc-ico { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; flex: none; background: #eceef6; color: var(--muted); }
.doc-ico.ok { background: var(--ok-soft); color: var(--ok); }

/* ---------- Cadastro (pai) ---------- */
.signup { max-width: 760px; margin: 0 auto; }
.signup-head { text-align: center; margin: 8px 0 22px; }
.signup-head img { width: 76px; height: 76px; background: #fff; border-radius: 50%; padding: 4px; box-shadow: 0 0 0 3px rgba(227, 179, 65, .6); }
.signup-head h1 { color: var(--navy); margin: .6rem 0 .2rem; }
.step { display: flex; gap: .6rem; align-items: center; margin-bottom: .8rem; }
.step b { width: 30px; height: 30px; border-radius: 50%; background: var(--royal); color: #fff; display: grid; place-items: center; font-family: var(--display); flex: none; }
.step h2 { margin: 0; }
.photo-pick { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.photo-pick .photo { width: 96px; height: 96px; font-size: 2rem; }
.photo-pick .photo.has-photo { color: transparent; }
.pick-btns { display: flex; gap: .5rem; flex-wrap: wrap; }
.pick-btns label { margin: 0; cursor: pointer; }
.pick-btns input[type=file] { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.choice { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.choice label { position: relative; margin: 0; border: 2px solid var(--line-strong); border-radius: 12px; padding: .8rem .9rem; cursor: pointer; background: #fff; font-weight: 600; transition: border-color .2s var(--ease), background .2s var(--ease); }
.choice label b { display: block; font-family: var(--display); font-size: 1.15rem; color: var(--navy); text-transform: uppercase; }
.choice label span { font-size: .8rem; color: var(--muted); font-weight: 500; }
.choice label:has(input:checked) { border-color: var(--royal); background: var(--royal-soft); }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.cat-preview { margin-top: .7rem; padding: .7rem .9rem; border-radius: 10px; background: var(--gold-soft); color: #5f3d00; font-size: .92rem; }
.cat-preview[hidden], [data-program-ask][hidden] { display: none; }

/* ---------- Pop-up ---------- */
dialog.modal { border: 0; border-radius: 20px; padding: 0; max-width: 440px; width: calc(100% - 32px); box-shadow: var(--shadow-lg); }
dialog.modal::backdrop { background: rgba(11, 14, 53, .6); backdrop-filter: blur(2px); }
.modal-head { background: linear-gradient(120deg, #7d1a14, var(--bad)); color: #fff; padding: 22px 24px 18px; }
.modal-head h2 { color: #fff; margin: .2rem 0 0; font-size: 1.6rem; }
.modal-head .kicker { color: #ffd9d4; }
.modal-body { padding: 18px 24px 22px; }
.modal-body ul { padding-left: 1.1rem; margin: .4rem 0 1rem; }

/* ---------- Documentos (pais) ---------- */
.comunicado h3 { margin-top: 1rem; }
.comunicado ol, .comunicado ul { padding-left: 1.3rem; margin: .4rem 0 .8rem; }
.comunicado li { margin-bottom: .3rem; }
.upload-item { border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; margin-bottom: 12px; background: #fff; scroll-margin-top: 90px; }
.upload-item.done { border-color: #a9dcbd; background: linear-gradient(180deg, #f2fbf5, #fff); }
.upload-item .head { display: flex; justify-content: space-between; gap: .6rem; align-items: flex-start; flex-wrap: wrap; }
.upload-item h3 { margin: 0; }
.upload-form { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; margin-top: .7rem; }
.file-names { font-size: .8rem; color: var(--muted); flex-basis: 100%; }
.guide { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; }
.guide figure { margin: 0; border: 1px solid var(--line); border-radius: 14px; padding: 12px; background: #fff; }
.guide figure svg { width: 100%; height: auto; display: block; }
.guide figcaption { font-size: .84rem; margin-top: .5rem; }
.guide figcaption b { display: block; }
.good { color: var(--ok); } .bad-t { color: var(--bad); }
.example { border: 1px dashed var(--line-strong); border-radius: 14px; padding: 18px; background: #fffef8; font-family: Georgia, "Times New Roman", serif; line-height: 2.1; font-size: .95rem; }
.example h4 { font-family: var(--display); text-align: center; font-size: 1.2rem; margin: 0 0 .4rem; letter-spacing: .04em; }
.example .fill { background: #fff3c4; border-bottom: 2px solid var(--gold); padding: 0 .3rem; font-family: var(--text); font-weight: 700; color: var(--navy); }
.example .tip { display: block; font-family: var(--text); font-size: .8rem; color: var(--muted); line-height: 1.45; margin-top: .7rem; }
.dl-list { display: grid; gap: 8px; }
.dl-list a { display: flex; gap: .7rem; align-items: center; padding: .7rem .9rem; border: 1px solid var(--line); border-radius: 12px; text-decoration: none; background: #fff; font-weight: 700; color: var(--navy); }
.dl-list a:hover { border-color: var(--royal); }
.dl-list a small { display: block; font-weight: 500; color: var(--muted); }

/* Elenco: coluna Federar */
.fed { display: flex; gap: .4rem; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.fed select { width: auto; padding: .3rem .4rem; font-size: .8rem; }

/* ---------- Barra inferior (celular) ---------- */
.tabbar { display: none; }

@media (max-width: 960px) {
  .topbar { display: none; }
  .mob-bar .actions { gap: .4rem; flex-wrap: nowrap; }
  .tabbar {
    display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 22;
    background: rgba(251, 251, 254, .97); backdrop-filter: blur(10px); border-top: 1px solid var(--line);
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); box-shadow: 0 -8px 24px -16px rgba(11, 14, 53, .35);
  }
  .tabbar a, .tabbar button {
    display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 2px; border: 0; background: none; font: inherit;
    font-size: .68rem; font-weight: 700; color: var(--muted); text-decoration: none; border-radius: 10px; cursor: pointer; min-height: 50px; justify-content: center;
  }
  .tabbar a.active { color: var(--royal); background: var(--royal-soft); }
  .tabbar span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
  body.has-user .shell { padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
  .toast { left: 12px; right: 12px; bottom: calc(80px + env(safe-area-inset-bottom)); max-width: none; }
}

/* ---------- Celular: leitura em cartões ---------- */
@media (max-width: 640px) {
  main { padding: 14px 12px 24px; }
  main > .page-head { padding: 18px 16px; margin-bottom: 14px; gap: .8rem; align-items: stretch; }
  main > .page-head h1 { font-size: 1.7rem; }
  main > .page-head .filters { width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
  main > .page-head .filters .field { min-width: 0; }
  main > .page-head .filters .field:only-child { grid-column: 1 / -1; }
  main > .page-head > .actions { width: 100%; }
  main > .page-head > .actions .btn { flex: 1; }
  .card { padding: 16px 14px; border-radius: 16px; margin-bottom: 14px; }
  h2 { font-size: 1.2rem; }
  .stats { grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
  .stat { padding: 12px 12px 10px; }
  .stat b { font-size: 1.45rem; }
  .stat span { font-size: .66rem; letter-spacing: .04em; }
  .grid { gap: 14px; margin-bottom: 14px; }
  .tabs { display: flex; flex-wrap: nowrap; overflow-x: auto; width: 100%; }
  .tabs a { white-space: nowrap; flex: 1; text-align: center; }
  .ring-wrap { justify-content: center; }
  .hbar { grid-template-columns: 62px 1fr 100px; gap: 8px; }
  .dl { grid-template-columns: 1fr; gap: 0; }
  .dl dd { margin-bottom: .55rem; }
  .profile { flex-direction: column; text-align: center; }
  .choice { grid-template-columns: 1fr; }
  .contact { flex-wrap: wrap; }
  .contact > .actions { width: 100%; justify-content: flex-end; }

  /* Tabelas viram cartões: cada linha é um bloco e cada célula mostra o título da coluna */
  .table-wrap:not(.scroll) { overflow: visible; margin: 0; padding: 0; }
  .table-wrap:not(.scroll) table, .table-wrap:not(.scroll) tbody, .table-wrap:not(.scroll) tr, .table-wrap:not(.scroll) td { display: block; width: 100%; }
  .table-wrap:not(.scroll) thead { display: none; }
  .table-wrap:not(.scroll) tbody tr { border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; margin-bottom: 10px; background: #fff; box-shadow: 0 1px 2px rgba(11, 14, 53, .04); }
  .table-wrap:not(.scroll) tbody tr.is-blocked { background: #fff6f5; border-color: #efb7b1; }
  .table-wrap:not(.scroll) tbody tr:hover td, .table-wrap:not(.scroll) tr.is-blocked td { background: transparent; }
  .table-wrap:not(.scroll) td { border: 0; padding: .3rem 0; display: flex; justify-content: space-between; align-items: center; gap: .8rem; text-align: right; }
  .table-wrap:not(.scroll) td::before { content: attr(data-label); font-family: var(--mono); font-size: .64rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); text-align: left; flex: none; max-width: 45%; }
  .table-wrap:not(.scroll) td:first-child { display: block; text-align: left; font-size: 1rem; padding-bottom: .45rem; margin-bottom: .2rem; border-bottom: 1px dashed var(--line); }
  .table-wrap:not(.scroll) td:first-child::before { display: none; }
  .table-wrap:not(.scroll) td:empty { display: none; }
  .table-wrap:not(.scroll) td:last-child:has(.actions) { display: block; padding-top: .55rem; }
  .table-wrap:not(.scroll) td:last-child:has(.actions)::before { display: none; }
  .table-wrap:not(.scroll) td:last-child .actions > a, .table-wrap:not(.scroll) td:last-child .actions > form { flex: 1 1 auto; }
  .table-wrap:not(.scroll) td:last-child .actions form .btn { width: 100%; }
  .table-wrap:not(.scroll) .hide-sm { display: none; }
  .table-wrap:not(.scroll) td .badge { white-space: normal; text-align: right; }
}

/* Histórico do pai: mês pago abre o comprovante */
.history a.h { text-decoration: none; color: inherit; transition: border-color .2s var(--ease), transform .2s var(--ease); }
.history a.h:hover { border-color: var(--royal); transform: translateY(-1px); }
.history a.h .small { color: var(--royal); font-weight: 700; display: inline-flex; gap: .25rem; align-items: center; }

/* Listas de marcação (chamada): uma linha por atleta no celular, sem rótulos */
@media (max-width: 640px) {
  .table-wrap.rows tbody tr { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; padding: 8px 12px; margin-bottom: 8px; }
  .table-wrap.rows tbody td, .table-wrap.rows tbody td:first-child { display: block; width: auto; border: 0; padding: 0; margin: 0; text-align: left; font-size: inherit; }
  .table-wrap.rows tbody td::before { display: none; }
  .table-wrap.rows tbody td:nth-child(2) { flex: 1; min-width: 0; }
  .table-wrap.rows tbody td:nth-child(2) .check { width: 100%; padding: .35rem 0; }
  .table-wrap.rows tbody td:nth-child(3) { flex-basis: 100%; padding-left: 3rem; }
  .table-wrap.rows tbody td:nth-child(3):not(:has(.badge)) { display: none; }
}

/* Campeonatos */
.comp-tabs a { display: inline-flex; align-items: center; gap: .35rem; }
.tab-count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: var(--royal-soft); color: var(--royal); font-size: .7rem; }
.comp-tabs a.active .tab-count { background: var(--royal); color: #fff; }
tr.total-row td { background: #f3f4fb; }
tr.susp-here td:first-child b::after { content: " · suspenso neste campeonato"; color: var(--bad); font-weight: 600; font-size: .8rem; }
[data-comp-field][hidden] { display: none; }
table.season th, table.season td { padding: .5rem .55rem; white-space: nowrap; }
