:root {
  color-scheme: dark;
  --bg: #050705;
  --surface: #0d110d;
  --surface-2: #131913;
  --surface-3: #192019;
  --line: #273126;
  --text: #f7f9f4;
  --muted: #97a091;
  --lime: #caff18;
  --lime-2: #92cd0d;
  --green: #5ee474;
  --red: #ff7373;
  --gold: #f4c84c;
  --blue: #73a9ff;
  --radius: 22px;
  --shadow: 0 20px 55px rgba(0, 0, 0, .38);
  --header-h: 72px;
  --nav-h: 74px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--bg); scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; min-height: 100dvh; overflow-x: clip; background: radial-gradient(circle at 85% -10%, rgba(164, 230, 20, .1), transparent 22rem), var(--bg); color: var(--text); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; }
body.sheet-open { overflow: hidden; }
button, input, select, textarea { font: inherit; }
input, select, textarea { font-size: 16px; }
button, a, label { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; touch-action: manipulation; }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--lime); outline-offset: 2px; }
img { max-width: 100%; }
[hidden] { display: none !important; }

.splash { position: fixed; inset: 0; z-index: 500; display: grid; place-content: center; justify-items: center; gap: 8px; background: radial-gradient(circle, #172111, #050705 55%); transition: opacity .35s ease, visibility .35s ease; }
.splash img { width: 104px; height: 104px; border-radius: 28px; object-fit: cover; box-shadow: 0 0 60px rgba(202,255,24,.17); animation: logo-pulse 1.2s ease-in-out infinite alternate; }
.splash strong { margin-top: 10px; font-size: 24px; letter-spacing: -.8px; }
.splash span { color: var(--muted); font-size: 13px; }
.splash.done { opacity: 0; visibility: hidden; }

.auth-screen, .lock-screen { position: fixed; inset: 0; z-index: 300; min-height: 100dvh; overflow-y: auto; padding: calc(24px + var(--safe-top)) 18px calc(24px + var(--safe-bottom)); background: radial-gradient(circle at 50% 0%, rgba(170,230,20,.12), transparent 28rem), var(--bg); }
.auth-screen { display: grid; align-content: center; gap: 24px; }
.auth-brand { display: flex; align-items: center; gap: 13px; width: min(100%, 440px); margin: 0 auto; }
.auth-brand img { width: 58px; height: 58px; object-fit: cover; border-radius: 18px; }
.auth-brand b, .auth-brand span { display: block; }
.auth-brand b { font-size: 19px; }
.auth-brand span { color: var(--muted); font-size: 12px; margin-top: 3px; }
.auth-card, .lock-card { width: min(100%, 440px); margin: 0 auto; padding: 26px 20px; background: rgba(13,17,13,.96); border: 1px solid #2c382a; border-radius: 28px; box-shadow: var(--shadow); }
.auth-card h1, .lock-card h1 { margin: 0; font-size: clamp(29px, 9vw, 38px); letter-spacing: -1.6px; }
.auth-subtitle, .lock-card > p:not(.eyebrow) { margin: 10px 0 22px; color: var(--muted); line-height: 1.55; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; padding: 4px; margin-bottom: 20px; background: #080a08; border: 1px solid var(--line); border-radius: 14px; }
.auth-tabs button { min-height: 44px; border: 0; border-radius: 10px; background: transparent; color: var(--muted); font-weight: 800; }
.auth-tabs button.active { background: var(--surface-3); color: var(--text); }
.auth-form, .sheet-form { display: grid; gap: 15px; }
.auth-form label, .sheet-form label, .custom-period label { display: grid; gap: 7px; color: var(--muted); font-size: 13px; font-weight: 720; }
.auth-form input, .sheet-form input, .sheet-form select, .sheet-form textarea, .custom-period input { width: 100%; min-height: 50px; border: 1px solid var(--line); border-radius: 14px; background: #080b08; color: var(--text); padding: 0 14px; }
.sheet-form textarea { min-height: 84px; padding-top: 13px; resize: vertical; }
.auth-form input:focus, .sheet-form input:focus, .sheet-form select:focus, .sheet-form textarea:focus { border-color: var(--lime-2); outline: 0; box-shadow: 0 0 0 3px rgba(202,255,24,.07); }
.form-message { display: block; min-height: 20px; margin-top: 12px; color: var(--red); font-size: 13px; text-align: center; }
.local-warning { display: grid; gap: 4px; margin-top: 8px; padding: 14px; border: 1px solid rgba(244,200,76,.16); border-radius: 14px; background: rgba(244,200,76,.05); }
.local-warning b { color: var(--gold); font-size: 13px; }
.local-warning span { color: var(--muted); font-size: 12px; line-height: 1.45; }
.lock-screen { display: grid; place-items: center; }
.lock-card { text-align: center; }
.lock-card img { width: 72px; height: 72px; border-radius: 22px; object-fit: cover; margin-bottom: 18px; }
.lock-card form { display: grid; gap: 12px; }
.lock-card input { width: 100%; min-height: 58px; border: 1px solid var(--line); border-radius: 16px; background: #080b08; color: var(--text); text-align: center; font-size: 25px; letter-spacing: 9px; }

.app { min-height: 100dvh; }
.app-header { position: sticky; top: 0; z-index: 80; height: calc(var(--header-h) + var(--safe-top)); padding: var(--safe-top) 14px 0; display: flex; align-items: center; justify-content: space-between; background: rgba(5,7,5,.84); border-bottom: 1px solid rgba(255,255,255,.055); backdrop-filter: blur(18px); }
.brand-greeting { min-width: 0; display: flex; align-items: center; gap: 10px; }
.brand-greeting img { width: 43px; height: 43px; flex: 0 0 auto; border-radius: 14px; object-fit: cover; box-shadow: 0 0 22px rgba(202,255,24,.1); }
.brand-greeting span, .brand-greeting strong { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand-greeting span { max-width: 48vw; color: var(--muted); font-size: 11px; }
.brand-greeting strong { margin-top: 2px; font-size: 16px; }
.header-actions { display: flex; gap: 5px; }
.icon-btn { position: relative; width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 13px; background: var(--surface); color: var(--text); font-size: 19px; }
.notification-dot > span { position: absolute; top: 5px; right: 5px; min-width: 16px; height: 16px; padding: 0 4px; display: grid; place-items: center; border-radius: 10px; background: var(--red); color: white; font-size: 9px; font-weight: 900; }
.app-main { width: min(100%, 1160px); margin: 0 auto; padding: 18px 14px calc(var(--nav-h) + var(--safe-bottom) + 30px); }
.view { display: none; min-width: 0; }
.view.active { display: block; animation: view-in .26s ease both; }

.card { min-width: 0; background: linear-gradient(145deg, rgba(17,22,16,.98), rgba(10,13,10,.99)); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 12px 34px rgba(0,0,0,.18); }
.balance-hero { position: relative; overflow: hidden; min-height: 190px; padding: 22px; background: linear-gradient(145deg, #1d2718, #0b0f0b 72%); border-color: #34442c; }
.balance-top { display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: 1.5px; }
.balance-top button { width: 38px; height: 38px; border: 0; border-radius: 12px; background: rgba(255,255,255,.04); color: var(--muted); }
.money-value { position: relative; z-index: 1; display: block; max-width: 100%; margin: 18px 0 24px; font-size: clamp(38px, 11vw, 58px); line-height: 1; letter-spacing: -2.6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.balance-caption { position: relative; z-index: 1; display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: 11px; }
.trend-pill { flex: 0 0 auto; padding: 6px 9px; border-radius: 20px; background: rgba(202,255,24,.1); color: var(--lime); font-weight: 800; }
.balance-glow { position: absolute; width: 230px; height: 230px; right: -100px; top: -110px; border-radius: 50%; background: var(--lime); filter: blur(90px); opacity: .11; pointer-events: none; }
.shimmer-border::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(110deg, transparent 20%, rgba(255,255,255,.07) 47%, transparent 74%); transform: translateX(-120%); animation: shimmer 6s ease-in-out infinite; }

.quick-stats { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; margin: 12px 0; }
.mini-card { min-width: 0; padding: 15px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; }
.mini-icon { width: 30px; height: 30px; display: grid; place-items: center; margin-bottom: 13px; border-radius: 10px; font-weight: 900; }
.mini-icon.income { color: var(--green); background: rgba(94,228,116,.09); }
.mini-icon.expense { color: var(--red); background: rgba(255,115,115,.09); }
.mini-icon.saved { color: var(--gold); background: rgba(244,200,76,.09); }
.mini-icon.goal { color: var(--blue); background: rgba(115,169,255,.09); }
.mini-card p { margin: 0 0 6px; color: var(--muted); font-size: 11px; }
.mini-card strong { display: block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; font-size: 16px; white-space: nowrap; }

.section-kicker, .eyebrow { display: block; margin: 0 0 7px; color: var(--lime); font-size: 10px; font-weight: 900; letter-spacing: 1.8px; }
.section-kicker.gold { color: var(--gold); }
.card-head, .section-title-row, .page-heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.card-head h2, .section-title-row h2 { margin: 0; font-size: 21px; letter-spacing: -.8px; }
.chart-card, .streak-card, .home-columns > .card { padding: 20px; margin-top: 12px; }
.chart-total { color: var(--muted); font-size: 13px; font-weight: 800; white-space: nowrap; }
.period-tabs { display: flex; gap: 6px; max-width: 100%; margin: 19px -4px 12px; padding: 4px; overflow-x: auto; scrollbar-width: none; }
.period-tabs::-webkit-scrollbar, .profile-chips::-webkit-scrollbar { display: none; }
.period-tabs button { flex: 0 0 auto; min-height: 34px; padding: 0 11px; border: 1px solid transparent; border-radius: 10px; background: transparent; color: var(--muted); font-size: 11px; font-weight: 800; }
.period-tabs button.active { border-color: var(--line); background: var(--surface-3); color: var(--text); }
.chart-wrap { position: relative; width: 100%; height: 190px; }
.chart-wrap canvas { width: 100%; height: 100%; }
.chart-empty { position: absolute; inset: 0; display: grid; place-items: center; padding: 20px; color: var(--muted); text-align: center; font-size: 12px; }
.chart-legend { display: flex; justify-content: center; gap: 18px; margin-top: 10px; color: var(--muted); font-size: 10px; }
.chart-legend span { display: flex; align-items: center; gap: 5px; }
.chart-legend i { width: 8px; height: 8px; border-radius: 50%; }
.chart-legend .income { background: var(--green); }.chart-legend .expense { background: var(--red); }.chart-legend .saved { background: var(--gold); }

.piggy-card { position: relative; overflow: hidden; display: grid; gap: 8px; padding: 22px; margin-top: 12px; background: radial-gradient(circle at 12% 30%, rgba(202,255,24,.1), transparent 15rem), linear-gradient(145deg,#171e14,#0b0e0b); }
.piggy-visual { position: relative; display: grid; place-items: center; height: 118px; }
.coin-slot { position: absolute; z-index: 2; top: 8px; width: 34px; height: 5px; border-radius: 10px; background: #171509; box-shadow: 0 0 0 2px var(--gold); }
.coin-animation { position: absolute; z-index: 3; top: -40px; opacity: 0; color: var(--gold); font-size: 35px; text-shadow: 0 0 12px rgba(244,200,76,.5); }
.coin-animation.drop { animation: coin-drop .8s cubic-bezier(.3,.9,.6,1) both; }
.piggy-copy { text-align: center; }
.piggy-copy h2 { margin: 0; font-size: 25px; letter-spacing: -1px; }
.piggy-copy p { margin: 8px auto 18px; color: var(--muted); font-size: 12px; line-height: 1.5; }

.streak-card { display: grid; grid-template-columns: auto 1fr; gap: 15px; align-items: center; }
.streak-flame { font-size: 38px; filter: drop-shadow(0 0 12px rgba(255,125,30,.24)); }
.streak-flame.lit { animation: flame .9s ease-in-out infinite alternate; }
.streak-card h2 { margin: 0 0 4px; font-size: 20px; }
.streak-card p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.4; }
.week-dots { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(7,1fr); gap: 7px; }
.week-dot { display: grid; justify-items: center; gap: 6px; color: var(--muted); font-size: 9px; }
.week-dot i { width: 100%; aspect-ratio: 1; max-width: 34px; border-radius: 11px; background: var(--surface-3); border: 1px solid var(--line); }
.week-dot.done i { background: linear-gradient(145deg,var(--lime),var(--lime-2)); border-color: transparent; box-shadow: 0 0 16px rgba(202,255,24,.12); }
.home-columns { display: grid; gap: 12px; }
.sparkle { color: var(--gold); font-size: 25px; }
.insight-list { display: grid; gap: 9px; margin-top: 18px; }
.insight-item { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: start; padding: 12px; border-radius: 14px; background: rgba(255,255,255,.025); }
.insight-item > span { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 10px; background: rgba(202,255,24,.08); }
.insight-item p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.budget-preview, .budget-list { display: grid; gap: 14px; margin-top: 18px; }
.budget-item { padding: 15px; border: 1px solid var(--line); border-radius: 16px; background: rgba(255,255,255,.02); }
.budget-info { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.budget-info span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; font-weight: 750; }
.budget-info b { color: var(--muted); font-size: 11px; white-space: nowrap; }
.progress { height: 7px; overflow: hidden; border-radius: 20px; background: #252d23; }
.progress span { display: block; height: 100%; border-radius: inherit; background: var(--green); transition: width .5s cubic-bezier(.2,.8,.2,1), background .2s ease; }
.progress.warning span { background: var(--gold); }.progress.danger span { background: var(--red); }
.empty-state { grid-column: 1 / -1; padding: 30px 18px; border: 1px dashed #354133; border-radius: 19px; background: rgba(255,255,255,.015); color: var(--muted); text-align: center; font-size: 12px; line-height: 1.5; }
.empty-state strong { display: block; margin-bottom: 5px; color: var(--text); font-size: 16px; }

.page-heading { margin: 9px 0 22px; align-items: end; }
.page-heading h1 { margin: 0; font-size: clamp(30px,9vw,44px); line-height: 1; letter-spacing: -1.7px; }
.btn { min-height: 48px; padding: 0 18px; display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 14px; font-weight: 820; color: var(--text); transition: transform .15s ease, filter .15s ease; }
.btn:active { transform: scale(.975); }
.btn-primary { color: #111508; background: linear-gradient(135deg,var(--lime),#9cda0d); box-shadow: 0 9px 24px rgba(202,255,24,.1); }
.btn-secondary { border: 1px solid var(--line); background: var(--surface-2); }
.btn-danger { border: 1px solid rgba(255,115,115,.24); background: rgba(255,115,115,.12); color: #ff9696; }
.btn.compact { min-height: 44px; padding: 0 13px; font-size: 12px; }
.btn-block { width: 100%; }
.text-btn { min-height: 34px; padding: 0; border: 0; background: transparent; color: var(--lime); font-size: 12px; font-weight: 850; }
.danger-text { color: var(--red); }
.filters-card { padding: 14px; }
.search-field { display: flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 13px; border: 1px solid var(--line); border-radius: 14px; background: #080b08; }
.search-field span { color: var(--muted); font-size: 20px; }.search-field input { min-width: 0; flex: 1; border: 0; outline: 0; background: transparent; color: var(--text); }
.filter-row { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
.filter-row select { flex: 0 0 auto; min-height: 42px; max-width: 180px; padding: 0 30px 0 11px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); color: var(--text); font-size: 12px; }
.custom-period { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.history-summary { display: flex; align-items: center; justify-content: space-between; padding: 18px 4px 10px; color: var(--muted); font-size: 12px; }.history-summary strong { color: var(--text); font-size: 14px; }
.transaction-list { display: grid; gap: 8px; }
.transaction-row { position: relative; display: grid; grid-template-columns: auto minmax(0,1fr) auto; gap: 11px; align-items: center; padding: 14px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); animation: card-in .28s ease both; }
.transaction-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 13px; background: rgba(94,228,116,.08); color: var(--green); font-weight: 900; }
.transaction-row.expense .transaction-icon { color: var(--red); background: rgba(255,115,115,.08); }.transaction-row.piggy .transaction-icon { color: var(--gold); background: rgba(244,200,76,.08); }.transaction-row.goal .transaction-icon { color: var(--blue); background: rgba(115,169,255,.08); }
.transaction-info { min-width: 0; }.transaction-info strong, .transaction-info span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.transaction-info strong { font-size: 13px; }.transaction-info span { margin-top: 4px; color: var(--muted); font-size: 10px; }
.transaction-amount { text-align: right; }.transaction-amount b, .transaction-amount time { display: block; white-space: nowrap; }.transaction-amount b { color: var(--green); font-size: 13px; }.transaction-row.expense .transaction-amount b { color: var(--red); }.transaction-row.piggy .transaction-amount b { color: var(--gold); }.transaction-row.goal .transaction-amount b { color: var(--blue); }.transaction-amount time { margin-top: 4px; color: var(--muted); font-size: 9px; }
.row-menu { grid-column: 2 / 4; min-height: 30px; margin: -6px -6px -7px auto; border: 0; background: transparent; color: var(--muted); font-size: 11px; }

.calendar-card, .monthly-report { margin-top: 26px; padding: 18px; }
.calendar-nav { display: flex; gap: 6px; }.calendar-nav button { width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); color: var(--text); font-size: 22px; }
.calendar-week, .calendar-grid { display: grid; grid-template-columns: repeat(7,1fr); gap: 4px; }.calendar-week { margin: 20px 0 7px; color: var(--muted); font-size: 9px; text-align: center; }
.calendar-day { position: relative; min-width: 0; aspect-ratio: 1; border: 1px solid transparent; border-radius: 10px; background: transparent; color: var(--text); font-size: 11px; }.calendar-day.other { color: #555e52; }.calendar-day.today { border-color: var(--lime-2); }.calendar-day.selected { background: var(--lime); color: #101509; font-weight: 900; }.calendar-day.has-event::after { content: ""; position: absolute; left: 50%; bottom: 5px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--gold); }.calendar-day.selected::after { background: #111; }
.day-details { margin-top: 14px; padding: 13px; border-radius: 13px; background: rgba(255,255,255,.025); color: var(--muted); font-size: 11px; }.day-details p { margin: 0; }.day-event { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; }.day-event + .day-event { border-top: 1px solid var(--line); }
.subscriptions-section, .profile-section, .challenges-section { margin-top: 34px; scroll-margin-top: calc(var(--header-h) + var(--safe-top) + 14px); }
.subscription-summary { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 18px; margin-top: 15px; }.subscription-summary div { padding: 12px; border-radius: 14px; background: rgba(255,255,255,.025); }.subscription-summary span, .subscription-summary strong { display: block; }.subscription-summary span { color: var(--muted); font-size: 10px; }.subscription-summary strong { margin-top: 5px; font-size: 17px; }.subscription-summary p { grid-column: 1 / -1; margin: 2px 0 0; color: var(--gold); font-size: 12px; line-height: 1.5; }
.subscription-list, .alarm-list { display: grid; gap: 9px; margin-top: 10px; }.subscription-item, .alarm-item { display: grid; grid-template-columns: auto minmax(0,1fr) auto; gap: 11px; align-items: center; padding: 14px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }.subscription-logo, .alarm-time { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 13px; background: rgba(244,200,76,.08); color: var(--gold); font-weight: 900; }.subscription-item h3, .alarm-item h3 { margin: 0; overflow: hidden; text-overflow: ellipsis; font-size: 13px; white-space: nowrap; }.subscription-item p, .alarm-item p { margin: 4px 0 0; color: var(--muted); font-size: 10px; }.subscription-item b { font-size: 12px; white-space: nowrap; }
.monthly-report { overflow: hidden; background: radial-gradient(circle at 90% 0%, rgba(202,255,24,.12), transparent 15rem), var(--surface); }.monthly-report h2 { margin: 0 0 18px; font-size: 25px; letter-spacing: -1px; }.report-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }.report-stat { padding: 12px; border-radius: 13px; background: rgba(255,255,255,.03); }.report-stat span, .report-stat b { display: block; }.report-stat span { color: var(--muted); font-size: 9px; }.report-stat b { margin-top: 5px; font-size: 14px; }.monthly-report > p { margin: 16px 0 0; color: var(--lime); font-size: 12px; line-height: 1.5; }

.goal-grid, .challenge-grid { display: grid; gap: 11px; }.goal-card { position: relative; overflow: hidden; padding: 18px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); }.goal-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: var(--goal-color,var(--lime)); }.goal-title { display: flex; align-items: center; gap: 10px; padding-right: 32px; }.goal-title h3 { margin: 0; font-size: 17px; }.goal-title span { display: block; margin-top: 3px; color: var(--muted); font-size: 9px; }.goal-description { margin: 13px 0; color: var(--muted); font-size: 11px; line-height: 1.5; }.goal-progress { height: 9px; overflow: hidden; margin: 13px 0 9px; border-radius: 20px; background: #252d23; }.goal-progress span { display: block; height: 100%; border-radius: inherit; background: var(--goal-color,var(--lime)); transition: width .65s cubic-bezier(.2,.8,.2,1); }.goal-numbers { display: flex; justify-content: space-between; gap: 10px; }.goal-numbers strong { font-size: 14px; }.goal-numbers span { color: var(--muted); font-size: 10px; }.goal-projection { margin: 13px 0 0; padding: 10px; border-radius: 12px; background: rgba(255,255,255,.025); color: var(--muted); font-size: 10px; line-height: 1.45; }.goal-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin-top: 13px; }.goal-actions button { min-height: 40px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); color: var(--text); font-size: 11px; font-weight: 800; }.goal-actions button:first-child { color: var(--lime); }.card-delete { position: absolute; z-index: 2; top: 12px; right: 12px; width: 34px; height: 34px; border: 0; border-radius: 50%; background: transparent; color: var(--muted); font-size: 17px; }
.challenge-streak { flex: 0 0 auto; color: var(--muted); font-size: 11px; }.challenge-grid { margin-top: 15px; }.challenge-card { padding: 17px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }.challenge-card.joined { border-color: #3a4c30; background: linear-gradient(145deg,#151c13,#0d110d); }.challenge-head { display: flex; gap: 11px; align-items: center; }.challenge-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 13px; background: rgba(202,255,24,.07); font-size: 20px; }.challenge-head h3 { margin: 0; font-size: 14px; }.challenge-head p { margin: 4px 0 0; color: var(--muted); font-size: 10px; }.challenge-card .progress { margin: 14px 0 7px; }.challenge-bottom { display: flex; justify-content: space-between; align-items: center; color: var(--muted); font-size: 10px; }

.profile-chips { position: sticky; top: calc(var(--header-h) + var(--safe-top)); z-index: 30; display: flex; gap: 7px; margin: 0 -14px; padding: 10px 14px; overflow-x: auto; background: rgba(5,7,5,.9); backdrop-filter: blur(12px); scrollbar-width: none; }.profile-chips button { flex: 0 0 auto; min-height: 44px; padding: 0 13px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--muted); font-size: 11px; font-weight: 800; }
.tools-grid { display: grid; gap: 10px; }.tool-card { padding: 18px; }.tool-icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 15px; background: rgba(202,255,24,.07); font-size: 23px; }.tool-card h3 { margin: 14px 0 5px; }.tool-card p { min-height: 35px; margin: 0 0 16px; color: var(--muted); font-size: 11px; line-height: 1.5; }
.settings-stack { display: grid; gap: 10px; }.settings-stack > .section-title-row { margin-bottom: 4px; }.settings-card { padding: 0 16px; }.setting-row { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 15px; border-top: 1px solid var(--line); }.setting-row:first-child { border-top: 0; }.setting-row > span { min-width: 0; }.setting-row b, .setting-row small { display: block; }.setting-row b { font-size: 13px; }.setting-row small { margin-top: 4px; color: var(--muted); font-size: 10px; line-height: 1.4; }.small-input, .setting-row select { width: 112px; min-height: 42px; padding: 0 10px; border: 1px solid var(--line); border-radius: 12px; background: #080b08; color: var(--text); text-align: right; }.setting-row input[type=range] { width: 112px; accent-color: var(--lime); }.switch { flex: 0 0 auto; width: 47px; height: 27px; padding: 3px; border: 0; border-radius: 20px; background: #30372e; }.switch::before { content: ""; display: block; width: 21px; height: 21px; border-radius: 50%; background: #8d9789; transition: transform .2s ease; }.switch.on { background: var(--lime-2); }.switch.on::before { transform: translateX(20px); background: #11170b; }.inline-actions { display: flex; gap: 12px; }.file-label { display: inline-grid; place-items: center; cursor: pointer; }.danger-row { border-color: rgba(255,115,115,.16); }.subtle-reset-row { opacity: .72; }.quiet-reset { min-height: 34px; padding: 0 10px; border: 1px solid #30382e; border-radius: 10px; background: transparent; color: #7f897a; font-size: 10px; font-weight: 800; }.quiet-reset:active { color: var(--text); border-color: var(--muted); }.notification-settings #notificationPreferences { border-top: 1px solid var(--line); }.pref-row { min-height: 56px; display: flex; align-items: center; justify-content: space-between; gap: 10px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 11px; }.pref-row .switch { transform: scale(.88); }.platform-note { color: var(--muted); font-size: 10px; line-height: 1.5; }

.bottom-nav { position: fixed; z-index: 100; inset: auto 0 0; height: calc(var(--nav-h) + var(--safe-bottom)); padding: 7px 8px var(--safe-bottom); display: grid; grid-template-columns: 1fr 1fr 70px 1fr 1fr; align-items: center; background: rgba(10,13,10,.95); border-top: 1px solid #293227; backdrop-filter: blur(20px); }.bottom-nav > button:not(.fab) { height: 56px; min-width: 0; display: grid; place-items: center; align-content: center; gap: 3px; border: 0; background: transparent; color: var(--muted); }.bottom-nav > button span { font-size: 20px; line-height: 1; }.bottom-nav > button b { max-width: 100%; overflow: hidden; text-overflow: ellipsis; font-size: 9px; font-weight: 760; }.bottom-nav > button.active { color: var(--lime); }.bottom-nav .fab { align-self: start; width: 60px; height: 60px; margin: -18px auto 0; display: grid; place-items: center; border: 5px solid var(--bg); border-radius: 50%; background: linear-gradient(135deg,var(--lime),#8dc90d); color: #101508; box-shadow: 0 9px 25px rgba(175,235,18,.25); }.fab span { font-size: 34px !important; transition: transform .25s ease; }.fab.open span { transform: rotate(45deg); }
.action-backdrop { position: fixed; inset: 0; z-index: 108; background: rgba(0,0,0,.62); backdrop-filter: blur(3px); }.quick-actions { position: fixed; z-index: 110; left: 12px; right: 12px; bottom: calc(var(--nav-h) + var(--safe-bottom) + 12px); max-width: 430px; margin: auto; padding: 9px; border: 1px solid var(--line); border-radius: 22px; background: #0d110d; box-shadow: var(--shadow); animation: sheet-up .24s ease both; }.quick-actions button { width: 100%; min-height: 64px; display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: center; padding: 8px; border: 0; border-radius: 15px; background: transparent; color: var(--text); text-align: left; }.quick-actions button:active { background: var(--surface-2); }.qa-icon { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 14px; font-size: 18px; font-weight: 900; }.qa-icon.income { color: var(--green); background: rgba(94,228,116,.09); }.qa-icon.expense { color: var(--red); background: rgba(255,115,115,.09); }.qa-icon.piggy { background: rgba(244,200,76,.08); }.qa-icon.goal { color: var(--blue); background: rgba(115,169,255,.09); }.quick-actions b, .quick-actions small { display: block; }.quick-actions b { font-size: 13px; }.quick-actions small { margin-top: 3px; color: var(--muted); font-size: 10px; }

.bottom-sheet { position: fixed; inset: auto 0 0; width: 100%; max-width: 560px; max-height: min(88dvh, 760px); margin: 0 auto; padding: 8px 17px calc(22px + var(--safe-bottom)); overflow-y: auto; overscroll-behavior: contain; border: 1px solid var(--line); border-bottom: 0; border-radius: 26px 26px 0 0; background: #0d110d; color: var(--text); box-shadow: 0 -25px 70px rgba(0,0,0,.48); animation: sheet-up .28s cubic-bezier(.2,.8,.2,1) both; }.bottom-sheet::backdrop { background: rgba(0,0,0,.66); backdrop-filter: blur(4px); }.sheet-grabber { width: 42px; height: 4px; margin: 2px auto 17px; border-radius: 10px; background: #40493d; }.sheet-head { display: flex; justify-content: space-between; gap: 15px; margin-bottom: 20px; }.sheet-head h2 { margin: 0; font-size: 26px; letter-spacing: -1px; }.sheet-close { flex: 0 0 auto; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface-2); color: var(--muted); font-size: 21px; }.form-grid-2 { display: grid; gap: 13px; }.field-inline { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }.sheet-form .form-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 5px; }.type-selector { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }.type-selector input { position: absolute; opacity: 0; }.type-selector span { min-height: 44px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 13px; background: var(--surface-2); color: var(--muted); font-size: 12px; font-weight: 850; }.type-selector input:checked + span { border-color: rgba(202,255,24,.5); background: rgba(202,255,24,.09); color: var(--lime); }.sheet-result { margin-top: 14px; padding: 16px; border: 1px solid #34432d; border-radius: 16px; background: rgba(202,255,24,.045); }.sheet-result h3 { margin: 0 0 8px; }.sheet-result p { margin: 5px 0; color: var(--muted); font-size: 12px; line-height: 1.5; }.sheet-result strong { color: var(--lime); }
.sheet-copy { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.55; }.check-row { min-height: 50px; display: flex !important; grid-template-columns: none !important; align-items: center; justify-content: space-between; gap: 12px; padding: 0 2px; color: var(--text) !important; }.check-row input { width: 22px !important; min-height: 22px !important; accent-color: var(--lime); }.budget-footer { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; color: var(--muted); font-size: 10px; }.alarm-item.muted { opacity: .56; }
.local-profile-list { display: grid; gap: 8px; margin-bottom: 14px; }.local-profile-option { width: 100%; min-height: 64px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); color: var(--text); text-align: left; }.local-profile-option.current { border-color: rgba(202,255,24,.45); background: rgba(202,255,24,.055); }.profile-avatar { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 13px; background: rgba(202,255,24,.1); color: var(--lime); font-weight: 900; }.local-profile-option b,.local-profile-option small { display: block; }.local-profile-option b { font-size: 13px; }.local-profile-option small { margin-top: 3px; color: var(--muted); font-size: 10px; }.local-profile-option i { color: var(--muted); font-size: 22px; font-style: normal; }.local-profile-note { margin: 0 0 18px; padding: 12px; border: 1px solid rgba(244,200,76,.14); border-radius: 13px; background: rgba(244,200,76,.045); color: var(--muted); font-size: 10px; line-height: 1.5; }
.notification-feed { display: grid; gap: 9px; }.notification-entry { display: grid; grid-template-columns: auto 1fr; gap: 11px; padding: 13px; border: 1px solid var(--line); border-radius: 15px; background: var(--surface); }.notification-entry > span { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px; background: rgba(202,255,24,.07); }.notification-entry h3 { margin: 0 0 4px; font-size: 12px; }.notification-entry p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.45; }.notification-entry time { display: block; margin-top: 5px; color: #687062; font-size: 9px; }
.confirm-dialog { width: min(calc(100% - 30px), 410px); padding: 24px; border: 1px solid var(--line); border-radius: 22px; background: #101510; color: var(--text); box-shadow: var(--shadow); }.confirm-dialog::backdrop { background: rgba(0,0,0,.7); backdrop-filter: blur(4px); }.confirm-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 14px; background: rgba(255,115,115,.1); color: var(--red); font-weight: 900; }.confirm-dialog h2 { margin: 16px 0 8px; }.confirm-dialog p { margin: 0 0 20px; color: var(--muted); font-size: 12px; line-height: 1.55; }.confirm-dialog .form-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.toast-region { position: fixed; z-index: 400; left: 12px; right: 12px; bottom: calc(var(--nav-h) + var(--safe-bottom) + 14px); display: grid; justify-items: center; gap: 8px; pointer-events: none; }.toast { width: min(100%,430px); padding: 13px 15px; display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: center; border: 1px solid #3d4c37; border-radius: 15px; background: #161d15; box-shadow: var(--shadow); animation: toast-in .25s ease both; }.toast-icon { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 11px; background: rgba(202,255,24,.09); color: var(--lime); }.toast strong, .toast span { display: block; }.toast strong { font-size: 12px; }.toast span { margin-top: 2px; color: var(--muted); font-size: 10px; }
.celebration { position: fixed; inset: 0; z-index: 390; pointer-events: none; overflow: hidden; }.confetti { position: absolute; top: -20px; width: 7px; height: 13px; border-radius: 2px; animation: confetti-fall 1.6s ease-in both; }
.noscript { position: fixed; z-index: 999; inset: auto 12px 12px; padding: 14px; border-radius: 14px; background: var(--red); color: #160303; font-weight: 800; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.private-mode .private-value { color: transparent !important; text-shadow: 0 0 0 var(--text); letter-spacing: 2px; }.private-mode .private-value::after { content: "••••••"; }.private-mode .private-value { font-size: 0 !important; }.private-mode .private-value::after { font-size: 1rem; }.private-mode #balanceValue::after { font-size: clamp(38px,11vw,58px); }
.goal-actions button { min-height: 44px; }.card-delete { width: 40px; height: 40px; top: 10px; right: 10px; }.sheet-close { width: 44px; height: 44px; }

@keyframes view-in { from { opacity: 0; transform: translateY(7px); } }
@keyframes sheet-up { from { opacity: 0; transform: translateY(28px); } }
@keyframes toast-in { from { opacity: 0; transform: translateY(18px); } }
@keyframes card-in { from { opacity: 0; transform: translateX(10px); } }
@keyframes shimmer { 0%,70% { transform: translateX(-120%); } 88%,100% { transform: translateX(120%); } }
@keyframes logo-pulse { to { transform: scale(1.035); filter: brightness(1.08); } }
@keyframes coin-drop { 0% { opacity: 0; transform: translateY(-40px) rotate(0); } 20% { opacity: 1; } 75% { opacity: 1; transform: translateY(55px) rotate(400deg); } 100% { opacity: 0; transform: translateY(68px) rotate(520deg) scale(.65); } }
@keyframes flame { from { transform: scale(.97) rotate(-2deg); } to { transform: scale(1.06) rotate(2deg); filter: drop-shadow(0 0 18px rgba(255,125,30,.38)); } }
@keyframes confetti-fall { to { transform: translate3d(var(--drift),105dvh,0) rotate(680deg); opacity: .2; } }

@media (min-width: 700px) {
  :root { --header-h: 82px; --nav-h: 78px; }
  .app-header, .app-main { padding-left: 24px; padding-right: 24px; }
  .quick-stats { grid-template-columns: repeat(4,1fr); }
  .piggy-card { grid-template-columns: 190px 1fr; align-items: center; }.piggy-copy { text-align: left; }.piggy-copy p { margin-left: 0; }
  .home-columns, .tools-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .goal-grid, .challenge-grid, .budget-list, .alarm-list, .subscription-list { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .form-grid-2 { grid-template-columns: 1fr 1fr; }.form-grid-2 > .full { grid-column: 1 / -1; }
}

@media (min-width: 1000px) {
  .app-main { padding-bottom: 50px; }
  .app-header { padding-left: max(24px,calc((100vw - 1160px)/2)); padding-right: max(24px,calc((100vw - 1160px)/2)); }
  .bottom-nav { left: 50%; right: auto; bottom: 18px; width: 560px; height: 72px; padding: 6px; transform: translateX(-50%); border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow); }
  .bottom-nav .fab { margin-top: -16px; border-color: var(--bg); }
  .toast-region { bottom: 105px; }
  .balance-hero { min-height: 220px; padding: 30px; }.quick-stats { margin: 16px 0; }
  .home-columns { grid-template-columns: 1.15fr .85fr; }
  .chart-wrap { height: 250px; }
  .goal-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }.challenge-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .profile-chips { top: var(--header-h); margin: 0; padding-inline: 0; }
}

@media (max-width: 359px) {
  .app-main { padding-left: 10px; padding-right: 10px; }.app-header { padding-left: 10px; padding-right: 10px; }.brand-greeting img { width: 39px; height: 39px; }.money-value { font-size: 35px; }.mini-card { padding: 12px; }.bottom-nav { grid-template-columns: 1fr 1fr 62px 1fr 1fr; }.bottom-nav .fab { width: 56px; height: 56px; }.bottom-nav > button b { font-size: 8px; }.page-heading .btn { padding: 0 10px; }
}

@media (orientation: landscape) and (max-height: 520px) { .bottom-sheet { max-height: 94dvh; }.auth-screen { align-content: start; }.splash img { width: 70px; height: 70px; } }
@media (prefers-reduced-motion: reduce) { *,*::before,*::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; } }

/* Evolução visual: ícones, movimentos, assistente e alarme */
.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 1.35rem; height: 1.35rem; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; }
.icon-btn .icon { width: 1.28rem; height: 1.28rem; }
.icon-btn { transition: border-color .2s ease, color .2s ease, transform .2s ease; }
.icon-btn:active { transform: scale(.94); }
.icon-btn:hover { border-color: #3b4937; color: var(--lime); }
.balance-top button { display: grid; place-items: center; }
.balance-top button .icon { width: 1.2rem; height: 1.2rem; }

.movements-overview { margin: 14px 0; padding: 18px; border-color: #34442c; background: radial-gradient(circle at 90% 0%, rgba(202,255,24,.12), transparent 15rem), linear-gradient(145deg,#121811,#0a0d0a); }
.movements-overview .card-head { margin-bottom: 16px; }
.movements-overview h2 { margin: 0; font-size: clamp(1.25rem,5vw,1.65rem); }
.overview-status, .assistant-local { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: .75rem; white-space: nowrap; }
.overview-status i, .assistant-local i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 12px rgba(94,228,116,.65); }
.movements-overview .report-grid { gap: 9px; }
.movements-overview .report-stat { min-height: 78px; padding: 13px; display: flex; flex-direction: column; justify-content: space-between; border: 1px solid rgba(255,255,255,.05); border-radius: 15px; background: rgba(255,255,255,.025); }
.movements-overview .report-stat span { font-size: .72rem; }
.movements-overview .report-stat b { font-size: .95rem; }
.movements-overview > p { margin-top: 14px; }
.filters-card { margin-top: 12px; }
.calendar-card { margin-top: 34px; }

.bottom-nav { grid-template-columns: 1fr 1fr 62px 1fr 1fr 1fr; padding-inline: 4px; }
.bottom-nav > button:not(.fab) { gap: 4px; }
.bottom-nav > button:not(.fab) .icon { width: 1.25rem; height: 1.25rem; }
.bottom-nav > button b { font-size: .56rem; }
.bottom-nav > button.active .icon { filter: drop-shadow(0 0 7px rgba(202,255,24,.3)); }
.bottom-nav .fab { width: 56px; height: 56px; }
.bottom-nav .fab .icon { width: 1.75rem; height: 1.75rem; transition: transform .25s ease; }
.bottom-nav .fab.open .icon { transform: rotate(45deg); }
.qa-icon .icon { width: 1.3rem; height: 1.3rem; }

.automation-view { max-width: 760px; margin: 0 auto; }
.assistant-hero { display: grid; grid-template-columns: auto 1fr; gap: 15px; align-items: center; margin-top: 14px; padding: 18px; overflow: hidden; border-color: #39492f; background: radial-gradient(circle at 0 0,rgba(202,255,24,.14),transparent 12rem),var(--surface); }
.assistant-orb { width: 56px; height: 56px; display: grid; place-items: center; border: 1px solid rgba(202,255,24,.35); border-radius: 19px; background: rgba(202,255,24,.09); color: var(--lime); box-shadow: 0 0 35px rgba(202,255,24,.1); }
.assistant-orb .icon { width: 1.75rem; height: 1.75rem; }
.assistant-hero h2 { margin: 0 0 5px; font-size: 1.15rem; }
.assistant-hero p { margin: 0; color: var(--muted); font-size: .8rem; line-height: 1.5; }
.assistant-suggestions { display: flex; gap: 7px; margin: 12px 0; overflow-x: auto; scrollbar-width: none; }
.assistant-suggestions button { flex: 0 0 auto; min-height: 42px; padding: 0 13px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface); color: var(--muted); font-size: .72rem; font-weight: 750; }
.assistant-suggestions button:active { color: var(--lime); border-color: rgba(202,255,24,.4); }
.assistant-chat { overflow: hidden; }
.assistant-messages { height: clamp(330px,52dvh,570px); padding: 16px; display: flex; flex-direction: column; gap: 12px; overflow-y: auto; overscroll-behavior: contain; }
.assistant-message { max-width: 88%; display: flex; gap: 8px; align-items: flex-end; }
.assistant-message.user { align-self: flex-end; }
.assistant-message.assistant { align-self: flex-start; }
.assistant-message > div { padding: 11px 13px; border: 1px solid var(--line); border-radius: 17px 17px 17px 5px; background: var(--surface-2); }
.assistant-message.user > div { border-color: rgba(202,255,24,.26); border-radius: 17px 17px 5px 17px; background: rgba(202,255,24,.1); }
.assistant-message p { margin: 0; font-size: .85rem; line-height: 1.52; white-space: pre-wrap; }
.assistant-message time { display: block; margin-top: 5px; color: var(--muted); font-size: .62rem; text-align: right; }
.assistant-mini { flex: 0 0 auto; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 9px; background: var(--lime); color: #11170b; font-size: .75rem; font-weight: 950; }
.assistant-form { display: grid; grid-template-columns: 1fr auto; gap: 8px; padding: 11px; border-top: 1px solid var(--line); background: #0b0f0b; }
.assistant-form input { min-width: 0; min-height: 50px; padding: 0 15px; border: 1px solid var(--line); border-radius: 15px; background: #070a07; color: var(--text); }
.assistant-form button { width: 50px; height: 50px; display: grid; place-items: center; border: 0; border-radius: 15px; background: var(--lime); color: #11170b; }
.assistant-disclaimer { margin: 12px 4px 0; color: var(--muted); font-size: .7rem; line-height: 1.5; }

.alarm-dialog { width: min(calc(100% - 28px),430px); padding: 30px 22px 22px; border: 1px solid #455a37; border-radius: 27px; background: radial-gradient(circle at 50% 0,rgba(202,255,24,.14),transparent 14rem),#101510; color: var(--text); text-align: center; box-shadow: 0 28px 90px rgba(0,0,0,.65); }
.alarm-dialog::backdrop { background: rgba(0,0,0,.78); backdrop-filter: blur(7px); }
.alarm-dialog h2 { margin: 8px 0; font-size: 1.7rem; }
.alarm-dialog > p:not(.section-kicker) { margin: 0 0 24px; color: var(--muted); }
.alarm-dialog .form-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.alarm-rings { position: relative; width: 92px; height: 92px; margin: 0 auto 20px; display: grid; place-items: center; }
.alarm-rings span { position: relative; z-index: 2; width: 58px; height: 58px; display: grid; place-items: center; border-radius: 19px; background: var(--lime); color: #11170b; }
.alarm-rings span .icon { width: 1.8rem; height: 1.8rem; }
.alarm-rings i { position: absolute; inset: 12px; border: 1px solid rgba(202,255,24,.32); border-radius: 50%; animation: alarm-wave 1.6s ease-out infinite; }
.alarm-rings i:nth-child(2) { animation-delay: .45s; }.alarm-rings i:nth-child(3) { animation-delay: .9s; }
.alarm-note { margin: 12px 2px 0; }
@keyframes alarm-wave { to { inset: -20px; opacity: 0; } }

.purchase-result { position: relative; overflow: hidden; }
.purchase-result.good { border-color: rgba(94,228,116,.38); }.purchase-result.warning { border-color: rgba(244,200,76,.4); }.purchase-result.danger { border-color: rgba(255,115,115,.42); }
.decision-badge { display: inline-flex; margin-bottom: 11px; padding: 5px 9px; border-radius: 999px; background: rgba(255,255,255,.055); color: var(--text); font-size: .68rem; font-weight: 900; letter-spacing: .03em; text-transform: uppercase; }
.purchase-result.good .decision-badge { color: var(--green); }.purchase-result.warning .decision-badge { color: var(--gold); }.purchase-result.danger .decision-badge { color: var(--red); }

@media (min-width:700px) {
  .movements-overview .report-grid { grid-template-columns: repeat(3,1fr); }
  .bottom-nav { width: 680px; }
  .assistant-hero { padding: 22px; }
}
@media (min-width:1000px) { .bottom-nav { width: 680px; } }
@media (max-width:359px) {
  .bottom-nav { grid-template-columns: 1fr 1fr 56px 1fr 1fr 1fr; }
  .bottom-nav .fab { width: 52px; height: 52px; }
  .bottom-nav > button b { font-size: .5rem; }
  .bottom-nav > button:not(.fab) .icon { width: 1.1rem; height: 1.1rem; }
  .assistant-message { max-width: 94%; }
}

/* Mobile polish — sistema visual consistente, sem emojis de plataforma */
body {
  background:
    radial-gradient(circle at 84% -8%, rgba(202,255,24,.105), transparent 20rem),
    radial-gradient(circle at -10% 42%, rgba(83,150,255,.045), transparent 21rem),
    linear-gradient(180deg,#050805 0%,#030503 100%);
}
.app-header {
  border-bottom-color: rgba(202,255,24,.09);
  background: linear-gradient(180deg,rgba(6,10,6,.96),rgba(4,7,4,.88));
  box-shadow: 0 12px 30px rgba(0,0,0,.2);
}
.brand-greeting img { border: 1px solid rgba(202,255,24,.18); box-shadow: 0 8px 24px rgba(0,0,0,.4),0 0 28px rgba(202,255,24,.08); }
.brand-greeting span { font-size: .75rem; }.brand-greeting strong { font-size: 1.08rem; letter-spacing: -.025em; }
.app-main { padding-top: 14px; }
.card {
  border-color: rgba(148,174,136,.22);
  background: linear-gradient(145deg,rgba(17,24,16,.99),rgba(7,11,7,.995));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.025),0 16px 38px rgba(0,0,0,.2);
}

.balance-hero {
  min-height: 202px;
  padding: 22px;
  border-color: rgba(160,202,111,.35);
  background:
    radial-gradient(circle at 88% 8%,rgba(202,255,24,.18),transparent 10.5rem),
    linear-gradient(135deg,#1b2b13 0%,#0e170c 48%,#080d08 100%);
  box-shadow: inset 0 1px 0 rgba(230,255,195,.06),0 20px 48px rgba(0,0,0,.28);
}
.balance-hero::before { content:""; position:absolute; inset:1px; border:1px solid rgba(255,255,255,.025); border-radius:calc(var(--radius) - 2px); pointer-events:none; }
.balance-watermark { position:absolute; right:-18px; top:22px; width:142px; height:142px; display:grid; place-items:center; color:rgba(202,255,24,.055); transform:rotate(-7deg); }
.balance-watermark .icon { width:100%; height:100%; stroke-width:1.15; }
.balance-label { display:inline-flex; align-items:center; gap:8px; }
.balance-label i { width:7px; height:7px; border-radius:50%; background:var(--lime); box-shadow:0 0 14px rgba(202,255,24,.72); }
.balance-top button { position:relative; z-index:2; border:1px solid rgba(255,255,255,.06); background:rgba(255,255,255,.045); color:#c5d0bf; }
.money-value { margin-top:20px; text-shadow:0 4px 24px rgba(0,0,0,.24); }
.balance-caption { flex-wrap:wrap; row-gap:8px; font-size:.76rem; }
.trend-pill { border:1px solid rgba(202,255,24,.13); background:rgba(202,255,24,.105); }

.quick-stats { gap:9px; margin:11px 0 13px; }
.mini-card { position:relative; min-height:124px; overflow:hidden; padding:14px; border-color:rgba(145,169,135,.22); background:linear-gradient(145deg,rgba(16,22,15,.98),rgba(8,12,8,.98)); box-shadow:inset 0 1px 0 rgba(255,255,255,.025); }
.mini-card::after { content:""; position:absolute; width:80px; height:80px; right:-42px; top:-42px; border-radius:50%; opacity:.09; filter:blur(8px); background:var(--stat-color); }
.mini-card.income { --stat-color:var(--green); }.mini-card.expense { --stat-color:var(--red); }.mini-card.saved { --stat-color:var(--gold); }.mini-card.goal { --stat-color:var(--blue); }
.mini-icon { width:38px; height:38px; margin-bottom:15px; border:1px solid color-mix(in srgb,var(--stat-color) 18%,transparent); border-radius:12px; background:color-mix(in srgb,var(--stat-color) 10%,transparent) !important; color:var(--stat-color) !important; }
.mini-icon .icon { width:1.18rem; height:1.18rem; stroke-width:2.15; }
.mini-card p { margin-bottom:7px; color:#aeb7aa; font-size:.75rem; }.mini-card strong { font-size:1.05rem; letter-spacing:-.02em; }
.stat-accent { position:absolute; left:14px; right:14px; bottom:0; height:2px; border-radius:3px 3px 0 0; background:linear-gradient(90deg,var(--stat-color),transparent); opacity:.6; }

.chart-card { position:relative; overflow:hidden; border-color:rgba(156,185,142,.25); background:radial-gradient(circle at 100% 0,rgba(94,228,116,.055),transparent 15rem),linear-gradient(145deg,#0f170e,#080d08); }
.chart-card::after { content:""; position:absolute; left:20px; right:20px; top:72px; height:1px; background:linear-gradient(90deg,transparent,rgba(202,255,24,.14),transparent); pointer-events:none; }
.chart-card .card-head h2 { font-size:1.3rem; }.chart-total { padding:6px 9px; border:1px solid rgba(255,255,255,.055); border-radius:9px; background:rgba(255,255,255,.025); }
.period-tabs { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:4px; margin:18px 0 12px; padding:4px; overflow:visible; border:1px solid rgba(255,255,255,.04); border-radius:13px; background:rgba(0,0,0,.18); }
.period-tabs button { min-width:0; padding:0 3px; font-size:.66rem; }
.period-tabs button.active { border-color:rgba(202,255,24,.13); background:linear-gradient(145deg,#1c2719,#121b11); box-shadow:inset 0 1px 0 rgba(255,255,255,.035); }
.chart-wrap { height:176px; }.chart-legend { padding-top:6px; border-top:1px solid rgba(255,255,255,.045); }

.piggy-card { border-color:rgba(244,200,76,.24); background:radial-gradient(circle at 13% 28%,rgba(244,200,76,.105),transparent 14rem),linear-gradient(145deg,#181b10,#090d08); }
.piggy-visual { height:122px; }.piggy-halo { position:absolute; width:108px; height:108px; border:1px solid rgba(244,200,76,.2); border-radius:38px; background:linear-gradient(145deg,rgba(244,200,76,.08),rgba(202,255,24,.025)); transform:rotate(8deg); box-shadow:inset 0 0 28px rgba(244,200,76,.055); }
.piggy-icon { position:relative; width:76px; height:76px; color:var(--gold); stroke-width:1.35; filter:drop-shadow(0 14px 20px rgba(0,0,0,.42)); }
.coin-animation .icon { width:35px; height:35px; }.coin-animation { display:grid; place-items:center; }

.streak-card { position:relative; overflow:hidden; border-color:rgba(255,146,64,.2); background:radial-gradient(circle at 0 0,rgba(255,132,48,.08),transparent 11rem),linear-gradient(145deg,#15170f,#090d08); }
.streak-flame { width:54px; height:54px; display:grid; place-items:center; border:1px solid rgba(255,153,70,.18); border-radius:18px; background:linear-gradient(145deg,rgba(255,143,57,.12),rgba(244,200,76,.035)); color:#ff9b4e; filter:drop-shadow(0 10px 18px rgba(255,125,30,.13)); }
.streak-flame .icon { width:1.75rem; height:1.75rem; stroke-width:1.75; }
.streak-card h2 { font-size:1.2rem; }.streak-card p { font-size:.76rem; }
.week-dot { font-size:.64rem; }.week-dot i { max-width:38px; border-color:rgba(143,166,133,.2); background:linear-gradient(145deg,#182117,#111811); box-shadow:inset 0 1px 0 rgba(255,255,255,.025); }
.week-dot.done i { position:relative; background:linear-gradient(145deg,var(--lime),#7fb90a); box-shadow:0 0 20px rgba(202,255,24,.15); }

.insights-card,.budgets-card { position:relative; overflow:hidden; }
.sparkle { width:42px; height:42px; display:grid; place-items:center; border:1px solid rgba(244,200,76,.18); border-radius:14px; background:rgba(244,200,76,.055); color:var(--gold); }
.sparkle .icon { width:1.25rem; height:1.25rem; }
.insight-item { position:relative; align-items:center; padding:13px; border:1px solid rgba(255,255,255,.035); background:linear-gradient(100deg,rgba(255,255,255,.027),rgba(255,255,255,.012)); }
.insight-item::before { content:""; position:absolute; left:0; top:13px; bottom:13px; width:2px; border-radius:3px; background:var(--lime); opacity:.65; }
.insight-item > span { width:38px; height:38px; border:1px solid rgba(202,255,24,.12); border-radius:12px; background:rgba(202,255,24,.055); color:var(--lime); }
.insight-item > span .icon { width:1.15rem; height:1.15rem; }.insight-item p { color:#b5beb1; font-size:.78rem; }
.empty-state { display:grid; justify-items:center; gap:7px; padding:25px 17px; border-color:rgba(145,169,135,.25); background:linear-gradient(145deg,rgba(255,255,255,.018),rgba(255,255,255,.006)); }
.empty-state strong { margin:0; }.empty-state > span:last-child { color:var(--muted); }
.empty-icon { width:46px; height:46px; display:grid; place-items:center; margin-bottom:3px; border:1px solid rgba(202,255,24,.12); border-radius:15px; background:rgba(202,255,24,.045); color:var(--lime); }
.empty-icon .icon { width:1.3rem; height:1.3rem; }

.goal-card { padding:18px; border-color:color-mix(in srgb,var(--goal-color) 22%,var(--line)); background:radial-gradient(circle at 0 0,color-mix(in srgb,var(--goal-color) 9%,transparent),transparent 11rem),linear-gradient(145deg,#10170f,#080d08); }
.goal-card::before { height:2px; background:linear-gradient(90deg,var(--goal-color),transparent 74%); }
.goal-symbol { width:50px; height:50px; display:grid !important; place-items:center; flex:0 0 auto; margin:0 !important; border:1px solid color-mix(in srgb,var(--goal-color) 28%,transparent); border-radius:16px; background:linear-gradient(145deg,color-mix(in srgb,var(--goal-color) 12%,transparent),rgba(255,255,255,.01)); color:var(--goal-color) !important; box-shadow:inset 0 1px 0 rgba(255,255,255,.035); }
.goal-symbol .icon { width:1.4rem; height:1.4rem; }
.goal-title h3 { font-size:1.06rem; }.goal-title > div > span { font-size:.7rem; }.goal-description,.goal-projection { font-size:.74rem; }

.challenge-streak { display:inline-flex; align-items:center; gap:5px; padding:6px 9px; border:1px solid rgba(255,153,70,.13); border-radius:999px; background:rgba(255,143,57,.04); color:#aeb6aa; font-size:.72rem; }
.challenge-streak .icon { width:.95rem; height:.95rem; color:#ff9b4e; }
.challenge-grid { gap:12px; }
.challenge-card { --challenge-accent:var(--lime); position:relative; overflow:hidden; padding:16px; border-color:color-mix(in srgb,var(--challenge-accent) 20%,var(--line)); background:radial-gradient(circle at 0 0,color-mix(in srgb,var(--challenge-accent) 7%,transparent),transparent 11rem),linear-gradient(145deg,#0f160e,#080c08); box-shadow:inset 0 1px 0 rgba(255,255,255,.025); }
.challenge-card:nth-child(4n+2) { --challenge-accent:var(--blue); }.challenge-card:nth-child(4n+3) { --challenge-accent:var(--gold); }.challenge-card:nth-child(4n+4) { --challenge-accent:#d689ff; }
.challenge-card::after { content:""; position:absolute; left:0; top:16px; bottom:16px; width:2px; border-radius:3px; background:var(--challenge-accent); opacity:.55; }
.challenge-head { gap:13px; align-items:flex-start; }.challenge-icon { width:52px; height:52px; flex:0 0 auto; border:1px solid color-mix(in srgb,var(--challenge-accent) 24%,transparent); border-radius:17px; background:linear-gradient(145deg,color-mix(in srgb,var(--challenge-accent) 12%,transparent),rgba(255,255,255,.008)); color:var(--challenge-accent); box-shadow:inset 0 1px 0 rgba(255,255,255,.035); }
.challenge-icon .icon { width:1.45rem; height:1.45rem; stroke-width:1.85; }.challenge-head h3 { padding-top:2px; font-size:.95rem; }.challenge-head p { font-size:.72rem; line-height:1.45; }
.challenge-card .btn-secondary { border-color:rgba(151,176,140,.19); background:linear-gradient(145deg,#141c13,#0c120c); }

.assistant-orb { overflow:hidden; border-radius:18px; background:#e9e9e7; }
.assistant-orb img { width:100%; height:100%; display:block; object-fit:cover; object-position:center 30%; }
.assistant-mini { display:block; overflow:hidden; border:1px solid rgba(255,255,255,.28); border-radius:10px; background:#e7e7e5; object-fit:cover; object-position:center 28%; box-shadow:0 4px 12px rgba(0,0,0,.3); }
.assistant-message.assistant > div { border-color:rgba(161,188,149,.18); background:linear-gradient(145deg,#141c13,#0d130d); }

.transaction-icon,.notification-entry > span,.toast-icon,.tool-icon { border:1px solid rgba(202,255,24,.13); background:linear-gradient(145deg,rgba(202,255,24,.085),rgba(202,255,24,.025)); color:var(--lime); }
.transaction-icon .icon,.notification-entry > span .icon,.toast-icon .icon,.tool-icon .icon { width:1.2rem; height:1.2rem; }
.subscription-logo .icon { width:1.25rem; height:1.25rem; }
.transaction-row.expense .transaction-icon { border-color:rgba(255,115,115,.14); background:rgba(255,115,115,.065); color:var(--red); }
.transaction-row.piggy .transaction-icon { border-color:rgba(244,200,76,.16); background:rgba(244,200,76,.065); color:var(--gold); }
.transaction-row.goal .transaction-icon { border-color:rgba(115,169,255,.16); background:rgba(115,169,255,.065); color:var(--blue); }
.toast { border-color:rgba(202,255,24,.22); background:linear-gradient(145deg,rgba(22,32,20,.98),rgba(12,18,12,.99)); box-shadow:0 18px 45px rgba(0,0,0,.5),inset 0 1px 0 rgba(255,255,255,.03); }
.toast-icon { width:40px; height:40px; border-radius:13px; }.toast strong { font-size:.8rem; }.toast span { font-size:.72rem; }
.notification-entry { border-color:rgba(147,171,137,.2); background:linear-gradient(145deg,#121912,#0b100b); }.notification-entry > span { width:42px; height:42px; border-radius:14px; }
.tool-icon { width:50px; height:50px; }.tool-card { border-color:rgba(149,174,138,.22); }

.bottom-nav { border-top-color:rgba(202,255,24,.1); background:linear-gradient(180deg,rgba(8,12,8,.975),rgba(4,7,4,.99)); box-shadow:0 -14px 38px rgba(0,0,0,.25); }
.bottom-nav > button b { overflow:visible; text-overflow:clip; font-size:clamp(.47rem,2.15vw,.57rem); white-space:nowrap; }
.bottom-nav > button:not(.fab) { min-width:44px; }
.bottom-nav .fab { box-shadow:0 10px 30px rgba(175,235,18,.3),inset 0 1px 0 rgba(255,255,255,.34); }

@media (max-width:430px) {
  .app-main { padding-inline:12px; }
  .chart-card,.streak-card,.home-columns > .card { padding:17px; }
  .section-kicker { font-size:.64rem; }
  .card-head h2,.section-title-row h2 { font-size:1.23rem; }
  .challenge-head { align-items:center; }
}
@media (max-width:360px) {
  .app-header { padding-inline:10px; }
  .brand-greeting { gap:8px; }.brand-greeting img { width:39px; height:39px; }.brand-greeting span { max-width:35vw; font-size:.67rem; }.brand-greeting strong { font-size:.94rem; }
  .header-actions { gap:4px; }.icon-btn { width:41px; height:41px; }
  .balance-hero { padding:19px; }.money-value { font-size:2.35rem; }
  .mini-card { min-height:116px; padding:12px; }.mini-card p { font-size:.68rem; }.mini-card strong { font-size:.95rem; }
  .period-tabs button { font-size:.58rem; }
  .bottom-nav > button b { font-size:.43rem; }
}
