/* A-ZY Padel Academy — desenho mobile-first.
   Preto/branco da AZ Padel, com o universo AZY (azul-noite e turquesa) no herói e no passaporte. */

:root {
  --black: #000;
  --white: #fff;
  --ink: #0b0f12;
  --body: #414141;
  --muted: #6e6b6f;
  --faint: #999;
  --page: #f5f5f5;
  --surface: #f4f4f4;
  --border: #e4e4e4;
  --border-strong: #bebebe;
  --accent: #01b8c4;
  --accent-light: #e6f9fa;
  --accent-dark: #006c73;
  --navy: #0b1e3f;
  --navy-deep: #061229;
  --space: #0a1a3a;
  --success: #18a058;
  --danger: #c30052;
  --warning: #c78300;
  --paper: #f3eee2;
  --paper-dark: #e8e1cf;
  --paper-line: #d8cfb6;
  --stamp: #0c6b73;
  --radius: 16px;
  --radius-sm: 12px;
  --font: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Space Mono", ui-monospace, Menlo, monospace;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: #e9e9e9;
  line-height: 1.45;
  font-size: 15px;
}
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; letter-spacing: -0.01em; }
p { margin: 0; }
[hidden] { display: none !important; }

/* Moldura de telemóvel no desktop */
.app {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100dvh;
  background: var(--white);
  position: relative;
  box-shadow: 0 0 0 1px #ddd;
}
@media (min-width: 481px) {
  body { background: #dcdcdc; }
}

/* ---------- Barra de topo ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.topbar.dark {
  background: rgba(6,18,41,.9);
  color: var(--white);
  border-bottom-color: rgba(255,255,255,.08);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { height: 22px; width: auto; }
.brand span { font-weight: 800; letter-spacing: .02em; font-size: 15px; }
.topbar-actions { display: flex; gap: 8px; align-items: center; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: 9999px; padding: 12px 20px;
  font-weight: 600; font-size: 15px; border: 1px solid transparent;
  text-decoration: none; transition: transform .08s ease, opacity .15s;
  min-height: 44px;
}
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .5; cursor: default; }
.btn-primary { background: var(--black); color: var(--white); }
.btn-accent { background: var(--accent); color: var(--white); }
.btn-light { background: var(--white); color: var(--black); }
.btn-outline { background: transparent; border-color: var(--black); color: var(--black); }
.btn-outline-light { background: transparent; border-color: rgba(255,255,255,.6); color: var(--white); }
.btn-ghost { background: transparent; color: var(--muted); padding: 8px 12px; min-height: 36px; }
.btn-sm { padding: 8px 14px; font-size: 13px; min-height: 36px; }
.btn-block { width: 100%; }
.btn-danger { background: transparent; border-color: var(--danger); color: var(--danger); }
.btn svg { width: 18px; height: 18px; }

/* ---------- Ícones ---------- */
.ico { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---------- Secções ---------- */
.view { min-height: calc(100dvh - 57px); }
.section { padding: 32px 20px; }
.section + .section { border-top: 1px solid var(--border); }
.section.soft { background: var(--surface); }
.eyebrow {
  font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent-dark); margin-bottom: 8px;
}
.h-display { font-family: "Archivo Black", var(--font); font-weight: 900; font-size: 30px; text-transform: uppercase; letter-spacing: -.02em; line-height: 1; }
.h2 { font-size: 22px; font-weight: 800; margin-bottom: 12px; }
.h3 { font-size: 16px; font-weight: 700; }
.lead { font-size: 16px; color: var(--body); }
.text { color: var(--body); }
.small { font-size: 13px; color: var(--muted); }
.stack { display: grid; gap: 12px; }
.stack-lg { display: grid; gap: 20px; }
.row { display: flex; align-items: center; gap: 12px; }
.between { justify-content: space-between; }
.mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; }
.center { text-align: center; }

