/* Sadie Contas · v2 */
:root {
  --bg: #06070A; --bg2: #0E1015; --txt: #EEF1F6; --txt-forte: #F4F6FA; --sub: #8A93A3; --sub2: #9AA3B2; --apagado: #5F6878;
  --linha: rgba(255,255,255,0.07); --linha2: rgba(255,255,255,0.1); --vidro: rgba(255,255,255,0.035); --vidro2: rgba(255,255,255,0.06);
  --verde: #4BE3AC; --laranja: #FFB36B; --vermelho: #FF6B6B; --rosa-claro: #FFB4B4;
  --g: #4BE3AC; --g-rgb: 75,227,172;
  --mono: 'Geist Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --sans: 'Geist', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --seguro-topo: env(safe-area-inset-top, 0px); --seguro-baixo: env(safe-area-inset-bottom, 0px);
  color-scheme: dark;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--txt); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
body { overscroll-behavior: none; }
button, input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; }
:focus-visible { outline: 2px solid var(--g); outline-offset: 2px; }
.ic { width: 20px; height: 20px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ic.p { width: 16px; height: 16px; }
.ic.g { width: 26px; height: 26px; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.oculto { display: none !important; }

#app { position: relative; max-width: 480px; margin: 0 auto; min-height: 100dvh; overflow-x: hidden; }
@media (min-width: 520px) { #app { border-left: 1px solid var(--linha); border-right: 1px solid var(--linha); } }

@keyframes scFoil { 0% { background-position: -60% 0; } 100% { background-position: 160% 0; } }
@keyframes scIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes scUp { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes scPulse { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }
@keyframes scGira { to { transform: rotate(360deg); } }
@keyframes scShake { 10%, 90% { transform: translateX(-2px); } 30%, 70% { transform: translateX(6px); } 50% { transform: translateX(-6px); } }
.anim { animation: scIn .4s ease both; }

/* ---------- carregar ---------- */
.carregar { min-height: 100dvh; display: flex; align-items: center; justify-content: center; }
.spin { width: 28px; height: 28px; border-radius: 50%; border: 2.5px solid rgba(255,255,255,0.12); border-top-color: var(--g); animation: scGira .8s linear infinite; }

/* ---------- login ---------- */
.login { min-height: 100dvh; display: flex; flex-direction: column; animation: scIn .5s ease both; }
.login-foto { position: relative; height: 54dvh; min-height: 330px; max-height: 470px; overflow: hidden; }
.login-foto img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; display: block; }
.login-foto::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6,7,10,.15) 0%, rgba(6,7,10,.1) 45%, var(--bg) 100%); }
.selo { position: absolute; z-index: 2; top: calc(18px + var(--seguro-topo)); left: 20px; display: flex; align-items: center; gap: 8px; padding: 7px 12px 7px 9px; border-radius: 999px; background: rgba(6,7,10,.55); border: 1px solid rgba(255,255,255,.14); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.selo i { width: 8px; height: 8px; border-radius: 50%; background: var(--verde); box-shadow: 0 0 10px var(--verde); animation: scPulse 2.4s ease infinite; }
.selo span { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; color: #DDE3EC; }
.login-tit { position: relative; z-index: 2; padding: 0 24px; margin-top: -92px; }
.kicker { font-family: var(--mono); font-size: 11px; letter-spacing: .22em; color: var(--verde); }
.login-tit h1 { margin: 6px 0 0; font-size: 44px; line-height: 1; font-weight: 650; letter-spacing: -.035em; color: var(--txt-forte); }
.login-tit p { margin: 12px 0 0; font-size: 15px; line-height: 1.45; color: var(--sub2); }
.quem { padding: 28px 24px 0; }
.quem-lbl { font-size: 13px; color: var(--sub); margin-bottom: 14px; }
.quem-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.pessoa { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 0; background: none; border: 0; color: #C4CBD6; font-size: 12px; }
.av { --c: 75,227,172; display: flex; align-items: center; justify-content: center; border-radius: 50%; font-weight: 600; color: var(--txt-forte);
  background: radial-gradient(circle at 30% 25%, rgba(var(--c),.45), rgba(var(--c),.08) 70%); box-shadow: inset 0 0 0 1.5px rgba(var(--c),.7), 0 10px 24px -10px rgb(var(--c)); }
.av.m { width: 56px; height: 56px; font-size: 20px; }
.av.l { width: 84px; height: 84px; font-size: 32px; box-shadow: inset 0 0 0 2px rgba(var(--c),.75), 0 20px 40px -14px rgb(var(--c)); }
.login-rodape { margin-top: auto; padding: 24px 24px calc(24px + var(--seguro-baixo)); display: flex; align-items: center; gap: 8px; color: var(--apagado); font-size: 12px; }

/* ---------- PIN ---------- */
.pin { min-height: 100dvh; display: flex; flex-direction: column; align-items: center; padding: calc(20px + var(--seguro-topo)) 24px calc(24px + var(--seguro-baixo)); animation: scIn .35s ease both; }
.pin-topo { align-self: stretch; display: flex; }
.bt-ic { width: 44px; height: 44px; border-radius: 14px; background: var(--vidro2); border: 1px solid rgba(255,255,255,.08); color: #DDE3EC; display: flex; align-items: center; justify-content: center; }
.pin .av { margin-top: 22px; }
.pin h2 { margin: 18px 0 0; font-size: 24px; font-weight: 600; letter-spacing: -.02em; color: var(--txt-forte); }
.pin p { margin: 6px 0 0; font-size: 14px; color: var(--sub); text-align: center; }
.pontos { display: flex; gap: 16px; margin: 28px 0 32px; }
.pontos.erro { animation: scShake .45s ease; }
.ponto { width: 14px; height: 14px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.3); transition: background .15s, box-shadow .15s; }
.ponto.on { background: var(--g); box-shadow: 0 0 14px var(--g); }
.teclado { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; width: 100%; max-width: 300px; }
.tecla { height: 66px; border-radius: 22px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08); color: var(--txt-forte); font-size: 26px; font-weight: 450; transition: background .12s, transform .08s; }
.tecla:active { background: rgba(255,255,255,.12); transform: scale(.97); }
.tecla.limpa { background: none; border: 0; color: var(--sub); display: flex; align-items: center; justify-content: center; }
.pin-msg { min-height: 20px; margin-top: 18px; font-size: 13.5px; color: var(--rosa-claro); text-align: center; }
.pin-ajuda { margin-top: auto; padding-top: 20px; font-size: 12px; color: var(--apagado); }

/* ---------- app ---------- */
.ecra { position: relative; min-height: 100dvh; padding-bottom: calc(120px + var(--seguro-baixo)); animation: scIn .45s ease both; }
.aura { position: absolute; left: 0; right: 0; top: 0; height: 540px; pointer-events: none; background: radial-gradient(90% 70% at 50% 0%, rgba(var(--g-rgb),.20) 0%, rgba(var(--g-rgb),.05) 45%, rgba(6,7,10,0) 75%); transition: background .4s; }
.moldura, .barra i, .fab, .tile, .mini-barra i { transition: box-shadow .4s, background .4s, border-color .4s; }
.moldura { border-color: rgba(var(--g-rgb),.45) !important; }
.topo { position: relative; display: flex; align-items: center; gap: 12px; padding: calc(18px + var(--seguro-topo)) 20px 0; }
.topo img { width: 40px; height: 40px; border-radius: 14px; object-fit: cover; border: 1px solid rgba(255,255,255,.16); }
.topo .nome { flex: 1; min-width: 0; }
.topo .nome b { display: block; font-size: 16px; font-weight: 600; letter-spacing: -.01em; color: var(--txt-forte); }
.topo .nome span { font-size: 12px; color: var(--sub); }
.bt-publicar.feito { background: rgba(75,227,172,.14); color: #CFF7E7; border: 1px solid rgba(75,227,172,.4); }
.bt-publicar { height: 40px; padding: 0 14px 0 12px; border-radius: 14px; background: var(--txt-forte); color: var(--bg); border: 0; font-weight: 600; font-size: 13px; display: flex; align-items: center; gap: 7px; }
.bt-perfil { position: relative; width: 40px; height: 40px; border-radius: 14px; background: var(--vidro2); border: 1px solid var(--linha2); color: #DDE3EC; display: flex; align-items: center; justify-content: center; }
.bt-perfil .dot { position: absolute; top: 8px; right: 9px; width: 8px; height: 8px; border-radius: 50%; background: var(--g); box-shadow: 0 0 0 2px var(--bg); }

.grupos { position: relative; display: flex; gap: 8px; padding: 18px 20px 0; }
.grupo-pill { --c: 75,227,172; flex: 1; min-width: 0; height: 40px; border-radius: 14px; font-size: 13px; font-weight: 600; display: flex; align-items: center; justify-content: center; gap: 7px; background: rgba(255,255,255,.04); color: var(--sub); border: 1px solid var(--linha); white-space: nowrap; transition: all .2s; }
.grupo-pill i { width: 8px; height: 8px; border-radius: 50%; background: rgb(var(--c)); opacity: .6; flex: none; }
.grupo-pill.sel { background: rgba(var(--c),.16); color: var(--txt-forte); border-color: rgba(var(--c),.5); }
.grupo-pill.sel i { opacity: 1; box-shadow: 0 0 10px rgb(var(--c)); }

.faixa-admin { position: relative; margin: 14px 20px 0; padding: 10px 12px; border-radius: 14px; background: rgba(var(--g-rgb),.10); border: 1px solid rgba(var(--g-rgb),.35); display: flex; align-items: center; gap: 10px; font-size: 12.5px; color: #DDE3EC; }
.faixa-admin span { flex: 1; }
.faixa-admin b { color: var(--txt-forte); }
.faixa-admin button { height: 30px; padding: 0 10px; border-radius: 10px; border: 0; background: rgba(255,255,255,.1); color: var(--txt-forte); font-size: 12px; font-weight: 600; white-space: nowrap; }

/* cartão da família */
.moldura-w { position: relative; padding: 18px 20px 0; }
.moldura { position: relative; height: 212px; border-radius: 26px; overflow: hidden; border: 1px solid rgba(255,255,255,.16); box-shadow: 0 30px 60px -28px rgba(var(--g-rgb),.75), inset 0 1px 0 rgba(255,255,255,.18); background: radial-gradient(120% 120% at 20% 0%, rgba(var(--g-rgb),.55), rgba(var(--g-rgb),.12) 55%, #0B0D12 100%); transform: translateZ(0); }
.moldura .foto { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.moldura .foto.falhou { display: none; }
.moldura .mono-g { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 92px; font-weight: 700; letter-spacing: -.06em; color: rgba(255,255,255,.09); }
.moldura .sombra { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6,7,10,.35) 0%, rgba(6,7,10,0) 30%, rgba(6,7,10,.25) 55%, rgba(6,7,10,.92) 100%); }
.moldura .linhas { position: absolute; inset: 0; background-image: repeating-linear-gradient(0deg, rgba(255,255,255,.035) 0 1px, transparent 1px 4px); mix-blend-mode: overlay; }
.moldura .foil { position: absolute; inset: 0; background: linear-gradient(105deg, transparent 30%, rgba(255,255,255,.20) 42%, rgba(120,255,214,.16) 48%, rgba(150,170,255,.16) 54%, rgba(255,150,205,.12) 60%, transparent 70%); background-size: 220% 100%; mix-blend-mode: screen; animation: scFoil 7s linear infinite; }
.moldura .cab { position: absolute; top: 16px; left: 18px; right: 16px; display: flex; justify-content: space-between; align-items: center; }
.moldura .cab span:first-child { font-family: var(--mono); font-size: 10.5px; letter-spacing: .2em; color: rgba(255,255,255,.82); }
.chip { font-size: 10.5px; font-weight: 600; letter-spacing: .04em; padding: 4px 9px; border-radius: 999px; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); background: rgba(6,7,10,.45); color: #DDE3EC; border: 1px solid rgba(255,255,255,.18); }
.chip.ok { background: rgba(75,227,172,.22); color: #CFF7E7; border-color: rgba(75,227,172,.45); }
.moldura .base { position: absolute; left: 18px; right: 18px; bottom: 16px; }
.moldura .base h2 { margin: 0; font-size: 22px; font-weight: 650; letter-spacing: -.02em; color: #fff; }
.moldura .linha-v { display: flex; align-items: flex-end; justify-content: space-between; margin-top: 8px; }
.moldura .lbl { font-size: 11px; color: rgba(255,255,255,.7); }
.valor-g { font-family: var(--mono); color: #fff; line-height: 1; margin-top: 5px; }
.valor-g b { font-size: 30px; font-weight: 500; letter-spacing: -.03em; }
.valor-g span { font-size: 16px; color: rgba(255,255,255,.72); }
.pct { text-align: right; }
.pct b { display: block; font-family: var(--mono); font-size: 18px; font-weight: 500; color: var(--g); }
.barra { height: 4px; border-radius: 4px; background: rgba(255,255,255,.16); margin-top: 10px; overflow: hidden; }
.barra i { display: block; height: 100%; border-radius: 4px; background: var(--g); box-shadow: 0 0 12px var(--g); transition: width .5s ease; }

/* meses */
.meses { position: relative; display: flex; align-items: center; gap: 6px; padding: 18px 14px 0; }
.meses .seta { width: 36px; height: 56px; flex: none; border-radius: 12px; background: none; border: 0; color: var(--sub); display: flex; align-items: center; justify-content: center; }
.meses-grid { flex: 1; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.mes { position: relative; height: 56px; border-radius: 14px; border: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; background: rgba(255,255,255,.04); color: var(--sub2); transition: background .2s, color .2s; }
.mes b { font-size: 12px; font-weight: 600; letter-spacing: .06em; }
.mes span { font-family: var(--mono); font-size: 10.5px; opacity: .7; }
.mes i { position: absolute; bottom: 6px; width: 4px; height: 4px; border-radius: 50%; }
.mes.pub i { background: var(--verde); }
.mes.hoje b { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
.mes.sel { background: var(--txt-forte); color: var(--bg); }
.mes.sel.pub i { background: var(--bg); }
.voltar-hoje { display: flex; justify-content: center; padding-top: 8px; }
.voltar-hoje button { height: 30px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--linha2); background: var(--vidro); color: var(--sub2); font-size: 12px; font-weight: 600; }

/* KPIs */
.kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding: 16px 20px 0; }
.kpi { padding: 13px 14px; border-radius: 18px; background: rgba(255,255,255,.04); border: 1px solid var(--linha); min-width: 0; }
.kpi .t { display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--sub); }
.kpi .t i { width: 6px; height: 6px; border-radius: 50%; flex: none; }
.kpi .v { font-family: var(--mono); font-size: 16px; margin-top: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi.saldo { background: rgba(75,227,172,.08); border-color: rgba(75,227,172,.28); }
.kpi.saldo .t { color: #A8F2D5; }
.kpi.saldo.neg { background: rgba(255,107,107,.08); border-color: rgba(255,107,107,.3); }
.kpi.saldo.neg .t { color: var(--rosa-claro); }
.kpi-nota { padding: 8px 24px 0; font-size: 11.5px; color: var(--apagado); }

/* abas */
.abas-w { position: sticky; top: 0; z-index: 5; padding: 14px 20px 6px; background: linear-gradient(180deg, var(--bg) 70%, rgba(6,7,10,0)); }
.abas { display: flex; gap: 4px; padding: 4px; border-radius: 16px; background: rgba(255,255,255,.045); border: 1px solid var(--linha); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.aba { --c: 255,255,255; flex: 1; min-width: 0; height: 40px; border-radius: 12px; border: 1px solid transparent; background: transparent; color: var(--sub); font-size: 13px; font-weight: 600; display: flex; align-items: center; justify-content: center; gap: 6px; transition: background .25s, color .25s, border-color .25s; }
.aba i { width: 6px; height: 6px; border-radius: 50%; background: rgb(var(--c)); opacity: .55; flex: none; transition: opacity .25s, box-shadow .25s; }
.aba.sel { background: rgba(var(--c),.16); color: var(--txt-forte); border-color: rgba(var(--c),.45); }
.aba.sel i { opacity: 1; box-shadow: 0 0 10px rgb(var(--c)); }
@media (max-width: 380px) { .aba { font-size: 12px; gap: 4px; } .aba i { display: none; } }

/* listas */
.conteudo { padding: 0 20px; }
.sec { margin-top: 16px; animation: scIn .35s ease both; }
.sec-cab { display: flex; justify-content: space-between; align-items: baseline; padding: 0 4px 8px; gap: 8px; }
.sec-cab span:first-child { font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--sub); }
.sec-cab span:last-child { font-family: var(--mono); font-size: 12px; color: var(--g); }
.sec-cab span:first-child { border-left: 2px solid var(--g); padding-left: 8px; }
.lista { background: var(--vidro); border: 1px solid var(--linha); border-radius: 20px; overflow: hidden; }
.linha { display: flex; align-items: center; gap: 12px; padding: 12px 14px; width: 100%; background: none; border: 0; text-align: left; color: inherit; }
.linha + .linha { border-top: 1px solid rgba(255,255,255,.06); }
.linha.feito { opacity: .62; }
.linha:active { background: rgba(255,255,255,.03); }
.tile { width: 42px; height: 42px; border-radius: 13px; background: rgba(var(--g-rgb),.12); color: #E9EEF5; display: flex; align-items: center; justify-content: center; flex: none; }
.tile.verde { background: rgba(75,227,172,.12); color: var(--verde); }
.tile.laranja { background: rgba(255,179,107,.12); color: var(--laranja); }
.meio { flex: 1; min-width: 0; }
.meio .d { font-size: 14.5px; font-weight: 500; color: var(--txt); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.meio .s { display: flex; align-items: center; gap: 6px; margin-top: 3px; font-size: 12px; color: var(--sub); white-space: nowrap; overflow: hidden; }
.tag { font-family: var(--mono); font-size: 10.5px; padding: 2px 6px; border-radius: 6px; flex: none; }
.tag.fixa { color: #C8B6FF; background: rgba(160,130,255,.14); }
.tag.parc { color: #BFD6FF; background: rgba(110,168,255,.14); }
.tag.ultima { color: var(--bg); background: var(--verde); }
.tag.unica { color: #DDE3EC; background: rgba(255,255,255,.08); }
.mini-barra { height: 3px; width: 130px; max-width: 100%; border-radius: 3px; background: rgba(255,255,255,.08); margin-top: 7px; overflow: hidden; }
.mini-barra i { display: block; height: 100%; border-radius: 3px; background: var(--g); }
.dir { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex: none; }
.dir .v { font-family: var(--mono); font-size: 14.5px; color: var(--txt-forte); }
.feito .dir .v { text-decoration: line-through; text-decoration-color: rgba(255,255,255,.35); }
.estado { font-size: 11px; font-weight: 600; padding: 4px 9px; border-radius: 999px; border: 0; color: var(--laranja); background: rgba(255,179,107,.12); }
.estado.ok { color: var(--verde); background: rgba(75,227,172,.12); }
.estado.cinza { color: var(--sub2); background: rgba(255,255,255,.06); }
.nota-rodape { display: flex; align-items: center; gap: 8px; margin: 16px 4px 0; font-size: 12px; color: var(--apagado); line-height: 1.4; }
.aviso { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 14px; background: var(--vidro); font-size: 12px; color: var(--sub2); margin-top: 16px; }
.vazio { margin-top: 16px; border-radius: 24px; border: 1px dashed rgba(255,255,255,.16); padding: 28px 22px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; animation: scIn .35s ease both; }
.vazio img { width: 64px; height: 64px; border-radius: 22px; object-fit: cover; }
.vazio b { font-size: 17px; font-weight: 600; color: var(--txt-forte); margin-top: 4px; }
.vazio p { margin: 0; font-size: 13.5px; line-height: 1.5; color: var(--sub); max-width: 270px; }
.vazio.peq { padding: 18px; gap: 0; }
.vazio.peq p { font-size: 13px; color: var(--apagado); }
.bt-sec { margin-top: 6px; height: 44px; padding: 0 18px; border-radius: 14px; background: rgba(var(--g-rgb),.14); color: var(--g); border: 1px solid rgba(var(--g-rgb),.3); font-size: 14px; font-weight: 600; display: inline-flex; align-items: center; gap: 8px; }
.bt-linha { width: 100%; margin-top: 10px; height: 46px; border-radius: 16px; border: 1px dashed rgba(255,255,255,.16); background: none; color: var(--sub2); font-size: 13.5px; font-weight: 600; display: flex; align-items: center; justify-content: center; gap: 8px; }

/* cartões */
.cartao { border-radius: 20px; background: var(--vidro); border: 1px solid var(--linha); padding: 14px; display: flex; flex-direction: column; gap: 12px; width: 100%; text-align: left; color: inherit; }
.cartao + .cartao { margin-top: 12px; }
.cartao-cab { display: flex; align-items: center; gap: 12px; }
.mini-cartao { position: relative; width: 52px; height: 34px; border-radius: 7px; flex: none; box-shadow: inset 0 0 0 1px rgba(255,255,255,.18); }
.mini-cartao::before { content: ''; position: absolute; left: 7px; top: 8px; width: 11px; height: 8px; border-radius: 2px; background: linear-gradient(135deg, #F7E2A0, #B99447); }
.campos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.campo { padding: 9px 10px; border-radius: 12px; background: rgba(255,255,255,.04); min-width: 0; }
.campo.vz { background: none; border: 1px dashed rgba(255,255,255,.16); }
.campo small { display: block; font-size: 10.5px; color: var(--sub); }
.campo b { display: block; font-family: var(--mono); font-weight: 400; font-size: 13px; margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.uso { height: 6px; border-radius: 6px; background: rgba(255,255,255,.07); overflow: hidden; }
.uso i { display: block; height: 100%; border-radius: 6px; }
.uso-t { font-size: 11px; color: var(--apagado); margin-top: 6px; }

/* avatar pequeno */
.av-p { width: 38px; height: 38px; border-radius: 50%; flex: none; display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 14px; color: var(--txt-forte); background: rgba(255,255,255,.08); }

/* FAB */
.fab { position: fixed; z-index: 15; bottom: calc(24px + var(--seguro-baixo)); right: max(20px, calc(50vw - 220px)); width: 60px; height: 60px; border-radius: 22px; border: 0; background: var(--g); color: var(--bg); display: flex; align-items: center; justify-content: center; box-shadow: 0 18px 40px -12px var(--g), 0 0 0 6px rgba(6,7,10,.6); transition: transform .15s; }
.fab:active { transform: scale(.94); }

/* banner notificações */
.banner { position: relative; margin: 16px 20px 0; padding: 12px 14px; border-radius: 18px; background: linear-gradient(135deg, rgba(var(--g-rgb),.16), rgba(var(--g-rgb),.04)); border: 1px solid rgba(var(--g-rgb),.35); display: flex; align-items: center; gap: 12px; }
.banner .meio b { display: block; font-size: 13.5px; color: var(--txt-forte); }
.banner .meio span { font-size: 12px; color: var(--sub2); }
.banner button.sim { height: 34px; padding: 0 12px; border-radius: 11px; border: 0; background: var(--g); color: var(--bg); font-weight: 650; font-size: 12.5px; }
.banner button.nao { width: 30px; height: 30px; border-radius: 10px; border: 0; background: none; color: var(--sub); display: flex; align-items: center; justify-content: center; }

/* ---------- folhas (sheets) ---------- */
.veu { position: fixed; inset: 0; z-index: 40; background: rgba(3,4,6,.66); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); display: flex; flex-direction: column; justify-content: flex-end; animation: scIn .2s ease both; }
.folha { width: 100%; max-width: 480px; margin: 0 auto; max-height: 92dvh; overflow-y: auto; border-radius: 30px 30px 0 0; background: var(--bg2); border-top: 1px solid var(--linha2); padding: 10px 20px calc(24px + var(--seguro-baixo)); animation: scUp .35s cubic-bezier(.2,.8,.2,1) both; }
.puxador { width: 40px; height: 5px; border-radius: 5px; background: rgba(255,255,255,.18); margin: 0 auto 16px; }
.folha h3 { margin: 0; font-size: 20px; font-weight: 650; letter-spacing: -.02em; color: var(--txt-forte); }
.folha .sub-h { font-size: 13.5px; color: var(--sub); margin-top: 4px; line-height: 1.45; }
.form { display: flex; flex-direction: column; gap: 14px; margin-top: 16px; }
.form label, .grp-lbl { display: flex; flex-direction: column; gap: 6px; font-size: 12px; color: var(--sub); }
.inp { height: 48px; border-radius: 14px; background: rgba(255,255,255,.05); border: 1px solid var(--linha2); color: var(--txt-forte); padding: 0 14px; font-size: 16px; width: 100%; min-width: 0; }
.inp:focus { border-color: rgba(var(--g-rgb),.6); outline: none; box-shadow: 0 0 0 3px rgba(var(--g-rgb),.15); }
textarea.inp { height: 76px; padding: 12px 14px; resize: none; }
select.inp { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, #8A93A3 50%), linear-gradient(135deg, #8A93A3 50%, transparent 50%); background-position: calc(100% - 20px) 21px, calc(100% - 15px) 21px; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 36px; }
input[type="month"].inp, input[type="date"].inp { color-scheme: dark; }
.dupla { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.seg { display: flex; gap: 4px; padding: 4px; border-radius: 16px; background: rgba(255,255,255,.045); border: 1px solid var(--linha); }
.seg button { flex: 1; height: 40px; border-radius: 12px; border: 0; background: transparent; color: var(--sub); font-size: 13.5px; font-weight: 600; }
.seg button.sel { background: var(--txt-forte); color: var(--bg); }
.previa { padding: 13px 14px; border-radius: 16px; background: rgba(75,227,172,.07); border: 1px solid rgba(75,227,172,.2); font-size: 13px; line-height: 1.5; color: #CFF7E7; }
.bt-p { height: 54px; border-radius: 18px; border: 0; background: var(--txt-forte); color: var(--bg); font-size: 15.5px; font-weight: 650; display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; }
.bt-p.verde { background: var(--verde); }
.bt-p:disabled { opacity: .5; }
.bt-s { height: 50px; border-radius: 16px; background: rgba(255,255,255,.07); border: 1px solid var(--linha2); color: var(--txt-forte); font-size: 14.5px; font-weight: 600; width: 100%; display: flex; align-items: center; justify-content: center; gap: 8px; }
.bt-s.perigo { color: #FF9C9C; background: rgba(255,107,107,.08); border-color: rgba(255,107,107,.25); }
.acoes { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }
.erro-f { font-size: 13px; color: #FF9C9C; min-height: 0; }
.erro-f:empty { display: none; }
.check { display: flex !important; flex-direction: row !important; align-items: center; gap: 10px !important; font-size: 14px !important; color: var(--txt) !important; padding: 4px 0; }
.check input { width: 22px; height: 22px; accent-color: var(--verde); }
.det { display: grid; grid-template-columns: auto 1fr; gap: 8px 14px; margin-top: 16px; font-size: 13.5px; }
.det dt { color: var(--sub); }
.det dd { margin: 0; color: var(--txt); text-align: right; }
.notif { display: flex; gap: 12px; align-items: flex-start; padding: 13px 14px; border-radius: 22px; background: rgba(255,255,255,.08); border: 1px solid var(--linha2); }
.notif img { width: 38px; height: 38px; border-radius: 10px; object-fit: cover; flex: none; }
.notif .topo-n { display: flex; justify-content: space-between; font-size: 12px; color: var(--sub2); }
.notif .topo-n b { color: #DDE3EC; }
.notif .t { font-size: 14px; font-weight: 600; color: var(--txt-forte); margin-top: 3px; }
.notif .c { font-size: 13px; color: #C4CBD6; margin-top: 2px; line-height: 1.4; }
.passos { margin: 14px 0 0; padding-left: 20px; font-size: 14px; line-height: 1.6; color: var(--txt); }
.passos li + li { margin-top: 6px; }
.ok-grande { width: 64px; height: 64px; border-radius: 22px; background: rgba(75,227,172,.14); border: 1px solid rgba(75,227,172,.35); display: flex; align-items: center; justify-content: center; color: var(--verde); margin: 6px auto 0; }

/* ---------- resumo ---------- */
.resumo-cab { position: relative; display: flex; align-items: center; justify-content: space-between; padding: calc(18px + var(--seguro-topo)) 20px 0; }
.resumo-cab span { font-family: var(--mono); font-size: 11px; letter-spacing: .18em; color: var(--sub); }
.resumo-tit { position: relative; text-align: center; padding: 14px 24px 0; animation: scUp .5s ease both; }
.resumo-tit .g { font-size: 14px; color: var(--g); font-weight: 600; }
.resumo-tit h2 { margin: 4px 0 0; font-size: 30px; font-weight: 650; letter-spacing: -.03em; color: var(--txt-forte); text-transform: capitalize; }
.recibo { margin: 24px auto 0; width: calc(100% - 40px); max-width: 340px; padding: 22px 20px; border-radius: 26px; background: rgba(255,255,255,.05); border: 1px solid var(--linha2); box-shadow: 0 30px 70px -30px var(--g); text-align: center; }
.recibo .l { font-size: 12.5px; color: var(--sub2); }
.recibo .valor-g b { font-size: 46px; letter-spacing: -.04em; }
.recibo .valor-g span { font-size: 22px; color: var(--sub2); }
.brk { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-top: 18px; }
.brk div { padding: 9px 4px; border-radius: 12px; background: rgba(255,255,255,.05); }
.brk small { display: block; font-size: 10.5px; color: var(--sub); }
.brk b { display: block; font-family: var(--mono); font-weight: 400; font-size: 12.5px; color: var(--txt); margin-top: 3px; }
.linha.r { gap: 12px; }
.linha.r .ic { opacity: .8; width: 18px; height: 18px; }
.linha.r .d { flex: 1; min-width: 0; font-size: 14px; color: #DDE3EC; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.linha.r small { font-size: 11.5px; color: var(--sub); }
.linha.r .v { font-family: var(--mono); font-size: 13.5px; color: var(--txt-forte); min-width: 78px; text-align: right; }
.caixa { margin-top: 14px; padding: 14px 16px; border-radius: 18px; background: var(--vidro); border: 1px solid var(--linha); display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 13.5px; color: var(--sub2); }
.caixa.verde { background: rgba(75,227,172,.08); border-color: rgba(75,227,172,.25); color: #CFF7E7; justify-content: flex-start; line-height: 1.4; }

/* ---------- toast ---------- */
.toast { position: fixed; z-index: 60; left: 50%; bottom: calc(100px + var(--seguro-baixo)); transform: translateX(-50%); max-width: calc(100% - 40px); padding: 12px 16px; border-radius: 16px; background: #1A1D24; border: 1px solid var(--linha2); color: var(--txt-forte); font-size: 13.5px; box-shadow: 0 20px 40px -12px rgba(0,0,0,.6); display: flex; align-items: center; gap: 10px; animation: scUp .3s ease both; }
.toast.erro { border-color: rgba(255,107,107,.4); }

/* ---------- tablet e computador ---------- */
@media (min-width: 600px) and (max-width: 959px) {
  #app { max-width: 640px; }
  .moldura { height: 240px; }
}
@media (min-width: 960px) {
  #app { max-width: none; border: 0 !important; }
  /* login em duas metades */
  .login { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(420px, 1fr); min-height: 100vh; }
  .login-foto { height: 100vh; max-height: none; min-height: 0; position: sticky; top: 0; }
  .login-foto::after { background: linear-gradient(90deg, rgba(6,7,10,0) 55%, var(--bg) 100%); }
  .login-lado { display: flex; flex-direction: column; justify-content: center; padding: 48px 64px; max-width: 620px; }
  .login-tit { margin-top: 0; padding: 0; }
  .login-tit h1 { font-size: 56px; }
  .quem { padding: 40px 0 0; }
  .quem-grid { gap: 16px; }
  .av.m { width: 68px; height: 68px; font-size: 24px; }
  .pessoa { font-size: 13.5px; }
  .login-rodape { margin-top: 48px; padding: 0; }
  /* PIN ao centro */
  .pin { max-width: 440px; margin: 0 auto; justify-content: center; }
  .pin-ajuda { margin-top: 32px; }
  /* app em duas colunas */
  .ecra.grade { display: grid; grid-template-columns: minmax(380px, 440px) minmax(0, 1fr); column-gap: 40px; align-items: start; max-width: 1280px; margin: 0 auto; padding: 0 40px 60px; }
  .ecra.grade > .aura { left: -40px; right: -40px; }
  .col-a { position: sticky; top: 0; max-height: 100vh; overflow-y: auto; scrollbar-width: none; padding-bottom: 28px; }
  .col-a::-webkit-scrollbar { display: none; }
  .col-a > * { padding-left: 0 !important; padding-right: 0 !important; }
  .col-a .faixa-admin, .col-a .banner { margin-left: 0; margin-right: 0; }
  .col-a .meses { padding-left: 0; padding-right: 0; }
  .col-b { min-width: 0; padding-top: 18px; }
  .col-b .abas-w { padding: 0 0 8px; top: 0; }
  .col-b .abas-w .abas { margin-top: 0; }
  .col-b .conteudo { padding: 0; }
  .moldura { height: 236px; }
  .aba { height: 46px; font-size: 14px; }
  .linha { padding: 14px 18px; }
  .lista .linha:hover { background: rgba(255,255,255,.025); }
  .cartao:hover:not(:disabled) { border-color: rgba(var(--g-rgb),.35); }
  .fab { right: 40px; bottom: 40px; }
  .ecra:not(.grade) { max-width: 640px; margin: 0 auto; }
  /* folhas como janela ao centro */
  .veu { justify-content: center; align-items: center; padding: 24px; }
  .folha { border-radius: 28px; border: 1px solid var(--linha2); max-width: 540px; max-height: 88vh; padding: 26px 28px 28px; }
  .puxador { display: none; }
  .toast { bottom: 40px; }
}
@media (min-width: 1280px) {
  .ecra.grade { grid-template-columns: 460px minmax(0, 1fr); column-gap: 56px; }
  .col-b .conteudo .sec .lista { border-radius: 22px; }
}
