/* MD Personal Trainer & Personal Fight — identidade "fight night": escuro, cromado, azul e vermelho da marca */
:root {
  --bg: #06070b;
  --bg-2: #0b0d13;
  --surface: #10131b;
  --surface-2: #151924;
  --surface-3: #1c2130;
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .14);
  --text: #f4f6fa;
  --muted: #a3acbd;
  --faint: #6f788a;
  --blue: #2f8bff;
  --blue-soft: rgba(47, 139, 255, .16);
  --red: #ff2b3a;
  --red-soft: rgba(255, 43, 58, .15);
  --yellow: #ffd60a;
  --yellow-soft: rgba(255, 214, 10, .14);
  --green: #2fe39a;
  --green-soft: rgba(47, 227, 154, .13);
  --chrome: linear-gradient(180deg, #ffffff 0%, #c9ced8 45%, #8b93a3 52%, #e9ecf1 100%);
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 18px 50px -18px rgba(0, 0, 0, .8);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --display: 'Archivo', 'Segoe UI', system-ui, sans-serif;
  --body: 'Archivo', -apple-system, 'Segoe UI', system-ui, sans-serif;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
  color-scheme: dark;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; background: var(--bg); }
body {
  margin: 0; min-height: 100vh; min-height: 100dvh; color: var(--text); font: 400 16px/1.5 var(--body);
  background-color: var(--bg);
  background-image:
    radial-gradient(60vw 50vh at -10% -10%, rgba(47, 139, 255, .16), transparent 60%),
    radial-gradient(60vw 50vh at 110% -10%, rgba(255, 43, 58, .14), transparent 60%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent;
}
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
img { max-width: 100%; display: block; }
h1, h2, h3 { margin: 0; line-height: 1.15; }
p { margin: 0; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 8px; }

/* ---------- tipografia de marca ---------- */
.display { font-family: var(--display); font-stretch: 125%; font-style: italic; font-weight: 900; text-transform: uppercase; letter-spacing: -.01em; }
.eyebrow { font-size: .72rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.chrome-text { background: var(--chrome); -webkit-background-clip: text; background-clip: text; color: transparent; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.small { font-size: .86rem; }
.tnum { font-variant-numeric: tabular-nums; }

/* ---------- marca (logo + nome completo) ---------- */
.brand { display: flex; align-items: center; gap: 12px; min-width: 0; text-decoration: none; }
.brand-badge { width: 42px; height: 42px; border-radius: 12px; overflow: hidden; flex: none; position: relative;
  box-shadow: 0 0 0 1px var(--line-2), -6px 0 18px -6px rgba(47, 139, 255, .7), 6px 0 18px -6px rgba(255, 43, 58, .7); }
.brand-badge img { width: 100%; height: 100%; object-fit: cover; }
.brand-name { min-width: 0; line-height: 1.05; }
.brand-name b { display: block; font-family: var(--display); font-stretch: 118%; font-style: italic; font-weight: 900; font-size: .92rem; text-transform: uppercase; letter-spacing: -.01em; white-space: nowrap; color: #fff; }
@media (max-width: 420px) { .brand-name b { font-size: .76rem; font-stretch: 106%; } .brand-badge { width: 38px; height: 38px; } .topbar .icon-btn { width: 40px; height: 40px; } }

/* ---------- estrutura ---------- */
.app { min-height: 100dvh; display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 10px; justify-content: space-between;
  padding: calc(10px + var(--safe-t)) 16px 10px; background: rgba(6, 7, 11, .72); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border-bottom: 1px solid var(--line); }
.topbar-actions { display: flex; gap: 6px; align-items: center; flex: none; }
.main { flex: 1; width: 100%; max-width: 1180px; margin: 0 auto; padding: 18px 16px calc(110px + var(--safe-b)); }
.view { animation: viewIn .42s var(--ease) both; }
@keyframes viewIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr;
  padding: 6px 8px calc(6px + var(--safe-b)); background: rgba(10, 12, 18, .86); backdrop-filter: blur(20px) saturate(1.4); -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border-top: 1px solid var(--line); }
.tab { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 7px 2px 5px; border-radius: 14px; text-decoration: none; color: var(--faint);
  font-size: .7rem; font-weight: 700; letter-spacing: .02em; position: relative; transition: color .2s; }
.tab svg { width: 24px; height: 24px; transition: transform .3s var(--ease); }
.tab[aria-current="page"] { color: var(--text); }
.tab[aria-current="page"] svg { transform: translateY(-1px) scale(1.06); }
.tab[aria-current="page"]::before { content: ''; position: absolute; top: -7px; left: 30%; right: 30%; height: 3px; border-radius: 0 0 4px 4px;
  background: linear-gradient(90deg, var(--blue), var(--red)); }
.tab .dot { position: absolute; top: 4px; right: calc(50% - 18px); min-width: 16px; height: 16px; padding: 0 4px; border-radius: 9px; background: var(--red); color: #fff; font-size: .62rem; display: grid; place-items: center; }

/* painel no computador: barra lateral */
.side { display: none; }
@media (min-width: 960px) {
  .app.with-side { display: grid; grid-template-columns: 264px 1fr; grid-template-rows: auto 1fr; }
  .app.with-side .topbar { grid-column: 2; }
  .app.with-side .main { grid-column: 2; padding-bottom: 40px; }
  .app.with-side .tabbar { display: none; }
  .side { display: flex; flex-direction: column; gap: 4px; grid-row: 1 / span 2; position: sticky; top: 0; height: 100vh; padding: 20px 14px;
    background: linear-gradient(180deg, rgba(16, 19, 27, .9), rgba(8, 9, 13, .9)); border-right: 1px solid var(--line); }
  .side .brand { padding: 4px 6px 18px; }
  .side-link { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 12px; text-decoration: none; color: var(--muted); font-weight: 600; transition: background .2s, color .2s; }
  .side-link svg { width: 20px; height: 20px; }
  .side-link:hover { background: var(--surface-2); color: var(--text); }
  .side-link[aria-current="page"] { background: linear-gradient(90deg, rgba(47, 139, 255, .16), rgba(255, 43, 58, .08)); color: var(--text); box-shadow: inset 2px 0 0 var(--blue); }
  .side-link .count { margin-left: auto; font-size: .72rem; background: var(--yellow); color: #111; border-radius: 9px; padding: 1px 7px; font-weight: 800; }
  .side-foot { margin-top: auto; padding: 12px 6px 0; border-top: 1px solid var(--line); }
  .topbar .brand.only-mobile { display: none; }
}

/* ---------- botões ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 18px; border-radius: 14px; border: 1px solid transparent;
  font-weight: 800; letter-spacing: .01em; text-decoration: none; cursor: pointer; user-select: none; transition: transform .15s var(--ease), background .2s, border-color .2s, opacity .2s; }
.btn:active { transform: scale(.97); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-primary { background: linear-gradient(135deg, #3f97ff, #1f6fe0); color: #fff; box-shadow: 0 10px 30px -12px rgba(47, 139, 255, .9), inset 0 1px 0 rgba(255, 255, 255, .25); }
.btn-fight { background: linear-gradient(135deg, #ff4552, #d71727); color: #fff; box-shadow: 0 10px 30px -12px rgba(255, 43, 58, .9), inset 0 1px 0 rgba(255, 255, 255, .25); }
.btn-yellow { background: var(--yellow); color: #111; box-shadow: 0 10px 30px -14px rgba(255, 214, 10, .8); }
.btn-ghost { background: var(--surface-2); border-color: var(--line-2); color: var(--text); }
.btn-ghost:hover { border-color: rgba(255, 255, 255, .24); }
.btn-quiet { background: transparent; color: var(--muted); min-height: 40px; padding: 0 10px; }
.btn-danger { background: var(--red-soft); color: #ff8a93; border-color: rgba(255, 43, 58, .35); }
.btn-sm { min-height: 38px; padding: 0 12px; border-radius: 11px; font-size: .88rem; }
.btn-sm svg { width: 17px; height: 17px; }
.btn-block { width: 100%; }
.btn[disabled], .btn.loading { opacity: .55; pointer-events: none; }
.btn.loading::after { content: ''; width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.icon-btn { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--line); cursor: pointer; position: relative; color: var(--text); text-decoration: none; }
.icon-btn svg { width: 21px; height: 21px; }
.icon-btn .badge { position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; border-radius: 9px; background: var(--red); color: #fff; font-size: .66rem; font-weight: 800; display: grid; place-items: center; padding: 0 5px; box-shadow: 0 0 0 2px var(--bg); }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; }
.btn-row > .btn { flex: 1 1 auto; }

/* ---------- cartões ---------- */
.card { background: linear-gradient(180deg, rgba(255, 255, 255, .035), rgba(255, 255, 255, .01)), var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; position: relative; }
.card + .card, .stack > * + * { margin-top: 14px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.card-head h2, .card-head h3 { font-size: 1.02rem; font-weight: 800; }
.section-title { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 26px 0 12px; }
.section-title h2 { font-family: var(--display); font-stretch: 112%; font-style: italic; font-weight: 900; font-size: 1.05rem; text-transform: uppercase; letter-spacing: .01em; }
.grid { display: grid; gap: 14px; }
@media (min-width: 720px) { .grid-2 { grid-template-columns: 1fr 1fr; } .grid-3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1100px) { .grid-4 { grid-template-columns: repeat(4, 1fr); } }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.page-head h1 { font-family: var(--display); font-stretch: 125%; font-style: italic; font-weight: 900; font-size: clamp(1.5rem, 5vw, 2.2rem); text-transform: uppercase; letter-spacing: -.015em; }
.page-head .sub { color: var(--muted); margin-top: 4px; }

/* ---------- herói do aluno ---------- */
.hero { overflow: hidden; padding: 20px; border-radius: 22px; border: 1px solid var(--line-2); position: relative;
  background: radial-gradient(120% 140% at 0% 0%, rgba(47, 139, 255, .28), transparent 55%), radial-gradient(120% 140% at 100% 0%, rgba(255, 43, 58, .26), transparent 55%), var(--surface); }
.hero::after { content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(135deg, rgba(255, 255, 255, .06) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .06) 50%, rgba(255, 255, 255, .06) 75%, transparent 75%);
  background-size: 22px 22px; mask-image: linear-gradient(180deg, rgba(0, 0, 0, .5), transparent 70%); -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, .5), transparent 70%); }
.hero > * { position: relative; z-index: 1; }
.hero-hi { font-family: var(--display); font-stretch: 125%; font-style: italic; font-weight: 900; font-size: clamp(1.5rem, 7vw, 2.1rem); text-transform: uppercase; line-height: 1.02; margin: 4px 0 10px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- aviso de atraso ---------- */
.alert { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: center; padding: 14px; border-radius: 16px; margin-top: 14px; }
.alert svg { width: 26px; height: 26px; }
.alert-late { background: var(--yellow); color: #121212; box-shadow: 0 16px 40px -18px rgba(255, 214, 10, .8); animation: pulseIn .6s var(--ease) both; }
.alert-late .btn { background: #121212; color: var(--yellow); min-height: 42px; }
.alert-late b { font-weight: 900; }
.alert-ok { background: var(--green-soft); border: 1px solid rgba(47, 227, 154, .35); }
.alert-info { background: var(--surface-2); border: 1px solid var(--line-2); }
.alert .alert-actions { grid-column: 1 / -1; display: flex; gap: 8px; }
@media (min-width: 560px) { .alert { grid-template-columns: auto 1fr auto; } .alert .alert-actions { grid-column: auto; } }
@keyframes pulseIn { from { transform: scale(.96); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---------- atalhos grandes (Horários, Pagamentos, Meus recibos) ---------- */
.shortcuts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 14px; }
.shortcut { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 14px 12px; border-radius: 18px; text-decoration: none;
  background: var(--surface-2); border: 1px solid var(--line); transition: transform .2s var(--ease), border-color .2s; min-height: 108px; }
.shortcut:active { transform: scale(.97); }
.shortcut:hover { border-color: var(--line-2); }
.shortcut .ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; }
.shortcut .ico svg { width: 22px; height: 22px; }
.shortcut b { font-weight: 800; font-size: .95rem; line-height: 1.15; }
.shortcut small { color: var(--muted); font-size: .75rem; margin-top: auto; }
.ico-blue { background: var(--blue-soft); color: #7db7ff; }
.ico-red { background: var(--red-soft); color: #ff7c86; }
.ico-yellow { background: var(--yellow-soft); color: var(--yellow); }
.ico-green { background: var(--green-soft); color: var(--green); }

/* ---------- etiquetas de serviço e estado (texto + ícone + cor) ---------- */
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 4px 8px; border-radius: 999px; font-size: .78rem; font-weight: 700; white-space: nowrap; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .04); }
.chip svg { width: 14px; height: 14px; }
.chip-ct { border-color: rgba(255, 43, 58, .45); color: #ff8e96; background: var(--red-soft); }
.chip-pt { border-color: rgba(47, 139, 255, .45); color: #8fc0ff; background: var(--blue-soft); }
.chip-ct::before, .chip-pt::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 4px 7px; border-radius: 999px; font-size: .78rem; font-weight: 800; white-space: nowrap; }
.status svg { width: 15px; height: 15px; }
.st-pago { background: var(--green-soft); color: var(--green); border: 1px solid rgba(47, 227, 154, .35); }
.st-atraso { background: var(--yellow); color: #121212; }
.st-aberto { background: transparent; color: var(--text); border: 1px dashed rgba(255, 255, 255, .35); }
.st-parcial { background: var(--yellow-soft); color: var(--yellow); border: 1px solid rgba(255, 214, 10, .4); }
.st-cancelada { color: var(--faint); border: 1px solid var(--line); text-decoration: line-through; }
.st-pendente { background: var(--blue-soft); color: #8fc0ff; border: 1px solid rgba(47, 139, 255, .4); }
.st-inativo, .st-recusado { color: var(--faint); border: 1px solid var(--line-2); }
.st-sem { color: var(--faint); border: 1px solid var(--line); }
.st-recibo { background: rgba(255, 255, 255, .06); color: var(--text); border: 1px solid var(--line-2); }

/* ---------- listas ---------- */
.list { display: flex; flex-direction: column; }
.row { display: flex; align-items: center; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--line); text-decoration: none; min-width: 0; }
.row:last-child { border-bottom: 0; }
.row-main { flex: 1; min-width: 0; }
.row-title { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row-sub { color: var(--muted); font-size: .84rem; margin-top: 2px; display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; }
.row-end { text-align: right; flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
a.row:hover .row-title { color: #fff; text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
.row-tap { cursor: pointer; border-radius: 12px; margin: 0 -8px; padding-left: 8px; padding-right: 8px; transition: background .15s; }
.row-tap:hover { background: rgba(255, 255, 255, .03); }
.amount { font-weight: 800; font-variant-numeric: tabular-nums; font-size: 1.02rem; }
.avatar { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; flex: none; font-weight: 900; font-size: .9rem; font-family: var(--display); font-style: italic;
  background: linear-gradient(135deg, rgba(47, 139, 255, .35), rgba(255, 43, 58, .35)); border: 1px solid var(--line-2); }
.empty { text-align: center; color: var(--muted); padding: 22px 10px; }
.empty svg { width: 34px; height: 34px; color: var(--faint); margin: 0 auto 8px; display: block; }

/* tabela no computador */
.table-wrap { overflow-x: auto; margin: 0 -18px; padding: 0 18px; }
table.table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.table th { text-align: left; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); font-weight: 700; padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 12px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr { cursor: pointer; transition: background .15s; }
.table tbody tr:hover { background: rgba(255, 255, 255, .03); }
.only-desk { display: none; }
@media (min-width: 860px) { .only-desk { display: block; } .only-mobile { display: none !important; } table.only-desk { display: table; } }

/* ---------- KPIs ---------- */
.kpis { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 720px) { .kpis { grid-template-columns: repeat(4, 1fr); } }
.kpi { padding: 16px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); position: relative; overflow: hidden; }
.kpi .eyebrow { display: flex; align-items: center; gap: 6px; }
.kpi .eyebrow svg { width: 15px; height: 15px; }
.kpi-value { font-family: var(--display); font-stretch: 110%; font-weight: 900; font-size: clamp(1.4rem, 5.5vw, 1.9rem); margin-top: 6px; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.kpi-sub { color: var(--muted); font-size: .8rem; margin-top: 2px; }
.kpi-in { background: radial-gradient(120% 120% at 0% 0%, rgba(47, 227, 154, .16), transparent 60%), var(--surface); }
.kpi-due { background: radial-gradient(120% 120% at 0% 0%, rgba(47, 139, 255, .2), transparent 60%), var(--surface); }
.kpi-late { background: radial-gradient(120% 120% at 0% 0%, rgba(255, 214, 10, .18), transparent 60%), var(--surface); }
.kpi-late .kpi-value { color: var(--yellow); }
.kpi-in .kpi-value { color: var(--green); }
.bar { height: 6px; border-radius: 6px; background: rgba(255, 255, 255, .07); overflow: hidden; margin-top: 10px; }
.bar i { display: block; height: 100%; width: 0; border-radius: 6px; background: linear-gradient(90deg, var(--green), #8ff5c7); transition: width .8s var(--ease); }
.counts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 10px; }
@media (min-width: 720px) { .counts { grid-template-columns: repeat(6, 1fr); } }
.count-tile { padding: 12px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); text-align: left; cursor: pointer; transition: border-color .2s, transform .15s; }
.count-tile:active { transform: scale(.97); }
.count-tile[aria-pressed="true"] { border-color: var(--blue); box-shadow: 0 0 0 1px var(--blue) inset; }
.count-tile b { display: block; font-family: var(--display); font-stretch: 110%; font-weight: 900; font-size: 1.45rem; font-variant-numeric: tabular-nums; }
.count-tile span { display: flex; align-items: center; gap: 5px; font-size: .74rem; color: var(--muted); font-weight: 700; }
.count-tile span svg { width: 14px; height: 14px; }

/* ---------- controlos ---------- */
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.seg { display: inline-flex; padding: 4px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 14px; gap: 2px; }
.seg button { border: 0; background: transparent; padding: 8px 12px; border-radius: 10px; font-weight: 700; color: var(--muted); cursor: pointer; font-size: .88rem; white-space: nowrap; transition: background .2s, color .2s; }
.seg button[aria-pressed="true"] { background: var(--surface-3); color: var(--text); box-shadow: 0 2px 10px rgba(0, 0, 0, .35); }
.month-nav { display: inline-flex; align-items: center; gap: 4px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 14px; padding: 4px; }
.month-nav button { width: 36px; height: 36px; border: 0; border-radius: 10px; background: transparent; cursor: pointer; display: grid; place-items: center; color: var(--text); }
.month-nav button:hover { background: var(--surface-3); }
.month-nav svg { width: 18px; height: 18px; }
.month-nav b { min-width: 140px; text-align: center; font-weight: 800; text-transform: capitalize; font-size: .92rem; }
.search { position: relative; flex: 1 1 220px; }
.search svg { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); width: 19px; height: 19px; color: var(--faint); }
.search input { padding-left: 42px; }

/* ---------- formulários ---------- */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field label, .label { font-size: .82rem; font-weight: 700; color: var(--muted); }
.input, select.input, textarea.input { width: 100%; min-height: 50px; padding: 12px 14px; border-radius: 14px; background: var(--bg-2); border: 1px solid var(--line-2);
  font-size: 16px; transition: border-color .2s, box-shadow .2s; -webkit-appearance: none; appearance: none; }
textarea.input { min-height: 96px; resize: vertical; }
select.input { background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 20px) 22px, calc(100% - 15px) 22px; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 36px; }
.input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(47, 139, 255, .18); }
.input::placeholder { color: var(--faint); }
.hint { font-size: .8rem; color: var(--faint); }
.form-grid { display: grid; gap: 0 14px; }
@media (min-width: 640px) { .form-grid { grid-template-columns: 1fr 1fr; } .form-grid .span-2 { grid-column: span 2; } }
.check { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: var(--bg-2); border: 1px solid var(--line-2); cursor: pointer; margin-bottom: 14px; }
.check input { width: 22px; height: 22px; accent-color: var(--blue); }
.choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice span { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 8px 12px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--bg-2); font-weight: 700; cursor: pointer; text-align: center; transition: border-color .2s, background .2s; }
.choice span svg { width: 18px; height: 18px; }
.choice input:checked + span { border-color: var(--blue); background: var(--blue-soft); box-shadow: 0 0 0 1px var(--blue) inset; }
.choice input:focus-visible + span { outline: 2px solid var(--blue); outline-offset: 2px; }
.choice.ct input:checked + span { border-color: var(--red); background: var(--red-soft); box-shadow: 0 0 0 1px var(--red) inset; }
.opt-list { display: flex; flex-direction: column; gap: 8px; }
.opt { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--bg-2); cursor: pointer; transition: border-color .2s; }
.opt input { width: 20px; height: 20px; accent-color: var(--blue); flex: none; }
.opt:has(input:checked) { border-color: var(--blue); background: var(--blue-soft); }
.opt .row-main { min-width: 0; }
.error-box { background: rgba(255, 43, 58, .12); border: 1px solid rgba(255, 43, 58, .4); color: #ffb3b9; padding: 10px 12px; border-radius: 12px; font-size: .9rem; margin-bottom: 12px; display: flex; gap: 8px; align-items: flex-start; }
.error-box svg { width: 18px; height: 18px; flex: none; margin-top: 2px; }

/* ---------- folha (bottom sheet / modal) ---------- */
.sheet-backdrop { position: fixed; inset: 0; z-index: 80; background: rgba(0, 0, 0, .55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); animation: fade .25s ease both; display: flex; align-items: flex-end; justify-content: center; }
.sheet { width: 100%; max-width: 560px; max-height: 92dvh; overflow-y: auto; background: var(--surface); border: 1px solid var(--line-2); border-bottom: 0; border-radius: 26px 26px 0 0;
  padding: 10px 18px calc(20px + var(--safe-b)); animation: sheetUp .38s var(--ease) both; box-shadow: 0 -30px 80px -20px rgba(0, 0, 0, .8); overscroll-behavior: contain; }
.sheet-grip { width: 42px; height: 5px; border-radius: 3px; background: var(--line-2); margin: 2px auto 12px; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.sheet-head h2 { font-family: var(--display); font-stretch: 115%; font-style: italic; font-weight: 900; text-transform: uppercase; font-size: 1.15rem; }
@media (min-width: 700px) { .sheet-backdrop { align-items: center; } .sheet { border-radius: 24px; border-bottom: 1px solid var(--line-2); animation-name: pop; } }
@keyframes sheetUp { from { transform: translateY(100%); } to { transform: none; } }
@keyframes pop { from { transform: scale(.95); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes fade { from { opacity: 0; } }
.closing .sheet { animation: sheetDown .25s ease both; }
.closing { animation: fadeOut .25s ease both; }
@keyframes sheetDown { to { transform: translateY(100%); } }
@keyframes fadeOut { to { opacity: 0; } }

/* como pagar */
.pay-way { padding: 14px; border-radius: 16px; background: var(--bg-2); border: 1px solid var(--line-2); margin-bottom: 10px; }
.pay-way h3 { display: flex; align-items: center; gap: 10px; font-size: 1rem; margin-bottom: 6px; }
.pay-way h3 svg { width: 22px; height: 22px; }
.pay-way p { color: var(--muted); white-space: pre-line; }
.pay-sum { display: flex; justify-content: space-between; align-items: center; padding: 14px; border-radius: 16px; background: var(--yellow); color: #111; margin-bottom: 14px; font-weight: 800; }

/* ---------- toast ---------- */
.toasts { position: fixed; left: 50%; transform: translateX(-50%); top: calc(12px + var(--safe-t)); z-index: 120; display: flex; flex-direction: column; gap: 8px; width: min(440px, calc(100% - 24px)); pointer-events: none; }
.toast { pointer-events: auto; display: flex; gap: 10px; align-items: flex-start; padding: 13px 14px; border-radius: 16px; background: rgba(28, 33, 48, .96); border: 1px solid var(--line-2); box-shadow: var(--shadow); animation: toastIn .4s var(--ease) both; backdrop-filter: blur(10px); }
.toast svg { width: 20px; height: 20px; flex: none; margin-top: 1px; }
.toast.ok svg { color: var(--green); }
.toast.err svg { color: var(--red); }
.toast.info svg { color: var(--blue); }
.toast b { display: block; }
.toast small { color: var(--muted); }
@keyframes toastIn { from { transform: translateY(-16px) scale(.97); opacity: 0; } }

/* ---------- login ---------- */
.auth { min-height: 100dvh; display: grid; place-items: center; padding: 24px 16px calc(24px + var(--safe-b)); }
.auth-card { width: 100%; max-width: 420px; }
.auth-logo { width: min(64vw, 240px); aspect-ratio: 1; margin: 0 auto 6px; border-radius: 28px; overflow: hidden; position: relative;
  box-shadow: -20px 0 60px -20px rgba(47, 139, 255, .8), 20px 0 60px -20px rgba(255, 43, 58, .8), 0 0 0 1px var(--line-2); animation: logoIn .9s var(--ease) both; }
.auth-logo img { width: 100%; height: 100%; object-fit: cover; }
.auth-logo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, .28) 50%, transparent 65%); background-size: 250% 100%; animation: shine 3.2s 1s ease-in-out infinite; }
@keyframes logoIn { from { transform: scale(.9) rotate(-2deg); opacity: 0; } }
@keyframes shine { 0% { background-position: 120% 0; } 40%, 100% { background-position: -120% 0; } }
.auth-title { text-align: center; margin: 18px 0 22px; }
.auth-title h1 { font-family: var(--display); font-stretch: 112%; font-style: italic; font-weight: 900; text-transform: uppercase; font-size: clamp(1.05rem, 5.6vw, 1.75rem); line-height: 1.12; letter-spacing: -.01em; color: #fff; }
.auth-title h1 .line { display: block; white-space: nowrap; }
.auth-title p { color: var(--muted); margin-top: 8px; }
.stripe { height: 3px; border-radius: 3px; background: linear-gradient(90deg, var(--blue), transparent 48%, transparent 52%, var(--red)); margin: 14px auto 0; width: 70%; }

/* ---------- horários ---------- */
.days { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; margin: 0 -16px 14px; padding-left: 16px; padding-right: 16px; scrollbar-width: none; }
.days::-webkit-scrollbar { display: none; }
.day-btn { flex: none; min-width: 58px; padding: 9px 10px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); text-align: center; cursor: pointer; color: var(--muted); font-weight: 700; }
.day-btn b { display: block; font-family: var(--display); font-style: italic; font-weight: 900; font-size: 1.05rem; color: var(--text); text-transform: uppercase; }
.day-btn[aria-pressed="true"] { background: linear-gradient(135deg, rgba(255, 43, 58, .3), rgba(47, 139, 255, .25)); border-color: var(--line-2); color: var(--text); }
.day-btn.today b::after { content: ''; display: block; width: 5px; height: 5px; border-radius: 50%; background: var(--yellow); margin: 3px auto 0; }
.slot { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; align-items: center; padding: 14px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); margin-bottom: 10px; position: relative; overflow: hidden; }
.slot::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--red); }
.slot-time { font-family: var(--display); font-stretch: 110%; font-weight: 900; font-size: 1.1rem; font-variant-numeric: tabular-nums; line-height: 1.1; }
.slot-time small { display: block; font-family: var(--body); font-stretch: 100%; font-weight: 600; font-size: .76rem; color: var(--muted); }
.slot-title { font-weight: 800; }
.slot-sub { color: var(--muted); font-size: .84rem; }
.slot.now { border-color: rgba(255, 214, 10, .5); box-shadow: 0 0 0 1px rgba(255, 214, 10, .25) inset; }
.week { display: none; }
@media (min-width: 960px) {
  .week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 10px; }
  .week-col h3 { font-size: .76rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
  .week .slot { grid-template-columns: 1fr; gap: 4px; padding: 12px; }
  .week .slot .slot-time { font-size: .95rem; }
  .days.mobile-days, .day-list { display: none; }
}

/* ---------- pacote (anel) ---------- */
.ring-wrap { display: flex; align-items: center; gap: 16px; }
.ring { width: 92px; height: 92px; flex: none; position: relative; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 9; }
.ring .track { stroke: rgba(255, 255, 255, .08); }
.ring .val { stroke: url(#ringGrad); stroke-linecap: round; transition: stroke-dashoffset 1s var(--ease); }
.ring-num { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; line-height: 1; }
.ring-num b { font-family: var(--display); font-stretch: 110%; font-weight: 900; font-size: 1.6rem; display: block; }
.ring-num small { font-size: .68rem; color: var(--muted); font-weight: 700; }

/* ---------- ficha do aluno ---------- */
.profile-head { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.profile-head .avatar { width: 58px; height: 58px; border-radius: 16px; font-size: 1.2rem; }
.profile-head h1 { font-family: var(--display); font-stretch: 115%; font-style: italic; font-weight: 900; font-size: clamp(1.3rem, 5vw, 1.8rem); text-transform: uppercase; line-height: 1.05; }
.quick-actions { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 16px 0 4px; }
@media (min-width: 720px) { .quick-actions { grid-template-columns: repeat(4, auto); justify-content: start; } }
.subtabs { display: flex; gap: 4px; overflow-x: auto; border-bottom: 1px solid var(--line); margin: 18px -16px 16px; padding: 0 16px; scrollbar-width: none; }
.subtabs::-webkit-scrollbar { display: none; }
.subtabs button { flex: none; border: 0; background: none; padding: 12px 12px; font-weight: 700; color: var(--muted); cursor: pointer; position: relative; }
.subtabs button[aria-selected="true"] { color: var(--text); }
.subtabs button[aria-selected="true"]::after { content: ''; position: absolute; left: 10px; right: 10px; bottom: -1px; height: 3px; border-radius: 3px 3px 0 0; background: linear-gradient(90deg, var(--blue), var(--red)); }
.kv { display: grid; grid-template-columns: 1fr; gap: 2px 18px; }
.kv div { padding: 10px 0; border-bottom: 1px solid var(--line); }
.kv dt { font-size: .76rem; color: var(--faint); font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.kv dd { margin: 2px 0 0; font-weight: 600; word-break: break-word; }
@media (min-width: 640px) { .kv { grid-template-columns: 1fr 1fr; } }
.plan-card { border-left: 3px solid var(--red); }
.plan-card.pt { border-left-color: var(--blue); }
.pill-note { display: inline-flex; gap: 6px; align-items: center; font-size: .8rem; padding: 5px 10px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line); color: var(--muted); }
.pill-note svg { width: 15px; height: 15px; }
.warn-note { background: var(--yellow-soft); color: var(--yellow); border-color: rgba(255, 214, 10, .4); }

/* link para copiar */
.copy-box { display: flex; gap: 8px; align-items: stretch; }
.copy-box input { flex: 1; min-width: 0; font-size: .85rem; }

/* importação */
.import-row { padding: 12px; border-radius: 14px; border: 1px solid var(--line); background: var(--bg-2); margin-bottom: 8px; }
.import-row.dup { border-color: rgba(255, 214, 10, .5); }
.import-row.bad { border-color: rgba(255, 43, 58, .5); }
.import-row .flags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }

/* esqueleto de carregamento */
.skel { border-radius: 14px; background: linear-gradient(90deg, var(--surface) 0%, var(--surface-2) 50%, var(--surface) 100%); background-size: 200% 100%; animation: skel 1.2s ease-in-out infinite; }
@keyframes skel { from { background-position: 200% 0; } to { background-position: -200% 0; } }
.skel-hero { height: 190px; border-radius: 22px; }
.skel-line { height: 74px; margin-top: 12px; }

.notif { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.notif .ico { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; flex: none; }
.notif .ico svg { width: 19px; height: 19px; }
.notif.unread .row-title::after { content: ''; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--red); margin-left: 8px; vertical-align: middle; }

.footer-note { text-align: center; color: var(--faint); font-size: .78rem; margin-top: 30px; }
.divider { height: 1px; background: var(--line); margin: 16px 0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* utilitários */
.mt-6 { margin-top: 6px; } .mt-10 { margin-top: 10px; } .mt-14 { margin-top: 14px; } .mt-18 { margin-top: 18px; } .mt-24 { margin-top: 24px; }
.mb-0 { margin-bottom: 0; } .gap-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; } .between { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.right { text-align: right; } .w-full { width: 100%; } .nowrap { white-space: nowrap; }
.avatar.ico-blue { background: var(--blue-soft); color: #7db7ff; } .avatar.ico-red { background: var(--red-soft); color: #ff7c86; } .avatar.ico-green { background: var(--green-soft); color: var(--green); }
.avatar svg { width: 20px; height: 20px; }
select.input.btn-sm { min-height: 38px; padding: 6px 34px 6px 10px; font-size: .9rem; background-position: calc(100% - 18px) 16px, calc(100% - 13px) 16px; width: auto; }
.row-main { color: inherit; text-decoration: none; }
.opt .row-title { white-space: normal; }
.quick-actions > .btn:first-child { grid-column: 1 / -1; }
.quick-actions .btn { font-size: .93rem; padding: 0 12px; }
@media (min-width: 720px) { .quick-actions > .btn:first-child { grid-column: auto; } }
.card-head > svg, .section-title > svg { width: 22px; height: 22px; color: var(--faint); flex: none; }
.side .brand-name b { font-size: .76rem; font-stretch: 106%; }
@media (max-width: 520px) { .row-title { white-space: normal; } }

/* etiquetas das aulas */
.slot-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; align-items: center; }
.tag-level, .tag-note { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px 3px 7px; border-radius: 999px; font-size: .76rem; font-weight: 800; }
.tag-level svg, .tag-note svg { width: 14px; height: 14px; flex: none; }
.tag-level { background: var(--blue-soft); color: #9cc8ff; border: 1px solid rgba(47, 139, 255, .4); }
.tag-note { background: var(--yellow); color: #121212; }
.slot.slot-note::before { background: var(--yellow); }
.slot.slot-kids::before { background: var(--blue); }
@media (max-width: 350px) { .brand-name b { font-size: .64rem; } .brand { gap: 8px; } .brand-badge { width: 34px; height: 34px; } .topbar { padding-left: 12px; padding-right: 12px; } .topbar-actions { gap: 4px; } .topbar .icon-btn { width: 36px; height: 36px; } }

/* ---------- v0.2: fotos, horários no telemóvel, instalação ---------- */
.avatar-photo { padding: 0; overflow: hidden; background: var(--surface-3); }
.avatar-photo img { width: 100%; height: 100%; object-fit: cover; }
.avatar-lg { width: 52px; height: 52px; border-radius: 16px; font-size: 1.05rem; }
.avatar-xl { width: 96px; height: 96px; border-radius: 26px; font-size: 1.8rem; box-shadow: -10px 0 30px -14px rgba(47, 139, 255, .8), 10px 0 30px -14px rgba(255, 43, 58, .8); }
.hero-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.hero-row a { text-decoration: none; flex: none; }
.icon-btn.has-photo { padding: 0; overflow: hidden; }
.icon-btn.has-photo img { width: 100%; height: 100%; object-fit: cover; }
.photo-card { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.file-btn { cursor: pointer; position: relative; }
.tag-cancel { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px 3px 7px; border-radius: 999px; font-size: .76rem; font-weight: 800; background: var(--red); color: #fff; }
.tag-cancel svg { width: 14px; height: 14px; }
.slot.slot-cancelled::before { background: var(--faint); }
.slot.slot-cancelled .slot-title, .slot.slot-cancelled .slot-time { text-decoration: line-through; opacity: .6; }
.slot-btn { width: 100%; text-align: left; font: inherit; color: inherit; cursor: pointer; grid-template-columns: 64px 1fr 20px; transition: border-color .2s, transform .15s; }
.slot-btn:hover { border-color: var(--line-2); }
.slot-btn:active { transform: scale(.985); }
.slot-btn > svg { width: 20px; height: 20px; color: var(--faint); }
.slot-btn .slot-title { display: block; }
.slot-btn .slot-time { display: block; }
.publish-bar { position: fixed; left: 12px; right: 12px; bottom: calc(74px + var(--safe-b)); z-index: 45; display: flex; align-items: center; gap: 8px; padding: 12px 12px 12px 16px;
  border-radius: 18px; background: rgba(28, 33, 48, .96); border: 1px solid rgba(255, 214, 10, .45); box-shadow: 0 20px 50px -10px rgba(0, 0, 0, .8); backdrop-filter: blur(14px); animation: pulseIn .35s var(--ease) both; }
.has-publish-bar { padding-bottom: 90px; }
@media (min-width: 960px) { .publish-bar { left: 290px; right: 28px; bottom: 20px; max-width: 900px; margin: 0 auto; } }
.days-choice { grid-template-columns: repeat(7, 1fr); gap: 5px; }
.days-choice .choice span { min-height: 44px; padding: 4px; font-size: .82rem; }
.steps { margin: 6px 0 0; padding-left: 20px; color: var(--muted); }
.steps li { margin: 4px 0; }
.steps b { color: var(--text); }
.install-steps .pay-way h3 .avatar { width: 34px; height: 34px; }
