:root {
    /* Neutros quentes (base creme, cara premium) */
    --bg: #f6f1ec;
    --surface: #ffffff;
    --surface-2: #faf5f1;
    --border: #ece2da;
    --border-strong: #ddcfc4;
    --ink: #26191a;
    --ink-2: #574747;
    --ink-3: #837170;
    /* Vinho/vermelho de marca (Lótus) — acao e destaque */
    --wine: #7a2531;
    --wine-strong: #5B1A24;
    --wine-deep: #4A121B;
    --wine-ink: #8f2b38;
    --wine-soft: #f8e7e6;
    --wine-softer: #fcf1f0;
    /* Verde = pago / positivo (mantido por semantica financeira) */
    --green: #2e7d5b;
    --green-strong: #256a4d;
    --green-ink: #1f6d49;
    --green-soft: #e6f2eb;
    /* Estados */
    --amber-ink: #8a6a12;
    --amber-soft: #fbf1d8;
    --amber-border: #ecdca8;
    --red-ink: #c0362a;
    --red-soft: #fbe7e4;
    --red-border: #f0cfca;
    --neutral-ink: #7a6a68;
    --neutral-soft: #f0eae5;
    /* Sistema */
    --radius: 12px;
    --radius-sm: 8px;
    --shadow: 0 1px 2px rgba(74,18,27,.05), 0 1px 3px rgba(74,18,27,.06);
    --shadow-pop: 0 10px 30px rgba(74,18,27,.12), 0 3px 8px rgba(74,18,27,.07);
    --focus: 0 0 0 3px rgba(122,37,49,.20);
    --wrap: 1180px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    background: var(--bg);
    color: var(--ink);
    font-size: 15px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.01em; }
a { color: var(--wine-ink); text-decoration: none; }
a:hover { text-decoration: underline; }
.num { font-variant-numeric: tabular-nums; }

