/* ==========================================================================
   Portal do aluno — mesmas cores do site (--brand roxo, --pop amarelo, vindas do painel).
   Pensado primeiro para celular: barra de navegação embaixo; no computador, menu no topo.
   ========================================================================== */

:root {
    --brand: #5B21B6;
    --pop: #FFC629;
    --brand-deep: color-mix(in srgb, var(--brand) 62%, #0B0418);
    --brand-dark: color-mix(in srgb, var(--brand) 82%, #0B0418);
    --brand-soft: color-mix(in srgb, var(--brand) 7%, #FFFFFF);
    --brand-line: color-mix(in srgb, var(--brand) 18%, #FFFFFF);
    --pop-soft: color-mix(in srgb, var(--pop) 22%, #FFFFFF);

    --ink: #1C1033;
    --ink-2: #5B5470;
    --ink-3: #8A84A0;
    --line: #E9E4F2;
    --bg: #F6F4FB;
    --card: #FFFFFF;
    --ok: #0F7B4E;      --ok-soft: #E3F5EC;
    --warn: #9A5B00;    --warn-soft: #FFF3D6;
    --err: #C0262D;     --err-soft: #FDE8E8;
    --info: #2453B8;    --info-soft: #E6EEFC;

    --display: "Sora", "Segoe UI", system-ui, sans-serif;
    --text: "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif;
    --r-sm: 10px; --r: 16px; --r-lg: 24px;
    --shadow: 0 1px 2px rgba(28,16,51,.05), 0 6px 20px -8px rgba(28,16,51,.14);
    --tabbar-h: 66px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 1rem/1.55 var(--text); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--brand); }
h1, h2, h3, h4, p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--pop); outline-offset: 2px; border-radius: 6px; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.icon { flex: none; }
.muted { color: var(--ink-2); }
.small { font-size: .875rem; }
.tnum { font-variant-numeric: tabular-nums; }
.wrap { width: min(1080px, 100% - 32px); margin-inline: auto; }

/* ---------- topo ---------- */
.top { background: linear-gradient(135deg, var(--brand-deep), var(--brand)); color: #fff; }
.top__in { display: flex; align-items: center; gap: 16px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; min-width: 0; }
.brand__mark { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--pop); color: var(--ink); font: 800 1.1rem var(--display); flex: none; }
.brand__logo { height: 36px; width: auto; }
.brand__name { font: 700 1rem/1.15 var(--display); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand__sub { display: block; font: 500 .75rem var(--text); opacity: .75; }
.topnav { display: none; margin-left: auto; gap: 4px; }
.topnav a, .topnav button { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 999px; color: #fff; text-decoration: none; font-weight: 600; font-size: .94rem; background: none; border: 0; cursor: pointer; opacity: .85; }
.topnav a:hover, .topnav button:hover { background: rgba(255,255,255,.12); opacity: 1; }
.topnav a.is-here { background: #fff; color: var(--brand-dark); opacity: 1; }
.top__exit { margin-left: auto; }
.top__exit button { display: inline-flex; align-items: center; gap: 6px; background: rgba(255,255,255,.14); color: #fff; border: 0; padding: 8px 12px; border-radius: 999px; font-weight: 600; font-size: .85rem; cursor: pointer; }

/* ---------- barra de baixo (celular) ---------- */
.tabbar { position: fixed; inset: auto 0 0 0; z-index: 40; background: #fff; border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(5, 1fr); height: calc(var(--tabbar-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); box-shadow: 0 -6px 20px -12px rgba(28,16,51,.25); }
.tabbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: var(--ink-3); text-decoration: none; font-size: .72rem; font-weight: 600; position: relative; }
.tabbar a.is-here { color: var(--brand); }
.tabbar a.is-here::before { content: ""; position: absolute; top: 0; width: 36px; height: 3px; border-radius: 0 0 4px 4px; background: var(--brand); }
.tabbar__ic { position: relative; display: block; }
.tabbar a { font-size: .68rem; }

main { padding: 20px 0 calc(var(--tabbar-h) + 32px); }
@media (min-width: 1000px) {
    .topnav { display: flex; }
    .top__exit { display: none; }
    .tabbar { display: none; }
    main { padding: 32px 0 64px; }
}

/* ---------- títulos ---------- */
.page-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.page-title { font: 700 clamp(1.4rem, 1.1rem + 1.2vw, 1.9rem)/1.15 var(--display); letter-spacing: -.02em; }
.page-sub { color: var(--ink-2); margin-top: 4px; }
.section-title { font: 700 1.08rem/1.25 var(--display); margin: 28px 0 12px; display: flex; align-items: center; gap: 8px; }
.section-title .count { font: 700 .75rem var(--text); background: var(--brand-soft); color: var(--brand); padding: 2px 8px; border-radius: 999px; }
.back { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; text-decoration: none; margin-bottom: 12px; font-size: .92rem; }

/* ---------- cartões ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; box-shadow: var(--shadow); }
.card + .card { margin-top: 12px; }
.card__title { font: 700 1rem/1.3 var(--display); }
.card__kicker { font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 4px; }
.grid { display: grid; gap: 12px; }
@media (min-width: 720px) { .grid--2 { grid-template-columns: 1fr 1fr; } .grid--3 { grid-template-columns: repeat(3, 1fr); } }
.stack > * + * { margin-top: 12px; }

/* bloco de boas-vindas */
.hello { background: linear-gradient(135deg, var(--brand), var(--brand-deep)); color: #fff; border-radius: var(--r-lg); padding: 22px; position: relative; overflow: hidden; box-shadow: 0 18px 40px -20px var(--brand); }
.hello::after { content: ""; position: absolute; right: -60px; top: -60px; width: 200px; height: 200px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--pop) 55%, transparent), transparent 70%); }
.hello__hi { font: 700 1.45rem/1.2 var(--display); }
.hello__course { margin-top: 10px; font-weight: 600; }
.hello__meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.hello__meta span { background: rgba(255,255,255,.14); padding: 4px 10px; border-radius: 999px; font-size: .82rem; font-weight: 600; }
.progress { margin-top: 16px; position: relative; z-index: 1; }
.progress__bar { height: 10px; border-radius: 999px; background: rgba(255,255,255,.2); overflow: hidden; }
.progress__bar i { display: block; height: 100%; background: var(--pop); border-radius: inherit; }
.progress__label { display: flex; justify-content: space-between; font-size: .82rem; margin-top: 6px; opacity: .9; }
.card .progress__bar { background: var(--brand-soft); }

/* avisos */
.alert { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--r); border: 1px solid; }
.alert--err { background: var(--err-soft); border-color: color-mix(in srgb, var(--err) 25%, #fff); color: #7A1419; }
.alert--warn { background: var(--warn-soft); border-color: color-mix(in srgb, var(--warn) 25%, #fff); color: #5E3800; }
.alert--ok { background: var(--ok-soft); border-color: color-mix(in srgb, var(--ok) 25%, #fff); color: #0A4F33; }
.alert--info { background: var(--info-soft); border-color: color-mix(in srgb, var(--info) 22%, #fff); color: #173A80; }
.alert__body { flex: 1; min-width: 0; }
.alert__title { font-weight: 700; }
.alert .btn { margin-top: 10px; }

/* selos */
.chip { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 999px; font-size: .78rem; font-weight: 700; white-space: nowrap; background: var(--brand-soft); color: var(--brand-dark); }
.chip--ok { background: var(--ok-soft); color: var(--ok); }
.chip--err { background: var(--err-soft); color: var(--err); }
.chip--warn { background: var(--warn-soft); color: var(--warn); }
.chip--info { background: var(--info-soft); color: var(--info); }
.chip--muted { background: #F0EEF5; color: var(--ink-2); }

/* ---------- botões ---------- */
.btn { --bg: var(--brand); --fg: #fff; position: relative; overflow: hidden; isolation: isolate; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 10px 18px; border-radius: var(--btn-r, 999px); border: 0; background: var(--bg); color: var(--fg); font-weight: 700; text-decoration: none; cursor: pointer; transition: transform .15s, box-shadow .15s, background .15s; }
.btn::after { content: ""; position: absolute; inset: 0 auto 0 -60%; width: 40%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.35), transparent); transform: skewX(-20deg); transition: left .6s; z-index: -1; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 10px 22px -10px color-mix(in srgb, var(--bg) 70%, transparent); }
.btn:hover::after { left: 130%; }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; }
.btn--pop { --bg: var(--pop); --fg: var(--ink); }
.btn--ghost { --bg: transparent; --fg: var(--brand); box-shadow: inset 0 0 0 2px var(--brand-line); }
.btn--ghost:hover { --bg: var(--brand-soft); }
.btn--white { --bg: #fff; --fg: var(--brand-dark); }
.btn--wa { --bg: #1DA851; --fg: #fff; }
.btn--sm { min-height: 36px; padding: 6px 14px; font-size: .88rem; }
.btn--lg { min-height: 54px; font-size: 1.05rem; padding: 12px 24px; }
.btn--block { width: 100%; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; }

/* atalhos */
.shortcuts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 720px) { .shortcuts { grid-template-columns: repeat(4, 1fr); } }
.shortcut { display: flex; flex-direction: column; gap: 10px; padding: 16px; border-radius: var(--r); background: #fff; border: 1px solid var(--line); text-decoration: none; color: var(--ink); font-weight: 700; transition: transform .15s, border-color .15s; box-shadow: var(--shadow); }
.shortcut:hover { transform: translateY(-2px); border-color: var(--brand-line); }
.shortcut__ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); }
.shortcut--pop .shortcut__ic { background: var(--pop-soft); color: var(--warn); }
.shortcut small { display: block; font-weight: 500; color: var(--ink-2); font-size: .8rem; }

/* números grandes */
.figure { font: 800 1.6rem/1.1 var(--display); letter-spacing: -.02em; }
.figure--sm { font-size: 1.2rem; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; }
.kv dt { color: var(--ink-2); }
.kv dd { margin: 0; font-weight: 600; text-align: right; }

/* ---------- abas ---------- */
.tabs { display: flex; gap: 4px; padding: 4px; background: #fff; border: 1px solid var(--line); border-radius: 999px; overflow-x: auto; margin-bottom: 16px; scrollbar-width: none; }
.tabs a { flex: 1; text-align: center; padding: 9px 14px; border-radius: 999px; text-decoration: none; color: var(--ink-2); font-weight: 700; font-size: .92rem; white-space: nowrap; }
.tabs a.is-here { background: var(--brand); color: #fff; }

/* ---------- parcelas ---------- */
.charges { display: flex; flex-direction: column; gap: 10px; }
.charge { background: #fff; border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); transition: border-color .15s, box-shadow .15s; }
.charge.is-checked { border-color: var(--brand); box-shadow: 0 0 0 2px var(--brand-line), var(--shadow); }
.charge--late { border-left: 4px solid var(--err); }
.charge__main { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 14px 16px; cursor: pointer; }
.charge__check { width: 24px; height: 24px; accent-color: var(--brand); cursor: pointer; }
.charge__title { font-weight: 700; line-height: 1.3; }
.charge__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 4px; font-size: .84rem; color: var(--ink-2); }
.charge__value { text-align: right; }
.charge__value strong { display: block; font: 800 1.08rem var(--display); }
.charge__value small { display: block; color: var(--ok); font-weight: 700; font-size: .78rem; }
.charge details { border-top: 1px dashed var(--line); }
.charge summary { list-style: none; cursor: pointer; padding: 10px 16px; font-size: .85rem; font-weight: 700; color: var(--brand); display: flex; align-items: center; gap: 6px; }
.charge summary::-webkit-details-marker { display: none; }
.charge summary .icon { transition: transform .2s; }
.charge details[open] summary .icon { transform: rotate(180deg); }
.methods-table { padding: 0 16px 14px; display: grid; gap: 8px; }
@media (min-width: 720px) { .methods-table { grid-template-columns: repeat(3, 1fr); } }
.mt { background: var(--bg); border-radius: var(--r-sm); padding: 12px; font-size: .86rem; }
.mt__head { display: flex; justify-content: space-between; align-items: baseline; font-weight: 800; margin-bottom: 6px; }
.mt__head span { font-family: var(--display); font-size: 1rem; }
.mt__line { display: flex; justify-content: space-between; gap: 8px; color: var(--ink-2); }
.mt__line.minus { color: var(--ok); }

/* painel de pagamento (fica preso embaixo no celular) */
.paybox { position: relative; margin-top: 16px; background: #fff; border: 2px solid var(--brand); border-radius: var(--r-lg); padding: 14px; box-shadow: 0 -10px 30px -12px rgba(28,16,51,.35); }
.paybox__head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.paybox__count { font-weight: 800; }
.paybox__hint { color: var(--ink-2); font-size: .9rem; }
.paybox__methods { display: grid; gap: 8px; margin: 12px 0; }
@media (min-width: 720px) { .paybox__methods { grid-template-columns: repeat(3, 1fr); } }
.pm { position: relative; display: flex; align-items: center; gap: 10px; padding: 12px; border: 2px solid var(--line); border-radius: var(--r); cursor: pointer; transition: border-color .15s, background .15s; }
.pm input { position: absolute; opacity: 0; }
.pm:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.pm:has(input:focus-visible) { outline: 3px solid var(--pop); }
.pm__ic { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--bg); color: var(--brand); flex: none; }
.pm__label { font-weight: 700; font-size: .92rem; }
.pm__total { font: 800 1.05rem var(--display); }
.pm__note { font-size: .76rem; font-weight: 700; color: var(--ok); }
.pm__note--up { color: var(--warn); }
.paybox details { font-size: .85rem; margin-bottom: 10px; }
.paybox summary { cursor: pointer; color: var(--brand); font-weight: 700; }
.paybox .err { color: var(--err); font-weight: 600; font-size: .9rem; margin: 8px 0; }
.paybox.is-loading .paybox__methods { opacity: .5; }

/* ---------- pagamento (Pix/boleto/cartão) ---------- */
.paycard { text-align: center; }
.qr { width: min(260px, 70vw); margin: 16px auto; padding: 12px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); }
.copybox { display: flex; gap: 8px; margin-top: 12px; }
.copybox input { flex: 1; min-width: 0; padding: 12px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--bg); font-family: ui-monospace, monospace; font-size: .8rem; }
.big-total { font: 800 2.2rem/1 var(--display); letter-spacing: -.03em; margin: 6px 0; }
.status-live { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--ink-2); font-size: .9rem; }
.status-live::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--pop); box-shadow: 0 0 0 0 color-mix(in srgb, var(--pop) 70%, transparent); animation: ping 1.6s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 10px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.paid-badge { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 10px; background: var(--ok-soft); color: var(--ok); }
.steps { text-align: left; margin: 16px 0 0; padding-left: 20px; color: var(--ink-2); font-size: .92rem; }
.steps li + li { margin-top: 4px; }
.lines { width: 100%; border-collapse: collapse; font-size: .92rem; }
.lines td { padding: 6px 0; border-bottom: 1px solid var(--line); }
.lines td:last-child { text-align: right; white-space: nowrap; }
.lines tr.minus td:last-child { color: var(--ok); }
.lines tfoot td { font-weight: 800; border: 0; padding-top: 10px; font-size: 1.05rem; }

/* listas simples */
.list { list-style: none; margin: 0; padding: 0; }
.list > li { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.list > li:last-child { border-bottom: 0; }
.list__main { flex: 1; min-width: 0; }
.list__title { font-weight: 700; }
.list__sub { font-size: .84rem; color: var(--ink-2); }
.list a.row-link { display: flex; align-items: center; gap: 12px; width: 100%; text-decoration: none; color: inherit; }

/* ---------- acadêmico ---------- */
.subject { display: grid; grid-template-columns: 1fr auto; gap: 8px 12px; align-items: center; text-decoration: none; color: inherit; }
.subject__name { font-weight: 700; }
.subject__meta { font-size: .84rem; color: var(--ink-2); }
.meter { display: flex; align-items: center; gap: 8px; font-size: .82rem; font-weight: 700; }
.meter__bar { flex: 1; height: 8px; border-radius: 999px; background: var(--brand-soft); overflow: hidden; min-width: 60px; }
.meter__bar i { display: block; height: 100%; background: var(--ok); }
.meter--risk .meter__bar i { background: var(--err); }
.meter--mid .meter__bar i { background: var(--pop); }
.grade-pill { min-width: 52px; text-align: center; padding: 6px 10px; border-radius: 12px; font: 800 1rem var(--display); background: var(--brand-soft); color: var(--brand-dark); }
.grade-pill--ok { background: var(--ok-soft); color: var(--ok); }
.grade-pill--err { background: var(--err-soft); color: var(--err); }
.grade-pill--none { color: var(--ink-3); background: #F0EEF5; }
.module { margin-top: 12px; }
.module__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 16px; background: var(--brand-soft); border-radius: var(--r) var(--r) 0 0; border: 1px solid var(--line); border-bottom: 0; }
.module__name { font: 800 1rem var(--display); color: var(--brand-dark); }
.module__body { background: #fff; border: 1px solid var(--line); border-radius: 0 0 var(--r) var(--r); padding: 4px 16px; }
.module__body .list > li { gap: 10px; }
.state-dot { width: 12px; height: 12px; border-radius: 50%; flex: none; background: #D9D4E5; }
.state-dot--passed { background: var(--ok); }
.state-dot--doing { background: var(--pop); box-shadow: 0 0 0 3px var(--pop-soft); }
.state-dot--exam { background: var(--warn); }
.state-dot--failed { background: var(--err); }
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.table th { text-align: left; font-size: .76rem; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-3); padding: 8px 6px; border-bottom: 1px solid var(--line); }
.table td { padding: 10px 6px; border-bottom: 1px solid var(--line); }
.table td.num, .table th.num { text-align: right; }
.legend { display: flex; flex-wrap: wrap; gap: 12px; font-size: .82rem; color: var(--ink-2); margin-top: 10px; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }

/* ---------- formulários ---------- */
.field { display: block; margin-bottom: 14px; }
.field__label { display: block; font-weight: 700; margin-bottom: 6px; font-size: .94rem; }
.input { width: 100%; min-height: 50px; padding: 12px 14px; border: 1.5px solid #D6D0E3; border-radius: 12px; background: #fff; font-size: 1.05rem; transition: border-color .15s, box-shadow .15s; }
.input:focus { outline: 0; border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-line); }
.input--code { letter-spacing: .5em; text-align: center; font: 800 1.5rem var(--display); }
.field__err { color: var(--err); font-size: .88rem; font-weight: 600; margin-top: 6px; }
.check { display: flex; align-items: center; gap: 8px; font-size: .92rem; }
.check input { width: 20px; height: 20px; accent-color: var(--brand); }

/* ---------- login ---------- */
.login { min-height: 100vh; min-height: 100dvh; display: grid; }
@media (min-width: 900px) { .login { grid-template-columns: 1.05fr 1fr; } }
.login__side { display: none; position: relative; overflow: hidden; background: linear-gradient(150deg, var(--brand), var(--brand-deep)); color: #fff; padding: 48px; }
@media (min-width: 900px) { .login__side { display: flex; flex-direction: column; justify-content: space-between; } }
.login__side::before { content: ""; position: absolute; width: 520px; height: 520px; right: -180px; bottom: -200px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--pop) 60%, transparent), transparent 65%); }
.login__claim { font: 800 clamp(2rem, 1.2rem + 2.2vw, 3rem)/1.08 var(--display); letter-spacing: -.03em; max-width: 14ch; position: relative; }
.login__claim em { font-style: normal; color: var(--pop); }
.login__feats { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 12px; position: relative; }
.login__feats li { display: flex; align-items: center; gap: 12px; font-weight: 600; }
.login__feats .ic { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: rgba(255,255,255,.14); }
.login__main { display: flex; flex-direction: column; justify-content: center; padding: 28px 20px 40px; background: #fff; }
.login__box { width: min(420px, 100%); margin-inline: auto; }
.login__brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); margin-bottom: 28px; }
.login__brand .brand__mark { width: 44px; height: 44px; font-size: 1.3rem; }
.login__brand .brand__logo { height: 44px; }
.login__brand strong { font: 700 1.05rem var(--display); }
.login__title { font: 800 1.8rem/1.15 var(--display); letter-spacing: -.02em; }
.login__lead { color: var(--ink-2); margin: 6px 0 22px; }
.login__switch { display: flex; gap: 4px; background: var(--bg); padding: 4px; border-radius: 999px; margin-bottom: 20px; }
.login__switch a { flex: 1; text-align: center; padding: 9px; border-radius: 999px; text-decoration: none; font-weight: 700; color: var(--ink-2); font-size: .92rem; }
.login__switch a.is-here { background: #fff; color: var(--brand); box-shadow: var(--shadow); }
.login__help { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); font-size: .92rem; color: var(--ink-2); display: grid; gap: 10px; }
.login__help a { font-weight: 700; }
.pw { position: relative; }
.pw .input { padding-right: 56px; }
.pw button { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); background: none; border: 0; padding: 8px; color: var(--ink-2); cursor: pointer; border-radius: 8px; }

/* ---------- comprovante (impressão) ---------- */
.receipt { background: #fff; max-width: 720px; margin: 24px auto; padding: 32px; border-radius: var(--r); box-shadow: var(--shadow); }
.receipt__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; border-bottom: 2px solid var(--brand); padding-bottom: 16px; margin-bottom: 20px; }
.receipt__title { font: 800 1.3rem var(--display); }
.receipt .kv dd { text-align: left; }
.receipt__foot { margin-top: 24px; font-size: .8rem; color: var(--ink-3); }
@media print {
    body { background: #fff; }
    .no-print { display: none !important; }
    .receipt { box-shadow: none; margin: 0; padding: 0; max-width: none; }
}

.flash { margin-bottom: 16px; }
.empty-state { text-align: center; padding: 28px 16px; color: var(--ink-2); }
.empty-state .icon { margin: 0 auto 8px; color: var(--ok); }

/* ==========================================================================
   Avisos que piscam: "!" no menu, número de materiais novos e faixas no topo.
   Cores do financeiro: laranja (vai vencer), vermelho (vence amanhã/hoje/atrasada),
   preto (atraso longo → renegociar), verde (acabou de pagar; some sozinho).
   ========================================================================== */
:root { --orange: #E8590C; --black: #111018; --green: #12915A; }
.topnav a { position: relative; }
.navalert, .navcount {
    display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px;
    font: 900 .78rem/1 var(--text); color: #fff; margin-left: 2px; box-shadow: 0 0 0 2px #fff;
}
.tabbar .navalert, .tabbar .navcount { position: absolute; top: -6px; right: -12px; }
.navalert--orange { background: var(--orange); }
.navalert--red { background: var(--err); }
.navalert--black { background: var(--black); box-shadow: 0 0 0 2px var(--pop); }
.navalert--green { background: var(--green); }
.navcount { background: var(--pop); color: var(--ink); }
.navalert--orange, .navalert--red, .navalert--black { animation: blink 1s ease-in-out infinite, glow 1.6s ease-out infinite; }
.navcount { animation: bounce 1.4s ease-in-out infinite, glow-pop 1.6s ease-out infinite; }
.navalert--green { animation: pop-in .5s ease-out both; }
@keyframes blink { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .55; transform: scale(1.18); } }
@keyframes glow { 0% { box-shadow: 0 0 0 2px #fff, 0 0 0 2px currentColor; } 100% { box-shadow: 0 0 0 2px #fff, 0 0 0 12px transparent; } }
.navalert--orange { color: var(--orange); } .navalert--red { color: var(--err); } .navalert--black { color: var(--black); }
.navalert--orange, .navalert--red, .navalert--black { -webkit-text-fill-color: #fff; }
@keyframes glow-pop { 0% { box-shadow: 0 0 0 2px #fff, 0 0 0 2px var(--pop); } 100% { box-shadow: 0 0 0 2px #fff, 0 0 0 12px transparent; } }
@keyframes bounce { 0%, 100% { transform: translateY(0); } 40% { transform: translateY(-4px); } 60% { transform: translateY(0); } }
@keyframes pop-in { 0% { transform: scale(0); } 70% { transform: scale(1.25); } 100% { transform: scale(1); } }

.notice { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: var(--r); margin-bottom: 14px;
    color: #fff; text-decoration: none; position: relative; overflow: hidden; flex-wrap: wrap; }
.notice__ic { width: 38px; height: 38px; flex: none; border-radius: 50%; display: grid; place-items: center; font: 900 1.25rem var(--display);
    background: rgba(255,255,255,.22); }
.notice__body { flex: 1 1 220px; min-width: 0; }
.notice__title { font: 800 1rem/1.25 var(--display); }
.notice__text { font-size: .9rem; opacity: .95; margin-top: 2px; }
.notice__actions { display: flex; gap: 8px; flex-wrap: wrap; }
.notice__close { background: rgba(255,255,255,.2); border: 0; color: #fff; width: 34px; height: 34px; border-radius: 50%; font-size: 1.3rem; cursor: pointer; }
.notice--orange { background: linear-gradient(135deg, #FFA94D, #F76707); color: #3B1D00; animation: pulse-orange 1.8s ease-out infinite; }
.notice--red { background: linear-gradient(135deg, #E03131, #B3171D); animation: pulse-red 1.4s ease-out infinite; }
.notice--black { background: linear-gradient(135deg, #2B2834, var(--black)); border: 2px solid var(--pop); animation: pulse-black 1.4s ease-out infinite; }
.notice--black .notice__ic { background: var(--pop); color: var(--black); }
.notice--green { background: linear-gradient(135deg, #20A86B, var(--green)); animation: slide-in .5s ease-out both; }
.notice--material { background: linear-gradient(135deg, var(--brand), var(--brand-deep)); animation: pulse-brand 1.8s ease-out infinite; }
.notice--material .notice__ic { background: var(--pop); color: var(--ink); animation: bounce 1.4s ease-in-out infinite; }
.notice--orange .notice__ic, .notice--red .notice__ic, .notice--black .notice__ic { animation: blink 1s ease-in-out infinite; }
.notice::after { content: ""; position: absolute; inset: 0 auto 0 -40%; width: 30%; transform: skewX(-20deg);
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.25), transparent); animation: shine 3s ease-in-out infinite; pointer-events: none; }
.notice--green::after { display: none; }
@keyframes shine { 0% { left: -40%; } 60%, 100% { left: 130%; } }
@keyframes pulse-orange { 0% { box-shadow: 0 0 0 0 rgba(232,89,12,.55); } 100% { box-shadow: 0 0 0 14px rgba(232,89,12,0); } }
@keyframes pulse-red { 0% { box-shadow: 0 0 0 0 rgba(224,49,49,.6); } 100% { box-shadow: 0 0 0 14px rgba(224,49,49,0); } }
@keyframes pulse-black { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--pop) 70%, transparent); } 100% { box-shadow: 0 0 0 14px transparent; } }
@keyframes pulse-brand { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--brand) 55%, transparent); } 100% { box-shadow: 0 0 0 14px transparent; } }
@keyframes slide-in { from { transform: translateY(-8px); opacity: 0; } to { transform: none; opacity: 1; } }

/* parcela por cor (lista do financeiro) */
.charge--soon { border-left: 4px solid var(--orange); }
.charge--black { border-left: 4px solid var(--black); }
.chip--orange { background: #FFE8D9; color: #B54708; }
.chip--black { background: var(--black); color: #fff; }

/* materiais */
.mat { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 14px 16px; background: #fff;
    border: 1px solid var(--line); border-radius: var(--r); text-decoration: none; color: inherit; box-shadow: var(--shadow); transition: transform .15s, border-color .15s; }
.mat:hover { transform: translateY(-2px); border-color: var(--brand-line); }
.mat + .mat { margin-top: 10px; }
.mat__ic { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand);
    font: 800 .7rem var(--text); text-transform: uppercase; flex-direction: column; }
.mat__title { font-weight: 700; line-height: 1.3; }
.mat__meta { font-size: .82rem; color: var(--ink-2); margin-top: 2px; }
.mat__desc { font-size: .88rem; margin-top: 6px; color: var(--ink); background: var(--bg); padding: 8px 10px; border-radius: 10px; }
.mat.is-new { border: 2px solid var(--pop); box-shadow: 0 0 0 4px var(--pop-soft), var(--shadow); }
.mat.is-new .mat__ic { background: var(--pop); color: var(--ink); }
.new-tag { display: inline-block; background: var(--err); color: #fff; font: 900 .68rem var(--text); letter-spacing: .06em; padding: 2px 7px;
    border-radius: 999px; margin-left: 6px; vertical-align: middle; animation: blink 1s ease-in-out infinite; }

@media (prefers-reduced-motion: reduce) {
    .navalert, .navcount, .notice, .notice__ic, .new-tag, .notice::after { animation: none !important; }
}
.grid > .card + .card { margin-top: 0; }

.notice--orange .notice__ic { background: rgba(255,255,255,.55); color: #B54708; }
.notice--orange .notice__title { color: #3B1D00; }
