/* Aura — fundo branco, tipografia de sistema (SF no iPhone, Inter no resto), inspiração Apple. */
:root {
  --bg: #ffffff; --bg2: #f5f5f7; --bg3: #e8e8ed; --text: #1d1d1f; --text2: #6e6e73; --text3: #86868b;
  --line: rgba(0, 0, 0, .08); --line2: rgba(0, 0, 0, .12);
  --blue: #0071e3; --blue-h: #0077ed; --blue-soft: #e8f1fc;
  --green: #248a3d; --green-b: #34c759; --green-soft: #e8f6ec;
  --red: #d70015; --red-b: #ff3b30; --red-soft: #fdecee;
  --orange: #c45500; --orange-b: #ff9500; --orange-soft: #fff3e3;
  --r-sm: 10px; --r: 14px; --r-lg: 20px; --r-xl: 24px;
  --shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 6px 20px rgba(0, 0, 0, .06);
  --shadow-lg: 0 10px 40px rgba(0, 0, 0, .14);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Inter", system-ui, "Segoe UI", Roboto, sans-serif;
  --tab-h: 62px; --sb: env(safe-area-inset-bottom, 0px); --st: env(safe-area-inset-top, 0px);
  color-scheme: light;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 16px/1.42 var(--font); letter-spacing: -.011em; -webkit-font-smoothing: antialiased; font-feature-settings: "tnum" 1, "cv11" 1; }
body.locked { overflow: hidden; }
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 3px solid rgba(0, 113, 227, .45); outline-offset: 2px; border-radius: 8px; }
svg.i { flex: none; display: block; }
code { font-size: .9em; background: var(--bg2); padding: 1px 5px; border-radius: 5px; }
.muted { color: var(--text2); } .small { font-size: 13px; } .center { text-align: center; } .grow { flex: 1; min-width: 0; }
.pos-t { color: var(--green); } .red-t { color: var(--red); } .danger-t { color: var(--red) !important; }
.row-between { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.hint { font-size: 13px; color: var(--text2); margin: 10px 2px 0; }
.lead { color: var(--text2); font-size: 15px; margin: 6px 0 0; max-width: 46ch; }

/* ---------- moldura ---------- */
.shell { min-height: 100dvh; }
.main { max-width: 760px; margin: 0 auto; padding: calc(var(--st) + 8px) 16px calc(var(--tab-h) + var(--sb) + 28px); outline: none; }
.side { display: none; }
.tabbar { position: fixed; z-index: 40; left: 0; right: 0; bottom: 0; height: calc(var(--tab-h) + var(--sb)); padding-bottom: var(--sb);
  display: grid; grid-template-columns: repeat(5, 1fr); align-items: center; background: rgba(255, 255, 255, .86);
  backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); border-top: .5px solid var(--line2); }
.tabbar a { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 10.5px; font-weight: 500; color: var(--text3); padding: 6px 0; }
.tabbar a.on { color: var(--blue); }
.fab { justify-self: center; width: 54px; height: 54px; border-radius: 50%; background: var(--blue); color: #fff; display: grid; place-items: center;
  box-shadow: 0 6px 18px rgba(0, 113, 227, .38); transform: translateY(-10px); transition: transform .15s; }
.fab:active { transform: translateY(-10px) scale(.94); }

@media (min-width: 960px) {
  .tabbar { display: none; }
  .side { display: flex; flex-direction: column; gap: 6px; position: fixed; top: 0; bottom: 0; left: 0; width: 244px; padding: 22px 14px; border-right: 1px solid var(--line); background: #fbfbfd; }
  .brand { display: flex; align-items: center; gap: 10px; font-size: 21px; font-weight: 700; letter-spacing: -.02em; padding: 0 8px 14px; }
  .brand .logo { width: 32px; height: 32px; }
  .side-new { margin: 4px 4px 14px; }
  .side nav { display: flex; flex-direction: column; gap: 2px; }
  .side nav a { display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 10px; color: var(--text2); font-weight: 500; font-size: 15px; }
  .side nav a:hover { background: var(--bg2); color: var(--text); }
  .side nav a.on { background: var(--blue-soft); color: var(--blue); }
  .side-me { margin-top: auto; display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 12px; font-size: 14px; font-weight: 500; }
  .side-me:hover { background: var(--bg2); }
  .main { margin-left: 244px; max-width: 1120px; padding: 28px 40px 60px; }
  .page-inicio .dash, .page-cartoes .dash { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 0 24px; align-items: start; }
  .page { max-width: 1040px; margin: 0 auto; }
  .page-lancamentos, .page-contas, .page-conta, .page-mais, .page-categorias, .page-familia, .page-perfil, .page-conciliar, .page-relatorios { max-width: 760px; }
  .action-bar { left: 244px !important; }
}

/* ---------- cabeçalho ---------- */
.top { padding: 10px 0 6px; }
.top-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.eyebrow { margin: 0 0 2px; font-size: 13px; font-weight: 600; color: var(--text3); text-transform: uppercase; letter-spacing: .04em; }
h1.large { margin: 0; font-size: 32px; line-height: 1.12; font-weight: 700; letter-spacing: -.028em; }
h2 { font-size: 17px; font-weight: 600; margin: 0; letter-spacing: -.02em; }
h3 { margin: 0; }
.back { display: inline-flex; align-items: center; gap: 2px; color: var(--blue); font-size: 16px; padding: 8px 4px 0 0; margin-left: -6px; }
.avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--c); color: #fff; font-weight: 600; font-size: 15px; display: grid; place-items: center; }
.icon-btn { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: var(--blue); position: relative; flex: none; }
.icon-btn:hover { background: var(--bg2); }
.icon-btn.light { color: rgba(255, 255, 255, .8); } .icon-btn.light:hover { background: rgba(255, 255, 255, .12); }
.icon-btn.sm { width: 34px; height: 34px; color: var(--text3); }
.link { color: var(--blue); font-size: 15px; font-weight: 500; }
.link.strong { font-weight: 600; }

