:root { color-scheme: dark; --bg:#080d18; --surface:#131b2a; --surface-2:#1b2536; --text:#f8fafc; --muted:#94a3b8; --accent:#6d5dfc; --accent-2:#2499e9; --accent-text:#fff; --border:rgba(148,163,184,.2); --green:#39d98a; --red:#ff6b7a; --cyan:#38bdf8; }
:root[data-theme="light"] { color-scheme:light; --bg:#eef3fb; --surface:#fff; --surface-2:#e7edf7; --text:#101827; --muted:#64748b; --border:rgba(51,65,85,.16); }
@media (prefers-color-scheme:light) { :root[data-theme="system"] { color-scheme:light; --bg:#eef3fb; --surface:#fff; --surface-2:#e7edf7; --text:#101827; --muted:#64748b; --border:rgba(51,65,85,.16); } }
* { box-sizing:border-box; }
html { background:var(--bg); }
body { margin:0; min-height:100vh; background:var(--bg); color:var(--text); font:16px/1.45 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; }
button,input { font:inherit; } button { cursor:pointer; } button:disabled { opacity:.58; cursor:wait; } .hidden { display:none!important; }
.app-shell { width:min(100%,720px); margin:0 auto; padding:max(18px,env(safe-area-inset-top)) 16px calc(164px + env(safe-area-inset-bottom)); }
.topbar { display:flex; align-items:center; justify-content:space-between; margin-bottom:18px; }
.eyebrow { color:#58a8ff; font-size:.72rem; font-weight:850; letter-spacing:.18em; margin:0 0 3px; }
h1 { font-size:1.55rem; line-height:1.2; margin:0; } h2 { font-size:1rem; margin:0; } h3 { margin:0 0 9px; color:var(--muted); font-size:.75rem; text-transform:uppercase; letter-spacing:.08em; }
.icon-button { width:44px; height:44px; border:0; border-radius:14px; color:#fff; background:linear-gradient(135deg,var(--accent),var(--accent-2)); font-size:1.3rem; }
.view { display:none; } .view.active { display:block; animation:fade-in .18s ease-out; } @keyframes fade-in { from { opacity:.35; transform:translateY(4px); } }
.welcome { margin:-8px 0 12px; color:var(--muted); font-size:.9rem; }
.balance-card { position:relative; overflow:hidden; padding:22px; border-radius:24px; color:#fff; background:linear-gradient(135deg,#695cff 0%,#315ee8 54%,#129ac6 100%); box-shadow:0 18px 42px rgba(49,94,232,.24); }
.balance-card::after { content:""; position:absolute; width:180px; height:180px; right:-65px; top:-90px; border-radius:50%; background:rgba(255,255,255,.12); }
.balance-card p,.balance-card span { position:relative; z-index:1; margin:0; opacity:.82; }
.balance-card strong { position:relative; z-index:1; display:block; margin:8px 0 4px; font-size:clamp(2rem,10vw,3rem); letter-spacing:-.04em; }
.balance-card span { font-size:.82rem; }
.metric-grid { display:grid; grid-template-columns:1fr 1fr; gap:12px; margin:14px 0; }
.metric,.panel,.settings-group { border:1px solid var(--border); background:var(--surface); }
.metric { padding:16px; border-radius:18px; } .metric span { color:var(--muted); font-size:.85rem; } .metric strong { display:block; margin-top:7px; font-size:1.1rem; }
.metric.income strong { color:var(--green); } .metric.expense strong { color:var(--red); }
.panel { margin-top:12px; padding:17px; border-radius:20px; }
.panel-heading { display:flex; align-items:baseline; justify-content:space-between; gap:12px; margin-bottom:13px; } .panel-heading span { color:var(--muted); font-size:.78rem; text-align:right; }
.progress { height:8px; overflow:hidden; border-radius:999px; background:color-mix(in srgb,var(--muted) 18%,transparent); }
.progress span { display:block; width:0; height:100%; border-radius:inherit; background:linear-gradient(90deg,var(--cyan),var(--accent)); transition:width .4s ease; } .progress.goal span { background:linear-gradient(90deg,var(--green),var(--cyan)); }
.category-layout { display:grid; grid-template-columns:104px 1fr; align-items:center; gap:18px; }
.donut { width:104px; aspect-ratio:1; border-radius:50%; background:color-mix(in srgb,var(--muted) 16%,transparent); position:relative; flex:none; }
.donut::after { content:""; position:absolute; inset:23px; border-radius:50%; background:var(--surface); }
.donut.large { width:132px; } .donut.large::after { inset:30px; }
.category-detail { display:flex; align-items:center; gap:24px; padding:24px 18px; }
.category-list,.transaction-list { list-style:none; padding:0; margin:0; width:100%; }
.category-list { display:grid; gap:10px; } .category-item { display:grid; grid-template-columns:10px 1fr auto; align-items:center; gap:8px; font-size:.84rem; }
.category-item i { width:8px; height:8px; border-radius:50%; } .category-item span { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; } .category-item strong { font-size:.8rem; }
.section-intro { padding:5px 2px 9px; } .section-intro h2 { font-size:1.25rem; } .section-intro p { margin:4px 0 0; color:var(--muted); font-size:.85rem; }
.records-card { padding:5px 17px; }
.transaction-item { display:grid; grid-template-columns:42px minmax(0,1fr) auto; gap:11px; align-items:center; padding:13px 0; border-top:1px solid var(--border); }
.transaction-item:first-child { border-top:0; } .transaction-icon { display:grid; place-items:center; width:42px; height:42px; border-radius:14px; background:color-mix(in srgb,var(--accent) 17%,transparent); }
.transaction-icon.income { color:var(--green); background:color-mix(in srgb,var(--green) 13%,transparent); }
.transaction-copy { min-width:0; } .transaction-copy strong,.transaction-copy span { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.transaction-copy span { color:var(--muted); font-size:.78rem; } .transaction-amount { font-size:.88rem; white-space:nowrap; } .transaction-amount.income { color:var(--green); } .transaction-amount.expense { color:var(--red); }
.empty { color:var(--muted); font-size:.85rem; padding:16px 0; }
.install-card { width:100%; display:grid; grid-template-columns:44px 1fr auto; gap:12px; align-items:center; margin:12px 0 0; padding:13px; border:1px solid rgba(88,168,255,.3); border-radius:18px; color:var(--text); background:linear-gradient(120deg,rgba(109,93,252,.16),rgba(36,153,233,.12)); text-align:left; }
.install-icon { display:grid; place-items:center; width:44px; height:44px; border-radius:14px; color:#fff; background:linear-gradient(135deg,var(--accent),var(--accent-2)); font-size:1.25rem; }
.install-card strong,.install-card small { display:block; } .install-card small { color:var(--muted); margin-top:2px; } .install-card b { color:#58a8ff; font-size:.8rem; }
.hint-card { display:flex; gap:13px; } .hint-card>span { color:#58a8ff; } .hint-card p,.launch-list p { color:var(--muted); margin:5px 0 0; font-size:.85rem; }
.feature-hero { display:flex; align-items:center; gap:14px; padding:18px; border:1px solid rgba(88,168,255,.3); border-radius:22px; background:linear-gradient(135deg,rgba(109,93,252,.2),rgba(36,153,233,.12)); }
.feature-hero>span { display:grid; place-items:center; width:54px; height:54px; border-radius:17px; background:rgba(109,93,252,.2); font-size:1.6rem; } .feature-hero h2 { font-size:1.15rem; } .feature-hero p { margin:3px 0 0; color:var(--muted); font-size:.83rem; }
.step-heading { display:flex; gap:12px; align-items:center; margin-bottom:16px; } .step-heading>span { display:grid; place-items:center; width:32px; height:32px; border-radius:50%; color:#fff; background:var(--accent); font-weight:800; }
.step-heading p { margin:2px 0 0; color:var(--muted); font-size:.78rem; }
.primary-button,.secondary-button { display:grid; place-items:center; width:100%; min-height:52px; border:0; border-radius:15px; font-weight:750; text-decoration:none; }
.primary-button { color:#fff; background:linear-gradient(120deg,var(--accent),var(--accent-2)); } .secondary-button { color:#58a8ff; background:var(--surface-2); }
.key-result { margin-top:16px; } .key-result label { display:block; margin:12px 0 6px; color:var(--muted); font-size:.76rem; }
.copy-field { width:100%; display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; gap:10px; padding:12px; border:1px solid var(--border); border-radius:13px; color:var(--text); background:var(--bg); text-align:left; }
.copy-field code { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; } .copy-field span { color:#58a8ff; font-size:.74rem; }
.security-note { margin:11px 0 0; color:var(--muted); font-size:.75rem; }
.instruction-list { margin:0 0 16px; padding-left:23px; color:var(--muted); font-size:.84rem; } .instruction-list li { padding:5px 0; } .instruction-list b,.instruction-list code { color:var(--text); }
.instruction-list.simple { margin:13px 0 0; padding-left:21px; } .instruction-list.simple li { padding:4px 0; }
.example-flow { display:grid; grid-template-columns:1fr auto; gap:7px 12px; align-items:center; padding:13px; border-radius:14px; background:var(--surface-2); }
.example-flow span { color:var(--muted); font-size:.82rem; } .example-flow b { text-align:right; } .example-flow i { display:none; }
.settings-group { margin:12px 0; padding:10px; border-radius:20px; }
.segmented { display:grid; grid-template-columns:repeat(3,1fr); gap:4px; padding:4px; border-radius:14px; background:var(--surface-2); }
.segmented button { min-height:38px; border:0; border-radius:11px; color:var(--muted); background:transparent; font-size:.78rem; } .segmented button.selected { color:#fff; background:var(--accent); }
.setting-row { width:100%; display:grid; grid-template-columns:38px 1fr auto; align-items:center; gap:10px; min-height:64px; padding:8px; border:0; border-top:1px solid var(--border); color:var(--text); background:transparent; text-align:left; }
.setting-row:first-child { border-top:0; } .setting-row>span { display:grid; place-items:center; width:38px; height:38px; border-radius:12px; background:var(--surface-2); } .setting-row strong,.setting-row small { display:block; } .setting-row small { color:var(--muted); margin-top:2px; } .setting-row>b { color:var(--muted); font-size:1.4rem; } .setting-row.static { cursor:default; }
.error { margin-top:14px; padding:14px; border-radius:14px; background:rgba(255,107,122,.14); color:var(--red); }
.add-button { position:fixed; z-index:5; left:16px; right:16px; bottom:calc(72px + env(safe-area-inset-bottom)); width:min(calc(100% - 32px),688px); margin:auto; min-height:52px; border:0; border-radius:17px; background:linear-gradient(120deg,var(--accent),var(--accent-2)); color:#fff; font-weight:750; box-shadow:0 14px 32px rgba(0,0,0,.28); }
.bottom-nav { position:fixed; z-index:4; left:0; right:0; bottom:0; display:grid; grid-template-columns:repeat(5,1fr); min-height:64px; padding:7px max(7px,env(safe-area-inset-right)) calc(7px + env(safe-area-inset-bottom)) max(7px,env(safe-area-inset-left)); border-top:1px solid var(--border); background:color-mix(in srgb,var(--bg) 92%,transparent); backdrop-filter:blur(18px); }
.bottom-nav button { display:grid; place-items:center; gap:1px; border:0; color:var(--muted); background:transparent; } .bottom-nav button span { font-size:1.25rem; line-height:1; } .bottom-nav button small { font-size:.66rem; } .bottom-nav button.active { color:#58a8ff; }
.sheet { position:fixed; z-index:10; inset:0; display:flex; align-items:flex-end; } .backdrop { position:absolute; inset:0; border:0; background:rgba(0,0,0,.62); }
.sheet-card { position:relative; z-index:1; width:100%; padding:12px 18px calc(22px + env(safe-area-inset-bottom)); border-radius:26px 26px 0 0; background:var(--surface); }
.sheet-handle { width:42px; height:5px; margin:0 auto 18px; border-radius:999px; background:var(--muted); opacity:.55; } .sheet-card label { display:block; margin:18px 0 8px; color:var(--muted); font-size:.85rem; }
.sheet-card input { width:100%; min-height:54px; border:1px solid var(--border); border-radius:15px; padding:0 14px; background:var(--bg); color:var(--text); outline:0; } .sheet-card input:focus { border-color:var(--accent); box-shadow:0 0 0 3px color-mix(in srgb,var(--accent) 22%,transparent); }
.form-error { min-height:20px; margin:8px 0; color:var(--red); font-size:.82rem; }
.toast { position:fixed; z-index:20; left:50%; bottom:calc(142px + env(safe-area-inset-bottom)); transform:translateX(-50%); padding:10px 16px; border-radius:999px; color:#fff; background:#202b3c; box-shadow:0 10px 30px rgba(0,0,0,.3); font-size:.82rem; white-space:nowrap; }
@media (min-width:700px) { .app-shell { padding-left:24px; padding-right:24px; } .add-button { left:24px; right:24px; } .bottom-nav { width:720px; margin:auto; border-left:1px solid var(--border); border-right:1px solid var(--border); border-radius:20px 20px 0 0; } }
@media (max-width:380px) { .category-detail { align-items:flex-start; } .donut.large { width:104px; } .bottom-nav button small { font-size:.6rem; } }
