:root {
  --bg: #FBF6EC; --surface: #FFFFFF; --ink: #2A2018; --muted: #8C7E6C;
  --line: #EBE2D2; --brasa: #E63A2E; --mostarda: #F5B301;
  --pix: #12A05B; --pixDark: #0B7A44; --azul: #2B6CB0; --zap: #25D366;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
body {
  margin: 0; background: var(--bg); color: var(--ink); min-height: 100vh;
  font-family: 'Inter', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
.disp { font-family: 'Bricolage Grotesque', system-ui, sans-serif; }
button { cursor: pointer; font-family: inherit; }
input, select, textarea { font-family: inherit; }
a { text-decoration: none; }

@keyframes pop { 0% { transform: scale(.97); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .5; } }
.pop { animation: pop .18s ease-out both; }
.pulse { animation: pulse 1.5s ease-in-out infinite; }

.topo {
  position: sticky; top: 0; z-index: 30; background: var(--ink);
  padding: 14px 16px; display: flex; align-items: center; justify-content: space-between;
}
.topo .marca { color: #fff; font-weight: 800; font-size: 16px; }
.topo .marca span { color: var(--mostarda); }
.wrap { max-width: 480px; margin: 0 auto; padding: 14px 14px 90px; }

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px;
  padding: 16px; margin-top: 12px; box-shadow: 0 1px 2px rgba(42,32,24,.04);
}
.h1 { font-weight: 800; font-size: 22px; margin-bottom: 10px; }
.lbl { display: block; font-size: 12.5px; font-weight: 700; color: var(--muted); margin-bottom: 6px; }
.inp {
  width: 100%; padding: 12px 14px; border-radius: 12px; border: 1.5px solid var(--line);
  font-size: 15px; outline: none; background: #fff; color: var(--ink);
}
.row-between { display: flex; justify-content: space-between; align-items: center; padding: 3px 0; }
.btn-primary {
  width: 100%; padding: 14px; border-radius: 14px; border: none; background: var(--brasa);
  color: #fff; font-weight: 800; font-size: 15px; margin-top: 16px;
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.btn-primary:disabled { opacity: .5; cursor: not-allowed; }
.btn-ghost {
  width: 100%; padding: 12px; border-radius: 12px; border: 1.5px solid var(--line);
  background: #fff; color: var(--ink); font-weight: 700; font-size: 14px;
}
.btn-zap {
  display: flex; align-items: center; justify-content: center; gap: 7px; padding: 11px 12px;
  border-radius: 12px; border: none; font-weight: 700; font-size: 13px; background: var(--zap); color: #fff;
}
.tag {
  display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; font-weight: 700;
  background: #fff; padding: 4px 9px; border-radius: 999px;
}
.overlay {
  position: fixed; inset: 0; background: rgba(42,32,24,.5); display: grid; place-items: center;
  z-index: 50; padding: 16px;
}
.tabs-topo {
  position: sticky; top: 0; z-index: 30; background: var(--ink); padding: 10px 12px;
  display: flex; gap: 6px; justify-content: center;
}
.tab-btn {
  display: flex; align-items: center; gap: 7px; padding: 9px 16px; border-radius: 999px;
  border: none; font-weight: 700; font-size: 14px; background: transparent; color: #C9BEAF;
}
.tab-btn.on { background: var(--mostarda); color: var(--ink); }

.fin-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 14px; margin: 0;
}
.fin-card .valor { font-weight: 800; font-size: 22px; margin-top: 2px; }
.fin-card .titulo { font-size: 12px; color: var(--muted); min-height: 30px; }

.progresso { display: flex; align-items: center; margin-top: 14px; }
.progresso .passo { flex: 1; height: 4px; background: var(--line); border-radius: 4px; margin: 0 3px; }
.progresso .passo.on { background: var(--brasa); }
