/* Momglis Pay — design system v1.1
   Fontes: Bricolage Grotesque (títulos e valores) + Hanken Grotesk (texto).
   Tudo hospedado aqui, nada vem de fora. */

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("fonts/bricolage-grotesque-opsz.woff2?v=1.1.0") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Hanken Grotesk";
  src: url("fonts/hanken-grotesk-wght.woff2?v=1.1.0") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #121212;
  --card: #1f1f1f;
  --card2: #2a2a2a;
  --line: #333333;
  --text: #ffffff;
  --muted: #9e9e9e;
  --muted2: #8a8a8a;
  --g: #0f6bff;
  --h: #ff9f0a;
  --ok: #30d158;
  --warn: #ffd60a;
  --bad: #ff5a52;
  --pink: #ff6fa5;
  --c-comida: #30d158;
  --c-lazer: #bf5af2;
  --c-transporte: #ffd60a;
  --c-casa: #40c8e0;
  --c-outros: #8e8e93;
  --font-display: "Bricolage Grotesque", "Hanken Grotesk", system-ui, sans-serif;
  --font-ui: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --r-lg: 24px;
  --r-md: 18px;
  --r-sm: 12px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { background: var(--bg); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
  overscroll-behavior-y: none;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; touch-action: manipulation; }
h1, h2, h3, p { margin: 0; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

:focus-visible { outline: 3px solid #7fb0ff; outline-offset: 2px; border-radius: 8px; }

#app { max-width: 520px; margin: 0 auto; min-height: 100dvh; position: relative; }

/* ---------- tipografia ---------- */
.display { font-family: var(--font-display); font-weight: 800; letter-spacing: -0.03em; line-height: 0.98; font-variation-settings: "opsz" 96; }
.title { font-family: var(--font-display); font-weight: 700; font-size: 26px; letter-spacing: -0.02em; line-height: 1.1; }
.h2 { font-family: var(--font-display); font-weight: 700; font-size: 20px; letter-spacing: -0.015em; }
.money { font-family: var(--font-display); font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums lining-nums; font-feature-settings: "tnum" 1, "lnum" 1; white-space: nowrap; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }

/* ---------- layout ---------- */
.screen { padding: calc(var(--safe-t) + 20px) 20px calc(120px + var(--safe-b)); animation: fadeUp 0.35s var(--ease) both; }
.screen.plain { padding-bottom: calc(40px + var(--safe-b)); }
.topbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; min-height: 44px; }
.stack > * + * { margin-top: 14px; }
.row { display: flex; align-items: center; gap: 12px; }
.grow { flex: 1; min-width: 0; }
.center { text-align: center; }

.card { background: var(--card); border-radius: var(--r-lg); padding: 18px; }
.card.tight { padding: 6px 0; overflow: hidden; }

/* ---------- avatares e ícones ---------- */
.avatar { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; font-size: 17px; color: #fff; flex: none; }
.avatar.g { background: var(--g); }
.avatar.h { background: var(--h); color: #1a1a1a; }
.avatar.sm { width: 28px; height: 28px; font-size: 13px; }
.avatar.lg { width: 64px; height: 64px; font-size: 28px; }
.icon { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.icon.sm { width: 18px; height: 18px; }
.icon.lg { width: 32px; height: 32px; }
.sq { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; color: #101010; flex: none; }
.sq.sm { width: 36px; height: 36px; border-radius: 12px; }
.sq.comida { background: var(--c-comida); }
.sq.lazer { background: var(--c-lazer); color: #fff; }
.sq.transporte { background: var(--c-transporte); }
.sq.casa { background: var(--c-casa); }
.sq.outros { background: var(--c-outros); color: #fff; }

/* ---------- botões ---------- */
.btn { min-height: 52px; padding: 0 22px; border-radius: 999px; font-weight: 700; font-size: 16px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; transition: transform 0.15s var(--ease), background 0.2s, opacity 0.2s; width: 100%; }
.btn:active { transform: scale(0.97); }
.btn.primary { background: #fff; color: #111; }
.btn.blue { background: var(--g); color: #fff; }
.btn.soft { background: var(--card2); color: #fff; }
.btn.ghost { color: var(--muted); min-height: 44px; }
.btn.danger { background: rgba(255, 90, 82, 0.14); color: #ff8d86; }
.btn.small { min-height: 40px; padding: 0 16px; font-size: 14px; width: auto; }
.btn[disabled] { opacity: 0.45; pointer-events: none; }
.btn .spin { width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid currentColor; border-right-color: transparent; animation: spin 0.7s linear infinite; }
.link { color: #8fbaff; font-weight: 600; min-height: 44px; display: inline-flex; align-items: center; }

/* ---------- formulários ---------- */
.field { display: block; }
.field > .lbl { display: block; font-size: 13px; font-weight: 700; color: var(--muted); margin: 0 0 8px 4px; }
.input { width: 100%; min-height: 54px; background: var(--card); border: 2px solid transparent; border-radius: var(--r-md); padding: 0 16px; font-size: 17px; outline: none; transition: border-color 0.2s; }
.input:focus { border-color: #4f8dff; }
.input::placeholder { color: #707070; }
.input.invalid { border-color: var(--bad); }
.pw { position: relative; }
.pw .input { padding-right: 56px; }
.pw button { position: absolute; right: 4px; top: 5px; width: 44px; height: 44px; display: grid; place-items: center; color: var(--muted); }
.hint { font-size: 13px; color: var(--muted); margin: 8px 4px 0; }
.err { color: #ff8d86; font-size: 14px; font-weight: 600; margin: 10px 4px 0; display: flex; gap: 8px; align-items: flex-start; }
.err.shake { animation: shake 0.4s; }

.amount-wrap { text-align: center; padding: 8px 0 6px; }
.amount-wrap .cur { font-family: var(--font-display); font-weight: 700; font-size: 26px; color: var(--muted); vertical-align: 14px; margin-right: 6px; }
.amount-input { background: none; border: 0; outline: none; font-family: var(--font-display); font-weight: 800; font-size: 56px; letter-spacing: -0.03em; width: 70%; max-width: 280px; text-align: center; font-variant-numeric: tabular-nums; }
.amount-input::placeholder { color: #4a4a4a; }

.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 6px; background: var(--card); padding: 5px; border-radius: 999px; }
.seg button { min-height: 46px; border-radius: 999px; font-weight: 700; font-size: 15px; color: var(--muted); display: flex; align-items: center; justify-content: center; gap: 8px; transition: background 0.2s, color 0.2s, transform 0.15s; padding: 0 6px; }
.seg button:active { transform: scale(0.97); }
.seg button[aria-pressed="true"] { background: #fff; color: #111; }
.seg.people button[aria-pressed="true"].g { background: var(--g); color: #fff; }
.seg.people button[aria-pressed="true"].h { background: var(--h); color: #111; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 44px; padding: 0 16px 0 8px; border-radius: 999px; background: var(--card); display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 15px; transition: background 0.2s, transform 0.15s, box-shadow 0.2s; }
.chip.plain { padding: 0 16px; }
.chip:active { transform: scale(0.96); }
.chip[aria-pressed="true"] { background: #fff; color: #111; }
.chip .sq { width: 30px; height: 30px; border-radius: 10px; }
.chip .sq .icon { width: 18px; height: 18px; }

.preview { background: var(--card); border-radius: var(--r-md); padding: 14px 16px; display: flex; gap: 12px; align-items: center; font-size: 15px; min-height: 58px; }
.preview .icon { color: var(--pink); }

/* ---------- home ---------- */
.hero { padding: 6px 0 4px; }
.hero .hello { color: var(--muted); font-weight: 600; font-size: 15px; display: flex; align-items: center; gap: 8px; }
.hero .headline { font-size: 44px; margin: 10px 0 0; }
.hero .headline em { font-style: normal; }
.hero .headline .g { color: #6aa4ff; }
.hero .headline .h { color: var(--h); }
.balance-card .amount { font-size: 64px; margin: 4px 0 0; line-height: 1; }
.hero .amount { font-size: 64px; margin: 6px 0 0; line-height: 1; }
.hero .sub { color: var(--muted); margin-top: 10px; font-size: 15px; }

.balance-card { border-radius: var(--r-lg); padding: 22px; margin-top: 18px; position: relative; overflow: hidden; background: var(--card); }
.balance-card::before { content: ""; position: absolute; inset: 0; opacity: 0.9; pointer-events: none; }
.balance-card.to-g::before { background: radial-gradient(120% 90% at 100% 0%, rgba(15, 107, 255, 0.35), transparent 60%); }
.balance-card.to-h::before { background: radial-gradient(120% 90% at 100% 0%, rgba(255, 159, 10, 0.32), transparent 60%); }
.balance-card.even::before { background: radial-gradient(120% 90% at 100% 0%, rgba(255, 111, 165, 0.3), transparent 60%); }
.balance-card > * { position: relative; }
.pair { display: flex; align-items: center; margin-bottom: 14px; }
.pair .avatar { border: 3px solid var(--card); }
.pair .avatar + .avatar { margin-left: -12px; }
.pair .arrow { margin: 0 10px; color: var(--muted); }

.progress { height: 10px; border-radius: 99px; background: rgba(255, 255, 255, 0.1); overflow: hidden; margin-top: 16px; }
.progress > i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--g), var(--pink), var(--h)); transform-origin: left; animation: grow 0.9s var(--ease) both; }

.chips-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.pill { display: inline-flex; align-items: center; gap: 6px; min-height: 30px; padding: 0 12px; border-radius: 999px; background: var(--card2); font-size: 13px; font-weight: 700; }
.pill.pink { background: rgba(255, 111, 165, 0.16); color: #ff9cc2; }
.pill.warn { background: rgba(255, 214, 10, 0.14); color: var(--warn); }
.pill.ok { background: rgba(48, 209, 88, 0.14); color: #5fe083; }

.banner { border-radius: var(--r-lg); padding: 16px; display: flex; gap: 14px; align-items: center; text-align: left; width: 100%; background: var(--card2); }
.banner.attn { background: linear-gradient(135deg, rgba(255, 159, 10, 0.25), rgba(255, 111, 165, 0.2)); border: 1px solid rgba(255, 159, 10, 0.35); animation: nudge 2.6s ease-in-out infinite; }
.banner.soft { background: var(--card); }
.banner.bad { background: rgba(255, 90, 82, 0.12); }
.banner b { display: block; font-family: var(--font-display); font-size: 17px; }
.banner span.t { color: var(--muted); font-size: 14px; display: block; margin-top: 2px; }
.banner .go { margin-left: auto; color: var(--muted); }

.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.stat { background: var(--card); border-radius: var(--r-md); padding: 14px 16px; }
.stat .v { font-size: 22px; margin-top: 4px; }

.bars > * + * { margin-top: 14px; }
.bar-row .top { display: flex; justify-content: space-between; align-items: center; font-size: 14px; font-weight: 600; margin-bottom: 7px; }
.bar { height: 10px; background: var(--card2); border-radius: 99px; overflow: hidden; }
.bar > i { display: block; height: 100%; border-radius: 99px; transform-origin: left; animation: grow 0.8s var(--ease) both; }

.sec-head { display: flex; justify-content: space-between; align-items: baseline; margin: 28px 4px 12px; }

/* ---------- listas ---------- */
.item { display: flex; align-items: center; gap: 14px; padding: 12px 16px; width: 100%; text-align: left; min-height: 68px; transition: background 0.15s; animation: rise 0.45s var(--ease) both; animation-delay: calc(var(--i, 0) * 45ms); }
.item:active { background: var(--card2); }
.item .t1 { font-weight: 700; font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.item .t2 { color: var(--muted); font-size: 13px; margin-top: 1px; }
.item .val { text-align: right; flex: none; }
.item .val .money { font-size: 17px; }
.item .val .eff { font-size: 12px; font-weight: 700; margin-top: 1px; }
.eff.plus { color: #5fe083; }
.eff.minus { color: #ffb15c; }
.day { padding: 14px 16px 4px; font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }

.empty { text-align: center; padding: 34px 20px; color: var(--muted); }
.empty .ico { width: 64px; height: 64px; border-radius: 22px; background: var(--card2); display: grid; place-items: center; margin: 0 auto 14px; color: var(--pink); }
.empty b { display: block; font-family: var(--font-display); font-size: 19px; color: #fff; margin-bottom: 4px; }

/* ---------- linha do tempo ---------- */
.timeline { position: relative; padding-left: 8px; }
.tl { position: relative; display: flex; gap: 14px; padding-bottom: 20px; animation: rise 0.45s var(--ease) both; animation-delay: calc(var(--i, 0) * 55ms); }
.tl:last-child { padding-bottom: 0; }
.tl::before { content: ""; position: absolute; left: 17px; top: 36px; bottom: -2px; width: 2px; background: var(--line); }
.tl:last-child::before { display: none; }
.tl .dot { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--card2); z-index: 1; }
.tl .dot.ok { background: rgba(48, 209, 88, 0.18); color: #5fe083; }
.tl .dot.wait { background: rgba(255, 214, 10, 0.16); color: var(--warn); }
.tl .dot.bad { background: rgba(255, 90, 82, 0.16); color: #ff8d86; }
.tl .dot.closed { background: rgba(255, 111, 165, 0.16); color: var(--pink); }
.tl .t1 { font-weight: 700; }
.tl .t2 { color: var(--muted); font-size: 13px; margin-top: 2px; }

/* ---------- navegação ---------- */
.nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: flex; justify-content: center; pointer-events: none; }
.nav-in { width: 100%; max-width: 520px; display: grid; grid-template-columns: 1fr 1fr 84px 1fr 1fr; align-items: end; padding: 10px 10px calc(10px + var(--safe-b)); background: linear-gradient(to top, rgba(18, 18, 18, 1) 55%, rgba(18, 18, 18, 0)); pointer-events: auto; }
.nav a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 52px; font-size: 11.5px; font-weight: 700; color: var(--muted2); text-decoration: none; transition: color 0.2s, transform 0.15s; position: relative; }
.nav a:active { transform: scale(0.94); }
.nav a[aria-current="page"] { color: #fff; }
.nav a[aria-current="page"]::after { content: ""; position: absolute; top: -2px; width: 22px; height: 3px; border-radius: 3px; background: var(--pink); }
.nav a .badge { position: absolute; top: 2px; right: calc(50% - 20px); width: 10px; height: 10px; border-radius: 50%; background: var(--h); border: 2px solid var(--bg); }

.fab-wrap { position: relative; display: grid; place-items: center; height: 64px; }
.fab { position: relative; width: 64px; height: 64px; border-radius: 50%; background: #fff; color: #111; display: grid; place-items: center; box-shadow: 0 8px 24px rgba(255, 255, 255, 0.18); transition: transform 0.2s var(--spring); z-index: 2; }
.fab:active { transform: scale(0.9) rotate(90deg); }
.fab .icon { width: 30px; height: 30px; stroke-width: 2.6; }
.fab-wrap::before, .fab-wrap::after { content: ""; position: absolute; width: 64px; height: 64px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.55); animation: ring 3.2s ease-out infinite; pointer-events: none; }
.fab-wrap::after { animation-delay: 1.6s; }
.spark { position: absolute; width: 14px; height: 14px; color: #ffd9ec; z-index: 3; opacity: 0; pointer-events: none; animation: twinkle 3.6s ease-in-out infinite; }
.spark.s1 { top: -6px; right: 6px; animation-delay: 0s; }
.spark.s2 { top: 10px; left: 4px; width: 10px; height: 10px; animation-delay: 1.2s; }
.spark.s3 { top: -12px; left: 22px; width: 9px; height: 9px; animation-delay: 2.3s; }

/* ---------- sheets ---------- */
.scrim { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.62); z-index: 40; animation: fade 0.25s both; }
.sheet { position: fixed; left: 0; right: 0; bottom: 0; margin: 0 auto; max-width: 520px; max-height: 94dvh; overflow-y: auto; overscroll-behavior: contain; background: #181818; border-radius: 28px 28px 0 0; z-index: 41; padding: 10px 20px calc(24px + var(--safe-b)); animation: sheetUp 0.4s var(--ease) both; }
.sheet .grab { width: 40px; height: 5px; border-radius: 5px; background: #444; margin: 0 auto 14px; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.x { width: 44px; height: 44px; border-radius: 50%; background: var(--card2); display: grid; place-items: center; }
.closing .scrim { animation: fadeOut 0.2s both; }
.closing .sheet { animation: sheetDown 0.25s ease-in both; }

.kv > div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.kv > div:last-child { border: 0; }
.kv span:first-child { color: var(--muted); }
.kv span:last-child { font-weight: 700; text-align: right; }

.code-box { background: var(--card); border: 2px dashed #555; border-radius: var(--r-md); padding: 18px; text-align: center; }
.code-box .code { font-family: var(--font-display); font-weight: 800; font-size: 34px; letter-spacing: 0.08em; user-select: all; }

.check-row { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid var(--line); }
.check-row:last-child { border: 0; }
.check-row .ic { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; flex: none; margin-top: 1px; }
.check-row .ic.ok { background: rgba(48, 209, 88, 0.18); color: #5fe083; }
.check-row .ic.warn { background: rgba(255, 214, 10, 0.16); color: var(--warn); }
.check-row b { display: block; font-size: 15px; }
.check-row span.t { color: var(--muted); font-size: 13px; }

/* ---------- login ---------- */
.login { min-height: 100dvh; padding: calc(var(--safe-t) + 28px) 22px calc(30px + var(--safe-b)); display: flex; flex-direction: column; }
.login .poster { font-size: 58px; margin: 22px 0 10px; }
.login .poster .a { color: #6aa4ff; }
.login .poster .b { color: var(--h); }
.login .poster .c { color: var(--pink); }
.who { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.who button { background: var(--card); border-radius: var(--r-lg); padding: 18px 12px; display: flex; flex-direction: column; align-items: center; gap: 10px; font-weight: 700; border: 2px solid transparent; transition: transform 0.15s, border-color 0.2s; min-height: 124px; justify-content: center; }
.who button:active { transform: scale(0.96); }
.who button[aria-pressed="true"].g { border-color: var(--g); }
.who button[aria-pressed="true"].h { border-color: var(--h); }
.who small { font-weight: 500; color: var(--muted); font-size: 12px; }
.logo .logomark { width: 30px; height: 30px; flex: none; }
.logo { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 800; font-size: 19px; letter-spacing: -0.02em; }

/* ---------- sucesso ao salvar ---------- */
.done { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; background: rgba(10, 10, 10, 0.86); animation: fade 0.2s both; padding: 24px; }
.done.out { animation: fadeOut 0.3s both; }
.done-card { text-align: center; max-width: 320px; }
.done-card .msg { font-family: var(--font-display); font-weight: 700; font-size: 22px; letter-spacing: -0.01em; margin-top: 18px; line-height: 1.2; }
.done-card .sub { color: var(--muted); margin-top: 8px; font-size: 15px; }
.checkball { width: 104px; height: 104px; margin: 0 auto; border-radius: 50%; background: var(--ok); display: grid; place-items: center; animation: pop 0.55s var(--spring) both; box-shadow: 0 0 0 0 rgba(48, 209, 88, 0.5); }
.checkball svg { width: 56px; height: 56px; fill: none; stroke: #0b240f; stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }
.checkball path { stroke-dasharray: 48; stroke-dashoffset: 48; animation: draw 0.45s 0.25s var(--ease) forwards; }
.checkball.ring { animation: pop 0.55s var(--spring) both, halo 1s 0.5s ease-out; }

/* ---------- celebração ---------- */
.party { position: fixed; inset: 0; z-index: 70; background: radial-gradient(90% 60% at 50% 30%, #2b1a2f 0%, #121212 70%); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 28px 26px calc(28px + var(--safe-b)); text-align: center; overflow: hidden; animation: fade 0.35s both; }
.party.out { animation: fadeOut 0.3s both; }
.party .merge { position: relative; width: 190px; height: 110px; margin-bottom: 22px; }
.party .merge .avatar { position: absolute; top: 20px; width: 72px; height: 72px; font-size: 32px; }
.party .merge .avatar.g { left: -30px; animation: toRight 1.1s 0.2s var(--ease) forwards; }
.party .merge .avatar.h { right: -30px; animation: toLeft 1.1s 0.2s var(--ease) forwards; }
.party .merge .avatar.h { mix-blend-mode: normal; }
.party .merge .heart { position: absolute; left: 50%; top: 50%; width: 76px; height: 76px; margin: -38px 0 0 -38px; color: var(--pink); opacity: 0; transform: scale(0); animation: heartPop 0.8s 1.1s var(--spring) forwards, beat 1.4s 1.9s ease-in-out infinite; z-index: 3; filter: drop-shadow(0 6px 22px rgba(255, 111, 165, 0.6)); }
.party .heart svg { width: 100%; height: 100%; fill: currentColor; stroke: none; }
.party h1 { font-size: 46px; animation: rise 0.6s 1.2s var(--ease) both; }
.party .lead { font-size: 18px; margin-top: 14px; max-width: 330px; line-height: 1.4; animation: rise 0.6s 1.4s var(--ease) both; }
.party .dream { margin-top: 16px; font-weight: 700; color: #ff9cc2; animation: rise 0.6s 1.6s var(--ease) both; }
.party .quote { margin-top: 18px; color: var(--muted); font-size: 14px; max-width: 300px; animation: rise 0.6s 1.8s var(--ease) both; }
.party .btn { margin-top: 30px; max-width: 320px; animation: rise 0.6s 2s var(--ease) both; }
.party .goal { width: 240px; margin-top: 16px; animation: rise 0.6s 1.5s var(--ease) both; }
.confetti { position: absolute; top: -20px; left: 0; width: 100%; height: 0; pointer-events: none; }
.confetti i { position: absolute; top: 0; width: 10px; height: 16px; border-radius: 3px; opacity: 0; animation: fall var(--d, 3s) var(--dl, 0s) cubic-bezier(0.25, 0.6, 0.4, 1) forwards; }
.float-heart { position: absolute; bottom: -40px; color: var(--pink); opacity: 0; animation: floatUp var(--d, 5s) var(--dl, 0s) ease-in forwards; pointer-events: none; }
.float-heart svg { width: 100%; height: 100%; fill: currentColor; }

.toast { position: fixed; left: 50%; bottom: calc(110px + var(--safe-b)); transform: translateX(-50%); z-index: 80; background: #fff; color: #111; font-weight: 700; padding: 12px 20px; border-radius: 999px; font-size: 15px; animation: toast 2.6s var(--ease) both; max-width: calc(100% - 40px); text-align: center; }

.loading { display: grid; place-items: center; min-height: 60dvh; }
.dots { display: flex; gap: 8px; }
.dots i { width: 12px; height: 12px; border-radius: 50%; background: var(--g); animation: bounce 0.9s infinite; }
.dots i:nth-child(2) { background: var(--pink); animation-delay: 0.15s; }
.dots i:nth-child(3) { background: var(--h); animation-delay: 0.3s; }

.press { transition: transform 0.15s var(--ease); }
.press:active { transform: scale(0.98); }

/* ---------- animações ---------- */
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeOut { to { opacity: 0; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes sheetUp { from { transform: translateY(100%); } to { transform: none; } }
@keyframes sheetDown { to { transform: translateY(100%); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes shake { 0%, 100% { transform: none; } 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
@keyframes nudge { 0%, 100% { box-shadow: 0 0 0 0 rgba(255, 159, 10, 0); } 50% { box-shadow: 0 0 0 6px rgba(255, 159, 10, 0.18); } }
@keyframes ring { 0% { transform: scale(1); opacity: 0.7; } 70%, 100% { transform: scale(1.7); opacity: 0; } }
@keyframes twinkle { 0%, 55%, 100% { opacity: 0; transform: scale(0.3) rotate(0); } 70% { opacity: 1; transform: scale(1) rotate(25deg); } 85% { opacity: 0; transform: scale(0.4) rotate(50deg); } }
@keyframes pop { 0% { transform: scale(0); } 100% { transform: scale(1); } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes halo { 0% { box-shadow: 0 0 0 0 rgba(48, 209, 88, 0.55); } 100% { box-shadow: 0 0 0 40px rgba(48, 209, 88, 0); } }
@keyframes toRight { to { left: 50px; } }
@keyframes toLeft { to { right: 50px; } }
@keyframes heartPop { 0% { opacity: 0; transform: scale(0); } 100% { opacity: 1; transform: scale(1); } }
@keyframes beat { 0%, 100% { transform: scale(1); } 15% { transform: scale(1.14); } 30% { transform: scale(1); } 45% { transform: scale(1.08); } }
@keyframes fall { 0% { opacity: 1; transform: translate3d(0, 0, 0) rotate(0); } 100% { opacity: 0; transform: translate3d(var(--x, 0), 105dvh, 0) rotate(var(--r, 540deg)); } }
@keyframes floatUp { 0% { opacity: 0; transform: translateY(0) scale(0.6); } 15% { opacity: 0.9; } 100% { opacity: 0; transform: translateY(-80dvh) translateX(var(--x, 0)) scale(1); } }
@keyframes toast { 0% { opacity: 0; transform: translate(-50%, 16px); } 12%, 85% { opacity: 1; transform: translate(-50%, 0); } 100% { opacity: 0; transform: translate(-50%, 8px); } }
@keyframes bounce { 0%, 80%, 100% { transform: translateY(0); } 40% { transform: translateY(-10px); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-delay: 0ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .fab-wrap::before, .fab-wrap::after, .spark, .confetti, .float-heart { display: none !important; }
  .checkball path { stroke-dashoffset: 0; }
  .party .heart { opacity: 1; transform: none; }
}

@media (min-width: 560px) {
  body { background: #0b0b0b; }
  #app { background: var(--bg); box-shadow: 0 0 0 1px #222; }
}
