* { box-sizing: border-box; }
:root {
  color-scheme: dark;
  --bg: #071a12;
  --bg-soft: #0b2118;
  --surface: #10291f;
  --surface-2: #143326;
  --surface-3: #193d2e;
  --border: rgba(220, 255, 235, .09);
  --text: #f4fff8;
  --muted: #8da79a;
  --dim: #5d756a;
  --green: #19c878;
  --green-light: #78e8ae;
  --red: #ff6675;
  --yellow: #f5b94c;
  --blue: #73b9ff;
  --shadow: 0 22px 60px rgba(0, 0, 0, .22);
}
html, body { margin: 0; min-width: 320px; min-height: 100%; background: var(--bg); }
body { color: var(--text); font: 14px/1.5 'DM Sans', system-ui, sans-serif; }
button, input, select, textarea { color: inherit; font: inherit; }
button { cursor: pointer; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--green-light); outline-offset: 3px; }
a { color: inherit; text-decoration: none; }
.app-shell { display: flex; min-height: 100vh; }
.sidebar { width: 248px; flex: 0 0 248px; padding: 28px 18px 22px; background: #081f15; border-right: 1px solid var(--border); display: flex; flex-direction: column; }
.brand { display:flex; align-items:center; gap: 11px; padding: 0 14px; margin-bottom: 38px; font: 800 20px/1 Manrope, sans-serif; letter-spacing: -.7px; }
.brand-mark { width: 30px; height: 30px; border-radius: 10px; display:grid; place-items:center; color: #062017; background: var(--green); box-shadow: 0 8px 20px rgba(25,200,120,.22); font-weight: 800; }
.side-label { color: var(--dim); font-size: 10px; font-weight:700; letter-spacing:1.2px; text-transform: uppercase; padding: 0 14px; margin: 0 0 10px; }
.nav-list { display:grid; gap: 4px; }
.nav-item { display:flex; align-items:center; gap: 13px; padding: 12px 14px; border-radius: 12px; color: var(--muted); transition: .2s ease; }
.nav-item svg, .icon-btn svg { width: 18px; height: 18px; }
.nav-item:hover { color: var(--text); background: rgba(255,255,255,.04); }
.nav-item.active { color: var(--text); background: rgba(25,200,120,.13); box-shadow: inset 3px 0 var(--green); }
.nav-item.active svg { color: var(--green); }
.sidebar-bottom { margin-top:auto; border-top:1px solid var(--border); padding-top: 18px; }
.profile-mini { display:flex; align-items:center; gap:10px; padding: 10px 12px; }
.avatar { display:grid; place-items:center; width:34px; height:34px; border-radius: 50%; background: #c5e8d4; color: #143b2b; font-weight:700; }
.profile-mini strong { display:block; font-size:13px; }
.profile-mini span { display:block; color:var(--dim); font-size:11px; }
.main-area { flex: 1; min-width: 0; }
.topbar { height: 78px; display:flex; align-items:center; gap:18px; padding: 0 42px; border-bottom:1px solid var(--border); background: rgba(7,26,18,.82); backdrop-filter: blur(16px); position: sticky; top:0; z-index:10; }
.menu-mobile { display:none; }
.topbar-title { font: 700 20px Manrope, sans-serif; margin-right:auto; letter-spacing:-.5px; }
.topbar-actions { display:flex; align-items:center; gap: 10px; }
.search-box { width: 210px; display:flex; align-items:center; gap:9px; padding: 9px 12px; border:1px solid var(--border); border-radius:10px; color:var(--dim); background:var(--surface); }
.search-box input { width:100%; border:0; outline:0; background:transparent; color:var(--text); font-size:12px; }
.search-box svg { width:15px; height:15px; }
.icon-btn { width:38px; height:38px; border:1px solid transparent; border-radius: 11px; display:grid; place-items:center; background:transparent; color:var(--muted); }
.icon-btn:hover { border-color:var(--border); background:var(--surface); color:var(--text); }
.page { max-width: 1260px; padding: 36px 42px 100px; margin:0 auto; }
.page-heading { display:flex; justify-content:space-between; align-items:flex-end; gap:20px; margin-bottom: 28px; }
.eyebrow { color:var(--green); text-transform:uppercase; letter-spacing:1.5px; font-size:10px; font-weight:700; }
h1, h2, h3, p { margin:0; }
h1 { margin-top:5px; font: 800 29px/1.2 Manrope, sans-serif; letter-spacing:-1px; }
h2 { font:700 17px/1.25 Manrope, sans-serif; letter-spacing:-.3px; }
h3 { font-size:14px; }
.subtitle { margin-top:7px; color:var(--muted); font-size:13px; }
.month-control { display:flex; align-items:center; gap:14px; padding:8px 11px; border:1px solid var(--border); border-radius:12px; background:var(--surface); color:var(--muted); }
.month-control strong { min-width:120px; text-align:center; font-size:12px; color:var(--text); }
.month-control button { border:0; background:transparent; color:var(--muted); font-size:20px; line-height:1; }
.month-control button:hover { color:var(--green-light); }
.grid { display:grid; gap:18px; }
.dashboard-grid { grid-template-columns: minmax(0, 1.45fr) minmax(290px, .8fr); }
.card { background: linear-gradient(145deg, rgba(20,51,38,.96), rgba(14,39,29,.96)); border:1px solid var(--border); border-radius:18px; box-shadow: var(--shadow); }
.card-pad { padding:22px; }
.cashflow-card { padding: 24px; min-height: 238px; position:relative; overflow:hidden; background: radial-gradient(circle at 90% 10%, rgba(25,200,120,.18), transparent 36%), linear-gradient(145deg, #133a28, #0c281c 75%); }
.cashflow-card:after { content:''; position:absolute; right:-55px; bottom:-80px; width:220px; height:220px; border:1px solid rgba(120,232,174,.1); border-radius:50%; box-shadow:0 0 0 24px rgba(120,232,174,.025), 0 0 0 50px rgba(120,232,174,.02); }
.card-label { color:var(--muted); font-size:10px; font-weight:700; letter-spacing:1.25px; text-transform:uppercase; }
.cashflow-value { margin:14px 0 19px; font:800 clamp(31px, 4vw, 43px)/1 Manrope, sans-serif; letter-spacing:-2px; }
.positive { color:var(--green-light); } .negative { color:var(--red); } .neutral { color:var(--muted); }
.metric-row { display:flex; flex-wrap:wrap; gap:10px; position:relative; z-index:1; }
.metric-pill { display:flex; align-items:center; gap:7px; padding:8px 10px; border-radius:9px; background:rgba(5,22,14,.32); color:var(--muted); font-size:11px; }
.metric-pill strong { color:var(--text); font-size:12px; }
.metric-pill.income strong { color:var(--green-light); } .metric-pill.expense strong { color:var(--red); }
.streak { display:inline-flex; margin-top:16px; align-items:center; gap:7px; padding:6px 10px; border-radius:99px; color:var(--yellow); background:rgba(245,185,76,.1); font-size:11px; font-weight:700; }
.dashboard-side { display:grid; gap:18px; }
.insight-card { padding: 19px; background:linear-gradient(135deg, rgba(115,185,255,.12), rgba(20,51,38,.8)); }
.insight-head { display:flex; align-items:center; justify-content:space-between; margin-bottom:14px; }
.insight-icon { width:31px; height:31px; display:grid; place-items:center; border-radius:10px; color:var(--blue); background:rgba(115,185,255,.13); }
.insight-card p { color:var(--muted); font-size:13px; line-height:1.55; }
.insight-card strong { color:var(--text); }
.text-btn { border:0; background:transparent; color:var(--green-light); padding:4px 0; font-size:12px; font-weight:700; }
.balance-card { padding:19px; display:flex; align-items:center; gap:13px; }
.wallet-icon { width:40px; height:40px; display:grid; place-items:center; border-radius:12px; color:var(--green-light); background:rgba(25,200,120,.12); }
.wallet-icon svg { width:20px; height:20px; }
.balance-card small { color:var(--muted); font-size:11px; display:block; }
.balance-card strong { display:block; margin-top:3px; font:700 20px Manrope, sans-serif; letter-spacing:-.6px; }
.balance-card .text-btn { margin-left:auto; align-self:flex-start; }
.section-block { margin-top: 28px; }
.section-heading { display:flex; align-items:center; justify-content:space-between; gap:15px; margin-bottom:13px; }
.section-heading a, .link-btn { color:var(--green-light); font-size:12px; font-weight:700; border:0; background:transparent; }
.chart-card { padding:22px; }
.chart-meta { display:flex; justify-content:space-between; align-items:flex-end; margin-bottom:22px; }
.chart-total { font:700 18px Manrope, sans-serif; }
.chart-total small { color:var(--muted); font:400 11px 'DM Sans'; display:block; margin-bottom:3px; }
.bar-chart { height:170px; display:flex; gap:8px; align-items:flex-end; padding: 0 3px 22px; border-bottom:1px solid var(--border); position:relative; }
.bar-chart:before { content:''; position:absolute; left:0; right:0; top:32px; border-top:1px dashed rgba(255,255,255,.07); box-shadow:0 48px rgba(255,255,255,.05), 0 96px rgba(255,255,255,.04); }
.bar-wrap { height:100%; flex:1; display:flex; align-items:flex-end; position:relative; z-index:1; min-width: 12px; }
.bar { width:100%; min-height:3px; border-radius:5px 5px 2px 2px; background:linear-gradient(180deg, var(--green-light), var(--green)); transition:height .45s ease; opacity:.85; }
.bar-wrap span { position:absolute; bottom:-21px; left:50%; transform:translateX(-50%); color:var(--dim); font-size:9px; }
.legend { display:flex; gap:18px; margin-top:17px; color:var(--muted); font-size:11px; }
.legend i { display:inline-block; width:7px; height:7px; border-radius:50%; margin-right:6px; background:var(--green); }
.legend i.red { background:var(--red); }
.two-col { display:grid; grid-template-columns: 1fr 1fr; gap:18px; }
.transaction-list { display:grid; gap:2px; }
.transaction-item { display:flex; align-items:center; gap:12px; width:100%; padding:13px 2px; border:0; border-bottom:1px solid var(--border); background:transparent; text-align:left; }
.transaction-item:last-child { border-bottom:0; }
.transaction-item:hover .transaction-name { color:var(--green-light); }
.transaction-icon { width:38px; height:38px; flex:none; display:grid; place-items:center; border-radius:12px; color:var(--green-light); background:rgba(25,200,120,.1); }
.transaction-icon.expense { color:var(--red); background:rgba(255,102,117,.1); }
.transaction-icon.transfer { color:var(--blue); background:rgba(115,185,255,.1); }
.transaction-main { flex:1; min-width:0; }
.transaction-name { display:block; color:var(--text); font-weight:600; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; transition:.2s; }
.transaction-detail { display:block; margin-top:2px; color:var(--muted); font-size:11px; }
.transaction-amount { text-align:right; font-weight:700; white-space:nowrap; }
.transaction-date { display:block; color:var(--dim); font-size:10px; font-weight:400; margin-top:3px; }
.empty { padding:34px 18px; text-align:center; color:var(--muted); border:1px dashed var(--border); border-radius:14px; }
.empty svg { color:var(--dim); width:28px; height:28px; margin-bottom:9px; }
.empty strong { display:block; color:var(--text); margin-bottom:4px; }
.empty p { font-size:12px; }
.button { display:inline-flex; align-items:center; justify-content:center; gap:7px; min-height:40px; padding:0 15px; border:1px solid transparent; border-radius:10px; background:var(--green); color:#062017; font-weight:700; transition:.2s; }
.button:hover { background:var(--green-light); transform:translateY(-1px); box-shadow:0 7px 18px rgba(25,200,120,.18); }
.button.secondary { background:transparent; border-color:var(--border); color:var(--muted); }
.button.secondary:hover { color:var(--text); background:var(--surface-2); box-shadow:none; }
.button.danger { background:rgba(255,102,117,.12); color:var(--red); border-color:rgba(255,102,117,.2); }
.fab { position:fixed; z-index:20; right:26px; bottom:26px; width:58px; height:58px; border:0; border-radius:18px; display:grid; place-items:center; color:#062017; background:var(--green); box-shadow:0 12px 30px rgba(25,200,120,.27); transition:.2s; }
.fab:hover { transform:translateY(-3px) rotate(90deg); background:var(--green-light); }
.fab svg { width:25px; height:25px; }
.table-card { padding:20px; overflow:hidden; }
.toolbar { display:flex; flex-wrap:wrap; gap:9px; margin-bottom:17px; }
.input, .select { min-height:40px; width:100%; padding:0 12px; border:1px solid var(--border); border-radius:10px; outline:0; background:var(--surface); color:var(--text); }
.input::placeholder { color:var(--dim); }
.select { appearance:none; }
.toolbar .search-box { flex:1; min-width:190px; width:auto; }
.filter-select { width:auto; min-width:145px; }
.filter-select option, .select option { background:#10291f; }
.stats-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:14px; margin-bottom:20px; }
.stat-card { padding:17px; background:var(--surface); border:1px solid var(--border); border-radius:14px; }
.stat-card span { color:var(--muted); font-size:11px; }
.stat-card strong { display:block; margin-top:7px; font:700 20px Manrope, sans-serif; }
.page-grid { display:grid; grid-template-columns:repeat(3, 1fr); gap:16px; }
.wallet-card { padding:20px; position:relative; overflow:hidden; }
.wallet-top { display:flex; align-items:center; justify-content:space-between; margin-bottom:27px; }
.wallet-type { color:var(--muted); font-size:11px; }
.wallet-card h3 { font-size:15px; }
.wallet-number { font:700 23px Manrope, sans-serif; letter-spacing:-.8px; }
.wallet-actions { display:flex; gap:5px; opacity:.8; }
.wallet-actions button { width:28px; height:28px; border:0; border-radius:8px; display:grid; place-items:center; color:var(--muted); background:rgba(255,255,255,.05); }
.wallet-actions button:hover { color:var(--text); background:rgba(255,255,255,.1); }
.wallet-brand { position:absolute; right:20px; bottom:18px; color:var(--dim); font-size:11px; }
.progress-track { width:100%; height:7px; margin:13px 0 8px; border-radius:99px; background:rgba(255,255,255,.07); overflow:hidden; }
.progress-fill { height:100%; border-radius:inherit; background:var(--green); transition:width .5s ease; }
.progress-fill.warning { background:var(--yellow); } .progress-fill.over { background:var(--red); }
.progress-line { display:flex; justify-content:space-between; color:var(--muted); font-size:11px; }
.budget-card, .goal-card { padding:19px; }
.budget-title, .goal-title { display:flex; align-items:center; gap:10px; }
.budget-title strong, .goal-title strong { font-size:14px; }
.budget-title small, .goal-title small { display:block; color:var(--muted); font-size:11px; margin-top:2px; }
.card-actions { margin-left:auto; display:flex; gap:3px; }
.card-actions button { width:27px; height:27px; border:0; border-radius:7px; color:var(--muted); background:transparent; }
.card-actions button:hover { background:rgba(255,255,255,.06); color:var(--text); }
.big-number { font:700 25px Manrope, sans-serif; letter-spacing:-1px; margin-top:20px; }
.analytics-grid { display:grid; grid-template-columns: 1.25fr .75fr; gap:18px; }
.list-stat { display:flex; align-items:center; gap:10px; padding:13px 0; border-bottom:1px solid var(--border); }
.list-stat:last-child { border-bottom:0; }
.list-stat .dot { width:9px; height:9px; border-radius:50%; background:var(--green); }
.list-stat .dot.red { background:var(--red); } .list-stat .dot.yellow { background:var(--yellow); }
.list-stat span { flex:1; color:var(--muted); } .list-stat strong { font-size:12px; }
.category-bars { display:grid; gap:15px; }
.category-row header { display:flex; justify-content:space-between; font-size:12px; margin-bottom:6px; }
.category-row header span { color:var(--muted); }
.form-grid { display:grid; grid-template-columns:1fr 1fr; gap:14px; }
.field { display:grid; gap:7px; } .field.full { grid-column:1/-1; }
.field label { color:var(--muted); font-size:11px; font-weight:600; }
.field textarea { padding-top:10px; min-height:80px; resize:vertical; }
.amount-input { position:relative; } .amount-input span { position:absolute; left:12px; top:10px; color:var(--muted); font-weight:600; } .amount-input input { padding-left:38px; }
.form-error { padding:10px 12px; border-radius:9px; color:var(--red); background:rgba(255,102,117,.1); font-size:12px; }
.form-actions { display:flex; justify-content:flex-end; gap:9px; margin-top:20px; }
.modal-backdrop { position:fixed; inset:0; z-index:50; display:grid; place-items:center; padding:18px; background:rgba(1,10,6,.7); backdrop-filter:blur(9px); animation:fade .18s ease; }
.modal { width:min(100%, 520px); max-height:calc(100vh - 36px); overflow:auto; padding:24px; border:1px solid var(--border); border-radius:20px; background:#112d21; box-shadow:0 28px 80px rgba(0,0,0,.4); animation:rise .22s ease; }
.modal.small { width:min(100%, 390px); }
.modal-header { display:flex; align-items:flex-start; justify-content:space-between; gap:15px; margin-bottom:20px; }
.modal-header h2 { font-size:20px; } .modal-header p { margin-top:5px; color:var(--muted); font-size:12px; }
.close-btn { flex:none; border:0; background:transparent; color:var(--muted); width:30px; height:30px; border-radius:8px; display:grid; place-items:center; }
.close-btn:hover { background:rgba(255,255,255,.06); color:var(--text); }
.action-sheet { display:grid; gap:9px; }
.action-choice { display:flex; align-items:center; gap:12px; padding:13px; border:1px solid var(--border); border-radius:12px; background:var(--surface); text-align:left; }
.action-choice:hover { border-color:rgba(25,200,120,.45); background:rgba(25,200,120,.07); }
.action-choice .wallet-icon { width:34px; height:34px; } .action-choice strong { display:block; } .action-choice span { color:var(--muted); font-size:11px; }
.detail-list { display:grid; gap:0; margin: 6px 0 20px; }
.detail-row { display:flex; justify-content:space-between; gap:20px; padding:11px 0; border-bottom:1px solid var(--border); font-size:13px; }
.detail-row span { color:var(--muted); } .detail-row strong { text-align:right; }
.toast { position:fixed; z-index:80; left:50%; bottom:24px; transform:translate(-50%, 15px); opacity:0; pointer-events:none; padding:12px 15px; border:1px solid rgba(120,232,174,.2); border-radius:11px; color:var(--text); background:#183b2b; box-shadow:var(--shadow); transition:.25s; font-size:12px; }
.toast.show { opacity:1; transform:translate(-50%, 0); }
.mobile-nav { display:none; }
.insights-list { display:grid; gap:12px; }
.insight-row { display:flex; gap:13px; padding:17px; border:1px solid var(--border); border-radius:14px; background:var(--surface); }
.insight-row .insight-icon { flex:none; }
.insight-row strong { display:block; margin-bottom:3px; } .insight-row p { color:var(--muted); font-size:12px; }
.settings-grid { display:grid; grid-template-columns: 1fr 1fr; gap:18px; }
.setting-row { display:flex; align-items:center; justify-content:space-between; gap:16px; padding:17px 0; border-bottom:1px solid var(--border); }
.setting-row:last-child { border-bottom:0; } .setting-row strong { display:block; font-size:13px; } .setting-row span { display:block; color:var(--muted); font-size:11px; margin-top:3px; }
.toggle { width:42px; height:24px; padding:3px; border:0; border-radius:99px; background:var(--surface-3); } .toggle i { display:block; width:18px; height:18px; border-radius:50%; background:var(--muted); transition:.2s; } .toggle.on { background:var(--green); } .toggle.on i { transform:translateX(18px); background:#072216; }
@keyframes fade { from{opacity:0}to{opacity:1} } @keyframes rise { from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:none} }
@media (max-width: 900px) { .sidebar { width:210px; flex-basis:210px; } .topbar { padding:0 26px; } .page { padding:30px 26px 100px; } .dashboard-grid, .analytics-grid { grid-template-columns:1fr; } .page-grid { grid-template-columns:repeat(2,1fr); } }
@media (max-width: 680px) {
  .app-shell { display:block; } .sidebar { display:none; } .topbar { height:62px; padding:0 16px; gap:9px; } .menu-mobile { display:grid; } .topbar-title { font-size:16px; } .topbar-actions .search-box { display:none; } .page { padding:22px 14px 100px; } .page-heading { align-items:flex-start; flex-direction:column; gap:16px; margin-bottom:22px; } h1 { font-size:23px; } .month-control { width:100%; justify-content:space-between; } .month-control strong { flex:1; } .dashboard-grid, .two-col, .settings-grid { grid-template-columns:1fr; gap:14px; } .cashflow-card { min-height:215px; padding:20px; } .cashflow-value { font-size:35px; margin:12px 0 17px; } .card-pad, .chart-card, .table-card { padding:17px; } .stats-grid { grid-template-columns:repeat(2,1fr); gap:9px; } .stat-card { padding:14px; } .stat-card strong { font-size:17px; } .page-grid { grid-template-columns:1fr; } .toolbar .select, .filter-select { width:100%; } .mobile-nav { position:fixed; z-index:15; display:flex; left:10px; right:10px; bottom:10px; height:63px; padding:5px 7px; align-items:center; justify-content:space-around; border:1px solid rgba(25,200,120,.3); border-radius:19px; background:rgba(11,34,24,.94); backdrop-filter:blur(16px); box-shadow:0 12px 35px rgba(0,0,0,.35); } .mobile-nav a { width:58px; display:grid; justify-items:center; gap:2px; padding:6px 4px; border-radius:12px; color:var(--dim); font-size:9px; } .mobile-nav a.active { color:var(--green-light); background:rgba(25,200,120,.1); } .mobile-nav svg { width:18px; height:18px; } .mobile-fab { width:48px !important; height:48px; margin-top:-25px; border:4px solid var(--bg); border-radius:50% !important; color:#062017 !important; background:var(--green) !important; box-shadow:0 7px 18px rgba(25,200,120,.25); } .mobile-fab svg { width:24px; height:24px; } .fab { display:none; } .modal-backdrop { align-items:end; padding:0; } .modal { width:100%; max-height:92vh; border-radius:20px 20px 0 0; border-bottom:0; padding:21px 17px 25px; } .modal.small { width:100%; } .form-grid { grid-template-columns:1fr; gap:12px; } .field.full { grid-column:auto; } .form-actions .button { flex:1; } .transaction-item { padding:11px 0; } .legend { margin-bottom:3px; } }
@media (min-width:681px) { .mobile-only { display:none !important; } }
@media (prefers-reduced-motion: reduce) { *, *:before, *:after { animation-duration:.01ms !important; transition-duration:.01ms !important; } }
