/* RR Finança — PWA (identidade rR: fonte RR Sans e símbolo rR oficial) */
@font-face { font-family: "RR Sans"; src: url("/fonts/RRSans-Regular.woff2?v=2.6") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "RR Sans"; src: url("/fonts/RRSans-Medium.woff2?v=2.6") format("woff2"); font-weight: 500 600; font-display: swap; }
@font-face { font-family: "RR Sans"; src: url("/fonts/RRSans-Bold.woff2?v=2.6") format("woff2"); font-weight: 700 900; font-display: swap; }

:root {
  --play: #3D6FFF; --noite: #0B1638; --azul: #1F3A7A; --preta: #0B0D14; --ceu: #CFDBFF; --nevoa: #F3F5FA;
  --bg: #0C0E16; --surface: #171A26; --surface2: #232738; --stroke: rgba(255,255,255,.09); --link: #B9C6EE;
  --text: #F5F7FF; --muted: rgba(218,222,235,.72);
  --green: #3DDC97; --red: #FF7A90; --yellow: #FFD15C;
  --safe-top: env(safe-area-inset-top, 0px); --safe-bottom: env(safe-area-inset-bottom, 0px);
  --tabbar: 64px;
  color-scheme: dark;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { touch-action: manipulation; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html, body { overflow-x: hidden; }
button, a, label, input, select, textarea, [data-act] { touch-action: manipulation; }
html, body { margin: 0; background: var(--bg); color: var(--text); font-family: "RR Sans", -apple-system, system-ui, sans-serif; }
body { min-height: 100dvh; overscroll-behavior-y: none; -webkit-font-smoothing: antialiased; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input, select, textarea { font: inherit; color: var(--text); }
svg { display: block; }

/* Layout */
.screen { padding: calc(var(--safe-top) + 8px) 14px calc(var(--tabbar) + var(--safe-bottom) + 96px); max-width: 560px; margin: 0 auto; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 44px; margin-bottom: 10px; }
.topbar h1 { font-size: clamp(24px, 7.6vw, 30px); min-width: 0; font-weight: 900; margin: 0; letter-spacing: -.3px; }
.topbar .side { width: 44px; display: flex; align-items: center; }
.topbar .side.right { justify-content: flex-end; }
.back { display: flex; align-items: center; gap: 2px; color: var(--play); font-weight: 700; font-size: 16px; min-height: 44px; }
.sub-title { font-size: 17px; font-weight: 700; text-align: center; flex: 1; }
.stack > * + * { margin-top: 14px; }

/* Logo rR */
.logo { display: inline-flex; align-items: center; line-height: 1; }
.logo svg { height: .82em; width: auto; display: block; overflow: visible; }

/* Mês */
.month-nav { display: inline-flex; align-items: center; justify-content: center; gap: 0; height: 34px; padding: 0 2px; border-radius: 17px;
  background: rgba(255,255,255,.08); box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); color: var(--text); flex: none; }
.month-nav button { width: 30px; height: 34px; display: grid; place-items: center; border-radius: 17px; color: var(--muted); }
.month-nav button:active { background: rgba(255,255,255,.12); }
.month-nav .label { width: auto; min-width: 0; padding: 0 4px; white-space: nowrap; font-weight: 600; font-size: 14px; color: var(--text); }
.month-row { display: flex; justify-content: center; }
.month-nav .label.off { color: var(--link); }

/* Cards */
.card { background: var(--surface); border: 1px solid var(--stroke); border-radius: 22px; padding: 18px; }
.card-h { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.card-h h2 { font-size: 17px; font-weight: 700; margin: 0; }
.card-h .link { color: var(--play); font-weight: 700; font-size: 14px; min-height: 32px; }
.divider { height: 1px; background: var(--stroke); margin: 8px 0; }
.total-row { display: flex; justify-content: space-between; align-items: center; padding-top: 4px; }
.total-row span:first-child { color: var(--muted); font-size: 14px; }
.total-row b { font-size: 15px; }

/* Saldo */
.balance { border-radius: 24px; padding: 18px 16px; background: linear-gradient(135deg, var(--azul), var(--noite)); }
.track { display: flex; align-items: center; padding: 0 26px; margin-bottom: 14px; }
.track .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--play); border: 1.5px solid rgba(255,255,255,.8); flex: none; }
.track .dot.big { width: 14px; height: 14px; }
.track .dot.hollow { background: transparent; border-color: var(--muted); }
.track .line { flex: 1; height: 2px; background: var(--play); }
.track .line.dash { height: 1px; background: rgba(207,219,255,.35); }
.bal-vals { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.5fr) minmax(0,1fr); align-items: start; text-align: center; gap: 4px; }
.bal-vals b { display: block; font-weight: 900; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bal-vals small { color: rgba(207,219,255,.75); font-size: 12px; }
.bal-vals .side b { font-size: 12.5px; }
.bal-vals .main b { font-size: clamp(17px, 5.6vw, 23px); }

/* Linhas */
.row { display: flex; align-items: center; gap: 12px; padding: 8px 0; width: 100%; text-align: left; min-height: 52px; }
.row:active { opacity: .7; }
.row .grow { flex: 1; min-width: 0; }
.row .t { font-weight: 600; font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row .s { color: var(--muted); font-size: 13px; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row .r { text-align: right; flex: none; }
.row .r .t { font-size: 15px; }
.neg { color: var(--red) !important; } .pos { color: var(--green) !important; }
.pill { display: inline-block; font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 99px; }
.pill.green { color: var(--green); background: rgba(45,190,126,.15); }

.circle { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; flex: none; color: #fff; font-weight: 900; font-size: 14px; text-transform: lowercase; }
.circle.sm { width: 30px; height: 30px; font-size: 14px; }
.circle .emo { font-size: 17px; line-height: 1; }
.circle.sm .emo { font-size: 14px; }
.status-dot { width: 26px; height: 26px; display: grid; place-items: center; flex: none; margin-right: -6px; }
.status-dot i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
.status-dot.pending i { background: var(--yellow); }

.empty { text-align: center; color: var(--muted); font-size: 14px; padding: 22px 8px; line-height: 1.45; }
.empty svg { margin: 0 auto 8px; opacity: .7; }

/* Barras */
.bar { height: 6px; border-radius: 3px; background: var(--surface2); overflow: hidden; margin-top: 6px; }
.bar i { display: block; height: 100%; border-radius: 3px; }

/* Economia */
.savings { display: flex; gap: 18px; align-items: center; }
.gauge { position: relative; width: 120px; height: 120px; flex: none; }
.gauge .center { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.gauge .center b { font-size: 26px; font-weight: 900; }
.gauge .center small { color: var(--muted); font-size: 11px; }
.sv-row { display: flex; align-items: center; gap: 10px; }
.sv-row + .sv-row { margin-top: 12px; }
.sv-ico { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; }
.sv-row small { display: block; color: var(--muted); font-size: 12px; }
.sv-row b { font-size: 15px; }

/* Cartões */
.cc { border-radius: 24px; padding: 18px; color: #fff; display: block; width: 100%; text-align: left; }
.cc:active { transform: scale(.99); }
.cc-top { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.cc-top .grow { flex: 1; min-width: 0; }
.cc-top b { font-size: 18px; font-weight: 900; display: block; }
.cc-top small, .cc-bot small { color: rgba(255,255,255,.72); font-size: 12px; }
.cc-bot { display: flex; justify-content: space-between; align-items: flex-end; }
.cc-bot .big { font-size: 26px; font-weight: 900; }
.cc .bar { background: rgba(255,255,255,.15); margin-top: 14px; }
.cc .bar i { background: #fff; }
.tag { font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 99px; color: #fff; }

/* Segmentado */
.seg { display: flex; background: var(--surface); border-radius: 14px; padding: 3px; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.seg button { flex: 1; padding: 8px 4px; font-size: 13px; font-weight: 600; border-radius: 10px; color: var(--muted); min-height: 40px; }
.seg button.on { background: var(--play); color: #fff; box-shadow: 0 4px 12px -4px rgba(61,111,255,.7); }

.search { width: 100%; background: var(--surface); border: 1px solid var(--stroke); border-radius: 12px; padding: 10px 12px; font-size: 16px; outline: none; }
.totals3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.totals3 div:nth-child(2) { text-align: center; } .totals3 div:nth-child(3) { text-align: right; }
.totals3 small { display: block; color: var(--muted); font-size: 12px; }
.totals3 b { font-size: 15px; }
.day-h { font-size: 14px; font-weight: 600; color: #C9CEDB; margin: 18px 4px 6px; text-transform: capitalize; }
.list { background: var(--surface); border-radius: 20px; padding: 2px 16px; }
.list > * + * { border-top: 1px solid var(--stroke); }

/* Listas de ajustes */
.group-h { font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: .4px; margin: 20px 6px 6px; }
.group { background: var(--surface); border-radius: 14px; overflow: hidden; }
.item { display: flex; align-items: center; gap: 12px; padding: 12px 14px; min-height: 50px; width: 100%; text-align: left; font-size: 16px; }
.item + .item { border-top: 1px solid var(--stroke); }
.item:active { background: var(--surface2); }
.item .grow { flex: 1; min-width: 0; }
.item .muted { color: var(--muted); }
.item .chev { color: var(--muted); }
.item.danger { color: var(--red); }
.item.accent { color: var(--play); font-weight: 700; }
.foot { color: var(--muted); font-size: 12px; margin: 6px 8px 0; line-height: 1.45; }

/* Tab bar flutuante — vidro líquido (5 posições iguais) */
.tabbar {
  --lx: 50%; --n: 5;
  position: fixed; z-index: 20; left: 50%; transform: translateX(-50%);
  bottom: calc(var(--safe-bottom) + 10px); width: min(calc(100% - 28px), 420px); height: var(--tabbar);
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); align-items: stretch; padding: 6px; border-radius: 999px; isolation: isolate;
  background:
    radial-gradient(150px 120% at var(--lx) 0%, rgba(255, 255, 255, .20), transparent 70%),
    linear-gradient(180deg, rgba(255, 255, 255, .16) 0%, rgba(255, 255, 255, .04) 50%, rgba(255, 255, 255, .07) 100%);
  background-color: rgba(30, 32, 44, .30);
  -webkit-backdrop-filter: blur(16px) saturate(2.3) brightness(1.12); backdrop-filter: blur(16px) saturate(2.3) brightness(1.12);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, .14),
    inset 0 1.5px 0 rgba(255, 255, 255, .55), inset 0 -1.5px 0 rgba(255, 255, 255, .14),
    inset 1.5px 0 0 rgba(255, 255, 255, .10), inset -1.5px 0 0 rgba(255, 255, 255, .10),
    inset 0 0 26px rgba(255, 255, 255, .07),
    0 1px 1px rgba(0, 0, 0, .2), 0 20px 44px -16px rgba(0, 0, 0, .8);
  transition: transform .35s cubic-bezier(.3, 1.4, .5, 1), height .45s cubic-bezier(.3, 1.3, .5, 1);
}
/* borda com brilho que muda de intensidade, como vidro curvo */
.tabbar::after { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none; z-index: 2;
  background: linear-gradient(135deg, rgba(255,255,255,.6), rgba(255,255,255,.06) 30%, rgba(255,255,255,.02) 60%, rgba(255,255,255,.3));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.tabbar.press { transform: translateX(-50%) scale(1.025); }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { .tabbar { background-color: rgba(28, 30, 42, .96); } }
/* o indicador usa exatamente a mesma coluna do botão: left/width iguais ao espaço interno da grade */
.tb-ind { position: absolute; z-index: 0; top: 6px; bottom: 6px; left: 6px; width: calc((100% - 12px) / var(--n)); border-radius: 999px; pointer-events: none;
  transform: translateX(calc(var(--i, 0) * 100%));
  background: radial-gradient(90% 70% at 50% 0%, rgba(255,255,255,.30), transparent 70%), linear-gradient(180deg, rgba(255, 255, 255, .26), rgba(255, 255, 255, .08));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .26), inset 0 1.5px 0 rgba(255, 255, 255, .65), inset 0 -1.5px 0 rgba(255, 255, 255, .18), inset 0 0 14px rgba(255, 255, 255, .16), 0 8px 18px -8px rgba(0, 0, 0, .55); }
.tabbar button { position: relative; z-index: 1; min-width: 0; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  font-size: 10px; font-weight: 500; color: rgba(255,255,255,.66); border-radius: 999px; transition: color .25s, transform .3s cubic-bezier(.3, 1.6, .5, 1); }
.tabbar button.on { color: #fff; }
.tabbar button:active { transform: scale(.9); }
.tabbar button span { white-space: nowrap; line-height: 12px; max-height: 12px; overflow: hidden; transition: max-height .3s, opacity .25s; }
/* ao rolar para baixo o menu encolhe e some o texto */
.tabbar.compact { --tabbar: 52px; }
.tabbar.compact button span { max-height: 0; opacity: 0; }

/* Troca de tela com gesto */
@keyframes in-l { from { opacity: .3; transform: translateX(28px); } to { opacity: 1; transform: none; } }
@keyframes in-r { from { opacity: .3; transform: translateX(-28px); } to { opacity: 1; transform: none; } }
.anim-l { animation: in-l .32s cubic-bezier(.2, .8, .2, 1); }
.anim-r { animation: in-r .32s cubic-bezier(.2, .8, .2, 1); }
@media (prefers-reduced-motion: reduce) { .anim-l, .anim-r { animation: none; } }

/* Sheet (formulários) */
.sheet-bg { position: fixed; inset: 0; z-index: 40; background: rgba(0,0,0,.5); animation: fade .2s; }
.sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 41; max-height: calc(100dvh - var(--safe-top) - 10px); height: calc(100dvh - var(--safe-top) - 10px);
  background: var(--bg); border-radius: 18px 18px 0 0; display: flex; flex-direction: column; animation: up .26s cubic-bezier(.2,.8,.2,1); max-width: 620px; margin: 0 auto; }
.sheet.short { height: auto; }
.sheet-h { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; border-bottom: 1px solid var(--stroke); }
.sheet-h b { font-size: 17px; }
.sheet-h button { color: var(--play); font-size: 16px; min-height: 36px; min-width: 70px; text-align: left; }
.sheet-h button.save { font-weight: 700; text-align: right; background: var(--play); color: #fff; border-radius: 99px; padding: 6px 16px; min-width: 0; }
.sheet-h button.save:disabled { opacity: .35; }
.sheet-body { overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 6px 14px calc(var(--safe-bottom) + 30px); flex: 1; }
@keyframes up { from { transform: translateY(100%); } to { transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

.f-group { background: var(--surface); border-radius: 14px; margin-top: 14px; overflow: hidden; }
.f-label { font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: .4px; margin: 18px 6px -8px; }
.f-row { display: flex; align-items: center; gap: 12px; padding: 0 14px; min-height: 50px; }
.f-row + .f-row { border-top: 1px solid var(--stroke); }
.f-row .ico { color: var(--muted); flex: none; width: 22px; display: grid; place-items: center; }
.f-row label { flex: 1; font-size: 16px; }
.f-row input[type=text], .f-row input[type=password], .f-row input[type=url], .f-row textarea, .f-row input.plain {
  flex: 1; background: none; border: 0; outline: none; font-size: 16px; padding: 14px 0; min-width: 0; }
.f-row textarea { resize: none; min-height: 50px; }
.f-row input.money { flex: 1; background: none; border: 0; outline: none; font-size: 22px; font-weight: 700; padding: 12px 0; min-width: 0; }
.f-row select, .f-row input[type=date], .f-row input[type=datetime-local] {
  background: var(--surface2); border: 0; border-radius: 8px; padding: 7px 10px; font-size: 16px; max-width: 58%; outline: none; text-align: right; -webkit-appearance: none; appearance: none; }
.f-row .add { color: var(--play); width: 32px; height: 32px; display: grid; place-items: center; flex: none; }
.f-hint { font-size: 13px; color: var(--muted); padding: 0 14px 12px; }
.f-warn { font-size: 13px; color: var(--yellow); padding: 0 14px 12px; }

/* Toggle iOS */
.sw { position: relative; width: 51px; height: 31px; flex: none; }
.sw input { opacity: 0; width: 0; height: 0; position: absolute; }
.sw span { position: absolute; inset: 0; background: #39393D; border-radius: 99px; transition: .2s; }
.sw span::after { content: ""; position: absolute; left: 2px; top: 2px; width: 27px; height: 27px; background: #fff; border-radius: 50%; transition: .2s; box-shadow: 0 2px 4px rgba(0,0,0,.3); }
.sw input:checked + span { background: var(--green); }
.sw input:checked + span::after { transform: translateX(20px); }

.stepper { display: flex; align-items: center; background: var(--surface2); border-radius: 8px; }
.stepper button { width: 40px; height: 32px; font-size: 20px; font-weight: 700; }
.stepper span { min-width: 30px; text-align: center; font-weight: 700; }

.grid6 { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; padding: 14px; }
.swatch { width: 34px; height: 34px; border-radius: 50%; margin: 0 auto; border: 3px solid transparent; }
.swatch.on { border-color: #fff; }
.icon-pick { width: 40px; height: 40px; border-radius: 50%; margin: 0 auto; background: var(--surface2); display: grid; place-items: center; font-size: 18px; }
.icon-pick.on { background: var(--play); }

.btn { display: block; width: 100%; text-align: center; padding: 14px; border-radius: 99px; background: var(--play); color: #fff; font-weight: 700; font-size: 16px; }
.btn.ghost { background: var(--surface2); color: var(--text); }
.btn:active { opacity: .75; }

.toast { position: fixed; left: 50%; top: calc(var(--safe-top) + 10px); transform: translateX(-50%); z-index: 60; background: var(--green); color: #fff;
  font-weight: 700; font-size: 14px; padding: 8px 16px; border-radius: 99px; box-shadow: 0 6px 20px rgba(0,0,0,.4); animation: pop .2s; }
.toast.err { background: #B4233F; }

.sync-btn { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 18px; }
.spin { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Boas-vindas */

/* Disponível */
.disp-hero { display: grid; gap: 4px; padding: 18px 16px; text-align: center; }
.disp-hero small { color: var(--muted); font-size: 13px; }
.disp-hero b { font-size: 34px; font-weight: 700; font-variant-numeric: tabular-nums; }
.disp-hero span { color: var(--muted); font-size: 12px; }
.seg button { white-space: nowrap; font-size: 12px; }

/* ───────── Início (estilo próprio, com o jeito simples do Nubank) ───────── */
.home-h { background: linear-gradient(160deg, #2B2F44 0%, #1B1E2D 55%, #12141F 100%); padding: calc(var(--safe-top) + 10px) 18px 54px; border-radius: 0 0 30px 30px; }
.home-top { display: flex; align-items: center; justify-content: space-between; max-width: 560px; margin: 0 auto; min-height: 44px; }
.home-actions { display: flex; gap: 8px; }
.hb { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.14); color: #fff; }
.hb:active { background: rgba(255,255,255,.24); }
.hello { max-width: 560px; margin: 18px auto 4px; font-size: 24px; font-weight: 700; color: #fff; }
.hello-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; max-width: 560px; margin: 16px auto 0; }
.hello-row .hello { margin: 0; }
.hello-row .month-nav { background: rgba(255,255,255,.14); box-shadow: inset 0 1px 0 rgba(255,255,255,.2); }
.hello-row .month-nav button { color: rgba(255,255,255,.8); }
.tb-r { display: flex; align-items: center; gap: 6px; }
.home-body { margin-top: -38px; padding-top: 0; }
.hero-card { position: relative; background: var(--surface); border-radius: 26px; padding: 20px 20px 16px; box-shadow: 0 20px 40px -24px rgba(0,0,0,.7); border: 1px solid var(--stroke); }
.hero-card > small { color: var(--muted); font-size: 14px; }
.hero-card > b { display: block; font-size: clamp(30px, 9vw, 38px); font-weight: 700; letter-spacing: -.5px; margin: 2px 0 14px; font-variant-numeric: tabular-nums; }
.hero-split { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding-top: 14px; border-top: 1px solid var(--stroke); }
.hero-split small { display: block; color: var(--muted); font-size: 12.5px; }
.hero-split span { font-weight: 600; font-size: 16px; font-variant-numeric: tabular-nums; }
.hero-link { display: inline-flex; align-items: center; gap: 4px; margin-top: 14px; color: var(--link); font-weight: 600; font-size: 15px; min-height: 36px; }
.shortcuts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; padding: 4px 0 6px; }
.shortcuts::-webkit-scrollbar { display: none; }
.sc { min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; font-size: 14px; line-height: 1.2; }
.sc-ic { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); color: #fff; border: 1px solid var(--stroke); }
.sc:active .sc-ic { background: var(--surface2); transform: scale(.95); }
.sc-l { font-size: 13px; font-weight: 600; text-align: center; line-height: 1.2; }
.sect-h { display: flex; align-items: center; justify-content: space-between; margin: 6px 4px 10px; }
.sect-h h2 { font-size: 19px; font-weight: 700; margin: 0; }
.sect-h .link { color: var(--link); font-weight: 600; font-size: 14px; min-height: 40px; }
.row.big { min-height: 64px; }
.row .chev { color: var(--muted); flex: none; margin-left: -4px; }
.mini-card { width: 42px; height: 28px; border-radius: 6px; flex: none; box-shadow: inset 0 0 0 1px rgba(255,255,255,.15); }
.cat-row + .cat-row { margin-top: 14px; }
.cat-top { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 15px; }
.cat-top .grow { flex: 1; }
.foot.center { text-align: center; margin-top: 18px; font-size: 13px; }

/* ───────── Banner do cartão (por banco) ───────── */
.ccf { position: relative; overflow: hidden; aspect-ratio: 1.586; width: 100%; border-radius: 20px; padding: 18px 20px; display: flex; flex-direction: column; justify-content: space-between;
  box-shadow: 0 18px 36px -20px rgba(0,0,0,.8), inset 0 1px 0 rgba(255,255,255,.18); isolation: isolate; }
.ccf::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, rgba(255,255,255,.14) 0%, transparent 38%); pointer-events: none; z-index: -1; }
.ccf-shine { position: absolute; inset: 0; z-index: -1; }
.ccf-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ccf-bank { font-size: 20px; font-weight: 700; letter-spacing: -.2px; }
.ccf-mid { display: flex; align-items: center; gap: 12px; }
.ccf-chip { width: 40px; height: 30px; border-radius: 7px; background: linear-gradient(135deg, #F7E3A1, #C9A54A 60%, #E9CF7E); box-shadow: inset 0 0 0 1px rgba(0,0,0,.18); }
.ccf-nfc { width: 24px; height: 24px; opacity: .8; }
.ccf-amt small { display: block; font-size: 12.5px; opacity: .85; }
.ccf-amt b { font-size: clamp(24px, 7.5vw, 30px); font-weight: 700; font-variant-numeric: tabular-nums; }
.ccf-bot { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; font-size: 13px; opacity: .92; }
.ccf-net { font-weight: 700; font-size: 12px; letter-spacing: .6px; text-transform: uppercase; padding: 5px 10px; border-radius: 99px;
  background: rgba(255,255,255,.16); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); box-shadow: inset 0 0 0 1px rgba(255,255,255,.18); }
.ccf-netimg { height: 30px; width: auto; display: block; filter: drop-shadow(0 2px 6px rgba(0,0,0,.25)); }
.cc-wrap { display: block; width: 100%; text-align: left; background: var(--surface); border-radius: 26px; padding: 10px 10px 14px; border: 1px solid var(--stroke); }
.cc-wrap:active { transform: scale(.99); }
.cc-info { display: grid; grid-template-columns: 1fr .8fr 1.2fr; gap: 8px; padding: 14px 8px 0; }
.cc-info small { display: block; color: var(--muted); font-size: 12px; }
.cc-info b { font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; }
.cc-info div:last-child { text-align: right; }
.cc-wrap .bar { margin: 12px 8px 0; }
.ccf-preview { max-width: 340px; margin: 14px auto 0; }
.bank-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
.bank-pick { display: flex; flex-direction: column; gap: 6px; align-items: stretch; padding: 6px; border-radius: 14px; border: 2px solid transparent; }
.bank-pick.on { border-color: var(--play); background: rgba(61,111,255,.12); }
.bank-mini { aspect-ratio: 1.586; border-radius: 9px; display: flex; align-items: flex-start; padding: 7px 8px; font-size: 11px; font-weight: 700; line-height: 1.15; text-align: left; box-shadow: inset 0 1px 0 rgba(255,255,255,.2); }
.bank-name { font-size: 12px; font-weight: 600; text-align: center; color: var(--muted); }
.bank-pick.on .bank-name { color: var(--text); }

.disp-calc { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--stroke); text-align: left; font-size: 14px; }
.disp-calc span { color: var(--muted); } .disp-calc b { font-size: 15px; font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }
.disp-mini { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 14px 16px; margin-bottom: 10px; }
.disp-mini small { display: block; color: var(--muted); font-size: 12px; }
.disp-mini b { font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.disp-mini .op { color: var(--muted); font-size: 18px; }
.row.off .t, .row.off .r { opacity: .5; }

/* Oculto: o que não entra no disponível (abre e fecha) */
.oculto { background: var(--surface); border: 1px solid var(--stroke); border-radius: 22px; overflow: hidden; scroll-margin-top: 16px; }
.oc-h { width: 100%; display: flex; align-items: center; gap: 12px; padding: 14px 16px; text-align: left; min-height: 64px; }
.oc-h b { display: block; font-size: 17px; font-weight: 700; }
.oc-h small { display: block; color: var(--muted); font-size: 13px; margin-top: 2px; }
.oc-ic { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(61,111,255,.18); color: var(--link); flex: none; }
.oc-chev { color: var(--muted); transition: transform .35s cubic-bezier(.3,1.3,.5,1); }
.oculto.open .oc-chev { transform: rotate(90deg); }
.oc-wrap { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .4s cubic-bezier(.2,.8,.2,1); }
.oculto.open .oc-wrap { grid-template-rows: 1fr; }
.oc-in { overflow: hidden; padding: 0 12px; }
.oculto.open .oc-in { padding-bottom: 12px; }
.oc-in .f-label { margin: 18px 6px 8px; }
.oc-in .f-label:first-child { margin-top: 4px; }
.oculto.open .oc-in { padding-bottom: 14px; }
.oc-in .list { background: var(--surface2); }
@media (prefers-reduced-motion: reduce) { .oc-wrap, .oc-chev { transition: none; } }

/* Pagar fatura: resumo da fatura escolhida */
.pay-sum { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 12px 14px; margin: 10px 0 4px; }
.pay-sum small { display: block; color: var(--muted); font-size: 12px; }
.pay-sum b { font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* Sincronização: bolinha com o número de mudanças que ainda não subiram */
.sync-wrap { position: relative; display: inline-grid; }
.sync-dot { position: absolute; top: -6px; right: -9px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: var(--yellow); color: #1A1300;
  font: 700 10px/17px "RR Sans", system-ui, sans-serif; font-style: normal; text-align: center; box-shadow: 0 0 0 2px var(--bg); }

/* Aviso "só iPhone" (mesmo desenho da página de erro do site) */
body.aviso { min-height: 100vh; min-height: 100svh; display: grid; place-items: center; padding: 24px 16px; text-align: center; background: #0B1638; }
.aviso-box { max-width: 720px; }
.aviso-logo { width: 72px; height: 68px; display: block; margin: 0 auto 28px; }
.aviso-box h1 { font-size: clamp(2rem, 6vw, 3.5rem); line-height: 1.1; letter-spacing: -.02em; font-weight: 700; margin: 0 0 12px; }
.aviso-box p { color: rgba(207,219,255,.72); line-height: 1.55; margin: 0 0 28px; }
.aviso-btn { display: inline-block; padding: 12px 20px; border-radius: 999px; background: #3D6FFF; color: #fff; text-decoration: none; font-weight: 700; }
.volta { display: block; width: 120px; height: 3px; margin: 22px auto 0; border-radius: 3px; background: rgba(207,219,255,.15); overflow: hidden; }
.volta i { display: block; height: 100%; width: 100%; background: #3D6FFF; transform-origin: left; animation: volta 5s linear forwards; }
@keyframes volta { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@media (prefers-reduced-motion: reduce) { .volta i { animation: none; } }

/* Interruptor nunca estica dentro de uma linha de formulário */
.f-row label.sw, .item label.sw { flex: none; }
.item b { display: block; font-size: 16px; font-weight: 600; }
.item small { display: block; color: var(--muted); font-size: 13px; margin-top: 2px; line-height: 1.35; }

/* Topo do resumo: "Detalhes" discreto */
.hero-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.hero-more { display: inline-flex; align-items: center; gap: 2px; font-size: 13px; font-weight: 500; color: var(--muted); padding: 4px 4px 4px 10px; min-height: 32px; border-radius: 16px; }
.hero-more:active { background: rgba(255,255,255,.06); }

/* Ícones em quadradinho colorido (estilo Ajustes do iPhone) */
.tile { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; flex: none; color: #fff;
  background: linear-gradient(180deg, color-mix(in srgb, var(--c) 92%, #fff), var(--c)); box-shadow: inset 0 1px 0 rgba(255,255,255,.25); }
.icon-btn { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; flex: none; color: var(--muted); }
.icon-btn:active { background: rgba(255,255,255,.08); }
.icon-btn.danger { color: var(--red); }

/* Mais */
.me-card { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: 22px; background: linear-gradient(150deg, #2B2F44 0%, #1B1E2D 100%); border: 1px solid rgba(255,255,255,.08); }
.me-card b { display: block; font-size: 19px; font-weight: 700; }
.me-card small { color: rgba(220,230,255,.75); font-size: 13px; }
.me-av { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; flex: none; font-weight: 700; font-size: 19px; color: #fff;
  background: linear-gradient(160deg, #5B86FF, #3D6FFF); box-shadow: inset 0 1px 0 rgba(255,255,255,.3); }
.me-av.sm { width: 38px; height: 38px; font-size: 14px; background: linear-gradient(160deg, #6B7591, #4A5372); }
.me-av.sm.owner { background: linear-gradient(160deg, #5B86FF, #3D6FFF); }
.me-sync { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.12); }
.about { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 28px 0 0; color: var(--muted); font-size: 12px; line-height: 1.5; text-align: left; }
.about .logo { opacity: .7; }

/* Acessos */
.acc-hero { display: flex; gap: 14px; align-items: flex-start; padding: 16px; border-radius: 20px; background: var(--surface); border: 1px solid var(--stroke); }
.acc-hero b { display: block; font-size: 16px; margin-bottom: 4px; }
.acc-hero p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.45; }
.tok-card { margin-top: 14px; padding: 16px; border-radius: 20px; background: rgba(61,111,255,.10); border: 1px solid rgba(61,111,255,.35); }
.tok-h { display: flex; align-items: center; gap: 8px; color: var(--green); }
.tok-h b { color: var(--text); font-size: 16px; }
.tok-card p { margin: 6px 0 12px; color: var(--muted); font-size: 14px; }
.tok-box { display: flex; align-items: center; gap: 6px; background: var(--bg); border-radius: 12px; padding: 4px 4px 4px 12px; margin-bottom: 12px; }
.tok-box code { flex: 1; min-width: 0; font: 13px/1.4 ui-monospace, Menlo, monospace; word-break: break-all; user-select: all; -webkit-user-select: all; }
.tok-card .btn { display: flex; align-items: center; justify-content: center; gap: 8px; }
.item.revoke { align-items: flex-start; background: rgba(255,122,144,.07); }
.revoke-bt { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.mini { font-size: 13px; font-weight: 600; padding: 8px 12px; border-radius: 99px; background: var(--surface2); }
.mini.danger { background: rgba(255,122,144,.18); color: var(--red); }
.mini.ghost { background: none; color: var(--muted); }

/* Entrada (código de acesso) */
.welcome { position: relative; min-height: 100dvh; display: flex; flex-direction: column; justify-content: center; max-width: 460px; margin: 0 auto;
  padding: calc(var(--safe-top) + 28px) 22px calc(var(--safe-bottom) + 28px); }
.welcome::before { content: ""; position: fixed; inset: 0 0 auto; height: 55vh; z-index: -1; pointer-events: none;
  background: radial-gradient(120% 90% at 50% 0%, rgba(130,140,180,.22), transparent 70%); }
.wl-brand { width: 76px; height: 76px; border-radius: 22px; display: grid; place-items: center; background: linear-gradient(160deg, #2B2F44, #14161F);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.18), 0 18px 40px -18px rgba(0,0,0,.8); }
.welcome h1 { font-size: 32px; line-height: 1.12; font-weight: 700; letter-spacing: -.4px; margin: 26px 0 10px; }
.wl-lead { color: var(--muted); font-size: 16px; line-height: 1.5; margin: 0 0 24px; }
.wl-card { background: var(--surface); border: 1px solid var(--stroke); border-radius: 22px; padding: 16px; }
.wl-label { display: block; font-size: 13px; color: var(--muted); margin: 0 4px 8px; }
.wl-input { display: flex; align-items: center; background: var(--bg); border: 1px solid var(--stroke); border-radius: 14px; padding: 0 4px 0 14px; margin-bottom: 14px; }
.wl-input:focus-within { border-color: rgba(61,111,255,.7); box-shadow: 0 0 0 3px rgba(61,111,255,.18); }
.wl-input input { flex: 1; min-width: 0; background: none; border: 0; outline: none; font-size: 16px; padding: 14px 0; }
.wl-msg { min-height: 1.4em; margin: 10px 4px 0; font-size: 14px; color: var(--muted); text-align: center; }
.wl-skip { margin: 18px auto 0; font-size: 15px; color: var(--link); padding: 10px; }
.wl-tip { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 10px 0 0; font-size: 12px; color: var(--muted); text-align: center; }

/* Conta: cabeçalho, tipo e sinal do saldo */
.acc-head { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 8px 0 4px; }
.acc-av { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; font-size: 26px; font-weight: 700; color: #fff; box-shadow: inset 0 1px 0 rgba(255,255,255,.25), 0 12px 28px -14px rgba(0,0,0,.7); }
.acc-name { width: 100%; text-align: center; background: none; border: 0; outline: none; font-size: 22px; font-weight: 700; padding: 6px 0; border-bottom: 1px solid var(--stroke); }
.acc-name:focus { border-bottom-color: rgba(61,111,255,.7); }
.type-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.type-pick { display: flex; align-items: center; gap: 10px; padding: 14px 12px; border-radius: 16px; background: var(--surface); border: 1px solid var(--stroke); text-align: left; font-size: 14px; font-weight: 600; color: var(--muted); }
.type-pick svg { flex: none; }
.type-pick.on { color: var(--text); background: rgba(61,111,255,.16); border-color: rgba(61,111,255,.6); }
.type-pick.on svg { color: var(--link); }
.sign-pill { flex: none; font-size: 13px; font-weight: 600; padding: 7px 12px; border-radius: 99px; background: rgba(61,214,151,.15); color: var(--green); }
.sign-pill.on { background: rgba(255,122,144,.16); color: var(--red); }
.hero-top small { color: var(--muted); font-size: 14px; }

/* Utilitário: ocupa o espaço que sobra e empurra o que vem depois para o canto */
.grow { flex: 1; min-width: 0; }

/* Títulos de seção do resumo: o próprio título abre, com uma seta discreta */
.sect-link { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding-right: 8px; }
.sect-link h2 { margin: 0; }
.sect-chev { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.08); color: var(--muted); transition: transform .2s; }
.sect-link:active .sect-chev { transform: translateX(2px); background: rgba(255,255,255,.14); }
.sect-add { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: rgba(61,111,255,.18); color: var(--link); }

/* Texturas dos cartões (camada por cima do gradiente do banco) */
.ccf::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.ccf-p-blobs::before { background: radial-gradient(60% 80% at 100% 100%, rgba(255,255,255,.16), transparent 60%), radial-gradient(40% 55% at 0% 0%, rgba(255,255,255,.10), transparent 70%); }
.ccf-p-rings::before { background: repeating-radial-gradient(circle at 115% 125%, rgba(255,255,255,.08) 0 1.5px, transparent 1.5px 18px); }
.ccf-p-waves::before { background: radial-gradient(120% 60% at 50% 120%, rgba(255,255,255,.16), transparent 55%), radial-gradient(90% 50% at 30% 125%, rgba(255,255,255,.10), transparent 60%); }
.ccf-p-lines::before { background: repeating-linear-gradient(125deg, rgba(255,255,255,.06) 0 1px, transparent 1px 11px);
  -webkit-mask: linear-gradient(90deg, transparent 30%, #000); mask: linear-gradient(90deg, transparent 30%, #000); }
.ccf-p-dots::before { background: radial-gradient(rgba(255,255,255,.18) 1.1px, transparent 1.4px) 0 0 / 13px 13px;
  -webkit-mask: radial-gradient(70% 90% at 100% 100%, #000, transparent); mask: radial-gradient(70% 90% at 100% 100%, #000, transparent); }

/* Seções do resumo: título à esquerda, seta redonda no fim */
.sect-go { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.08); color: var(--muted); flex: none; }
.sect-go:active { background: rgba(255,255,255,.16); transform: scale(.94); }

.btn[disabled] { opacity: .45; }
.btn { display: flex; align-items: center; justify-content: center; gap: 8px; }

/* Economia */
.eco-hero { position: relative; overflow: hidden; padding: 20px; border-radius: 24px; color: #fff;
  background: radial-gradient(90% 120% at 100% 0%, rgba(61,220,151,.35), transparent 60%), linear-gradient(150deg, #1D5C4A 0%, #133A3A 55%, #171A26 100%);
  border: 1px solid rgba(255,255,255,.08); }
.eco-hero small { color: rgba(220,255,240,.8); font-size: 14px; }
.eco-hero b { display: block; font-size: clamp(30px, 9vw, 38px); font-weight: 700; margin: 2px 0 8px; font-variant-numeric: tabular-nums; }
.eco-hero p { margin: 0; color: rgba(220,240,235,.8); font-size: 13.5px; line-height: 1.45; }
.cb-s { color: var(--green) !important; display: flex; align-items: center; gap: 5px; }
.more-btn { display: block; margin: 8px auto 0; font-size: 14px; color: var(--link); padding: 8px 12px; }

.pot-total { margin: -2px 4px 10px; color: var(--muted); font-size: 14px; }
.pot-total b { color: var(--text); }
.pots { display: grid; gap: 10px; }
.pot { background: var(--surface); border: 1px solid var(--stroke); border-radius: 20px; padding: 14px; }
.pot-top { width: 100%; display: flex; align-items: center; gap: 12px; text-align: left; }
.pot-top b { display: block; font-size: 16px; font-weight: 600; }
.pot-top small { display: block; color: var(--muted); font-size: 13px; margin-top: 2px; }
.pot-emo { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; font-size: 24px; flex: none;
  background: color-mix(in srgb, var(--c, #FF8AB3) 26%, transparent); }
.pot-v { font-weight: 700; font-size: 17px; font-variant-numeric: tabular-nums; }
.pot .bar { margin-top: 12px; }
.pot-bt { display: flex; gap: 8px; margin-top: 12px; }
.pot-bt .mini { display: inline-flex; align-items: center; gap: 6px; }
.pot-empty { width: 100%; display: flex; gap: 14px; align-items: center; text-align: left; }
.pot-empty b { display: block; font-size: 16px; }
.pot-empty small { display: block; color: var(--muted); font-size: 13.5px; line-height: 1.4; margin-top: 3px; }

.sim { padding: 16px; }
.sim-lead { margin: 0 0 12px; color: var(--muted); font-size: 14px; line-height: 1.45; }
.sim .f-group { background: var(--surface2); }
.sim .btn { margin-top: 12px; }
.sim-res { margin-top: 16px; padding: 16px; border-radius: 18px; background: color-mix(in srgb, var(--c) 10%, var(--bg)); border: 1px solid color-mix(in srgb, var(--c) 45%, transparent); }
.sim-v { display: flex; align-items: center; gap: 10px; }
.sim-v b { font-size: 19px; color: var(--c); }
.sim-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 4px color-mix(in srgb, var(--c) 25%, transparent); }
.sim-res > p { margin: 8px 0 0; font-size: 14px; line-height: 1.5; color: var(--text); }
.sim-warn { display: flex; gap: 6px; align-items: center; color: var(--yellow) !important; }
.sim-cb { display: flex; gap: 6px; align-items: center; color: var(--green) !important; }
.sim-months { margin-top: 14px; display: grid; gap: 8px; }
.sm-row { display: grid; grid-template-columns: 44px 1fr 52px; align-items: center; gap: 8px; font-size: 13px; }
.sm-m { color: var(--muted); text-transform: capitalize; }
.sm-bar { position: relative; height: 12px; border-radius: 6px; background: rgba(255,255,255,.06); display: flex; overflow: visible; }
.sm-bar i { display: block; height: 100%; }
.sm-bar i.old { background: rgba(207,219,255,.35); border-radius: 6px 0 0 6px; }
.sm-bar i.new { background: var(--c); border-radius: 0 6px 6px 0; }
.sm-bar em { position: absolute; top: -3px; bottom: -3px; width: 2px; margin-left: -1px; background: #fff; border-radius: 1px; opacity: .8; }
.sm-p { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.sm-leg { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin: 10px 0 0; }
.sm-leg i, .sm-leg em { display: inline-block; width: 10px; height: 10px; border-radius: 3px; }
.sm-leg i.old { background: rgba(207,219,255,.35); } .sm-leg i.new { background: var(--c); } .sm-leg em { width: 2px; height: 12px; background: #fff; }

.cb-row { width: 100%; display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 12px 0; text-align: left; }
.cb-main b { display: block; font-size: 16px; font-weight: 600; }
.cb-main small { display: block; color: var(--muted); font-size: 13px; margin-top: 2px; }
.cb-amt { font-weight: 600; font-variant-numeric: tabular-nums; align-self: start; }
.cb-s { grid-column: 1 / -1; display: flex; align-items: center; gap: 5px; margin-top: 6px; font-size: 13px; color: var(--green); }
.cb-s b { font-weight: 700; }

.sim-tip { color: var(--muted) !important; font-size: 13px !important; }

/* Por dia */
.pd { padding: 18px 16px 14px; }
.pd > small { color: var(--muted); font-size: 14px; }
.pd-v { display: block; font-size: clamp(28px, 8.5vw, 34px); font-weight: 700; margin: 2px 0 6px; font-variant-numeric: tabular-nums; }
.pd-v span { font-size: 15px; font-weight: 500; color: var(--muted); }
.pd-sub { margin: 0 0 12px; color: var(--muted); font-size: 13.5px; line-height: 1.45; }
.pd-in { background: var(--surface2); }
.pd-ok, .pd-bad { display: flex; gap: 8px; align-items: flex-start; margin: 12px 2px 0; font-size: 14px; line-height: 1.45; }
.pd-ok { color: var(--green); } .pd-bad { color: var(--red); }
.pd-ok svg, .pd-bad svg { flex: none; margin-top: 2px; }

.pd-warn { display: flex; gap: 8px; align-items: flex-start; margin: 12px 2px 0; font-size: 14px; line-height: 1.45; color: var(--yellow); }
.pd-warn svg { flex: none; margin-top: 2px; }
.pd-calc { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 12px 14px; margin: 0 0 12px; border-radius: 14px; background: var(--surface2); }
.pd-calc small { display: block; color: var(--muted); font-size: 11.5px; }
.pd-calc b { font-size: 14.5px; font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.pd-calc > span { color: var(--muted); }

/* Despesa no cartão — versão enxuta */
.cx-hero { text-align: center; padding: 16px 0 4px; }
.cx-hero label { display: block; font-size: 13px; color: var(--muted); }
.cx-money { width: 100%; text-align: center; background: none; border: 0; outline: none; font-size: 46px; font-weight: 700; letter-spacing: -1px; padding: 4px 0; font-variant-numeric: tabular-nums; }
.cx-chips { display: flex; gap: 8px; overflow-x: auto; margin: 14px -14px 0; padding: 0 14px; scrollbar-width: none; }
.cx-chips::-webkit-scrollbar { display: none; }
.cx-chip { flex: none; display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 16px 0 10px; border-radius: 999px; background: var(--surface); border: 1px solid var(--stroke); font-size: 14px; font-weight: 600; color: var(--muted); }
.cx-chip.on { color: var(--text); background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.55); }
.mini-card.sm { width: 28px; height: 20px; border-radius: 5px; }
.cx-inv .grow { padding: 8px 0; }
.cx-inv-t { font-size: 15px; font-weight: 600; }
.cx-inv-s { font-size: 13px; color: var(--muted); margin-top: 2px; }
.cx-step { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--surface2); color: var(--text); }
.cx-step:disabled { opacity: .35; }
.cx-more { width: 100%; display: flex; align-items: center; justify-content: space-between; margin-top: 18px; padding: 0 16px; min-height: 48px; border-radius: 14px; background: var(--surface); font-size: 16px; font-weight: 600; text-align: left; }
.cx-more-c { color: var(--muted); transition: transform .3s cubic-bezier(.3, 1.3, .5, 1); display: grid; }
.cx-more.open .cx-more-c { transform: rotate(90deg); }

/* ───────── Início no desenho do mockup ───────── */
body::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(380px 380px at -8% -4%, rgba(110,125,175,.26), transparent 70%), radial-gradient(360px 360px at 112% 72%, rgba(61,111,255,.13), transparent 70%); }
.home-h { background: none; border-radius: 0; padding: calc(var(--safe-top) + 12px) 16px 6px; display: flex; align-items: center; justify-content: space-between; max-width: 590px; margin: 0 auto; }
.hh-who { display: flex; align-items: center; gap: 12px; min-width: 0; }
.hh-av { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; flex: none; background: #1A1E2E; border: 1px solid rgba(255,255,255,.2); box-shadow: inset 0 1px 0 rgba(255,255,255,.18); }
.hh-t small { display: block; font-size: 13px; color: var(--muted); }
.hh-t b { display: block; font-size: 20px; font-weight: 700; letter-spacing: -.02em; }
.hb { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); box-shadow: inset 0 1px 0 rgba(255,255,255,.2); }
.home-body { margin-top: 0; padding-top: 14px; }
.hero-card { border-radius: 30px; padding: 22px; background: linear-gradient(160deg, #242839 0%, #161927 55%, #10121C 100%); border: 1px solid rgba(255,255,255,.12);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.18), 0 24px 48px -16px rgba(0,0,0,.6); }
.hero-card .hero-top { gap: 10px; }
.hero-card .hero-top > small { font-size: 13.5px; font-weight: 600; color: #C4CADB; }
.hero-card .month-nav { height: 30px; background: rgba(255,255,255,.07); box-shadow: inset 0 0 0 1px rgba(255,255,255,.14); }
.hero-card .month-nav button { height: 30px; width: 26px; }
.hero-card .month-nav .label { font-size: 12.5px; }
.hero-amt { display: flex; align-items: baseline; gap: 6px; margin: 14px 0 18px; font-variant-numeric: tabular-nums; }
.hero-amt .cur { font-size: 20px; font-weight: 600; color: var(--muted); }
.hero-amt b { font-size: clamp(40px, 13vw, 50px); font-weight: 800; letter-spacing: -.035em; line-height: 1; }
.hero-amt .cen { font-size: 24px; font-weight: 700; color: var(--muted); }
.hero-amt.neg b { color: var(--red); }
.hero-split { border-top: 0; padding-top: 0; gap: 10px; }
.hs-tile { text-align: left; border-radius: 20px; padding: 14px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.hs-tile:active { background: rgba(255,255,255,.1); }
.hs-tile small { font-size: 12.5px; color: var(--muted); }
.hs-tile span { font-size: 17px; font-weight: 800; letter-spacing: -.01em; white-space: nowrap; }
.hs-tile em { font-style: normal; font-size: 12px; color: #7F879B; }
.hero-card > .hero-more { display: flex; margin: 10px auto 0; font-size: 12.5px; }
.shortcuts { padding: 14px 6px 12px; border-radius: 28px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); box-shadow: inset 0 1px 0 rgba(255,255,255,.16);
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); gap: 4px; }
.sc-ic { width: 54px; height: 54px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); box-shadow: inset 0 1px 0 rgba(255,255,255,.26); color: #E6EAF5; }
.sc-l { font-size: 12px; color: #D6DBE8; white-space: nowrap; }
.list, .card { border: 1px solid rgba(255,255,255,.07); }
.list { border-radius: 26px; padding: 4px 14px; }
.sect-h h2 { font-size: 17px; }
.hero-card .month-nav .label { width: auto; padding: 0 6px; }
.hero-amt b + .cen { margin-left: -4px; }

/* Ritmo do mês (Início) */
.ritmo { border-radius: 26px; padding: 18px; background: rgba(255,255,255,.055); border: 1px solid rgba(255,255,255,.09); }
.rt-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.rt-h h2 { margin: 0; font-size: 17px; font-weight: 700; }
.rt-chip { font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: rgba(61,220,151,.15); color: var(--green); white-space: nowrap; }
.rt-chip.warn { background: rgba(255,181,71,.18); color: #FFC46B; } .rt-chip.bad { background: rgba(255,122,144,.16); color: var(--red); } .rt-chip.end { background: rgba(255,255,255,.09); color: var(--muted); }
.rt-main { margin: 14px 0; display: flex; flex-direction: column; gap: 2px; }
.rt-main small { font-size: 13px; color: var(--muted); }
.rt-v { font-size: 30px; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.rt-bar { position: relative; height: 10px; border-radius: 999px; background: rgba(255,255,255,.1); }
.rt-bar i { position: absolute; inset: 0 auto 0 0; border-radius: 999px; background: var(--play); }
.rt-bar em { position: absolute; top: -4px; width: 2px; height: 18px; margin-left: -1px; border-radius: 2px; background: #F3F5FA; }
.rt-foot { display: flex; justify-content: space-between; gap: 8px; margin-top: 8px; font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.rt-warn { display: flex; gap: 8px; align-items: flex-start; margin: 14px 0 0; padding: 10px 12px; border-radius: 14px; background: rgba(255,181,71,.12); color: #FFC46B; font-size: 13.5px; line-height: 1.45; }
.rt-warn.bad { background: rgba(255,122,144,.12); color: var(--red); }
.rt-warn svg { flex: none; margin-top: 2px; }
.rt-note { display: flex; align-items: center; gap: 5px; margin: 6px 0 0; font-size: 12.5px; color: var(--muted); }
.rt-note.up svg { color: var(--green); } .rt-note.down svg { color: #FFC46B; }

.rt-per { font-size: 15px; font-weight: 500; color: var(--muted); letter-spacing: 0; margin-left: 4px; }
.rt-main { margin: 10px 0 14px; }

/* Cartão: botão de pagar sem abrir */
.cc-wrap { padding: 10px; }
.cc-open { display: block; width: 100%; text-align: left; border-radius: 20px; }
.cc-open:active { transform: scale(.99); }
.cc-pay { display: block; width: calc(100% - 4px); margin: 12px 2px 2px; height: 48px; border-radius: 999px; background: var(--play); color: #fff; font-size: 15.5px; font-weight: 700;
  border: 1px solid rgba(255,255,255,.26); box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 10px 22px -10px rgba(47,95,240,.7); }
.cc-pay:active { opacity: .8; }
.cc-paid { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 12px 2px 2px; height: 44px; border-radius: 999px; color: var(--green); background: rgba(61,220,151,.1); font-weight: 600; font-size: 14.5px; }

/* ───────── Uniformidade: mesmo desenho do Resumo nas outras abas ───────── */
.topbar h1 { font-size: 28px; font-weight: 800; letter-spacing: -.02em; }
.card, .group, .pot, .oculto { background: rgba(255,255,255,.055); border: 1px solid rgba(255,255,255,.09); border-radius: 26px; }
.group { overflow: hidden; }
.cc-wrap { background: rgba(255,255,255,.055); border: 1px solid rgba(255,255,255,.09); border-radius: 30px; }
.list { background: rgba(255,255,255,.055); }
.oc-in .list { background: rgba(255,255,255,.05); }
.sim .f-group, .pd-in { background: rgba(255,255,255,.06); }
/* segmentado em pílula de vidro */
.seg { border-radius: 999px; padding: 4px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); }
.seg button { border-radius: 999px; min-height: 38px; }
.seg button.on { background: rgba(255,255,255,.17); color: #fff; box-shadow: inset 0 1px 0 rgba(255,255,255,.38); }
.search { border-radius: 999px; padding: 12px 18px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); }
/* botões e chips arredondados */
.btn { border: 1px solid rgba(255,255,255,.26); box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 10px 22px -10px rgba(47,95,240,.7); }
.btn.ghost { box-shadow: inset 0 1px 0 rgba(255,255,255,.2); background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.14); }
.mini { background: rgba(255,255,255,.09); border: 1px solid rgba(255,255,255,.12); box-shadow: inset 0 1px 0 rgba(255,255,255,.2); }
.sect-add, .sect-go, .sync-btn[data-act="newCard"] { border: 1px solid rgba(255,255,255,.14); box-shadow: inset 0 1px 0 rgba(255,255,255,.2); }
.me-card { border-radius: 30px; box-shadow: inset 0 1px 0 rgba(255,255,255,.16); }
.eco-hero { border-radius: 30px; box-shadow: inset 0 1px 0 rgba(255,255,255,.16), 0 24px 48px -16px rgba(0,0,0,.6); border-color: rgba(255,255,255,.12); }
.totals3 { border-radius: 26px; }
.stepper, .f-row select, .f-row input[type=date], .f-row input[type=datetime-local] { border-radius: 999px; }
.type-pick, .pay-sum { border-radius: 22px; }

/* ───────── Texto corrido justificado ───────── */
.rt-warn span, .foot, .pd-sub, .sim-lead, .acc-hero p, .eco-hero p, .tok-card p, .pot-empty small, .sim-res > p, .wl-lead, .f-hint, .f-warn, .item small, .oc-h small, .cb-s { text-align: justify; hyphens: auto; -webkit-hyphens: auto; }
.foot.center, .wl-msg, .wl-tip, .empty, .about { text-align: center; }
.about { text-align: left; }

/* ───────── Animações ───────── */
@keyframes rise { from { opacity: 0; transform: translateY(16px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes tabpop { 0% { transform: scale(1); } 35% { transform: scale(1.28) translateY(-3px); } 65% { transform: scale(.94); } 100% { transform: scale(1); } }
@keyframes iconwiggle { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-12deg); } 60% { transform: rotate(9deg); } }
@keyframes softpulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(61,111,255,.0); } 50% { box-shadow: 0 0 0 6px rgba(61,111,255,.14); } }
.rise .screen > *, .rise.screen > * { animation: rise .5s cubic-bezier(.2,.8,.2,1) both; }
.rise .screen > *:nth-child(1), .rise.screen > *:nth-child(1) { animation-delay: 0ms; }
.rise .screen > *:nth-child(2), .rise.screen > *:nth-child(2) { animation-delay: 50ms; }
.rise .screen > *:nth-child(3), .rise.screen > *:nth-child(3) { animation-delay: 100ms; }
.rise .screen > *:nth-child(4), .rise.screen > *:nth-child(4) { animation-delay: 150ms; }
.rise .screen > *:nth-child(5), .rise.screen > *:nth-child(5) { animation-delay: 200ms; }
.rise .screen > *:nth-child(n+6), .rise.screen > *:nth-child(n+6) { animation-delay: 250ms; }
.tabbar.pop button.on svg { animation: tabpop .55s cubic-bezier(.3,1.5,.5,1); }
/* toque: botões e ícones respondem */
button, .row, .item, .cc-wrap, .sc, .hs-tile { transition: transform .22s cubic-bezier(.3,1.6,.5,1), background-color .2s, opacity .2s; }
button:active:not(:disabled) { transform: scale(.95); }
.row:active, .item:active { transform: scale(.985); }
.sc:active .sc-ic { transform: scale(.9); }
.sc:active .sc-ic svg, .hb:active svg, .sect-go:active svg, .sect-add:active svg, .month-nav button:active svg, .cx-step:active svg { animation: iconwiggle .45s ease; }
.sc-ic, .hb, .sect-go, .sect-add { transition: transform .25s cubic-bezier(.3,1.6,.5,1), background-color .2s; }
.month-nav button:active { transform: scale(.88); }
.cc-pay, .btn { transition: transform .22s cubic-bezier(.3,1.6,.5,1), box-shadow .25s; }
.cc-pay:active, .btn:active { box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 4px 10px -6px rgba(47,95,240,.7); }
.rt-bar i { transition: width .8s cubic-bezier(.2,.8,.2,1); }
.rt-bar i, .bar i { animation: growx .9s cubic-bezier(.2,.8,.2,1) both; transform-origin: left; }
@keyframes growx { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.sw span, .sw span::after { transition: background-color .25s, transform .35s cubic-bezier(.3,1.6,.5,1); }
.sync-btn:not(.spin), .hb { transition: transform .25s cubic-bezier(.3,1.6,.5,1); }
.spin { animation: spin 1s linear infinite; }
.pot-emo { transition: transform .3s cubic-bezier(.3,1.6,.5,1); } .pot-top:active .pot-emo { transform: scale(1.15) rotate(-6deg); }
@media (prefers-reduced-motion: reduce) { .rise .screen > *, .rise.screen > *, .tabbar.pop button.on svg, .rt-bar i, .bar i { animation: none !important; } button:active:not(:disabled) { transform: none; } }

/* ───────── Topo das telas internas: título centralizado de verdade ───────── */
.topbar:has(.back) { display: grid; grid-template-columns: 1fr auto 1fr; }
.topbar:has(.back) > .back { justify-self: start; }
.topbar:has(.back) > .sub-title { flex: none; text-align: center; white-space: nowrap; }
.topbar:has(.back) > :last-child:not(.sub-title) { justify-self: end; }
.topbar:has(.back) > .sub-title:last-child::after { content: ""; }

/* ───────── Potinhos: ações no topo do cartão ───────── */
.pot-row { display: flex; align-items: center; gap: 10px; }
.pot-row .pot-top { flex: 1; min-width: 0; width: auto; }
.pot-top .pot-v { display: block; font-size: 20px; font-weight: 800; margin: 2px 0 1px; letter-spacing: -.01em; }
.pot-act { display: flex; flex-direction: column; gap: 6px; }
.pa { display: inline-flex; align-items: center; gap: 5px; padding: 7px 12px 7px 9px; border-radius: 999px; font-size: 12.5px; font-weight: 700; border: 1px solid var(--stroke); background: color-mix(in srgb, var(--surface2) 80%, transparent); color: var(--text); }
.pa i { font-style: normal; }
.pa.in { color: #3DDC97; background: color-mix(in srgb, #3DDC97 14%, transparent); border-color: color-mix(in srgb, #3DDC97 35%, transparent); }
.pa.out { color: #FFB86B; background: color-mix(in srgb, #FFB86B 12%, transparent); border-color: color-mix(in srgb, #FFB86B 32%, transparent); }
.vs-l { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; }
.vs-l span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.rt-tip { display: flex; gap: 8px; align-items: flex-start; margin: 12px 0 0; padding: 10px 12px; border-radius: 14px; font-size: 13px; line-height: 1.4; color: #8FE8BE; background: color-mix(in srgb, #3DDC97 10%, transparent); border: 1px solid color-mix(in srgb, #3DDC97 25%, transparent); }
.rt-tip svg { flex: none; margin-top: 2px; } .rt-tip span { text-align: left; }

.fat-sub { font-size: 12.5px; color: var(--muted); margin-top: 2px; }

.f-label + .type-grid { margin-top: 18px; }
.type-grid { margin-bottom: 4px; }

.acc-prev { padding: 0 16px 10px 52px; font-size: 13px; color: var(--muted); } .acc-prev:empty { display: none; } .acc-prev b { color: var(--text); font-weight: 700; } .acc-prev b.neg { color: #FF7A90; }

/* Menu flutuante sempre na mesma posição e tamanho */
.tabbar.compact { --tabbar: 64px; }
.tabbar.compact button span { max-height: 12px; opacity: 1; }
/* Animação de toque: salto + brilho; o ícone dá um pulinho */
@keyframes tapbounce { 0% { transform: scale(1); } 30% { transform: scale(.93); filter: brightness(1.25); } 65% { transform: scale(1.035); } 100% { transform: scale(1); filter: none; } }
@keyframes tapicon { 0% { transform: scale(1) rotate(0); } 35% { transform: scale(1.3) rotate(-10deg); } 70% { transform: scale(.92) rotate(6deg); } 100% { transform: scale(1) rotate(0); } }
.tap { animation: tapbounce .45s cubic-bezier(.3,1.5,.5,1); }
.tap svg, .tap .sc-ic, .tap .pot-emo, .tap .tile, .tap .circle { animation: tapicon .5s cubic-bezier(.3,1.5,.5,1); transform-origin: 50% 50%; }
.row, .item, .cb-row, .hs-tile, .sc, .cc-open, .more-btn, .month-nav button, .seg button, .type-pick, .icon-pick, .bank-pick, .pa, .mini, .pill { -webkit-tap-highlight-color: transparent; }
.row:active, .item:active, .cb-row:active, .more-btn:active, .type-pick:active, .icon-pick:active, .bank-pick:active { background-color: color-mix(in srgb, var(--text) 7%, transparent); }
.seg button, .type-pick, .icon-pick, .bank-pick { transition: transform .25s cubic-bezier(.3,1.6,.5,1), background-color .2s, border-color .2s, color .2s; }
.sw span { transition: background-color .25s, box-shadow .25s; }
@media (prefers-reduced-motion: reduce) { .tap, .tap svg { animation: none !important; } }

.shortcuts { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; }
.shortcuts .sc-l { font-size: 12px; white-space: nowrap; }
.rt-tip.warn { color: #FFD15C; background: color-mix(in srgb, #FFD15C 10%, transparent); border-color: color-mix(in srgb, #FFD15C 25%, transparent); }

/* ── Ajustes 2026.11.06b ── */
/* Atalhos do Resumo: 4 posições (Receita, Despesa, Pagar fatura, Oculto) */
.shortcuts { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.sc-ic { position: relative; }
.sc-badge { position: absolute; top: -3px; right: -3px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--play, #3D6FFF); color: #fff;
  font: 700 11px/18px inherit; font-style: normal; text-align: center; box-shadow: 0 0 0 2px var(--bg); }
.sheet .row.off .t, .sheet .row.off .s { opacity: .55; }

/* Ritmo do mês: variação do valor por dia, discreta */
.rt-note { gap: 7px; }
.rt-delta { display: inline-flex; align-items: center; gap: 2px; padding: 1px 7px 1px 5px; border-radius: 999px; font-weight: 700; font-size: 12px; font-variant-numeric: tabular-nums; }
.rt-note.up .rt-delta { color: var(--green, #3DDC97); background: color-mix(in srgb, var(--green, #3DDC97) 14%, transparent); }
.rt-note.down .rt-delta { color: #FFC46B; background: color-mix(in srgb, #FFC46B 14%, transparent); }
.rt-note .rt-delta svg { color: currentColor; }

/* Raio-X */
.sim-res > p b { color: #fff; font-weight: 700; }

/* Menu flutuante: vidro mais líquido e transparente; nomes legíveis com sombra suave */
.tabbar {
  background:
    radial-gradient(150px 120% at var(--lx) 0%, rgba(255, 255, 255, .16), transparent 70%),
    linear-gradient(180deg, rgba(255, 255, 255, .10) 0%, rgba(255, 255, 255, .02) 50%, rgba(255, 255, 255, .05) 100%);
  background-color: rgba(24, 26, 36, .10);
  -webkit-backdrop-filter: blur(9px) saturate(2.4) brightness(1.08); backdrop-filter: blur(9px) saturate(2.4) brightness(1.08);
}
.tabbar button { color: rgba(255, 255, 255, .82); text-shadow: 0 1px 2px rgba(0, 0, 0, .75), 0 0 8px rgba(0, 0, 0, .45); }
.tabbar button svg { filter: drop-shadow(0 1px 1.5px rgba(0, 0, 0, .6)); }
.tabbar button.on { color: #fff; }

/* Teclado aberto: o menu flutuante sai da frente */
.kb .tabbar { opacity: 0; pointer-events: none; transform: translateX(-50%) translateY(140%); transition: transform .2s ease, opacity .15s ease; }

/* ── Trava com Face ID ── */
#lock { position: fixed; inset: 0; z-index: 100; display: none; place-items: center; background: var(--bg); color: var(--text);
  padding: calc(var(--safe-top, 0px) + 24px) 24px calc(var(--safe-bottom, 0px) + 24px); overflow: hidden; }
#lock.lk-on { display: grid; }
.travado body { overflow: hidden; }
.lk-glow { position: absolute; inset: -30%; pointer-events: none;
  background: radial-gradient(40% 32% at 50% 44%, rgba(61,111,255,.28), transparent 70%), radial-gradient(60% 40% at 50% 110%, rgba(31,58,122,.45), transparent 70%);
  animation: lkGlow 4s ease-in-out infinite alternate; }
.lk-c { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; width: min(100%, 340px); }
.lk-mark { position: relative; width: 132px; height: 132px; display: grid; place-items: center; margin-bottom: 26px; }
.lk-logo { width: 64px; height: 64px; overflow: visible; }
.lk-logo g path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: lkDraw .9s cubic-bezier(.6,0,.2,1) forwards; }
.lk-logo g path + path { animation-delay: .32s; }
.lk-play { transform-box: fill-box; transform-origin: center; transform: scale(0); animation: lkPop .5s cubic-bezier(.3,1.6,.5,1) 1s forwards; }
.lk-ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.lk-ring circle { fill: none; stroke-width: 3; }
.lk-ring-bg { stroke: rgba(255,255,255,.08); }
.lk-ring-arc { stroke: #3D6FFF; stroke-linecap: round; stroke-dasharray: 0 100; transition: stroke-dasharray .5s cubic-bezier(.3,.8,.3,1), stroke .3s; filter: drop-shadow(0 0 6px rgba(61,111,255,.7)); }
/* lendo o Face ID: arco girando e o logo "respirando" */
.lk-lendo .lk-ring { animation: lkSpin 1.1s linear infinite; }
.lk-lendo .lk-ring-arc { stroke-dasharray: 26 74; }
.lk-lendo .lk-logo { animation: lkBreath 1.6s ease-in-out infinite; }
/* deu certo: o círculo fecha, o logo dá um pulinho e a tela abre a partir do centro */
.lk-ok .lk-ring { animation: none; transform: rotate(-90deg); }
.lk-ok .lk-ring-arc { stroke-dasharray: 100 0; stroke: #3DDC97; filter: drop-shadow(0 0 10px rgba(61,220,151,.7)); }
.lk-ok .lk-logo { animation: lkYes .5s cubic-bezier(.3,1.6,.5,1); }
.lk-ok .lk-s { color: #3DDC97; }
#lock.lk-saindo { animation: lkOut .6s cubic-bezier(.6,0,.2,1) forwards; pointer-events: none; }
.destravou #app { animation: lkIn .6s cubic-bezier(.2,.8,.2,1); }
.lk-erro .lk-mark { animation: lkShake .45s; }
.lk-erro .lk-ring-arc { stroke: #FF7A90; }
.lk-t { font-size: 22px; font-weight: 800; letter-spacing: -.01em; opacity: 0; animation: lkUp .5s ease .55s forwards; }
.lk-s { margin-top: 6px; font-size: 14.5px; color: var(--muted); min-height: 20px; opacity: 0; animation: lkUp .5s ease .7s forwards; transition: color .2s; }
.lk-btn { margin-top: 30px; display: inline-flex; align-items: center; gap: 9px; padding: 14px 26px; border-radius: 999px; font-size: 16px; font-weight: 700; color: #fff;
  background: #3D6FFF; box-shadow: 0 12px 30px -10px rgba(61,111,255,.8), inset 0 1px 0 rgba(255,255,255,.3); animation: lkUp .35s ease; }
.lk-btn:active { transform: scale(.96); }
.lk-alt { margin-top: 16px; font-size: 14px; color: var(--link, #B9C6EE); padding: 8px; }
.lk-form { margin-top: 18px; display: flex; gap: 8px; width: 100%; animation: lkUp .3s ease; }
.lk-form input { flex: 1; min-width: 0; padding: 13px 16px; border-radius: 14px; background: var(--surface); border: 1px solid var(--stroke); color: var(--text); font-size: 16px; }
.lk-form button { padding: 0 18px; border-radius: 14px; background: #3D6FFF; color: #fff; font-weight: 700; }
#lock [hidden] { display: none !important; }
@keyframes lkDraw { to { stroke-dashoffset: 0; } }
@keyframes lkPop { to { transform: scale(1); } }
@keyframes lkSpin { to { transform: rotate(270deg); } }
@keyframes lkBreath { 50% { transform: scale(.92); opacity: .8; } }
@keyframes lkYes { 40% { transform: scale(1.18); } 100% { transform: scale(1); } }
@keyframes lkShake { 20%, 60% { transform: translateX(-8px); } 40%, 80% { transform: translateX(8px); } }
@keyframes lkUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes lkGlow { to { transform: scale(1.08); opacity: .8; } }
@keyframes lkOut { 0% { clip-path: circle(150% at 50% 42%); } 100% { clip-path: circle(0% at 50% 42%); opacity: .6; } }
@keyframes lkIn { from { transform: scale(.94); opacity: 0; filter: blur(6px); } to { transform: none; opacity: 1; filter: none; } }
@media (prefers-reduced-motion: reduce) {
  .lk-glow, .lk-lendo .lk-ring, .lk-lendo .lk-logo, .lk-ok .lk-logo, .lk-erro .lk-mark, #lock.lk-saindo, .destravou #app { animation: none !important; }
  .lk-logo g path { stroke-dashoffset: 0; animation: none; } .lk-play { transform: none; animation: none; } .lk-t, .lk-s { opacity: 1; animation: none; }
}
.lk-ring-arc { opacity: 0; }
.lk-lendo .lk-ring-arc, .lk-ok .lk-ring-arc, .lk-erro .lk-ring-arc { opacity: 1; }
.lk-alt { opacity: 0; animation: lkUp .4s ease .85s forwards; }
.lk-sel { -webkit-appearance: none; appearance: none; border: 0; border-radius: 999px; padding: 7px 14px; background: var(--surface2); color: var(--text); font: inherit; font-size: 15px; text-align: right; }
/* a tela toda é o botão: o anel pulsa convidando o toque */
#lock { cursor: pointer; -webkit-tap-highlight-color: transparent; }
.lk-esperando:not(.lk-lendo):not(.lk-ok) .lk-mark::after { content: ""; position: absolute; inset: 4px; border-radius: 50%; border: 2px solid rgba(61,111,255,.55); animation: lkPulse 2s ease-out 1.2s infinite; opacity: 0; }
@keyframes lkPulse { 0% { transform: scale(.9); opacity: .9; } 100% { transform: scale(1.35); opacity: 0; } }
.lk-ok .lk-alt, .lk-ok .lk-form { visibility: hidden; }
.lk-ok .lk-ring-arc { filter: none; }
.lk-ok .lk-mark { border-radius: 50%; box-shadow: 0 0 34px -4px rgba(61,220,151,.55); transition: box-shadow .3s; }
.lk-lendo .lk-ring-arc { filter: none; }
@media (prefers-reduced-motion: reduce) { .lk-mark::after { animation: none !important; } }

/* ── 2026.11.06e ── */
/* capa ao sair do app: parada, sem animação (ao voltar não "replay" do logo) */
.lk-quieto .lk-logo g path { animation: none; stroke-dashoffset: 0; }
.lk-quieto .lk-play { animation: none; transform: none; }
.lk-quieto .lk-t, .lk-quieto .lk-s, .lk-quieto .lk-alt { animation: none; opacity: 1; }
.lk-quieto .lk-glow { animation: none; }

/* Desafio "dia sem gastar" (dentro do Ritmo, uma linha) */
.ds { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; padding-top: 11px; border-top: 1px solid rgba(255,255,255,.07); font-size: 13px; color: var(--muted); }
.ds-t b { color: var(--text); font-weight: 700; }
.ds-t em { font-style: normal; color: #7F879B; }
.ds-dots { display: flex; gap: 5px; flex: none; }
.ds-dots i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,.12); }
.ds-dots i.livre { background: var(--green); box-shadow: 0 0 6px rgba(61,220,151,.45); }
.ds-dots i.hoje { background: transparent; box-shadow: inset 0 0 0 1.5px var(--green); }
.ds-dots i.antes { background: transparent; box-shadow: inset 0 0 0 1px rgba(255,255,255,.1); }

/* Siri */
.sr-hero { text-align: center; padding: 22px 18px 18px; margin-bottom: 14px; border-radius: 26px; background: linear-gradient(160deg, rgba(255,77,109,.16), rgba(61,111,255,.12)); border: 1px solid rgba(255,255,255,.08); }
.sr-ic { width: 56px; height: 56px; margin: 0 auto 12px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: linear-gradient(135deg, #FF4D6D, #7B61FF 55%, #3D6FFF); box-shadow: 0 10px 26px -10px rgba(123,97,255,.9); }
.sr-hero b { display: block; font-size: 18px; line-height: 1.35; }
.sr-hero p { margin: 8px 0 0; font-size: 14px; color: var(--muted); line-height: 1.45; }
.sr-frase { margin: 14px 2px 2px; padding: 14px; border-radius: 16px; background: rgba(61,111,255,.1); border: 1px solid rgba(61,111,255,.25); font-size: 15px; line-height: 1.5; }
.sr-code { padding: 4px 2px 6px; }
.sr-code small { display: block; font-size: 12.5px; color: var(--muted); margin-bottom: 6px; }
.sr-code code { display: block; padding: 12px; border-radius: 12px; background: var(--surface2); font-size: 13px; word-break: break-all; user-select: all; -webkit-user-select: all; }
.sr-copy { display: flex; gap: 8px; margin-top: 10px; }
.pill-btn { flex: 1; padding: 10px 12px; border-radius: 999px; background: rgba(61,111,255,.16); color: #CFDBFF; font-weight: 700; font-size: 14px; border: 1px solid rgba(61,111,255,.3); }
.sr-steps { list-style: none; margin: 16px 0 4px; padding: 0; display: grid; gap: 12px; }
.sr-steps li { display: flex; gap: 11px; align-items: flex-start; font-size: 14.5px; line-height: 1.45; }
.sr-steps code { font-size: 12.5px; padding: 1px 5px; border-radius: 6px; background: var(--surface2); }
.sr-n { flex: none; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; background: var(--surface2); font-size: 12.5px; font-weight: 700; }
.sr-url { display: block; margin-top: 6px; padding: 8px 10px; font-size: 12.5px; word-break: break-all; user-select: all; -webkit-user-select: all; }

/* Dias sem gastar v2: verde = teve gasto, cinza = sem gasto */
.ds { display: block; }
.ds-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ds-leg { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; color: #7F879B; white-space: nowrap; }
.ds-leg i { width: 7px; height: 7px; border-radius: 50%; display: inline-block; }
.ds-leg i.s { margin-left: 6px; }
.ds-leg i.g, .dz.g i { background: var(--green); }
.ds-leg i.s, .dz.s i { background: rgba(255,255,255,.22); }
.ds-dias { display: grid; grid-template-columns: repeat(7, 1fr); margin-top: 10px; }
.dz { display: flex; flex-direction: column; align-items: center; gap: 5px; }
.dz i { width: 10px; height: 10px; border-radius: 50%; }
.dz.a i { background: transparent; box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); }
.dz small { font-size: 10.5px; color: #7F879B; line-height: 1; }
.dz.hj small { color: var(--text); font-weight: 700; }
.dz.hj i { box-shadow: 0 0 0 2.5px var(--bg), 0 0 0 3.5px rgba(255,255,255,.5); }
