/* ============ KALISTA — visual futurista (vidro + neon) ============ */
:root {
  color-scheme: dark;
  --fundo: #05060f;
  --vidro: rgba(255, 255, 255, 0.045);
  --vidro-forte: rgba(255, 255, 255, 0.08);
  --borda: rgba(255, 255, 255, 0.10);
  --texto: #eef1ff;
  --texto-2: #9aa3c7;
  --texto-3: #636b8f;
  --ciano: #3ee6ff;
  --violeta: #9887ef;
  --magenta: #e24d8b;
  /* séries dos gráficos (passos escuros da paleta validada) */
  --s-entrada: #00a888;
  --s-saida: #e24d8b;
  --s-guardado: #9887ef;
  --s-total: #338ced;
  --bom: #53c556;
  --atencao: #fbb315;
  --ruim: #eb6263;
  --raio: 22px;
  --seguro-baixo: env(safe-area-inset-bottom, 0px);
  --seguro-topo: env(safe-area-inset-top, 0px);
  --num: 'Space Grotesk', system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--fundo); color: var(--texto); font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif; }
html { overflow-x: hidden; }
body { min-height: 100vh; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.oculto { display: none !important; }

/* ---------- fundo ---------- */
.aurora { position: fixed; inset: 0; z-index: -2; overflow: hidden; filter: blur(60px) saturate(140%); opacity: .75; }
.aurora i { position: absolute; width: 70vmax; height: 70vmax; border-radius: 50%; mix-blend-mode: screen; animation: flutua 26s ease-in-out infinite alternate; }
.aurora i:nth-child(1) { background: radial-gradient(circle, rgba(62, 230, 255, .35), transparent 60%); top: -30vmax; left: -20vmax; }
.aurora i:nth-child(2) { background: radial-gradient(circle, rgba(152, 135, 239, .38), transparent 60%); top: 10vmax; right: -35vmax; animation-duration: 32s; }
.aurora i:nth-child(3) { background: radial-gradient(circle, rgba(226, 77, 139, .25), transparent 60%); bottom: -40vmax; left: 0; animation-duration: 38s; }
@keyframes flutua { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(8vmax, 6vmax, 0) scale(1.15); } }
.fundo-grade { position: fixed; inset: 0; overflow: hidden; z-index: -1; pointer-events: none; }
.grade { position: absolute; left: -50%; right: -50%; bottom: -10vh; height: 55vh; pointer-events: none;
  background-image: linear-gradient(rgba(62, 230, 255, .10) 1px, transparent 1px), linear-gradient(90deg, rgba(62, 230, 255, .10) 1px, transparent 1px);
  background-size: 44px 44px; transform: perspective(420px) rotateX(62deg); transform-origin: bottom;
  mask-image: linear-gradient(to top, rgba(0,0,0,.9), transparent 85%); -webkit-mask-image: linear-gradient(to top, rgba(0,0,0,.9), transparent 85%);
  animation: corre 6s linear infinite; }
@keyframes corre { to { background-position: 0 44px; } }

/* ---------- vidro ---------- */
.vidro { background: linear-gradient(160deg, rgba(255,255,255,.075), rgba(255,255,255,.025)); border: 1px solid var(--borda);
  backdrop-filter: blur(22px) saturate(160%); -webkit-backdrop-filter: blur(22px) saturate(160%); border-radius: var(--raio);
  box-shadow: 0 10px 40px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.08); }