/* ---------- Herói ---------- */
.hero {
  position: relative; overflow: hidden;
  background: radial-gradient(120% 80% at 70% 0%, #14336d 0%, var(--space) 45%, var(--navy-deep) 100%);
  color: var(--white);
  padding: 36px 20px 0;
}
.hero::before, .hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    radial-gradient(1.2px 1.2px at 12% 18%, rgba(255,255,255,.9) 50%, transparent 51%),
    radial-gradient(1px 1px at 28% 62%, rgba(255,255,255,.8) 50%, transparent 51%),
    radial-gradient(1.6px 1.6px at 44% 30%, rgba(255,255,255,.9) 50%, transparent 51%),
    radial-gradient(1px 1px at 63% 12%, rgba(255,255,255,.7) 50%, transparent 51%),
    radial-gradient(1.4px 1.4px at 78% 48%, rgba(255,255,255,.9) 50%, transparent 51%),
    radial-gradient(1px 1px at 90% 26%, rgba(255,255,255,.7) 50%, transparent 51%),
    radial-gradient(1.2px 1.2px at 8% 84%, rgba(255,255,255,.8) 50%, transparent 51%),
    radial-gradient(1px 1px at 52% 78%, rgba(255,255,255,.7) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 84% 88%, rgba(255,255,255,.9) 50%, transparent 51%),
    radial-gradient(1px 1px at 36% 92%, rgba(255,255,255,.6) 50%, transparent 51%);
}
.hero::after { background-size: 173px 131px; opacity: .55; }
.hero > * { position: relative; }
.hero .welcome { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: #9fe9ee; font-weight: 600; }
.hero .title { font-family: "Archivo Black", var(--font); font-size: 40px; line-height: .95; text-transform: uppercase; margin: 8px 0 12px; }
.hero .title em { font-style: normal; color: var(--accent); }
.hero .sub { color: #cfe0ff; font-size: 16px; max-width: 320px; }
.hero .cta { display: flex; gap: 10px; margin-top: 22px; flex-wrap: wrap; }
.hero .mascot { display: flex; justify-content: flex-end; margin-top: 4px; margin-right: -24px; }
.hero .mascot img { width: 210px; height: auto; filter: drop-shadow(0 18px 24px rgba(0,0,0,.45)); }
.hero .planets { position: absolute; right: 22px; top: 26px; display: flex; gap: 10px; }
.hero .planets img { width: 34px; height: 34px; border-radius: 50%; box-shadow: 0 6px 14px rgba(0,0,0,.4); }
.hero .planets img:nth-child(2) { width: 22px; height: 22px; margin-top: 18px; }

/* ---------- Pílulas de conceito ---------- */
.pills { display: grid; gap: 10px; }
.pill-card {
  display: flex; align-items: center; justify-content: space-between;
  border-radius: var(--radius-sm); padding: 14px 16px;
  color: var(--white); font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  background: linear-gradient(90deg, var(--navy) 0%, #1d4ed8 100%);
}
.pill-card:nth-child(2) { background: linear-gradient(90deg, #1d4ed8 0%, var(--navy) 100%); }
.pill-card small { font-weight: 500; text-transform: none; letter-spacing: 0; opacity: .85; font-size: 12px; }

/* ---------- Cartões ---------- */
.card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 16px;
}
.card.dark { background: var(--navy-deep); color: var(--white); border-color: transparent; }
.card-list { display: grid; gap: 10px; }
.card-row { display: flex; align-items: center; gap: 14px; }
.card-row .grow { flex: 1; min-width: 0; }

/* Tabs de programa */
.tabs { display: flex; background: var(--surface); border-radius: 9999px; padding: 4px; gap: 4px; }
.tab { flex: 1; border: 0; background: transparent; border-radius: 9999px; padding: 10px 8px; font-weight: 700; font-size: 13px; color: var(--muted); }
.tab.active { background: var(--black); color: var(--white); }

.level-row {
  display: grid; grid-template-columns: 56px 1fr auto; align-items: center; gap: 14px;
  padding: 12px 0; border-bottom: 1px solid var(--border);
}
.level-row:last-child { border-bottom: 0; }
.level-row img, .planet { width: 56px; height: 56px; border-radius: 50%; }
.level-badge {
  width: 56px; height: 56px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: var(--navy-deep); color: var(--white); font-weight: 800; font-size: 13px; letter-spacing: .04em;
}
.level-row .name { font-weight: 800; text-transform: uppercase; font-size: 15px; }
.level-row .ages { color: var(--muted); font-size: 13px; }
.level-row .ball { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-dark); text-align: right; }

/* Plano anual: acordeão */
.accordion { display: grid; gap: 8px; }
.acc { border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; background: var(--white); }
.acc > button {
  width: 100%; display: flex; justify-content: space-between; align-items: center;
  padding: 14px 16px; background: transparent; border: 0; text-align: left; font-weight: 700;
}
.acc > button .ico { transition: transform .2s; }
.acc.open > button .ico { transform: rotate(180deg); }
.acc .acc-body { display: none; padding: 0 16px 14px; color: var(--body); }
.acc.open .acc-body { display: block; }
.acc ul { margin: 0; padding-left: 18px; }
.acc li + li { margin-top: 4px; }

/* Tabelas */
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th, .table td { padding: 10px 8px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
.table th { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.table td:last-child, .table th:last-child { text-align: right; }
.table .price { font-weight: 800; white-space: nowrap; }
.table .strike { color: var(--faint); text-decoration: line-through; font-weight: 500; font-size: 12px; margin-right: 6px; }

.activity { display: grid; grid-template-columns: 54px 1fr; gap: 12px; align-items: start; padding: 12px 0; border-bottom: 1px solid var(--border); }
.activity:last-child { border-bottom: 0; }
.activity .date { background: var(--navy-deep); color: var(--white); border-radius: 10px; padding: 8px 4px; text-align: center; font-weight: 800; font-size: 13px; line-height: 1.1; }
.activity .date small { display: block; font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; opacity: .8; margin-top: 2px; }
.activity .name { font-weight: 700; }

.list-check { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.list-check li { display: flex; gap: 10px; color: var(--body); }
.list-check li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: none; margin-top: 8px; }

.footer { padding: 28px 20px 40px; background: var(--navy-deep); color: #a9b7d2; font-size: 13px; text-align: center; }
.footer img { height: 20px; margin: 0 auto 10px; }

/* ---------- Formulários ---------- */
.field { display: grid; gap: 6px; }
.label { font-size: 13px; font-weight: 700; }
.label .req { color: var(--danger); }
.input, .select, .textarea {
  width: 100%; border: 1px solid var(--black); border-radius: 10px; background: var(--white);
  padding: 12px 14px; min-height: 46px; font-size: 16px; outline: none;
}
.input:focus, .select:focus, .textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-light); }
.textarea { min-height: 96px; resize: vertical; }
.select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 36px; }
.field.error .input, .field.error .select { border-color: var(--danger); }
.err { color: var(--danger); font-size: 12px; font-weight: 600; }
.help { font-size: 12px; color: var(--muted); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.choice { display: flex; gap: 8px; }
.choice button { flex: 1; border: 1px solid var(--black); background: var(--white); border-radius: 9999px; padding: 10px 8px; font-weight: 700; font-size: 13px; }
.choice button.active { background: var(--black); color: var(--white); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--body); }
.check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--black); flex: none; }
.kid-card { border: 1px solid var(--border-strong); border-radius: var(--radius); padding: 14px; display: grid; gap: 12px; background: var(--white); position: relative; }
.kid-card .kid-head { display: flex; justify-content: space-between; align-items: center; font-weight: 800; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.suggest { font-size: 12px; color: var(--accent-dark); font-weight: 600; }
.alert { border-radius: var(--radius-sm); padding: 12px 14px; font-size: 14px; }
.alert.error { background: #fdeaf1; color: var(--danger); }
.alert.ok { background: #e6f6ec; color: #0b6b39; }
.honey { position: absolute; left: -9999px; opacity: 0; height: 0; }

/* ---------- Login ---------- */
.login { padding: 40px 20px; display: grid; gap: 28px; min-height: calc(100dvh - 57px); align-content: center; }
.login .head { text-align: center; }
.login .head img { height: 34px; margin: 0 auto 14px; }
.profile {
  display: flex; align-items: center; gap: 14px; width: 100%; text-align: left;
  border: 1px solid var(--black); border-radius: var(--radius); padding: 16px; background: var(--white);
}
.profile .avatar { width: 52px; height: 52px; border-radius: 50%; background: var(--black); color: var(--white); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 20px; flex: none; }
.profile .avatar.bo { background: var(--accent); }
.profile .who { flex: 1; }
.profile .who b { display: block; font-size: 17px; }
.profile .who .tag { display: inline-block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; background: var(--surface); color: var(--muted); padding: 3px 8px; border-radius: 9999px; margin-top: 4px; }
.profile .who .hint { color: var(--muted); font-size: 13px; margin-top: 6px; }
.profile .ico { color: var(--border-strong); }

/* ---------- Área autenticada ---------- */
.subnav { display: flex; gap: 6px; padding: 12px 16px 0; overflow-x: auto; }
.subnav a { text-decoration: none; padding: 8px 14px; border-radius: 9999px; font-weight: 700; font-size: 13px; color: var(--muted); background: var(--surface); white-space: nowrap; }
.subnav a.active { background: var(--black); color: var(--white); }
.student-card { display: flex; gap: 14px; align-items: center; padding: 14px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--white); text-decoration: none; width: 100%; text-align: left; }
.student-card .photo { width: 56px; height: 56px; border-radius: 12px; object-fit: cover; background: var(--surface); flex: none; }
.student-card .photo.empty { display: flex; align-items: center; justify-content: center; color: var(--faint); }
.student-card .name { font-weight: 800; font-size: 16px; }
.student-card .meta { color: var(--muted); font-size: 13px; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.student-card .planet-mini { width: 16px; height: 16px; border-radius: 50%; }
.progress { height: 6px; border-radius: 9999px; background: var(--border); overflow: hidden; margin-top: 8px; }
.progress i { display: block; height: 100%; background: var(--accent); border-radius: 9999px; }
.empty { text-align: center; color: var(--muted); padding: 40px 20px; }
.empty img { width: 120px; margin: 0 auto 12px; }

/* ---------- Passaporte ---------- */
.passport-wrap { background: #1a1a1a; padding: 16px 0 24px; min-height: calc(100dvh - 57px); }
.passport-head { color: var(--white); padding: 0 20px 12px; display: flex; justify-content: space-between; align-items: center; }
.passport-head .pn { font-family: var(--mono); font-size: 12px; color: #9aa; }
.book { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 14px; padding: 4px 20px 8px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.book::-webkit-scrollbar { display: none; }
.page {
  flex: 0 0 calc(100% - 40px); scroll-snap-align: center; aspect-ratio: 5 / 7.4;
  border-radius: 8px 16px 16px 8px; position: relative; overflow: hidden;
  background: var(--paper); color: #1d1a14;
  box-shadow: inset 8px 0 14px -10px rgba(0,0,0,.35), 0 10px 30px rgba(0,0,0,.5);
}
.page::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .55;
  background:
    repeating-radial-gradient(circle at 20% 110%, transparent 0 9px, rgba(90,110,140,.08) 9px 10px),
    repeating-radial-gradient(circle at 90% -10%, transparent 0 11px, rgba(90,110,140,.07) 11px 12px);
}
.page::after { content: ""; position: absolute; inset: 10px; border: 1px solid rgba(60,70,90,.25); border-radius: 6px 12px 12px 6px; pointer-events: none; }
.page .inner { position: relative; height: 100%; padding: 22px 20px; display: flex; flex-direction: column; }
.page .ptitle { font-size: 10px; letter-spacing: .18em; text-transform: uppercase; font-weight: 800; color: #4a5568; display: flex; justify-content: space-between; }
.page .ptitle span:last-child { font-family: var(--mono); font-weight: 400; }
.page .pnum { position: absolute; bottom: 6px; right: 20px; font-family: var(--mono); font-size: 10px; color: #6b7280; }

/* Capa */
.page.cover {
  background: radial-gradient(120% 90% at 30% 0%, #163a73 0%, var(--navy) 40%, var(--navy-deep) 100%);
  color: var(--white);
}
.page.cover::before { opacity: .35; background: repeating-radial-gradient(circle at 50% 50%, transparent 0 14px, rgba(255,255,255,.05) 14px 15px); }
.page.cover::after { border-color: rgba(255,255,255,.35); }
.page.cover .inner { align-items: center; justify-content: space-between; text-align: center; padding: 30px 20px; }
.page.cover .country { font-size: 11px; letter-spacing: .3em; text-transform: uppercase; font-weight: 700; color: #9fe9ee; }
.page.cover .emblem { width: 120px; height: 120px; border-radius: 50%; border: 2px solid rgba(255,255,255,.5); display: flex; align-items: center; justify-content: center; position: relative; }
.page.cover .emblem::before { content: ""; position: absolute; inset: 6px; border: 1px solid rgba(255,255,255,.3); border-radius: 50%; }
.page.cover .emblem img { width: 86px; height: 86px; border-radius: 50%; }
.page.cover .ptype { font-family: "Archivo Black", var(--font); font-size: 26px; letter-spacing: .06em; text-transform: uppercase; line-height: 1.05; }
.page.cover .ptype small { display: block; font-family: var(--font); font-weight: 600; font-size: 12px; letter-spacing: .2em; margin-top: 8px; color: #cfe0ff; }
.page.cover .logo { height: 28px; }
.page.cover .chip { width: 36px; height: 26px; border-radius: 5px; border: 1.5px solid rgba(255,255,255,.7); background: linear-gradient(135deg, rgba(255,255,255,.25), rgba(255,255,255,.05)); position: absolute; left: 20px; bottom: 28px; }

/* Página de identificação */
.idpage .idgrid { display: grid; grid-template-columns: 92px 1fr; gap: 14px; margin-top: 14px; }
.idpage .photo { width: 92px; height: 118px; border-radius: 4px; object-fit: cover; background: #d9d2c2; border: 1px solid rgba(0,0,0,.2); }
.idpage .photo.empty { display: flex; align-items: center; justify-content: center; color: #8a8270; }
.idpage .photo.empty svg { width: 36px; height: 36px; }
.idpage .f { margin-bottom: 6px; }
.idpage .f label { display: block; font-size: 8px; letter-spacing: .12em; text-transform: uppercase; color: #6b7280; font-weight: 700; }
.idpage .f b { display: block; font-family: var(--mono); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .02em; word-break: break-word; }
.idpage .f b.s { font-size: 11px; }
.idpage .fields2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 10px; margin-top: 4px; }
.idpage .sched { display: grid; gap: 2px; }
.idpage .planet-tag { display: inline-flex; align-items: center; gap: 6px; }
.idpage .planet-tag img { width: 16px; height: 16px; border-radius: 50%; }
.mrz { margin-top: auto; margin-bottom: 8px; font-family: var(--mono); font-size: 11px; letter-spacing: .08em; line-height: 1.35; color: #2d2a24; white-space: nowrap; overflow: hidden; border-top: 1px dashed rgba(0,0,0,.25); padding-top: 8px; }

/* Páginas de objetivos */
.goalpage .tri { margin-top: 6px; }
.goalpage .tri b { font-family: "Archivo Black", var(--font); font-size: 18px; text-transform: uppercase; letter-spacing: .02em; }
.goalpage .tri .cont { font-family: var(--font); font-weight: 600; font-size: 11px; color: #6b7280; text-transform: none; }
.goalpage .tri small { display: block; font-size: 11px; color: #6b7280; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; }
.goalpage .goals { margin-top: 6px; display: grid; gap: 2px; flex: 1; align-content: start; }
.goal { display: grid; grid-template-columns: 22px 1fr 50px; gap: 6px; align-items: center; padding: 3px 0; border-bottom: 1px dotted rgba(0,0,0,.25); min-height: 52px; }
.goal .gn { font-family: var(--mono); font-size: 10px; color: #6b7280; font-weight: 700; }
.goal:last-child { border-bottom: 0; }
.goal .gt { font-weight: 700; font-size: 11.5px; line-height: 1.2; }
.goal .gd { font-size: 10.5px; color: #4b5563; line-height: 1.25; margin-top: 2px; }
.goal .slot { width: 50px; height: 50px; position: relative; }
.goal .slot .empty { position: absolute; inset: 4px; border-radius: 50%; border: 1.5px dashed rgba(60,70,90,.35); }
.stamp { position: absolute; inset: -3px; width: 56px; height: 56px; color: var(--stamp); mix-blend-mode: multiply; opacity: .9; }
.stamp text { font-family: var(--font); fill: currentColor; }
.stamp .big { font-family: "Archivo Black", var(--font); }
.goal.done .gt { color: #111; }
.book-nav { display: flex; justify-content: center; align-items: center; gap: 14px; margin-top: 14px; color: var(--white); }
.book-nav .dots { display: flex; gap: 6px; }
.book-nav .dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.3); }
.book-nav .dots i.on { background: var(--accent); }
.book-nav button { background: rgba(255,255,255,.1); border: 0; color: var(--white); width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.passport-summary { padding: 16px 20px 0; color: #cbd5e1; font-size: 13px; text-align: center; }

/* ---------- Back Office ---------- */
.bo-head { padding: 16px 20px 0; }
.bo-head h2 { font-size: 22px; font-weight: 800; }
.bo-section { padding: 16px 20px; }
.bo-section + .bo-section { border-top: 1px solid var(--border); }
.goal-toggle { display: flex; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--border); }
.goal-toggle:last-child { border-bottom: 0; }
.goal-toggle .g { flex: 1; min-width: 0; }
.goal-toggle .g b { display: block; font-size: 14px; }
.goal-toggle .g span { font-size: 12px; color: var(--muted); }
.goal-toggle .g .when { display: block; font-size: 11px; color: var(--accent-dark); font-weight: 600; margin-top: 2px; }
.switch { width: 52px; height: 30px; border-radius: 9999px; background: var(--border-strong); border: 0; position: relative; flex: none; transition: background .15s; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: var(--white); transition: left .15s; box-shadow: 0 1px 3px rgba(0,0,0,.3); }
.switch.on { background: var(--accent); }
.switch.on::after { left: 25px; }
.tri-head { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; font-weight: 800; color: var(--muted); margin: 18px 0 4px; display: flex; justify-content: space-between; }
.sched-row { display: grid; grid-template-columns: 1fr 88px 88px 36px; gap: 6px; align-items: center; }
.sched-row .input, .sched-row .select { padding: 8px 10px; min-height: 40px; font-size: 14px; }
.icon-btn { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--border-strong); background: var(--white); display: flex; align-items: center; justify-content: center; color: var(--muted); }
.photo-pick { display: flex; gap: 14px; align-items: center; }
.photo-pick .prev { width: 72px; height: 92px; border-radius: 8px; object-fit: cover; background: var(--surface); border: 1px solid var(--border); }
.photo-pick input { display: none; }
.stickybar { position: sticky; bottom: 0; background: rgba(255,255,255,.95); backdrop-filter: blur(8px); border-top: 1px solid var(--border); padding: 12px 20px; display: flex; gap: 10px; }
.stickybar .btn { flex: 1; }
.insc-card { border: 1px solid var(--border); border-radius: var(--radius); padding: 14px; display: grid; gap: 6px; }
.insc-card .kids { font-size: 13px; color: var(--body); }
.badge { display: inline-block; font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 9999px; background: var(--surface); color: var(--muted); }
.badge.ok { background: #e6f6ec; color: #0b6b39; }
.badge.warn { background: #fff6da; color: var(--warning); }
.badge.info { background: #d8e9ff; color: #0b5cc2; }
.badge.bad { background: #fdeaf1; color: var(--danger); }

/* ---------- Toast ---------- */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--black); color: var(--white); padding: 12px 18px; border-radius: 9999px; font-size: 14px; font-weight: 600; z-index: 50; max-width: 90vw; box-shadow: 0 8px 24px rgba(0,0,0,.3); }
.toast.error { background: var(--danger); }
.loading { padding: 40px; text-align: center; color: var(--muted); }

/* Níveis do passaporte (página informativa) */
.nivel-card { display: flex; gap: 14px; align-items: center; }
.nivel-num { width: 44px; height: 44px; border-radius: 50%; background: var(--navy-deep); color: var(--white); display: flex; align-items: center; justify-content: center; font-family: "Archivo Black", var(--font); font-size: 18px; flex: none; }
.nivel-levels { color: var(--accent-dark); font-weight: 600; margin-top: 4px; }

/* Catálogo de objetivos (BO) */
.nivel-tabs { display: flex; gap: 6px; }
.nivel-tabs .tab { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 4px; background: var(--surface); font-size: 15px; }
.nivel-tabs .tab small { font-size: 10px; font-weight: 600; opacity: .7; }
.nivel-tabs .tab.active { background: var(--black); color: var(--white); }
.goal-list { display: grid; gap: 6px; }
.goal-item { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 12px 14px; font-size: 14px; }
.goal-item .gn { font-family: var(--mono); font-size: 11px; color: var(--muted); width: 26px; flex: none; }
.goal-item .ico { color: var(--border-strong); width: 16px; height: 16px; }
.goal-edit { display: grid; gap: 8px; border: 1px solid var(--black); border-radius: var(--radius-sm); padding: 12px; }
.level-niveis { display: grid; gap: 8px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.level-niveis:last-child { border-bottom: 0; }
.chips { display: flex; gap: 6px; }
.chip { flex: 1; border: 1px solid var(--border-strong); background: var(--white); border-radius: 9999px; padding: 7px 0; font-weight: 700; font-size: 12px; color: var(--muted); }
.chip.on { background: var(--accent); border-color: var(--accent); color: var(--white); }

/* Mensalidades */
.fee-totals { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.fee-totals > div { background: var(--surface); border-radius: var(--radius-sm); padding: 10px 8px; text-align: center; }
.fee-totals b { display: block; font-size: 16px; }
.fee-totals span { font-size: 11px; color: var(--muted); }
.fee-row { border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 14px; display: grid; gap: 8px; }
.fee-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.fee-actions:empty { display: none; }
.fee-card { display: flex; align-items: center; gap: 12px; border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 14px; }
details summary { cursor: pointer; }