.month-nav { display: flex; align-items: center; justify-content: center; gap: 4px; margin: 6px 0 14px; }
.month-nav.inline { justify-content: flex-start; margin: 0; }
.month-label { font-size: 16px; font-weight: 600; min-width: 150px; text-align: center; padding: 6px 10px; border-radius: 999px; }
.month-label:hover { background: var(--bg2); }

/* ---------- botões ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 46px; padding: 0 20px; border-radius: 980px; font-size: 16px; font-weight: 500; white-space: nowrap; transition: background .15s, transform .1s; }
.btn:active { transform: scale(.98); }
.btn.primary { background: var(--blue); color: #fff; } .btn.primary:hover { background: var(--blue-h); }
.btn.primary:disabled { opacity: .5; }
.btn.secondary { background: var(--bg2); color: var(--blue); } .btn.secondary:hover { background: var(--bg3); }
.panel .btn.secondary, .panel .chip:not(.on) { background: #fff; }
.panel .btn.secondary:hover { background: var(--bg3); }
.btn.ghost { background: var(--bg2); width: 46px; padding: 0; color: var(--text); }
.btn.ghost.danger { color: var(--red); }
.btn-row { display: flex; gap: 8px; flex-wrap: wrap; margin: 14px 0; }
.btn-row .btn { flex: 1 1 0; padding: 0 14px; min-width: 0; }
.block-btn { display: flex; width: 100%; margin: 14px 0; }
.more-link { display: block; width: 100%; text-align: center; color: var(--blue); font-size: 15px; padding: 12px 0 2px; font-weight: 500; }

/* ---------- painéis e listas ---------- */
.panel { background: var(--bg2); border-radius: var(--r-lg); padding: 16px; margin: 0 0 14px; }
.panel.flush { padding: 4px 0; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.panel-head.pad, .hint.pad { padding: 10px 16px 0; }
.panel.flush .list .row { padding-left: 16px; padding-right: 16px; }
.list { display: flex; flex-direction: column; }
.row { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 10px 0; position: relative; min-height: 56px; }
.row + .row::before, .row + .sub-rows::before { content: ""; position: absolute; top: 0; right: 0; left: 52px; border-top: .5px solid var(--line2); }
.panel.flush .row + .row::before { left: 68px; }
.row:active:not(.static) { opacity: .6; }
.row[disabled] { cursor: default; opacity: 1; }
.row > svg:last-child { color: var(--text3); }
.row.sub { padding-left: 68px !important; min-height: 46px; }
.row.sub .t1 { font-size: 15px; color: var(--text2); }
.mid { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.t1 { font-size: 16px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.t2 { font-size: 13px; color: var(--text2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: flex; align-items: center; gap: 3px; }
.end { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; flex: none; }
.amt { font-weight: 600; font-size: 16px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.amt.pos { color: var(--green); } .amt.neu { color: var(--text2); }
.hid { letter-spacing: .04em; color: var(--text2); }
.ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-size: 19px; flex: none;
  background: color-mix(in srgb, var(--c) 15%, white); color: var(--c); }
.ico.big { width: 72px; height: 72px; border-radius: 22px; font-size: 36px; }
.sq { width: 32px; height: 32px; border-radius: 9px; background: var(--c); color: #fff; display: grid; place-items: center; flex: none; }
.row.set { min-height: 52px; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--c); display: inline-block; flex: none; }
.av { width: 26px; height: 26px; border-radius: 50%; background: var(--c); color: #fff; font-style: normal; font-weight: 600; font-size: 11px; display: inline-grid; place-items: center; flex: none; }
.av.lg { width: 42px; height: 42px; font-size: 15px; }
.badge { font-size: 11px; font-weight: 600; padding: 2px 7px; border-radius: 999px; }
.badge.orange { background: var(--orange-soft); color: var(--orange); }
.badge.red { background: var(--red-soft); color: var(--red); }
.badge.green { background: var(--green-soft); color: var(--green); display: inline-flex; align-items: center; gap: 3px; }
.rec { width: 17px; height: 17px; border-radius: 50%; background: var(--green-soft); color: var(--green); display: grid; place-items: center; }
.pill { font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: var(--bg3); color: var(--text2); }
.pill.blue { background: var(--blue-soft); color: var(--blue); } .pill.green { background: var(--green-soft); color: var(--green); }
.pill.orange { background: var(--orange-soft); color: var(--orange); } .pill.red { background: var(--red-soft); color: var(--red); }

.day { margin-bottom: 6px; }
.day-head { display: flex; justify-content: space-between; font-size: 13px; font-weight: 600; color: var(--text3); padding: 14px 2px 4px; }
.day .list { background: var(--bg2); border-radius: var(--r-lg); padding: 0 16px; }

/* ---------- início ---------- */
.hero { background: #1d1d1f; color: #fff; border-radius: var(--r-xl); padding: 20px 20px 22px; margin-bottom: 12px; position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; right: -60px; top: -80px; width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(circle, rgba(0, 113, 227, .55), transparent 70%); pointer-events: none; }
.hero.slim { padding: 16px 20px; }
.hero[style*="--hc"]::after { background: radial-gradient(circle, color-mix(in srgb, var(--hc) 70%, transparent), transparent 70%); }
.hero-top { display: flex; align-items: center; justify-content: space-between; font-size: 14px; color: rgba(255, 255, 255, .7); min-height: 40px; position: relative; z-index: 1; }
.hero-val { font-size: 36px; font-weight: 700; letter-spacing: -.03em; line-height: 1.1; position: relative; z-index: 1; font-variant-numeric: tabular-nums; }
.hero-val .hid { color: rgba(255, 255, 255, .8); }
.hero-sub { margin-top: 8px; font-size: 14px; color: rgba(255, 255, 255, .7); position: relative; z-index: 1; }
.hero-sub strong { color: #fff; font-weight: 600; }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.stat { background: var(--bg2); border-radius: var(--r-lg); padding: 14px; text-align: left; display: flex; flex-direction: column; gap: 2px; }
.stat:hover { background: var(--bg3); }
.stat-ico { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 6px; }
.stat-ico.pos { background: var(--green-soft); color: var(--green); } .stat-ico.neg { background: var(--red-soft); color: var(--red); }
.stat-l { font-size: 13px; color: var(--text2); }
.stat-v { font-size: 20px; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.stat-s { font-size: 12px; color: var(--text3); }
.bill { gap: 10px; }
.check { width: 28px; height: 28px; border-radius: 50%; border: 1.6px solid var(--line2); display: grid; place-items: center; color: transparent; flex: none; transition: .15s; background: #fff; }
.check:hover { border-color: var(--green-b); color: var(--green-b); }
.mid-btn { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; text-align: left; }
.mini-card { width: 40px; height: 28px; border-radius: 6px; background: linear-gradient(135deg, var(--c), color-mix(in srgb, var(--c) 60%, black)); flex: none; margin: 0 0 0 0; }
.donut-wrap { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; justify-content: center; padding: 4px 0; }
.donut text { font-family: var(--font); }
.dn-l { font-size: 12px; fill: var(--text2); } .dn-v { font-size: 19px; font-weight: 700; fill: var(--text); }
.legend { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 180px; }
.lg { display: flex; align-items: center; gap: 9px; font-size: 14px; padding: 6px 4px; border-radius: 8px; text-align: left; }
button.lg:hover { background: var(--bg3); }
.lg i { width: 10px; height: 10px; border-radius: 3px; background: var(--c); flex: none; }
.lg span { flex: 1; } .lg b { font-weight: 600; font-variant-numeric: tabular-nums; }
.bars { display: flex; align-items: flex-end; gap: 6px; height: 170px; padding-top: 8px; }
.bg { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 5px; height: 100%; min-width: 0; }
.bcol { flex: 1; width: 100%; display: flex; align-items: flex-end; justify-content: center; gap: 3px; }
.bcol i { width: min(14px, 38%); border-radius: 5px 5px 2px 2px; min-height: 2px; transition: height .4s ease; }
.bcol i.pos { background: var(--green-b); } .bcol i.neg { background: #c7c7cc; }
.bg.cur .bcol i.neg { background: var(--red-b); }
.bg span { font-size: 11.5px; color: var(--text3); text-transform: capitalize; }
.bg.cur span { color: var(--text); font-weight: 600; }
.bg em { font-style: normal; font-size: 10.5px; color: var(--text3); white-space: nowrap; }
.bars-legend { display: flex; gap: 16px; justify-content: center; font-size: 12px; color: var(--text2); margin-top: 10px; }
.bars-legend span { display: flex; align-items: center; gap: 6px; }
.bars-legend i { width: 10px; height: 10px; border-radius: 3px; }
.lg-pos { background: var(--green-b); } .lg-neg { background: var(--red-b); }
.hbar { height: 6px; background: var(--bg3); border-radius: 999px; overflow: hidden; margin: 6px 0 2px; }
.hbar i { display: block; height: 100%; background: var(--c); border-radius: 999px; transition: width .4s ease; }
.budget { padding: 8px 0; font-size: 15px; }
.person { display: flex; align-items: center; gap: 12px; width: 100%; padding: 8px 0; text-align: left; font-size: 15px; }
.w60 { width: 40px; text-transform: capitalize; }

/* ---------- busca, filtros, resumo ---------- */
.searchbar { display: flex; gap: 8px; align-items: center; margin-bottom: 10px; }
.search { flex: 1; display: flex; align-items: center; gap: 8px; height: 42px; padding: 0 12px; background: var(--bg2); border-radius: 12px; color: var(--text3); }
.search input { border: 0; background: none; outline: none; flex: 1; font-size: 16px; color: var(--text); min-width: 0; }
.filter-btn { background: var(--bg2); border-radius: 12px; width: 42px; height: 42px; }
.filter-btn.on { background: var(--blue-soft); }
.nb { position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--blue); color: #fff; font-size: 11px; font-weight: 600; display: grid; place-items: center; }
.fchips { margin-bottom: 10px; }
.summary { display: grid; grid-template-columns: repeat(3, 1fr); background: var(--bg2); border-radius: var(--r-lg); padding: 12px 6px; margin-bottom: 4px; }
.summary div { display: flex; flex-direction: column; align-items: center; gap: 1px; min-width: 0; }
.summary div + div { border-left: .5px solid var(--line2); }
.summary span { font-size: 12px; color: var(--text2); }
.summary b { font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ---------- chips, segmentado, campos ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips.scroll { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 2px 16px; scroll-padding: 16px; }
.chips.scroll::-webkit-scrollbar { display: none; }
.chip { display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 14px; border-radius: 999px; background: var(--bg2); font-size: 15px; font-weight: 500; white-space: nowrap; flex: none; border: 1.5px solid transparent; transition: .12s; }
.chip:hover { background: var(--bg3); }
.chip.on { background: var(--blue-soft); color: var(--blue); border-color: rgba(0, 113, 227, .25); }
.chip.sm { height: 30px; padding: 0 11px; font-size: 13px; gap: 5px; }
.chip.ghost { background: transparent; color: var(--blue); }
.date-chip { position: relative; cursor: pointer; }
.date-chip input { position: absolute; inset: 0; opacity: 0; width: 100%; cursor: pointer; }
.seg { display: flex; background: var(--bg3); border-radius: 11px; padding: 3px; margin: 4px 0 14px; }
.seg button { flex: 1; height: 34px; border-radius: 8px; font-size: 14px; font-weight: 500; color: var(--text2); white-space: nowrap; padding: 0 6px; transition: .15s; }
.seg button.on { background: #fff; color: var(--text); box-shadow: 0 1px 3px rgba(0, 0, 0, .12), 0 1px 1px rgba(0, 0, 0, .04); font-weight: 600; }
.tabs { display: flex; gap: 22px; border-bottom: .5px solid var(--line2); margin: 6px 0 16px; overflow-x: auto; scrollbar-width: none; }
.tabs button { padding: 10px 0; font-size: 15px; font-weight: 500; color: var(--text2); border-bottom: 2px solid transparent; margin-bottom: -.5px; white-space: nowrap; }
.tabs button.on { color: var(--text); border-color: var(--text); font-weight: 600; }
.range-lbl { margin: -6px 0 6px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; position: relative; }
.field label { font-size: 13px; font-weight: 500; color: var(--text2); padding-left: 2px; }
.field input, .field select, .field textarea, .select-sm { width: 100%; min-height: 48px; padding: 12px 14px; border-radius: 12px; border: 1.5px solid transparent; background: var(--bg2); font-size: 17px; outline: none; transition: .15s; appearance: none; -webkit-appearance: none; }
.field select, .select-sm { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2386868b' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }
.select-sm { width: auto; min-height: 38px; padding: 6px 34px 6px 12px; font-size: 15px; border-radius: 10px; }
.field textarea { resize: vertical; min-height: 64px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--blue); background: #fff; }
.field small { font-size: 12px; padding-left: 2px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.block { margin-bottom: 16px; }
.lbl-row { display: flex; align-items: center; justify-content: space-between; }
.add-mini { width: 28px; height: 28px; border-radius: 50%; background: var(--blue-soft); color: var(--blue); display: grid; place-items: center; }
.add-mini:hover { background: #d6e7fb; }
.lbl { font-size: 13px; font-weight: 500; color: var(--text2); margin: 0 0 8px 2px; }
.switch-row { display: flex; align-items: center; justify-content: space-between; padding: 10px 2px; margin-bottom: 8px; cursor: pointer; font-size: 16px; }
.switch-row input { position: absolute; opacity: 0; pointer-events: none; }
.switch-row i { width: 51px; height: 31px; border-radius: 16px; background: var(--bg3); position: relative; transition: .2s; flex: none; }
.switch-row i::after { content: ""; position: absolute; top: 2px; left: 2px; width: 27px; height: 27px; border-radius: 50%; background: #fff; box-shadow: 0 2px 5px rgba(0, 0, 0, .2); transition: .2s; }
.switch-row input:checked + i { background: var(--green-b); }
.switch-row input:checked + i::after { transform: translateX(20px); }
.swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.sw { width: 32px; height: 32px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .06); }
.sw.on { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--c); }
.stepper { display: flex; align-items: center; background: var(--bg2); border-radius: 12px; }
.stepper button { width: 42px; height: 40px; font-size: 22px; color: var(--blue); }
.stepper span { min-width: 34px; text-align: center; font-weight: 600; }
.more { margin: 4px 0 8px; }
.more summary { list-style: none; color: var(--blue); font-weight: 500; font-size: 15px; padding: 10px 2px; cursor: pointer; display: flex; align-items: center; gap: 6px; }
.more summary::-webkit-details-marker { display: none; }
.more summary::after { content: "›"; font-size: 20px; line-height: 1; transition: transform .2s; }
.more[open] summary::after { transform: rotate(90deg); }
.form-err { color: var(--red); font-size: 14px; min-height: 0; margin: 0 0 10px; }
.form-err:empty { display: none; }

/* ---------- folha (bottom sheet) ---------- */
.overlay { position: fixed; inset: 0; z-index: 100; background: rgba(0, 0, 0, 0); transition: background .25s; display: flex; align-items: flex-end; justify-content: center; }
.overlay.in { background: rgba(0, 0, 0, .32); }
.overlay.out { background: rgba(0, 0, 0, 0); }
.sheet { width: 100%; max-width: 560px; max-height: calc(100dvh - var(--st) - 12px); background: #fff; border-radius: 22px 22px 0 0; display: flex; flex-direction: column;
  transform: translateY(100%); transition: transform .32s cubic-bezier(.2, .8, .2, 1); box-shadow: var(--shadow-lg); }
.overlay.in .sheet { transform: none; }
.overlay.out .sheet { transform: translateY(100%); }
.grab { width: 38px; height: 5px; border-radius: 3px; background: #d1d1d6; margin: 7px auto 0; flex: none; }
.sheet-head { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 6px 16px 10px; flex: none; touch-action: none; }
.sheet-head h3 { font-size: 17px; font-weight: 600; text-align: center; }
.sheet-head .link:first-child { justify-self: start; } .sheet-head > :last-child { justify-self: end; }
.sheet-body { overflow-y: auto; padding: 6px 16px 18px; flex: 1; overscroll-behavior: contain; }
.sheet-foot { display: flex; gap: 8px; padding: 10px 16px calc(10px + var(--sb)); border-top: .5px solid var(--line); flex: none; background: #fff; }
.sheet-foot[hidden] { display: none; }
@media (min-width: 700px) {
  .overlay { align-items: center; }
  .sheet { border-radius: 22px; max-height: min(86dvh, 860px); transform: translateY(24px) scale(.98); opacity: 0; transition: transform .25s, opacity .2s; }
  .overlay.in .sheet { transform: none; opacity: 1; }
  .overlay.out .sheet { transform: translateY(24px) scale(.98); opacity: 0; }
  .grab { display: none; } .sheet-head { padding-top: 14px; }
  .sheet-foot { padding-bottom: 14px; border-radius: 0 0 22px 22px; }
}

/* lançamento */
.seg-kind { margin-top: 0; }
.seg-kind button { font-size: 13.5px; padding: 0 2px; }
.amount-input { display: flex; align-items: baseline; justify-content: center; gap: 6px; padding: 10px 0 16px; cursor: text; }
.amount-input .cur { font-size: 24px; font-weight: 600; color: var(--text3); }
.amount-input input { border: 0; outline: none; background: none; font-size: 46px; font-weight: 700; letter-spacing: -.035em; width: 8.2ch; min-width: 0; text-align: center; font-variant-numeric: tabular-nums; caret-color: var(--blue); }
.amount-input[data-kind="receita"] input { color: var(--green); }
.amount-input[data-kind="despesa"] input { color: var(--text); }
.desc-field input { text-align: left; }
.sugg { display: none; position: absolute; top: 100%; left: 0; right: 0; margin-top: 4px; background: #fff; border-radius: 14px; box-shadow: var(--shadow-lg); z-index: 5; overflow: hidden; border: .5px solid var(--line); }
.sugg.on { display: block; }
.sugg button { display: flex; width: 100%; justify-content: space-between; gap: 10px; padding: 12px 14px; text-align: left; font-size: 15px; }
.sugg button + button { border-top: .5px solid var(--line); }
.sugg button:hover { background: var(--bg2); }
.sugg span { color: var(--text2); font-size: 14px; }
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.cat-tile { display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 10px 4px 8px; border-radius: 14px; background: var(--bg2); border: 1.5px solid transparent; min-width: 0; transition: .12s; }
.cat-tile .e { font-size: 22px; line-height: 1; height: 24px; display: grid; place-items: center; color: var(--text2); }
.cat-tile .n { font-size: 11.5px; font-weight: 500; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 0 2px; }
.cat-tile.on { background: color-mix(in srgb, var(--c) 14%, white); border-color: color-mix(in srgb, var(--c) 55%, white); }
.cat-tile { position: relative; }
.has-sub { position: absolute; top: 7px; right: 8px; width: 5px; height: 5px; border-radius: 50%; background: var(--text3); opacity: .55; }
.cat-tile.on .has-sub { background: var(--c); opacity: 1; }
.subcats { margin-top: 10px; padding: 12px; border-radius: 14px; background: color-mix(in srgb, var(--c) 8%, white); border: 1px solid color-mix(in srgb, var(--c) 22%, white); animation: subIn .22s ease; }
.subcats .lbl { margin-bottom: 8px; color: var(--text); font-weight: 600; }
.subcats .chip { background: #fff; height: 34px; padding: 0 13px; font-size: 14px; }
.subcats .chip.on { background: #fff; color: var(--text); border-color: var(--c); box-shadow: inset 0 0 0 1px var(--c); font-weight: 600; }
@keyframes subIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.pick-group { background: var(--bg2); border-radius: 16px; padding: 4px 12px; margin-bottom: 10px; }
.pick { display: flex; align-items: center; gap: 12px; width: 100%; padding: 8px 0; font-size: 16px; text-align: left; min-height: 52px; }
.pick + .pick { border-top: .5px solid var(--line2); }
.pick.sub { padding-left: 52px; font-size: 15px; color: var(--text2); }
.pick.sub .ico { display: none; }
.pick svg { margin-left: auto; color: var(--blue); }
.cat-preview { display: flex; justify-content: center; padding: 4px 0 16px; }
.emoji-grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 4px; }
.emoji-grid button { aspect-ratio: 1; font-size: 22px; border-radius: 10px; }
.emoji-grid button.on { background: var(--blue-soft); box-shadow: inset 0 0 0 1.5px var(--blue); }
.role-list { display: flex; flex-direction: column; gap: 8px; }
.role { text-align: left; padding: 12px 14px; border-radius: 14px; background: var(--bg2); border: 1.5px solid transparent; display: flex; flex-direction: column; gap: 2px; }
.role span { font-size: 13px; color: var(--text2); }
.role.on { background: var(--blue-soft); border-color: rgba(0, 113, 227, .35); }

/* folha de ações */
.action-sheet { width: 100%; max-width: 440px; padding: 0 10px calc(10px + var(--sb)); transform: translateY(110%); transition: transform .28s cubic-bezier(.2, .8, .2, 1); }
.overlay.in .action-sheet { transform: none; }
.overlay.out .action-sheet { transform: translateY(110%); }
.as-group { background: rgba(250, 250, 252, .97); border-radius: 14px; overflow: hidden; margin-top: 8px; backdrop-filter: blur(20px); }
.as-title { display: flex; flex-direction: column; gap: 3px; padding: 14px 16px; text-align: center; font-size: 13px; color: var(--text2); border-bottom: .5px solid var(--line2); }
.as-title strong { font-weight: 600; }
.as-btn { display: block; width: 100%; padding: 16px; font-size: 18px; color: var(--blue); text-align: center; }
.as-btn + .as-btn { border-top: .5px solid var(--line2); }
.as-btn.danger { color: var(--red-b); } .as-btn.strong { font-weight: 600; }
@media (min-width: 700px) { .overlay:has(.action-sheet) { align-items: center; } }

/* aviso */
.toast { position: fixed; z-index: 200; left: 50%; bottom: calc(var(--tab-h) + var(--sb) + 18px); transform: translate(-50%, 20px); opacity: 0; transition: .25s;
  background: rgba(29, 29, 31, .94); color: #fff; padding: 12px 16px; border-radius: 14px; font-size: 15px; display: flex; gap: 16px; align-items: center; max-width: calc(100% - 32px); box-shadow: var(--shadow-lg); }
.toast.in { opacity: 1; transform: translate(-50%, 0); }
.toast button { color: #64b5ff; font-weight: 600; white-space: nowrap; }
@media (min-width: 960px) { .toast { bottom: 28px; left: calc(50% + 122px); } }

/* ---------- cartões ---------- */
.card-carousel { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 16px; margin: 6px -16px 14px; padding: 4px 16px 10px; scrollbar-width: none; }
.card-carousel::-webkit-scrollbar { display: none; }
.cc { flex: 0 0 min(270px, 74vw); aspect-ratio: 1.586; border-radius: 18px; padding: 16px 18px; color: #fff; text-align: left; scroll-snap-align: start;
  background: linear-gradient(140deg, color-mix(in srgb, var(--c) 92%, white), color-mix(in srgb, var(--c) 70%, black)); display: flex; flex-direction: column;
  box-shadow: 0 8px 22px color-mix(in srgb, var(--c) 30%, transparent); opacity: .55; transform: scale(.96); transition: .25s; }
.cc.on { opacity: 1; transform: none; }
.cc-brand { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; opacity: .8; }
.cc-name { font-size: 21px; font-weight: 700; letter-spacing: -.02em; margin-top: 4px; }
.cc-foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; font-size: 12.5px; opacity: .85; }
.invoice { text-align: center; padding-top: 10px; }
.inv-nav { display: flex; align-items: center; justify-content: space-between; }
.inv-nav .month-label { min-width: 0; padding: 2px 10px; }
.inv-total { font-size: 38px; font-weight: 700; letter-spacing: -.03em; margin: 8px 0 8px; font-variant-numeric: tabular-nums; }
.inv-dates { display: flex; justify-content: center; gap: 0; margin: 16px 0 4px; }
.inv-dates div { display: flex; flex-direction: column; padding: 0 18px; font-size: 13px; color: var(--text2); }
.inv-dates div + div { border-left: .5px solid var(--line2); }
.inv-dates b { color: var(--text); font-size: 15px; font-weight: 600; }
.invoice .btn-row { margin-bottom: 0; }

/* ---------- relatórios ---------- */
.rep-total { display: flex; flex-direction: column; align-items: center; padding: 6px 0 10px; }
.rep-total span:first-child { font-size: 13px; color: var(--text2); }
.rep-total b { font-size: 30px; font-weight: 700; letter-spacing: -.03em; }
.rep-row .mid { gap: 0; }
.rep-row .hbar { margin-bottom: 0; }
.sub-rows { padding: 4px 16px 10px 68px; position: relative; }
.sub-r { padding: 6px 0; }
.sub-rows .list { background: #fff; border-radius: 14px; padding: 0 12px; margin-top: 8px; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
.tbl th { text-align: right; font-size: 12px; font-weight: 500; color: var(--text2); padding: 10px 14px 6px; }
.tbl td { text-align: right; padding: 9px 14px; border-top: .5px solid var(--line2); white-space: nowrap; }
.tbl th:first-child, .tbl td:first-child { text-align: left; text-transform: capitalize; }
.tbl tfoot td { font-weight: 700; }

/* ---------- conciliação ---------- */
.drop { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 26px 16px; border: 2px dashed #c7c7cc; border-radius: var(--r-lg); text-align: center; cursor: pointer; margin: 6px 0 8px; transition: .15s; }
.drop:hover, .drop.over { border-color: var(--blue); background: var(--blue-soft); }
.drop-ico { width: 52px; height: 52px; border-radius: 50%; background: var(--blue-soft); color: var(--blue); display: grid; place-items: center; margin-bottom: 6px; }
.info-box { display: flex; gap: 12px; background: var(--bg2); border-radius: var(--r-lg); padding: 14px 16px; margin: 12px 0 14px; font-size: 14px; }
.info-box > svg { color: var(--blue); margin-top: 2px; }
.info-box p { margin: 4px 0 0; color: var(--text2); }
.info-box.good { background: var(--green-soft); } .info-box.good > svg { color: var(--green); }
.info-box.warn { background: var(--orange-soft); } .info-box.warn > svg { color: var(--orange); }
.conc-sum { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 6px 0 4px; }
.conc-sum div { background: var(--bg2); border-radius: 16px; padding: 12px; display: flex; flex-direction: column; align-items: center; }
.conc-sum b { font-size: 24px; font-weight: 700; }
.conc-sum span { font-size: 12px; color: var(--text2); }
.conc-sum .ok b { color: var(--green); } .conc-sum .new b { color: var(--blue); }
.cl-row { display: flex; align-items: center; gap: 12px; padding: 12px 16px; position: relative; }
.cl-row + .cl-row::before { content: ""; position: absolute; top: 0; left: 56px; right: 0; border-top: .5px solid var(--line2); }
.cl-row.off .mid, .cl-row.off .amt { opacity: .45; }
.cl-state { width: 26px; height: 26px; border-radius: 50%; background: var(--green-soft); color: var(--green); display: grid; place-items: center; flex: none; }
.cl-acts { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.ck { position: relative; width: 26px; height: 26px; flex: none; cursor: pointer; }
.ck input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; z-index: 1; }
.ck i { position: absolute; inset: 0; border-radius: 50%; border: 1.6px solid #c7c7cc; transition: .15s; }
.ck input:checked + i { background: var(--blue); border-color: var(--blue); }
.ck input:checked + i::after { content: ""; position: absolute; left: 8.5px; top: 4.5px; width: 5px; height: 10px; border: solid #fff; border-width: 0 2.2px 2.2px 0; transform: rotate(45deg); }
.action-bar { position: fixed; z-index: 30; left: 0; right: 0; bottom: calc(var(--tab-h) + var(--sb)); padding: 10px 16px; background: rgba(255, 255, 255, .9); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-top: .5px solid var(--line); display: flex; }
@media (min-width: 960px) { .action-bar { bottom: 0; padding: 14px 40px; } }
.page-conciliar { padding-bottom: 70px; }

/* ---------- mais / perfil ---------- */
.profile-card { display: flex; align-items: center; gap: 14px; background: var(--bg2); border-radius: var(--r-lg); padding: 14px 16px; margin: 6px 0 14px; cursor: pointer; }
.profile-card > span { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.profile-card > svg { color: var(--text3); }

/* ---------- assistente ---------- */
.adv-hero { display: flex; align-items: center; gap: 18px; background: #1d1d1f; color: #fff; border-radius: var(--r-xl); padding: 18px 20px; margin: 4px 0 14px; position: relative; overflow: hidden; }
.adv-hero::after { content: ""; position: absolute; left: -50px; bottom: -90px; width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(circle, rgba(94, 92, 230, .5), transparent 70%); pointer-events: none; }
.adv-score { position: relative; width: 112px; height: 112px; flex: none; z-index: 1; }
.adv-score .donut circle:first-child { stroke: rgba(255, 255, 255, .1); }
.adv-num { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.adv-num b { font-size: 32px; font-weight: 700; letter-spacing: -.03em; line-height: 1; }
.adv-num span { font-size: 11px; color: rgba(255, 255, 255, .6); margin-top: 2px; }
.adv-txt { position: relative; z-index: 1; min-width: 0; }
.adv-l { font-size: 13px; color: rgba(255, 255, 255, .65); }
.adv-txt strong { display: block; font-size: 24px; font-weight: 700; letter-spacing: -.02em; margin: 2px 0 4px; }
.adv-txt p { margin: 0; font-size: 14px; color: rgba(255, 255, 255, .78); }
.adv-topics { margin-bottom: 14px; }
.ins-list { display: flex; flex-direction: column; gap: 10px; }
.ins { display: flex; gap: 12px; background: var(--bg2); border-radius: var(--r-lg); padding: 14px 16px; border-left: 4px solid transparent; }
.ins-alerta { border-left-color: var(--red-b); } .ins-atencao { border-left-color: var(--orange-b); }
.ins-dica { border-left-color: var(--blue); } .ins-bom { border-left-color: var(--green-b); }
.ins-ico { font-size: 22px; width: 30px; flex: none; text-align: center; line-height: 1.3; }
.ins-body { min-width: 0; flex: 1; }
.ins-body .pill { font-size: 11px; padding: 2px 8px; }
.ins h3 { font-size: 16px; font-weight: 600; letter-spacing: -.015em; margin: 6px 0 3px; }
.ins p { margin: 0; font-size: 14px; color: var(--text2); line-height: 1.45; }
.ins .link { display: inline-block; margin-top: 8px; font-size: 14px; }
.adv-panel h2 { display: flex; align-items: center; gap: 6px; }
.adv-panel h2 svg { color: #5E5CE6; }
.ins-list.compact .ins { background: #fff; padding: 12px 14px; }
.ins-list.compact .ins p { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------- falar e cupom ---------- */
.quick-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: -4px 0 4px; }
.quick { display: flex; align-items: center; justify-content: center; gap: 7px; height: 40px; border-radius: 12px; background: var(--blue-soft); color: var(--blue); font-size: 15px; font-weight: 600; cursor: pointer; }
.quick:hover { background: #d6e7fb; }
.vbox { background: var(--bg2); border-radius: 14px; padding: 12px 14px; margin: 8px 0 2px; font-size: 14px; animation: subIn .2s ease; }
.vbox.on { background: var(--blue-soft); }
.vlisten { display: flex; align-items: center; gap: 10px; color: var(--text); }
.pulse { width: 36px; height: 36px; border-radius: 50%; background: var(--blue); color: #fff; display: grid; place-items: center; flex: none; animation: pulse 1.3s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(0, 113, 227, .45); } 50% { box-shadow: 0 0 0 10px rgba(0, 113, 227, 0); } }
.vtxt { color: var(--text2); font-style: italic; margin-bottom: 8px; }
.vgot { display: flex; flex-wrap: wrap; gap: 6px; }
.vgot span { background: #fff; border-radius: 999px; padding: 4px 10px; font-weight: 500; font-size: 13px; }
.vmiss { color: var(--orange); margin-top: 6px; font-weight: 500; }
.vok { color: var(--green); margin-top: 8px; font-weight: 500; }
.vtype { display: flex; gap: 8px; margin-top: 6px; }
.vtype input { flex: 1; min-width: 0; height: 44px; border-radius: 12px; border: 1.5px solid var(--blue); padding: 0 12px; font-size: 16px; outline: none; background: #fff; }
.vtype .btn { height: 44px; padding: 0 16px; }
.receipt-link { display: inline-flex; align-items: center; gap: 6px; color: var(--blue); font-size: 14px; font-weight: 500; margin-bottom: 4px; }

.quick-seg { margin: 0 0 10px; }
.quick-seg button { font-size: 13.5px; }
.qn { display: inline-block; min-width: 18px; padding: 0 5px; border-radius: 9px; background: var(--bg2); color: var(--text2); font-size: 11.5px; font-weight: 600; line-height: 18px; margin-left: 2px; }
.qn.red { background: var(--red-soft); color: var(--red); }

/* ---------- seleção para pagar ---------- */
.sel-row { display: flex; align-items: center; gap: 10px; position: relative; }
.sel-row + .sel-row::before, .sel-row + .row::before, .row + .sel-row::before { content: ""; position: absolute; top: 0; right: 0; left: 88px; border-top: .5px solid var(--line2); }
.sel-row .row { flex: 1; min-width: 0; }
.sel-row .row::before { display: none; }
.selc { width: 26px; height: 26px; flex: none; border-radius: 50%; border: 1.6px solid #c7c7cc; background: #fff; color: transparent; display: grid; place-items: center; transition: .12s; }
.selc:hover { border-color: var(--blue); }
.sel-row.on .selc { background: var(--blue); border-color: var(--blue); color: #fff; }
.sel-row.on { background: color-mix(in srgb, var(--blue) 5%, transparent); margin: 0 -16px; padding: 0 16px; }
.sel-hint { display: flex; align-items: center; gap: 6px; margin: 8px 2px 0; }
.sel-bar { align-items: center; gap: 12px; }
.sel-info { flex: 1; min-width: 0; display: flex; flex-direction: column; font-size: 15px; }
.sel-info b { font-size: 18px; letter-spacing: -.02em; }
.sel-info small { font-size: 12.5px; color: var(--text2); }
.sel-info span { display: flex; gap: 14px; }
.sel-bar .btn { flex: none; }
.page-lancamentos:has(.sel-bar) { padding-bottom: 76px; }
.pay-total { display: flex; flex-direction: column; align-items: center; padding: 2px 0 12px; }
.pay-total span { font-size: 13px; color: var(--text2); }
.pay-total b { font-size: 34px; font-weight: 700; letter-spacing: -.03em; }
.pay-list { background: var(--bg2); border-radius: 14px; padding: 6px 14px; margin-bottom: 16px; max-height: 180px; overflow: auto; }
.pay-list > div { padding: 7px 0; gap: 10px; }
.pay-list > div + div { border-top: .5px solid var(--line2); }

/* ---------- calendário ---------- */
.cal { margin-top: 10px; background: var(--bg2); border-radius: 16px; padding: 6px 10px 10px; animation: subIn .2s ease; max-width: 380px; }
.cal-head { display: flex; align-items: center; justify-content: space-between; }
.cal-head strong { font-size: 15px; font-weight: 600; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; text-align: center; }
.cal-w { font-size: 11px; font-weight: 600; color: var(--text3); padding: 4px 0; }
.cal-d { aspect-ratio: 1; max-height: 44px; border-radius: 50%; font-size: 15px; font-variant-numeric: tabular-nums; display: grid; place-items: center; }
.cal-d:hover { background: var(--bg3); }
.cal-d.today { color: var(--blue); font-weight: 700; }
.cal-d.fut { color: var(--text2); }
.cal-d.on { background: var(--blue); color: #fff; font-weight: 600; }

/* ---------- contatos ---------- */
.ct-sel { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 6px 6px 6px 12px; border-radius: 12px; background: var(--blue-soft); font-size: 17px; font-weight: 500; }
.ct-field { position: relative; }
.sugg .ct-new { color: var(--blue); font-weight: 600; justify-content: flex-start; gap: 8px; align-items: center; }
.ct-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)); gap: 8px; margin-bottom: 4px; }
.ct-stats div { background: var(--bg2); border-radius: 14px; padding: 10px 12px; display: flex; flex-direction: column; }
.ct-stats span { font-size: 12px; color: var(--text2); }
.ct-stats b { font-size: 17px; font-weight: 700; }
.cl-inst { display: inline-block; margin-top: 4px; font-size: 12.5px; color: var(--blue); font-weight: 500; }
.cl-ct { display: flex; align-items: center; gap: 4px; font-size: 12.5px; color: var(--text2); margin-top: 3px; }

/* ---------- vazio ---------- */
.empty { text-align: center; padding: 48px 20px; }
.empty-ico { width: 64px; height: 64px; border-radius: 50%; background: var(--bg2); color: var(--text3); display: grid; place-items: center; margin: 0 auto 14px; }
.empty h3 { font-size: 19px; font-weight: 600; letter-spacing: -.02em; }
.empty p { color: var(--text2); margin: 6px auto 18px; max-width: 34ch; }

/* ---------- acesso ---------- */
.auth { min-height: 100dvh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: calc(var(--st) + 32px) 20px calc(var(--sb) + 24px); max-width: 420px; margin: 0 auto; }
.auth-hero { text-align: center; margin-bottom: 26px; }
.logo { display: inline-block; width: 28px; height: 28px; }
.logo.xl { width: 72px; height: 72px; filter: drop-shadow(0 10px 22px rgba(0, 113, 227, .3)); }
.auth-hero h1 { font-size: 40px; font-weight: 700; letter-spacing: -.035em; margin: 14px 0 4px; }
.auth-hero p { color: var(--text2); font-size: 17px; margin: 0; }
.auth-card { width: 100%; }
.auth .demo { margin-top: 20px; }
.auth-foot { margin-top: 18px; text-align: center; max-width: 34ch; }
.auth-h { font-size: 20px; font-weight: 700; letter-spacing: -.02em; margin-bottom: 4px; }
.auth-note { background: var(--blue-soft); color: var(--text); border-radius: 12px; padding: 12px 14px; font-size: 14px; margin: 4px 0 14px; }
.center-link { display: block; margin: 12px auto 0; }
.sync-pill { position: fixed; z-index: 150; top: calc(var(--st) + 8px); left: 50%; transform: translate(-50%, -20px); opacity: 0; pointer-events: none; transition: .25s;
  background: rgba(29, 29, 31, .9); color: #fff; font-size: 12.5px; font-weight: 500; padding: 6px 12px; border-radius: 999px; }
.sync-pill.on { opacity: 1; transform: translate(-50%, 0); }
.sync-pill.error { background: var(--red); }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }

/* ---------- compartilhar ---------- */
.share-preview { background: var(--bg2); border-radius: 14px; padding: 12px 14px; font-size: 14px; line-height: 1.5; color: var(--text); margin: 0 0 16px; }
.share-preview span { color: var(--blue); }
.share-opts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.share-opt { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px 6px; border-radius: 16px; background: var(--bg2); font-size: 14px; font-weight: 500; color: var(--text); }
.share-opt:hover { background: var(--bg3); }
.share-ico { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 18px; }
.share-ico.wa { background: #25D366; } .share-ico.em { background: var(--blue); } .share-ico.cp { background: #8E8E93; }
.indicar-card { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; background: linear-gradient(135deg, #0071E3, #3A8DFF); color: #fff; border-radius: var(--r-lg); padding: 16px; margin: 0 0 14px; }
.indicar-card .mid .t2 { color: rgba(255, 255, 255, .85); white-space: normal; }
.indicar-card .sq { background: rgba(255, 255, 255, .2); }

.terms-check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.45; color: var(--text2); margin: 2px 2px 14px; cursor: pointer; }
.terms-check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--blue); flex: none; }
.terms-check a, .auth-foot a { color: var(--blue); }