.brilho { position: relative; overflow: hidden; }
.brilho::before { content: ''; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none;
  background: conic-gradient(from var(--ang, 0deg), transparent 0 60%, rgba(62,230,255,.9), rgba(152,135,239,.9), transparent 90%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  animation: gira 6s linear infinite; }
@property --ang { syntax: '<angle>'; initial-value: 0deg; inherits: false; }
@keyframes gira { to { --ang: 360deg; } }

/* ---------- topo ---------- */
.topo { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between;
  padding: calc(var(--seguro-topo) + 14px) 18px 10px; background: linear-gradient(var(--fundo) 40%, transparent); }
.marca { display: flex; gap: 12px; align-items: center; }
.marca-nome { font-family: var(--num); font-weight: 700; letter-spacing: .32em; font-size: 15px;
  background: linear-gradient(90deg, var(--ciano), var(--violeta)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.marca-sub { font-size: 12.5px; color: var(--texto-2); margin-top: 2px; }
.btn-icone { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 14px; color: var(--texto-2); }
.btn-icone:active { background: var(--vidro-forte); }
.girando svg { animation: rodar 1s linear infinite; }
@keyframes rodar { to { transform: rotate(360deg); } }

/* orbe da Kalista */
.orbe { width: 38px; height: 38px; border-radius: 50%; flex: none; position: relative;
  background: radial-gradient(circle at 35% 30%, #fff 0, #b9f6ff 8%, var(--ciano) 22%, var(--violeta) 58%, #2b1660 100%);
  box-shadow: 0 0 18px rgba(62,230,255,.6), 0 0 42px rgba(152,135,239,.45), inset -4px -6px 12px rgba(0,0,0,.35);
  animation: pulsa 3.2s ease-in-out infinite; }
.orbe::after { content: ''; position: absolute; inset: -5px; border-radius: 50%; border: 1px solid rgba(62,230,255,.35); animation: anel 3.2s ease-out infinite; }
.orbe.mini { width: 14px; height: 14px; display: inline-block; vertical-align: -2px; margin-right: 6px; }
.orbe.mini::after { display: none; }
.orbe.grande { width: 110px; height: 110px; margin: 0 auto 26px; }
@keyframes pulsa { 50% { transform: scale(1.06); filter: brightness(1.15); } }
@keyframes anel { from { transform: scale(.9); opacity: .9; } to { transform: scale(1.5); opacity: 0; } }

/* ---------- telas ---------- */
main { padding: 4px 16px calc(110px + var(--seguro-baixo)); max-width: 640px; margin: 0 auto; }
.tela { display: none; animation: entra .45s cubic-bezier(.2,.8,.2,1); }
.tela.ativa { display: block; }
@keyframes entra { from { opacity: 0; } }
@keyframes entraCartao { from { opacity: 0; transform: translateY(16px); } }
.titulo-secao { font-size: 13px; text-transform: uppercase; letter-spacing: .18em; color: var(--texto-2); margin: 26px 4px 12px; font-weight: 600; }
.cartao { padding: 18px; margin-top: 16px; }
.cartao h3 { margin: 0; font-size: 15px; font-weight: 600; letter-spacing: .01em; }
.cartao-cab { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 12px; }
.sub { color: var(--texto-2); font-size: 14px; line-height: 1.5; }
.link { color: var(--ciano); font-size: 13px; font-weight: 600; padding: 6px 2px; }

/* ---------- hero ---------- */
.hero { padding: 22px 22px 18px; margin-top: 6px; }
.hero-rotulo { color: var(--texto-2); font-size: 13px; letter-spacing: .04em; }
.hero-valor { font-family: var(--num); font-weight: 700; font-size: clamp(38px, 11vw, 52px); letter-spacing: -.02em; margin: 6px 0 4px;
  background: linear-gradient(180deg, #fff 30%, #a9b6ff); -webkit-background-clip: text; background-clip: text; color: transparent;
  text-shadow: 0 0 40px rgba(62,230,255,.25); }
.hero-linha { color: var(--texto-2); font-size: 13.5px; line-height: 1.5; }
.hero-linha b { color: var(--texto); font-weight: 600; }
.chips-pessoas { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.chip { padding: 8px 12px; border-radius: 999px; background: var(--vidro-forte); border: 1px solid var(--borda); font-size: 13px; color: var(--texto-2); }
.chip b { color: var(--texto); font-family: var(--num); font-weight: 600; margin-left: 4px; }

/* ---------- meses ---------- */
.meses { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mes { padding: 14px 10px 12px; border-radius: 18px; text-align: left; background: var(--vidro); border: 1px solid var(--borda); position: relative;
  transition: transform .25s, border-color .25s, box-shadow .25s; transform-style: preserve-3d; }
.mes:active { transform: scale(.96) rotateX(6deg); }
.mes .m-nome { font-size: 13px; font-weight: 600; }
.mes .m-ano { font-size: 11px; color: var(--texto-3); }
.mes .m-valor { font-family: var(--num); font-size: 15px; font-weight: 600; margin-top: 10px; }
.mes .m-res { font-size: 11.5px; margin-top: 2px; }
.mes.sel { border-color: rgba(62,230,255,.7); box-shadow: 0 0 0 1px rgba(62,230,255,.4), 0 0 28px rgba(62,230,255,.25), inset 0 0 22px rgba(62,230,255,.08);
  background: linear-gradient(160deg, rgba(62,230,255,.14), rgba(152,135,239,.08)); }
.mes .ponto { position: absolute; top: 12px; right: 10px; width: 7px; height: 7px; border-radius: 50%; background: var(--ciano); box-shadow: 0 0 10px var(--ciano); }
.pos { color: var(--bom); } .neg { color: var(--ruim); }

.selo { font-size: 11.5px; padding: 5px 10px; border-radius: 999px; background: rgba(62,230,255,.12); color: var(--ciano); border: 1px solid rgba(62,230,255,.3); white-space: nowrap; }
.mes-grid { display: grid; grid-template-columns: 150px 1fr; gap: 12px; align-items: center; }
.anel { height: 160px; }
.fluxo { display: grid; gap: 7px; }
.f-linha { display: flex; justify-content: space-between; gap: 8px; font-size: 13.5px; color: var(--texto-2); align-items: baseline; }
.f-linha b { font-family: var(--num); color: var(--texto); font-weight: 600; white-space: nowrap; }
.f-linha .marca-cor { display: inline-block; width: 9px; height: 9px; border-radius: 3px; margin-right: 7px; }
.f-total { border-top: 1px solid var(--borda); padding-top: 9px; margin-top: 3px; font-size: 14.5px; color: var(--texto); }
.f-total b { font-size: 17px; background: linear-gradient(90deg, var(--ciano), var(--violeta)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.previsao { margin-top: 14px; font-size: 13px; color: var(--texto-2); line-height: 1.55; padding: 12px 14px; border-radius: 14px; background: rgba(255,255,255,.035); }
.previsao:empty { display: none; }
.previsao b { color: var(--texto); }
@media (max-width: 380px) { .mes-grid { grid-template-columns: 1fr; } .anel { height: 170px; } }

.grafico3d { height: 300px; margin: 0 -10px; }
.grafico-cats { min-height: 120px; }
.tabela-wrap { overflow-x: auto; margin-top: 8px; }
table { width: 100%; border-collapse: collapse; font-size: 12.5px; font-variant-numeric: tabular-nums; }
th, td { padding: 7px 6px; text-align: right; border-bottom: 1px solid rgba(255,255,255,.06); white-space: nowrap; }
th:first-child, td:first-child { text-align: left; }
th { color: var(--texto-2); font-weight: 500; }

.lista-contas { list-style: none; margin: 0; padding: 0; }
.lista-contas li { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid rgba(255,255,255,.06); }
.lista-contas li:last-child { border: 0; }
.lc-dia { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; background: var(--vidro-forte); font-family: var(--num); font-size: 15px; font-weight: 600; flex: none; line-height: 1; text-align: center; }
.lc-dia small { display: block; font-size: 9.5px; color: var(--texto-3); font-weight: 500; letter-spacing: .06em; }
.lc-info { flex: 1; min-width: 0; }
.lc-desc { font-size: 14px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lc-status { font-size: 12px; color: var(--texto-2); margin-top: 2px; }
.lc-valor { font-family: var(--num); font-weight: 600; font-size: 14.5px; }
.st-pago { color: var(--bom); } .st-atraso { color: var(--ruim); } .st-sem { color: var(--atencao); }

/* ---------- transações ---------- */
.segmento { display: flex; padding: 5px; gap: 4px; border-radius: 18px; background: var(--vidro); border: 1px solid var(--borda); margin-top: 6px; }
.segmento button { flex: 1; padding: 11px; border-radius: 14px; font-weight: 600; font-size: 14.5px; color: var(--texto-2); transition: all .25s; }
.segmento button.ativo { color: #05060f; background: linear-gradient(135deg, var(--ciano), var(--violeta)); box-shadow: 0 6px 22px rgba(62,230,255,.3); }
.bancos { display: grid; gap: 14px; margin-top: 18px; perspective: 900px; }
.banco { position: relative; height: 168px; border-radius: 24px; padding: 18px 20px; text-align: left; overflow: hidden; color: #fff; width: 100%;
  display: flex; flex-direction: column; justify-content: flex-start; align-items: flex-start;
  transform-style: preserve-3d; transition: transform .35s cubic-bezier(.2,.8,.2,1); box-shadow: 0 18px 40px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.25); }
.banco::before { content: ''; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.22) 45%, transparent 60%); transform: translateX(-60%); transition: transform .9s; }
.banco:hover::before, .banco:active::before { transform: translateX(60%); }
.banco::after { content: ''; position: absolute; width: 260px; height: 260px; right: -90px; top: -110px; border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,.25), transparent 65%); }
.banco:active { transform: rotateX(8deg) scale(.98); }
.banco .b-nome { font-family: var(--num); font-size: 22px; font-weight: 700; letter-spacing: .02em; }
.banco .b-tipo { font-size: 12px; opacity: .8; margin-top: 2px; }
.banco .b-saldo { position: absolute; left: 20px; bottom: 44px; font-family: var(--num); font-size: 25px; font-weight: 700; }
.banco .b-saldo small { display: block; font-family: 'Inter'; font-size: 11px; font-weight: 500; opacity: .8; letter-spacing: .04em; }
.banco .b-mov { position: absolute; left: 20px; right: 20px; bottom: 16px; display: flex; gap: 14px; font-size: 12.5px; opacity: .92; }
.banco .b-chip { position: absolute; right: 20px; top: 20px; width: 42px; height: 32px; border-radius: 7px; background: linear-gradient(135deg, #f8e7a8, #b89442); opacity: .9; }
.banco .b-of { position: absolute; right: 20px; bottom: 16px; font-size: 11px; padding: 3px 8px; border-radius: 99px; background: rgba(0,0,0,.25); }
.cor-inter { background: linear-gradient(135deg, #ff9a3c, #ff6a00 45%, #b33f00); }
.cor-nubank { background: linear-gradient(135deg, #b46cff, #820ad1 45%, #3f0566); }
.cor-caixa { background: linear-gradient(135deg, #3aa0ff, #005ca9 45%, #00305c); }
.cor-outro { background: linear-gradient(135deg, #2ee6c5, #127a8a 45%, #0b2f4a); }

.extrato-cab { display: flex; gap: 12px; align-items: center; margin: 10px 0 14px; }
.btn-voltar { width: 42px; height: 42px; border-radius: 14px; background: var(--vidro-forte); font-size: 26px; line-height: 1; }
.extrato-titulo { font-family: var(--num); font-size: 20px; font-weight: 700; }
.extrato-sub { font-size: 12.5px; color: var(--texto-2); }
.busca { display: flex; align-items: center; gap: 10px; padding: 0 14px; border-radius: 16px; }
.busca svg { color: var(--texto-3); width: 18px; height: 18px; }
.busca input { flex: 1; background: none; border: 0; outline: 0; color: var(--texto); font: inherit; font-size: 16px; padding: 13px 0; }
.filtros { display: flex; gap: 8px; overflow-x: auto; padding: 12px 0 4px; scrollbar-width: none; }
.filtro { padding: 8px 14px; border-radius: 99px; border: 1px solid var(--borda); font-size: 13px; color: var(--texto-2); white-space: nowrap; }
.filtro.ativo { border-color: rgba(62,230,255,.6); color: var(--ciano); background: rgba(62,230,255,.08); }
.dia-grupo { margin-top: 18px; }
.dia-cab { display: flex; justify-content: space-between; font-size: 12px; color: var(--texto-3); text-transform: uppercase; letter-spacing: .1em; padding: 0 4px 8px; }
.tx { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 18px; background: var(--vidro); border: 1px solid rgba(255,255,255,.06); margin-bottom: 8px; width: 100%; text-align: left; transition: transform .15s; }
.tx:active { transform: scale(.98); }
.tx-ic { width: 40px; height: 40px; border-radius: 13px; display: grid; place-items: center; font-size: 19px; flex: none; background: var(--vidro-forte); }
.tx-ic.entrada { box-shadow: inset 0 0 0 1px rgba(0,168,136,.5); }
.tx-ic.saida { box-shadow: inset 0 0 0 1px rgba(226,77,139,.45); }
.tx-ic.transf { box-shadow: inset 0 0 0 1px rgba(152,135,239,.55); }
.tx-info { flex: 1; min-width: 0; }
.tx-desc { font-size: 14.5px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tx-meta { font-size: 12px; color: var(--texto-2); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tx-valor { font-family: var(--num); font-weight: 600; font-size: 15px; white-space: nowrap; text-align: right; }
.tx-valor small { display: block; font-family: 'Inter'; font-size: 11px; font-weight: 500; color: var(--texto-3); }
.v-ent { color: #3fe0b5; } .v-sai { color: var(--texto); } .v-tr { color: #b8abff; }
.vazio { text-align: center; color: var(--texto-2); padding: 40px 10px; font-size: 14px; }

/* ---------- investimentos ---------- */
.inv { padding: 18px; margin-top: 16px; }
.inv-cab { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.inv-nome { font-size: 16px; font-weight: 600; }
.inv-tipo { font-size: 12.5px; color: var(--texto-2); margin-top: 3px; }
.nota { font-size: 12px; font-weight: 600; padding: 6px 10px; border-radius: 99px; white-space: nowrap; border: 1px solid; }
.nota.bom { color: var(--bom); border-color: rgba(83,197,86,.45); background: rgba(83,197,86,.1); }
.nota.atencao { color: var(--atencao); border-color: rgba(251,179,21,.45); background: rgba(251,179,21,.1); }
.nota.ruim { color: var(--ruim); border-color: rgba(235,98,99,.45); background: rgba(235,98,99,.1); }
.nota.novo { color: var(--texto-2); border-color: var(--borda); }
.inv-valor { font-family: var(--num); font-size: 32px; font-weight: 700; margin: 14px 0 2px; }
.inv-rend { font-size: 14px; color: var(--texto-2); }
.inv-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 16px; }
.kpi { padding: 12px; border-radius: 14px; background: rgba(255,255,255,.035); border: 1px solid rgba(255,255,255,.06); }
.kpi span { display: block; font-size: 11.5px; color: var(--texto-2); }
.kpi b { display: block; font-family: var(--num); font-size: 17px; font-weight: 600; margin-top: 4px; }
.kpi small { font-size: 11px; color: var(--texto-3); }
.medidor { margin-top: 16px; }
.medidor-cab { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--texto-2); margin-bottom: 8px; }
.medidor-trilho { height: 10px; border-radius: 99px; background: rgba(255,255,255,.07); position: relative; overflow: visible; }
.medidor-barra { height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--s-total), var(--ciano)); box-shadow: 0 0 16px rgba(62,230,255,.55); transition: width 1.2s cubic-bezier(.2,.8,.2,1); }
.medidor-alvo { position: absolute; top: -4px; bottom: -4px; width: 2px; background: #fff; border-radius: 2px; }
.grafico-inv { height: 230px; margin: 14px -8px 0; }
.parecer-texto { font-size: 14.5px; line-height: 1.6; white-space: pre-wrap; }
.parecer-texto .data { display: block; font-size: 11.5px; color: var(--texto-3); margin-top: 10px; }

/* ---------- chat ---------- */
#tela-chat.ativa { display: flex; flex-direction: column; }
.chat { display: flex; flex-direction: column; gap: 10px; padding: 6px 2px 150px; }
.msg { max-width: 86%; padding: 11px 14px; border-radius: 20px; font-size: 15px; line-height: 1.5; white-space: pre-wrap; word-wrap: break-word; animation: surge .3s ease-out; }
@keyframes surge { from { opacity: 0; transform: translateY(8px) scale(.97); } }
.msg.eu { align-self: flex-end; background: linear-gradient(135deg, #2a6cf0, #7a52e6); border-bottom-right-radius: 6px; box-shadow: 0 6px 22px rgba(90,90,255,.3); }
.msg.kalista { align-self: flex-start; background: var(--vidro-forte); border: 1px solid var(--borda); border-bottom-left-radius: 6px; }
.msg.aviso { border-color: rgba(62,230,255,.35); box-shadow: 0 0 20px rgba(62,230,255,.08); }
.msg .hora { display: block; font-size: 10.5px; opacity: .55; margin-top: 5px; text-align: right; }
.msg .etiqueta { display: block; font-size: 10.5px; color: var(--ciano); letter-spacing: .08em; text-transform: uppercase; margin-bottom: 4px; }
.dia-chat { align-self: center; font-size: 11.5px; color: var(--texto-3); padding: 4px 12px; border-radius: 99px; background: rgba(255,255,255,.04); margin: 8px 0; }
.digitando { display: inline-flex; gap: 4px; padding: 4px 2px; }
.digitando i { width: 7px; height: 7px; border-radius: 50%; background: var(--ciano); animation: pula 1.2s infinite; }
.digitando i:nth-child(2) { animation-delay: .15s; } .digitando i:nth-child(3) { animation-delay: .3s; }
@keyframes pula { 0%, 60%, 100% { transform: translateY(0); opacity: .4; } 30% { transform: translateY(-5px); opacity: 1; } }
.chat-barra { position: fixed; left: 12px; right: 12px; bottom: calc(86px + var(--seguro-baixo)); z-index: 25; display: flex; align-items: flex-end; gap: 4px; padding: 6px; border-radius: 24px; max-width: 616px; margin: 0 auto; }
.chat-barra textarea { flex: 1; resize: none; background: none; border: 0; outline: 0; color: var(--texto); font: inherit; font-size: 16px; padding: 10px 4px; max-height: 120px; }
.btn-enviar { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, var(--ciano), var(--violeta)); color: #05060f; flex: none; box-shadow: 0 0 18px rgba(62,230,255,.45); }
.btn-enviar svg { fill: currentColor; stroke: none; }
#btnMic.gravando { color: #fff; background: var(--ruim); border-radius: 50%; animation: pulsa 1s infinite; }
.anexos { position: fixed; left: 16px; right: 16px; bottom: calc(146px + var(--seguro-baixo)); display: flex; gap: 8px; z-index: 25; max-width: 610px; margin: 0 auto; }
.anexo { font-size: 12px; padding: 6px 10px; border-radius: 99px; background: rgba(62,230,255,.15); border: 1px solid rgba(62,230,255,.35); }

/* ---------- ajustes ---------- */
#tela-ajustes p { margin: 8px 0 0; }
.passos { color: var(--texto-2); font-size: 14px; line-height: 1.8; padding-left: 20px; margin: 10px 0 0; }
.btn-primario { margin-top: 14px; width: 100%; padding: 14px; border-radius: 16px; font-weight: 600; color: #05060f; background: linear-gradient(135deg, var(--ciano), var(--violeta)); box-shadow: 0 8px 26px rgba(62,230,255,.3); }
.btn-sair { margin: 26px auto 0; display: block; color: var(--ruim); font-size: 14px; padding: 12px; }

/* ---------- abas ---------- */
.abas { position: fixed; left: 12px; right: 12px; bottom: calc(10px + var(--seguro-baixo)); z-index: 30; display: flex; justify-content: space-around; align-items: center;
  padding: 8px 6px; border-radius: 26px; max-width: 616px; margin: 0 auto; }
.aba { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 10.5px; color: var(--texto-3); padding: 4px 0; position: relative; transition: color .25s; }
.aba.ativa { color: var(--ciano); }
.aba.ativa svg { filter: drop-shadow(0 0 6px rgba(62,230,255,.8)); }
.aba-centro .orbe { width: 46px; height: 46px; margin-top: -26px; border: 3px solid var(--fundo); }
.aba-centro.ativa .orbe { box-shadow: 0 0 26px rgba(62,230,255,.9), 0 0 60px rgba(152,135,239,.6); }
.badge { position: absolute; top: -22px; right: calc(50% - 30px); min-width: 19px; height: 19px; padding: 0 5px; border-radius: 99px; background: var(--magenta); color: #fff; font-size: 11px; display: grid; place-items: center; box-shadow: 0 0 12px var(--magenta); }

/* ---------- folha (editar) ---------- */
.folha-fundo { position: fixed; inset: 0; background: rgba(0,0,0,.55); z-index: 40; animation: aparece .25s; }
.folha { position: fixed; left: 0; right: 0; bottom: 0; z-index: 41; padding: 20px 18px calc(24px + var(--seguro-baixo)); border-radius: 28px 28px 0 0; max-height: 80vh; overflow-y: auto;
  animation: sobe .35s cubic-bezier(.2,.8,.2,1); max-width: 640px; margin: 0 auto; background: rgba(14,16,34,.92); }
@keyframes sobe { from { transform: translateY(100%); } }
@keyframes aparece { from { opacity: 0; } }
.folha h3 { margin: 0 0 4px; font-size: 18px; }
.folha .f-val { font-family: var(--num); font-size: 30px; font-weight: 700; margin: 6px 0 14px; }
.folha .f-det { color: var(--texto-2); font-size: 13.5px; line-height: 1.7; }
.cats { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.cats button { padding: 8px 12px; border-radius: 99px; border: 1px solid var(--borda); font-size: 13px; color: var(--texto-2); }
.cats button.ativo { color: var(--ciano); border-color: var(--ciano); }
.btn-sec { margin-top: 16px; width: 100%; padding: 13px; border-radius: 16px; border: 1px solid rgba(152,135,239,.6); color: #c9bfff; font-weight: 600; }

/* ---------- login / toast ---------- */
.login { position: fixed; inset: 0; z-index: 60; display: grid; place-content: center; text-align: center; padding: 30px; background: rgba(5,6,15,.94); }
.login h1 { font-family: var(--num); letter-spacing: .3em; margin: 0 0 12px; }
.login p { color: var(--texto-2); line-height: 1.6; }
.toast { position: fixed; left: 50%; top: calc(var(--seguro-topo) + 16px); transform: translate(-50%, -150%); z-index: 70; padding: 12px 18px; border-radius: 16px;
  background: rgba(20,22,45,.95); border: 1px solid var(--borda); font-size: 14px; transition: transform .35s cubic-bezier(.2,.8,.2,1); max-width: 90vw; }
.toast.mostra { transform: translate(-50%, 0); }

.esqueleto { background: linear-gradient(90deg, rgba(255,255,255,.04), rgba(255,255,255,.1), rgba(255,255,255,.04)); background-size: 200% 100%; animation: brilha 1.3s infinite; border-radius: 12px; height: 18px; }
@keyframes brilha { to { background-position: -200% 0; } }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
