:root{
--bg:#150A28;
--bg-deep:#0D0619;
--surface:#1F1238;
--surface-2:#271644;
--surface-hi:#321C58;
--purple:#8A3FFC;
--purple-soft:#B98BFF;
--purple-pale:#2C1B54;
--mint:#3DDC97;
--mint-pale:#173829;
--coral:#FF6B6B;
--coral-pale:#3A1B22;
--text:#F3EFFB;
--text-dim:#B6A9D6;
--text-faint:#7C6D9C;
--line: rgba(243,239,251,0.08);
}
*{box-sizing:border-box; margin:0; padding:0;}
html{ scroll-behavior:smooth; }
body{
background:var(--bg);
color:var(--text);
font-family:'Inter', sans-serif;
-webkit-font-smoothing:antialiased;
overflow-x:hidden;
}
::selection{ background:var(--purple); color:#fff; }
::-webkit-scrollbar{ width:8px; }
::-webkit-scrollbar-thumb{ background:var(--surface-hi); border-radius:10px; }
.glow{
position:fixed; inset:0; pointer-events:none; z-index:0;
background:
radial-gradient(720px 480px at 15% -5%, rgba(138,63,252,0.28), transparent 60%),
radial-gradient(600px 400px at 100% 10%, rgba(61,220,151,0.10), transparent 60%),
radial-gradient(800px 600px at 50% 110%, rgba(138,63,252,0.14), transparent 60%);
}
/* ============ WELCOME SCREEN ============ */
#welcome{
position:fixed; inset:0; z-index:50;
display:flex; align-items:center; justify-content:center;
background:var(--bg-deep);
transition: opacity .7s ease, visibility .7s ease;
}
#welcome.hide{ opacity:0; visibility:hidden; pointer-events:none; }
.welcome-inner{
max-width:560px; width:90%; text-align:center; position:relative; z-index:2;
padding:40px 20px;
}
.welcome-mark{
width:56px; height:56px; border-radius:16px;
background:linear-gradient(135deg, var(--purple), #5B21B6);
display:flex; align-items:center; justify-content:center;
font-family:'Fraunces', serif; font-weight:700; font-size:24px;
margin:0 auto 28px;
box-shadow:0 0 50px rgba(138,63,252,0.5);
opacity:0; animation: fadeUp .8s ease forwards;
}
.welcome-eyebrow{
font-family:'JetBrains Mono', monospace;
font-size:12px; letter-spacing:0.2em; text-transform:uppercase;
color:var(--purple-soft);
margin-bottom:18px;
opacity:0; animation: fadeUp .8s ease .15s forwards;
}
.welcome-title{
font-family:'Fraunces', serif;
font-weight:500;
font-size:clamp(28px, 5vw, 44px);
line-height:1.25;
letter-spacing:-0.01em;
margin-bottom:16px;
opacity:0; animation: fadeUp .8s ease .3s forwards;
}
.welcome-title em{
font-style:italic; color:var(--purple-soft);
}
.welcome-sub{
font-size:15.5px; color:var(--text-dim); line-height:1.6;
max-width:420px; margin:0 auto 40px;
opacity:0; animation: fadeUp .8s ease .45s forwards;
}
.welcome-actions{
display:flex; flex-direction:column; gap:12px; align-items:center;
opacity:0; animation: fadeUp .8s ease .6s forwards;
}
.welcome-enter{
font-family:'Inter', sans-serif; font-weight:600; font-size:15px;
color:var(--bg-deep);
background:linear-gradient(135deg, var(--purple-soft), var(--purple));
border:none; padding:16px 36px; border-radius:100px;
cursor:pointer;
box-shadow:0 8px 30px rgba(138,63,252,0.35);
transition:.25s;
display:flex; align-items:center; gap:10px;
}
.welcome-enter:hover{ transform:translateY(-2px); box-shadow:0 12px 36px rgba(138,63,252,0.5); }
.welcome-hint{
font-family:'JetBrains Mono', monospace; font-size:11px; color:var(--text-faint);
letter-spacing:0.05em;
}
@keyframes fadeUp{ from{opacity:0; transform:translateY(16px);} to{opacity:1; transform:translateY(0);} }
.welcome-orbit{
position:absolute; inset:0; z-index:1; pointer-events:none;
}
.orb{
position:absolute; border-radius:50%; border:1px solid rgba(184,139,255,0.12);
}
.orb1{ width:420px; height:420px; top:50%; left:50%; transform:translate(-50%,-50%); animation:spin 40s linear infinite; }
.orb2{ width:560px; height:560px; top:50%; left:50%; transform:translate(-50%,-50%); animation:spin 60s linear infinite reverse; }
@keyframes spin{ to{ transform:translate(-50%,-50%) rotate(360deg); } }
/* ============ APP LAYOUT ============ */
.app{
display:none;
grid-template-columns: 84px 1fr;
min-height:100vh;
position:relative; z-index:1;
}
.app.show{ display:grid; }
.spine{
background:var(--bg-deep);
border-right:1px solid var(--line);
display:flex; flex-direction:column; align-items:center;
padding:26px 0; position:sticky; top:0; height:100vh;
}
.spine-mark{
width:42px; height:42px; border-radius:13px;
background:linear-gradient(135deg, var(--purple-soft), var(--purple));
display:flex; align-items:center; justify-content:center;
font-family:'Fraunces', serif; font-weight:700; font-size:19px; color:#fff;
margin-bottom:36px; flex-shrink:0;
box-shadow:0 0 24px rgba(138,63,252,0.4);
}
.spine-nav{ display:flex; flex-direction:column; gap:8px; flex:1; }
.spine-btn{
width:50px; height:50px; border-radius:14px;
display:flex; align-items:center; justify-content:center;
color:var(--text-faint); cursor:pointer; transition:.2s; position:relative;
}
.spine-btn svg{ width:19px; height:19px; }
.spine-btn:hover{ color:var(--text); background:var(--surface); }
.spine-btn.active{ color:#fff; background:var(--purple); box-shadow:0 4px 16px rgba(138,63,252,0.4); }
.spine-foot{
font-family:'JetBrains Mono', monospace; font-size:9px; color:var(--text-faint);
writing-mode:vertical-rl; letter-spacing:0.15em; padding:8px 0;
}
main{ padding:32px 40px 100px; max-width:1440px; }
.topbar{ display:flex; justify-content:space-between; align-items:flex-end; margin-bottom:28px; flex-wrap:wrap; gap:18px; }
.eyebrow{
font-family:'JetBrains Mono', monospace; font-size:11px; letter-spacing:0.14em; text-transform:uppercase;
color:var(--purple-soft); margin-bottom:6px; display:flex; align-items:center; gap:8px;
}
.eyebrow::before{ content:''; width:6px; height:6px; background:var(--mint); border-radius:50%; box-shadow:0 0 8px var(--mint); flex-shrink:0; }
#activeTabIcon svg{ width:13px; height:13px; }
h1{ font-family:'Fraunces', serif; font-weight:600; font-size:30px; letter-spacing:-0.01em; }
.topbar-right{ display:flex; align-items:center; gap:12px; }
.avatar{
width:42px; height:42px; border-radius:50%;
background:linear-gradient(135deg, var(--purple-soft), var(--purple));
display:flex; align-items:center; justify-content:center;
font-family:'Fraunces',serif; font-weight:600; font-size:16px; color:#fff;
}
.btn-reset{
width:48px; height:48px; border-radius:50%; border:1px solid rgba(255,107,107,0.35);
background:var(--coral-pale); color:var(--coral); cursor:pointer;
display:flex; align-items:center; justify-content:center; transition:.2s;
}
.btn-reset svg{ width:19px; height:19px; }
.btn-reset:hover{ background:var(--coral); color:var(--bg-deep); border-color:var(--coral); transform:scale(1.05); }
.btn-eye{
width:26px; height:26px; border-radius:8px; border:1px solid var(--line);
background:transparent; color:var(--text-faint); cursor:pointer;
display:flex; align-items:center; justify-content:center; transition:.2s; flex-shrink:0;
}
.btn-eye svg{ width:14px; height:14px; }
.btn-eye:hover{ color:var(--purple-soft); border-color:var(--purple-soft); }
.btn-eye.active{ color:var(--mint); border-color:var(--mint); }
.privacy-value{ transition:filter .25s ease; }
.privacy-value.blurred{ filter:blur(9px); user-select:none; }
/* ADD BUTTONS */
.add-actions{ display:flex; gap:10px; }
.btn-add{
display:flex; align-items:center; gap:8px;
font-family:'Inter'; font-weight:600; font-size:13.5px;
padding:11px 18px; border-radius:100px; border:none; cursor:pointer;
transition:.2s;
}
.btn-add svg{ width:16px; height:16px; }
.btn-income{ background:var(--mint-pale); color:var(--mint); border:1px solid rgba(61,220,151,0.3); }
.btn-income:hover{ background:var(--mint); color:var(--bg-deep); }
.btn-expense{ background:var(--coral-pale); color:var(--coral); border:1px solid rgba(255,107,107,0.3); }
.btn-expense:hover{ background:var(--coral); color:var(--bg-deep); }
/* HERO */
.hero{
background:linear-gradient(135deg, var(--surface-2), var(--purple-pale) 140%);
border:1px solid var(--line);
border-radius:22px; padding:34px 38px;
display:grid; grid-template-columns:1.3fr 1fr; gap:32px;
margin-bottom:22px; position:relative; overflow:hidden;
}
.hero::before{
content:''; position:absolute; right:-80px; top:-80px; width:280px; height:280px;
background:radial-gradient(circle, rgba(138,63,252,0.25), transparent 70%);
pointer-events:none;
}
.hero-label{ font-family:'JetBrains Mono', monospace; font-size:11px; letter-spacing:0.14em; text-transform:uppercase; color:var(--purple-soft); margin-bottom:10px; }
.hero-amount{ font-family:'Fraunces', serif; font-weight:500; font-size:52px; letter-spacing:-0.02em; line-height:1; margin-bottom:8px; transition: all .3s; }
.hero-amount sup{ font-size:24px; opacity:0.6; font-weight:400; }
.hero-delta{ font-family:'JetBrains Mono', monospace; font-size:13px; color:var(--mint); display:flex; align-items:center; gap:6px; }
.hero-stats{ display:flex; flex-direction:column; justify-content:center; gap:16px; border-left:1px solid var(--line); padding-left:30px; }
.hero-stat-row{ display:flex; justify-content:space-between; align-items:center; }
.hero-stat-label{ display:flex; align-items:center; gap:10px; font-size:13.5px; color:var(--text-dim); }
.dot{ width:8px; height:8px; border-radius:2px; flex-shrink:0; }
.hero-stat-value{ font-family:'JetBrains Mono', monospace; font-weight:600; font-size:15px; }
.grid{ display:grid; grid-template-columns:2fr 1fr; gap:22px; margin-bottom:22px; }
.card{ background:var(--surface); border:1px solid var(--line); border-radius:18px; padding:26px; }
.card-head{ display:flex; justify-content:space-between; align-items:flex-start; margin-bottom:20px; }
.card-title{ font-family:'Fraunces', serif; font-weight:600; font-size:18px; }
.card-sub{ font-size:12.5px; color:var(--text-faint); margin-top:3px; }
.tabs{ display:flex; gap:4px; background:var(--bg-deep); padding:3px; border-radius:100px; }
.tab{ font-family:'JetBrains Mono', monospace; font-size:11px; padding:6px 13px; border-radius:100px; cursor:pointer; color:var(--text-faint); transition:.15s; user-select:none; }
.tab.active{ background:var(--purple); color:#fff; }
.chart-legend{ display:flex; gap:20px; margin-top:14px; padding-top:14px; border-top:1px dashed var(--line); }
.legend-item{ display:flex; align-items:center; gap:7px; font-size:12px; color:var(--text-dim); font-family:'JetBrains Mono',monospace; }
.cat-list{ display:flex; flex-direction:column; gap:15px; }
.cat-row{ display:grid; grid-template-columns:32px 1fr auto; align-items:center; gap:12px; }
.cat-icon{ width:32px; height:32px; border-radius:9px; display:flex; align-items:center; justify-content:center; flex-shrink:0; }
.cat-icon svg{ width:16px; height:16px; }
.cat-top{ display:flex; justify-content:space-between; font-size:13px; margin-bottom:6px; }
.cat-name{ font-weight:600; }
.cat-amt{ font-family:'JetBrains Mono', monospace; color:var(--text-dim); }
.cat-track{ height:6px; background:var(--bg-deep); border-radius:100px; overflow:hidden; }
.cat-fill{ height:100%; border-radius:100px; transition:width 1s cubic-bezier(.2,.7,.3,1); }
.cat-pct{ font-family:'JetBrains Mono', monospace; font-size:11.5px; color:var(--text-faint); text-align:right; }
.tx-row{
display:grid; grid-template-columns:40px 1fr auto auto; align-items:center; gap:14px;
padding:12px 0; border-bottom:1px solid var(--line);
animation: rowIn .4s ease forwards;
}
@keyframes rowIn{ from{opacity:0; transform:translateX(-8px);} to{opacity:1; transform:translateX(0);} }
.tx-row:last-child{ border-bottom:none; }
.tx-icon{ width:40px; height:40px; border-radius:11px; display:flex; align-items:center; justify-content:center; flex-shrink:0; }
.tx-icon svg{ width:18px; height:18px; }
.tx-name{ font-weight:600; font-size:14px; }
.tx-meta{ font-size:12px; color:var(--text-faint); margin-top:2px; font-family:'JetBrains Mono', monospace; }
.tx-amt{ font-family:'JetBrains Mono', monospace; font-weight:600; font-size:14.5px; white-space:nowrap; }
.tx-amt.pos{ color:var(--mint); }
.tx-amt.neg{ color:var(--coral); }
.tx-badge{ font-family:'JetBrains Mono', monospace; font-size:10px; padding:4px 9px; border-radius:100px; white-space:nowrap; }
.tx-empty{ text-align:center; padding:30px 10px; color:var(--text-faint); font-size:13px; }
.grid-bottom{ display:grid; grid-template-columns:1fr 1fr 1fr; gap:22px; }
.goal-ring-wrap{ display:flex; align-items:center; gap:20px; }
.goal-info{ font-size:13px; color:var(--text-dim); line-height:1.5; }
.goal-info b{ display:block; font-family:'Fraunces',serif; font-size:16px; color:var(--text); margin-bottom:2px; }
.budget-list{ display:flex; flex-direction:column; gap:14px; }
.budget-row{ display:flex; justify-content:space-between; align-items:center; font-size:13px; }
.budget-name{ display:flex; align-items:center; gap:8px; font-weight:500; }
.budget-fig{ font-family:'JetBrains Mono',monospace; font-size:12px; color:var(--text-faint); }
.budget-editable{ cursor:pointer; border-bottom:1px dashed var(--purple-soft); color:var(--text-dim); transition:.15s; }
.budget-editable:hover{ color:var(--purple-soft); }
.budget-inline-input{
width:90px; background:var(--bg-deep); border:1px solid var(--purple); color:var(--text);
font-family:'JetBrains Mono', monospace; font-size:12px; padding:2px 6px; border-radius:6px; outline:none;
}
.receipt{ background:var(--bg-deep); position:relative; border:1px solid var(--line); }
.receipt-line{
display:flex; justify-content:space-between; font-family:'JetBrains Mono', monospace; font-size:12.5px;
padding:7px 0; border-bottom:1px dashed var(--line); color:var(--text-dim);
}
.receipt-line.total{ border-bottom:none; margin-top:6px; padding-top:14px; border-top:1px solid var(--line); font-weight:700; font-size:14px; color:var(--text); }
/* ============ MODAL: add transaction ============ */
.modal-overlay{
position:fixed; inset:0; background:rgba(13,6,25,0.75); backdrop-filter:blur(6px);
display:flex; align-items:center; justify-content:center; z-index:100;
opacity:0; visibility:hidden; transition:.25s;
}
.modal-overlay.show{ opacity:1; visibility:visible; }
.modal{
background:var(--surface); border:1px solid var(--line); border-radius:22px;
width:92%; max-width:420px; padding:30px; transform:translateY(20px) scale(0.97); transition:.3s;
}
.modal-overlay.show .modal{ transform:translateY(0) scale(1); }
.modal-head{ display:flex; justify-content:space-between; align-items:center; margin-bottom:22px; }
.modal-title{ font-family:'Fraunces', serif; font-weight:600; font-size:20px; }
.modal-close{ width:32px; height:32px; border-radius:50%; background:var(--bg-deep); border:none; color:var(--text-dim); cursor:pointer; display:flex; align-items:center; justify-content:center; font-size:16px; }
.modal-close:hover{ background:var(--surface-hi); color:var(--text); }
.type-toggle{ display:flex; gap:8px; margin-bottom:20px; background:var(--bg-deep); padding:4px; border-radius:100px; }
.type-opt{ flex:1; text-align:center; padding:10px; border-radius:100px; font-weight:600; font-size:13px; cursor:pointer; color:var(--text-faint); transition:.2s; }
.type-opt.active-income{ background:var(--mint); color:var(--bg-deep); }
.type-opt.active-expense{ background:var(--coral); color:var(--bg-deep); }
.field{ margin-bottom:16px; }
.field label{ display:block; font-family:'JetBrains Mono', monospace; font-size:10.5px; letter-spacing:0.08em; text-transform:uppercase; color:var(--text-faint); margin-bottom:8px; }
.field input, .field select{
width:100%; background:var(--bg-deep); border:1px solid var(--line); color:var(--text);
padding:13px 14px; border-radius:12px; font-family:'Inter'; font-size:14.5px; outline:none; transition:.2s;
}
.field input:focus, .field select:focus{ border-color:var(--purple); background:var(--surface-2); }
.field-amt-wrap{ position:relative; }
.field-amt-wrap span{ position:absolute; left:14px; top:50%; transform:translateY(-50%); color:var(--text-faint); font-family:'JetBrains Mono'; font-size:14px; }
.field-amt-wrap input{ padding-left:38px; font-family:'JetBrains Mono'; font-weight:600; }
.modal-submit{
width:100%; border:none; padding:15px; border-radius:14px; font-weight:700; font-size:14.5px; cursor:pointer;
margin-top:6px; transition:.2s;
}
.modal-submit.income{ background:var(--mint); color:var(--bg-deep); }
.modal-submit.expense{ background:var(--coral); color:var(--bg-deep); }
.modal-delete{
width:100%; background:transparent; border:1px solid var(--line); color:var(--text-faint);
padding:12px; border-radius:14px; font-size:13px; font-weight:600; cursor:pointer;
margin-top:10px; transition:.2s;
}
.modal-delete:hover{ border-color:var(--coral); color:var(--coral); background:var(--coral-pale); }
.modal-submit:hover{ filter:brightness(1.1); transform:translateY(-1px); }
/* Toast */
.toast{
position:fixed; bottom:28px; left:50%; transform:translateX(-50%) translateY(20px);
background:var(--surface-hi); border:1px solid var(--line); color:var(--text);
padding:14px 22px; border-radius:100px; font-size:13.5px; font-weight:500;
display:flex; align-items:center; gap:10px; z-index:200;
opacity:0; visibility:hidden; transition:.3s; box-shadow:0 12px 40px rgba(0,0,0,0.4);
}
.toast.show{ opacity:1; visibility:visible; transform:translateX(-50%) translateY(0); }
@media (max-width: 1100px){
.grid, .grid-bottom{ grid-template-columns:1fr; }
.hero{ grid-template-columns:1fr; }
.hero-stats{ border-left:none; padding-left:0; border-top:1px solid var(--line); padding-top:18px; }
}
@media (max-width: 700px){
.app.show{ grid-template-columns:1fr; }
.spine{ position:static; height:auto; flex-direction:row; padding:14px 18px; }
.spine-nav{ flex-direction:row; }
.spine-mark{ margin:0 14px 0 0; }
.spine-foot{ display:none; }
main{ padding:22px 16px 90px; }
h1{ font-size:24px; }
.hero-amount{ font-size:38px; }
.add-actions{ width:100%; }
.btn-add{ flex:1; justify-content:center; }
.topbar-right{ width:100%; justify-content:space-between; }
}
[data-reveal]{ opacity:0; transform:translateY(10px); animation:rise .6s cubic-bezier(.2,.7,.3,1) forwards; }
@keyframes rise{ to{ opacity:1; transform:translateY(0);} }
.view{ animation:rise .4s cubic-bezier(.2,.7,.3,1) forwards; }
@media (prefers-reduced-motion: reduce){
[data-reveal], .orb1, .orb2{ animation:none !important; opacity:1; transform:none; }
*{ transition:none !important; }
}