/* ---------- Topbar ---------- */
.topbar {
    background: rgba(255,255,255,.82);
    backdrop-filter: saturate(1.4) blur(8px);
    -webkit-backdrop-filter: saturate(1.4) blur(8px);
    border-bottom: 1px solid var(--border);
    position: sticky; top: 0; z-index: 20;
}
.topbar::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px;
    background: linear-gradient(90deg, var(--wine-deep), var(--wine) 40%, #c99a5e 100%);
    opacity: .9;
}
.topbar-inner {
    max-width: var(--wrap); margin: 0 auto;
    padding: 0 20px; min-height: 60px;
    display: flex; align-items: center; gap: 22px;
}
.brand { display: flex; align-items: center; gap: 11px; font-weight: 600; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand-mark {
    width: 34px; height: 34px; flex: none;
    object-fit: contain; filter: drop-shadow(0 1px 2px rgba(74,18,27,.18));
}
.brand-name { font-size: 1rem; letter-spacing: -0.02em; line-height: 1.05;
    background: linear-gradient(180deg, var(--wine) 0%, var(--wine-deep) 100%);
    -webkit-background-clip: text; background-clip: text; color: transparent; font-weight: 700; }
.brand-name small { display: block; font-size: 0.68rem; font-weight: 600; color: var(--ink-3);
    letter-spacing: 0.16em; text-transform: uppercase; -webkit-text-fill-color: var(--ink-3); }
.nav { display: flex; align-items: center; gap: 2px; flex: 1; }
.nav a {
    color: var(--ink-2); font-size: 0.9rem; font-weight: 500;
    padding: 8px 12px; border-radius: 8px; line-height: 1;
    transition: background .12s, color .12s;
}
.nav a:hover { background: var(--surface-2); color: var(--ink); text-decoration: none; }
.nav a.active { color: var(--wine-ink); background: var(--wine-soft); font-weight: 600; }
.topbar-actions { display: flex; align-items: center; gap: 12px; }
.user-chip {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 0.85rem; color: var(--ink-2);
}
.user-chip .avatar {
    width: 26px; height: 26px; border-radius: 50%;
    background: var(--wine-soft); color: var(--wine-ink);
    display: grid; place-items: center; font-weight: 600; font-size: 0.75rem;
}

/* ---------- Layout ---------- */
main { max-width: var(--wrap); margin: 0 auto; padding: 28px 20px 64px; }
.page-head {
    display: flex; align-items: flex-end; gap: 16px; flex-wrap: wrap;
    margin-bottom: 22px;
}
.page-head .titles { flex: 1; min-width: 220px; }
.page-head h1 { font-size: 1.5rem; }
/* Botão voltar (seta) */
.back-btn {
    display: inline-grid; place-items: center; width: 38px; height: 38px; flex: none;
    border-radius: 50%; border: 1px solid var(--border-strong);
    background: var(--surface); color: var(--wine-ink); box-shadow: var(--shadow);
    transition: background .12s, border-color .12s, box-shadow .12s, transform .12s;
}
.back-btn:hover { background: var(--wine-soft); border-color: var(--wine-soft);
    text-decoration: none; transform: translateX(-1px); box-shadow: var(--shadow-pop); }
.back-btn:focus-visible { outline: none; box-shadow: var(--focus); }
.back-btn svg { width: 19px; height: 19px; }
.page-head .sub { color: var(--ink-3); font-size: 0.92rem; margin-top: 3px; }
.page-head .actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.section { margin-top: 26px; }
.section-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 12px; }
.section-head h2 { font-size: 1.05rem; }
.section-head .hint { color: var(--ink-3); font-size: 0.85rem; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; gap: 7px;
    font: inherit; font-size: 0.9rem; font-weight: 500; line-height: 1;
    padding: 9px 15px; border-radius: var(--radius-sm);
    border: 1px solid transparent; cursor: pointer; white-space: nowrap;
    transition: background .12s, border-color .12s, box-shadow .12s;
}
.btn svg { width: 16px; height: 16px; }
.btn-primary { background: linear-gradient(180deg, var(--wine) 0%, var(--wine-strong) 100%);
    color: #fff; box-shadow: 0 1px 2px rgba(74,18,27,.28), inset 0 1px 0 rgba(255,255,255,.12); }
.btn-primary:hover { background: linear-gradient(180deg, var(--wine-strong) 0%, var(--wine-deep) 100%);
    text-decoration: none; }
.btn-ghost { background: var(--surface); color: var(--ink-2); border-color: var(--border-strong); }
.btn-ghost:hover { background: var(--surface-2); color: var(--ink); text-decoration: none; }
.btn-subtle { background: var(--surface-2); color: var(--ink-2); border-color: var(--border); }
.btn-subtle:hover { background: #f1f3f0; text-decoration: none; }
.btn-mini { padding: 6px 10px; font-size: 0.82rem; }
.btn:focus-visible { outline: none; box-shadow: var(--focus); }
.btn[disabled] { opacity: .55; cursor: default; }

/* ---------- Cards / panels ---------- */
.panel {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); box-shadow: var(--shadow);
}
.panel-pad { padding: 18px 20px; }
.panel-head {
    display: flex; align-items: center; gap: 12px;
    padding: 15px 20px; border-bottom: 1px solid var(--border);
}
.panel-head h2 { font-size: 1rem; flex: 1; }

/* ---------- KPIs ---------- */
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.kpi {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow);
}
.kpi .label {
    display: flex; align-items: center; gap: 7px;
    font-size: 0.75rem; font-weight: 600; text-transform: uppercase;
    letter-spacing: 0.04em; color: var(--ink-3);
}
.kpi .dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.dot-green { background: var(--green); }
.dot-amber { background: #d6a419; }
.dot-red { background: #cf4c40; }
.dot-ink { background: #9aa8a0; }
.kpi .value { font-size: 1.7rem; font-weight: 600; letter-spacing: -0.02em; margin-top: 8px; }
.kpi .value .cents { font-size: 1.05rem; color: var(--ink-3); font-weight: 500; }
.kpi .meta { font-size: 0.82rem; color: var(--ink-3); margin-top: 4px; }

/* ---------- Unit cards ---------- */
.units { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.unit {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow);
}
.unit-top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.unit-top h3 { font-size: 1rem; }
.unit-rate { font-size: 0.9rem; font-weight: 600; color: var(--green-ink); }
.unit-recebido { font-size: 0.85rem; color: var(--ink-3); margin-top: 2px; }
.progress {
    height: 7px; border-radius: 999px; background: var(--neutral-soft);
    margin: 13px 0; overflow: hidden; display: flex;
}
.progress > span { display: block; height: 100%; }
.progress .p-pago { background: var(--green); }
.progress .p-atraso { background: #d98a82; }
.unit-stats { display: flex; gap: 16px; flex-wrap: wrap; }
.unit-stat { font-size: 0.83rem; color: var(--ink-2); display: flex; align-items: center; gap: 6px; }
.unit-stat b { color: var(--ink); font-weight: 600; }

/* ---------- Attention ---------- */
.attention {
    background: var(--surface); border: 1px solid var(--border);
    border-left: 3px solid #d6a419; border-radius: var(--radius);
    box-shadow: var(--shadow); overflow: hidden;
}
.attention-head { padding: 14px 18px 4px; }
.attention-head h2 { font-size: 0.98rem; display: flex; align-items: center; gap: 8px; }
.attention-list { list-style: none; margin: 0; padding: 10px 18px 16px; display: grid; gap: 8px; }
.attention-list li {
    display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
    font-size: 0.9rem; color: var(--ink-2);
}
.attention-list .count {
    font-weight: 600; color: var(--ink);
    background: var(--amber-soft); border: 1px solid var(--amber-border);
    border-radius: 6px; padding: 1px 8px; font-size: 0.82rem;
}
.attention-list .count.red { background: var(--red-soft); border-color: var(--red-border); color: var(--red-ink); }

/* ---------- Table ---------- */
.table-wrap { width: 100%; overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
table.data thead th {
    text-align: left; padding: 10px 14px;
    font-size: 0.72rem; font-weight: 600; text-transform: uppercase;
    letter-spacing: 0.04em; color: var(--ink-3);
    border-bottom: 1px solid var(--border); background: var(--surface-2);
    white-space: nowrap;
}
table.data tbody td {
    padding: 12px 14px; border-bottom: 1px solid var(--border);
    color: var(--ink-2); vertical-align: middle;
}
table.data tbody tr:last-child td { border-bottom: none; }
table.data tbody tr { transition: background .1s; }
table.data tbody tr:hover { background: var(--surface-2); }
table.data .t-aluno { color: var(--ink); font-weight: 500; }
table.data .right { text-align: right; }
.money { font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ---------- Badges ---------- */
.badge {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 3px 9px; border-radius: 999px;
    font-size: 0.76rem; font-weight: 600; white-space: nowrap;
    border: 1px solid transparent;
}
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .9; }
.badge.is-pago { background: var(--green-soft); color: var(--green-ink); }
.badge.is-pendente { background: var(--amber-soft); color: var(--amber-ink); }
.badge.is-atrasado { background: var(--red-soft); color: var(--red-ink); }
.badge.is-cancelado { background: var(--neutral-soft); color: var(--neutral-ink); }
/* Status de envio pelo WhatsApp — progressao visual enviado < entregue < lido */
.badge.wa-nao_enviado { background: var(--neutral-soft); color: var(--neutral-ink); }
.badge.wa-enviado { background: var(--green-soft); color: var(--green-ink); }
.badge.wa-entregue { background: var(--green-soft); color: var(--green-strong); border-color: var(--green); }
.badge.wa-lido { background: var(--green); color: #fff; }
.badge.wa-falhou { background: var(--red-soft); color: var(--red-ink); }
.badge.wa-sem_telefone { background: var(--amber-soft); color: var(--amber-ink); }
/* Cabeçalho da coluna com o símbolo do WhatsApp */
.th-wa { display: inline-flex; align-items: center; gap: 5px; }
.wa-ico { width: 14px; height: 14px; flex: none; vertical-align: middle; }

/* ---------- PIX cell ---------- */
.pix { display: inline-flex; align-items: center; gap: 8px; }
.pix code {
    font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 0.76rem;
    color: var(--ink-3); max-width: 150px; overflow: hidden;
    text-overflow: ellipsis; white-space: nowrap;
}
.icon-btn {
    display: inline-grid; place-items: center; width: 28px; height: 28px;
    border: 1px solid var(--border-strong); border-radius: 6px;
    background: var(--surface); color: var(--ink-3); cursor: pointer; flex: none;
    transition: background .12s, color .12s;
}
.icon-btn:hover { background: var(--surface-2); color: var(--wine-ink); }
.icon-btn svg { width: 14px; height: 14px; }
.icon-btn.copied { color: var(--green-ink); border-color: var(--green); background: var(--green-soft); }

/* ---------- Filters ---------- */
.filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.filters .search { position: relative; flex: 1; min-width: 200px; }
.filters .search svg {
    position: absolute; left: 11px; top: 50%; transform: translateY(-50%);
    width: 16px; height: 16px; color: var(--ink-3); pointer-events: none;
}
.filters .search input { padding-left: 34px; }

/* ---------- Forms ---------- */
label { display: block; font-size: 0.82rem; font-weight: 500; color: var(--ink-2); margin-bottom: 6px; }
input, select {
    width: 100%; font: inherit; font-size: 0.92rem; color: var(--ink);
    padding: 9px 11px; background: var(--surface);
    border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
    transition: border-color .12s, box-shadow .12s;
}
input::placeholder { color: #b3a49f; }
input:focus, select:focus { outline: none; border-color: var(--wine); box-shadow: var(--focus); }
select { appearance: none; background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236d7a72' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 11px center; padding-right: 32px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { min-width: 0; }
.hint { font-size: 0.82rem; color: var(--ink-3); margin: 6px 0 0; }
.form-actions { display: flex; gap: 10px; margin-top: 20px; flex-wrap: wrap; }

/* ---------- Empty state ---------- */
.empty { text-align: center; padding: 40px 20px; color: var(--ink-3); }
.empty .emoji { font-size: 1.6rem; }
.empty p { margin: 8px 0 0; font-size: 0.92rem; }
.empty .strong { color: var(--ink-2); font-weight: 500; }

/* ---------- Helpers ---------- */
.muted { color: var(--ink-3); }
.stack { display: grid; gap: 14px; }
.notice {
    font-size: 0.85rem; color: var(--ink-2); background: var(--surface-2);
    border: 1px solid var(--border); border-radius: var(--radius-sm);
    padding: 10px 13px;
}
.u-tag {
    font-size: 0.78rem; color: var(--ink-3); background: var(--surface-2);
    border: 1px solid var(--border); border-radius: 5px; padding: 1px 7px; white-space: nowrap;
}
.no-match td { text-align: center; color: var(--ink-3); padding: 28px; }

/* ---------- Unidade clicável ---------- */
.unit.as-link { text-decoration: none; color: inherit; display: block; cursor: pointer;
    transition: box-shadow .12s, border-color .12s, transform .12s; }
.unit.as-link:hover { border-color: var(--border-strong); box-shadow: var(--shadow-pop); text-decoration: none; }
.unit .unit-go { font-size: .82rem; color: var(--wine-ink); font-weight: 600;
    margin-top: 12px; display: inline-flex; align-items: center; gap: 4px; }
.unit .unit-go svg { width: 14px; height: 14px; }

/* ---------- Linhas clicáveis (alunos) ---------- */
.rows { display: grid; gap: 8px; }
.row-item { display: flex; align-items: center; gap: 14px; padding: 13px 16px;
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
    text-decoration: none; color: inherit; transition: border-color .12s, box-shadow .12s; }
.row-item:hover { border-color: var(--border-strong); box-shadow: var(--shadow); text-decoration: none; }
.row-item .who { flex: 1; min-width: 0; }
.row-item .who .name { color: var(--ink); font-weight: 500; }
.row-item .who .plan { font-size: .84rem; color: var(--ink-3); margin-top: 2px; }
.row-item .chevron { color: var(--ink-3); flex: none; display: grid; place-items: center; }
.row-item .chevron svg { width: 18px; height: 18px; }
.avatar-lg { width: 40px; height: 40px; border-radius: 50%; background: var(--wine-soft);
    color: var(--wine-ink); display: grid; place-items: center; font-weight: 600; flex: none; }

/* ---------- Lista de dados (plano / aluno) ---------- */
.dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 16px 24px; }
.dl .dt { font-size: .74rem; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-3); font-weight: 600; }
.dl .dd { font-size: 1rem; color: var(--ink); margin-top: 3px; font-weight: 500; }
.dl .dd.big { font-size: 1.35rem; letter-spacing: -0.01em; }

/* Status de contrato / semáforo de situação */
.badge.is-ativo { background: var(--green-soft); color: var(--green-ink); }
.badge.is-aguardando_renovacao { background: var(--amber-soft); color: var(--amber-ink); }
.badge.is-encerrado { background: var(--neutral-soft); color: var(--neutral-ink); }
.badge.is-sem-plano { background: var(--red-soft); color: var(--red-ink); }

/* Botão perigo (cancelar) */
.btn-danger { background: var(--surface); color: var(--red-ink); border-color: var(--red-border); }
.btn-danger:hover { background: var(--red-soft); text-decoration: none; }

/* Cabeçalho de pessoa */
.person-head { display: flex; align-items: center; gap: 14px; }
.person-head .avatar-lg { width: 46px; height: 46px; font-size: 1.05rem; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    .kpis { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
    .topbar-inner { flex-wrap: wrap; min-height: 0; padding: 10px 16px; gap: 12px; }
    .nav { order: 3; width: 100%; overflow-x: auto; padding-bottom: 2px; gap: 4px; }
    .nav a { padding: 8px 12px; }
    .topbar-actions { margin-left: auto; }
    main { padding: 20px 16px 56px; }
    .units { grid-template-columns: 1fr; }
    .user-chip .uname { display: none; }
}
@media (max-width: 640px) {
    .kpis { grid-template-columns: 1fr 1fr; gap: 10px; }
    .kpi .value { font-size: 1.45rem; }
    .form-grid { grid-template-columns: 1fr; }
    /* Tabela vira cartoes */
    table.data.responsive thead { display: none; }
    table.data.responsive tbody tr {
        display: block; padding: 12px 14px;
        border: 1px solid var(--border); border-radius: var(--radius);
        margin-bottom: 10px; background: var(--surface);
    }
    table.data.responsive tbody tr:hover { background: var(--surface); }
    table.data.responsive tbody td {
        display: flex; justify-content: space-between; align-items: center; gap: 14px;
        padding: 5px 0; border: none; text-align: right;
    }
    table.data.responsive tbody td::before {
        content: attr(data-label); font-size: 0.72rem; font-weight: 600;
        text-transform: uppercase; letter-spacing: 0.03em; color: var(--ink-3);
        text-align: left; flex: none;
    }
    table.data.responsive tbody td.right { text-align: right; }
    table.data.responsive .pix code { max-width: 150px; }
    table.data.responsive td.cell-empty { display: none; }
}

/* ======================================================================
   Telas de cadastro e perfil do aluno
   ====================================================================== */

/* ---------- Faixa vinho do topo ----------
   Serve a dois propositos: dar a cara premium do estudio e, principalmente,
   deixar OBVIO que mudou de tela. A lista de alunos e creme; perfil e
   cadastro abrem com esta faixa escura, entao nao ha como confundir. */
.hero {
    background: linear-gradient(135deg, var(--wine-strong) 0%, var(--wine-deep) 55%, #3a0d14 100%);
    color: #fff;
    padding: 26px 0 32px;
    position: relative;
    overflow: hidden;
}
/* A faixa e larga de ponta a ponta, mas o conteudo segue a mesma coluna do
   resto do sistema - o mesmo max-width e o mesmo respiro lateral do <main>. */
/* O <main> depois da faixa nao precisa do respiro de cima. */
.hero + main { padding-top: 24px; }
.hero::after {
    content: ""; position: absolute; right: -60px; top: -80px;
    width: 280px; height: 280px; border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,.07) 0%, transparent 70%);
    pointer-events: none;
}
.hero-inner { max-width: var(--wrap); margin: 0 auto; position: relative; padding: 0 20px; }
.hero .pill {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 5px 13px; border-radius: 999px;
    border: 1px solid rgba(255,255,255,.35); color: rgba(255,255,255,.92);
    font-size: 0.7rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
}
.hero h1 {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 2.4rem; font-weight: 700; letter-spacing: -0.02em;
    color: #fff; margin: 14px 0 0; line-height: 1.1;
}
.hero .sub { color: rgba(255,255,255,.74); font-size: 0.95rem; margin-top: 8px; max-width: 62ch; }
.hero .voltar {
    display: inline-flex; align-items: center; gap: 6px;
    color: rgba(255,255,255,.8); font-size: 0.85rem; margin-bottom: 4px;
}
.hero .voltar:hover { color: #fff; text-decoration: none; }
.hero .voltar svg { width: 16px; height: 16px; }

/* Cartao creme que "flutua" sobre a faixa */
.card-form {
    background: var(--surface-2, #fdfaf7);
    border: 1px solid var(--border);
    border-radius: 22px;
    box-shadow: var(--shadow-pop);
    padding: 26px 28px;
    max-width: 920px;
    margin: 0 auto;
}

/* ---------- Etapas numeradas ---------- */
.etapa { padding-top: 22px; margin-top: 22px; border-top: 1px solid var(--border); }
.etapa:first-of-type { padding-top: 0; margin-top: 0; border-top: none; }
.etapa-head { display: flex; align-items: center; gap: 11px; margin-bottom: 16px; }
.etapa-num {
    width: 26px; height: 26px; border-radius: 50%; flex: none;
    background: var(--wine-strong); color: #fff;
    display: grid; place-items: center;
    font-size: 0.76rem; font-weight: 700;
}
.etapa-head h2 {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.25rem; font-weight: 700; color: var(--wine-strong); margin: 0;
}

/* ---------- Campos arredondados ---------- */
.card-form input, .card-form select { border-radius: 999px; padding: 11px 16px; }
.card-form select { padding-right: 36px; }
.card-form .field { margin-bottom: 14px; }
.form-grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; }

/* Prefixo "R$" dentro do campo */
.com-prefixo { position: relative; }
.com-prefixo .prefixo {
    position: absolute; left: 16px; top: 50%; transform: translateY(-50%);
    color: var(--ink-3); font-size: 0.92rem; pointer-events: none;
}
.com-prefixo input { padding-left: 42px; }

/* ---------- Cartoes de escolha (unidade) ---------- */
.opcoes { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; }
.opcao { position: relative; }
.opcao input { position: absolute; opacity: 0; width: 0; height: 0; }
.opcao label {
    display: flex; align-items: center; gap: 12px; margin: 0; cursor: pointer;
    padding: 14px 16px; border-radius: 16px;
    background: var(--surface); border: 1px solid var(--border-strong);
    transition: border-color .14s, box-shadow .14s, background .14s;
}
.opcao label:hover { border-color: var(--wine); }
.opcao .texto { flex: 1; min-width: 0; }
.opcao .texto { display: block; }
.opcao .nome {
    display: block;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.02rem; font-weight: 700; color: var(--wine-strong);
    line-height: 1.2;
}
.opcao .detalhe { display: block; font-size: 0.8rem; color: var(--ink-3); margin-top: 3px; font-weight: 400; }
.opcao .marca {
    width: 18px; height: 18px; border-radius: 50%; flex: none;
    border: 1.5px solid var(--border-strong); transition: border-color .14s;
}
.opcao input:checked + label {
    border-color: var(--wine); background: var(--wine-softer);
    box-shadow: 0 0 0 1px var(--wine);
}
.opcao input:checked + label .marca {
    border-color: var(--wine); border-width: 5px; background: var(--surface);
}
.opcao input:focus-visible + label { box-shadow: var(--focus); }

/* ---------- Controle segmentado (turno) ---------- */
.segmentado {
    display: inline-flex; gap: 2px; padding: 4px;
    background: var(--neutral-soft); border-radius: 999px;
}
.segmentado > div { position: relative; }
.segmentado input { position: absolute; opacity: 0; width: 0; height: 0; }
.segmentado label {
    margin: 0; cursor: pointer; padding: 8px 20px; border-radius: 999px;
    font-size: 0.88rem; font-weight: 500; color: var(--ink-3);
    transition: background .14s, color .14s, box-shadow .14s;
}
.segmentado input:checked + label {
    background: var(--surface); color: var(--wine-strong);
    font-weight: 600; box-shadow: var(--shadow);
}
.segmentado input:focus-visible + label { box-shadow: var(--focus); }

/* ---------- Botoes grandes ---------- */
.btn-grande { padding: 13px 26px; border-radius: 999px; font-size: 0.95rem; }
.btn-primary.btn-grande { box-shadow: 0 6px 16px rgba(91,26,36,.28); }
.btn-ghost.btn-grande { border-radius: 999px; }

/* Painel com borda de destaque (chamada do PDF) */
.panel-destaque { border-color: var(--wine-soft); background: var(--wine-softer); }

/* ---------- Perfil do aluno ---------- */
.perfil-topo { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.perfil-avatar {
    width: 56px; height: 56px; border-radius: 50%; flex: none;
    background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.3);
    display: grid; place-items: center;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.5rem; font-weight: 700; color: #fff;
}
.perfil-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 12px; }
.perfil-meta span {
    display: inline-flex; align-items: center; gap: 6px;
    color: rgba(255,255,255,.78); font-size: 0.86rem;
}
.perfil-meta svg { width: 14px; height: 14px; opacity: .75; }
.pill-status {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 5px 13px; border-radius: 999px;
    font-size: 0.78rem; font-weight: 600;
}
.pill-status.ok { background: rgba(255,255,255,.16); color: #fff; border: 1px solid rgba(255,255,255,.3); }
.pill-status.alerta { background: #fff; color: var(--red-ink); }

@media (max-width: 760px) {
    .form-grid-3 { grid-template-columns: 1fr; }
    .hero h1 { font-size: 1.8rem; }
    .card-form { padding: 20px 16px; border-radius: 16px; }
    .segmentado { display: flex; width: 100%; }
    .segmentado > div { flex: 1; }
    .segmentado label { display: block; text-align: center; padding: 9px 8px; }
    .perfil-avatar { width: 46px; height: 46px; font-size: 1.2rem; }
}
