:root{color-scheme:dark;font-family:ui-sans-serif,system-ui,-apple-system,Segoe UI,Roboto,sans-serif;line-height:1.5;--bg: #0a0a0a;--surface: #141414;--surface-2: #1c1c1c;--border: rgba(255, 255, 255, .08);--text: #fafafa;--text-muted: rgba(255, 255, 255, .55);--accent: #22c55e;--accent-dim: rgba(34, 197, 94, .15);--danger: #ef4444;--danger-dim: rgba(239, 68, 68, .15);--warning: #f59e0b;--warning-dim: rgba(245, 158, 11, .15);--info: #3b82f6;--info-dim: rgba(59, 130, 246, .15)}*{box-sizing:border-box}html,body,#root{margin:0;min-height:100vh;background:var(--bg);color:var(--text)}.app{min-height:100vh;display:flex;flex-direction:column}.header{padding:1.25rem 1.5rem;border-bottom:1px solid var(--border);background:var(--surface);position:sticky;top:0;z-index:100;display:flex;align-items:center;justify-content:space-between}.header-left{display:flex;align-items:center;gap:.75rem}.logo{width:36px;height:36px;background:var(--accent);border-radius:10px;display:grid;place-items:center;font-size:1.1rem}.header h1{margin:0;font-size:1.15rem;font-weight:700;letter-spacing:-.02em}.header-right{display:flex;align-items:center;gap:.5rem}.main{flex:1;padding:1.5rem;max-width:1100px;margin:0 auto;width:100%;display:flex;flex-direction:column;gap:1.5rem}.balance-row{display:grid;grid-template-columns:repeat(3,1fr);gap:1rem}.balance-card{background:var(--surface);border:1px solid var(--border);border-radius:12px;padding:1.25rem;display:flex;flex-direction:column;gap:.35rem}.balance-card-label{font-size:.78rem;color:var(--text-muted);text-transform:uppercase;letter-spacing:.08em;font-weight:500}.balance-card-value{font-size:1.75rem;font-weight:700;letter-spacing:-.03em;font-variant-numeric:tabular-nums}.balance-card-value.income{color:var(--accent)}.balance-card-value.expense{color:var(--danger)}.balance-card-sub{font-size:.75rem;color:var(--text-muted)}.quick-actions{display:flex;gap:.75rem}.btn{padding:.6rem 1.1rem;border-radius:8px;border:1px solid var(--border);background:var(--surface-2);color:var(--text);font-size:.85rem;font-weight:500;cursor:pointer;transition:all .15s;display:inline-flex;align-items:center;gap:.4rem;font-family:inherit}.btn:hover{background:#ffffff0f;border-color:#ffffff26}.btn-primary{background:var(--accent);color:#000;border-color:var(--accent);font-weight:600}.btn-primary:hover{background:#16a34a;border-color:#16a34a}.btn-danger{background:var(--danger-dim);color:var(--danger);border-color:#ef444433}.btn-danger:hover{background:#ef444440}.btn-sm{padding:.35rem .7rem;font-size:.78rem}.content-grid{display:grid;grid-template-columns:1fr 340px;gap:1.5rem;align-items:start}.section{background:var(--surface);border:1px solid var(--border);border-radius:12px;overflow:hidden}.section-header{padding:1rem 1.25rem;border-bottom:1px solid var(--border);display:flex;align-items:center;justify-content:space-between}.section-header h2{margin:0;font-size:.95rem;font-weight:600}.section-body{padding:.75rem 0}.tabs{display:flex;gap:.25rem;padding:0 1.25rem .75rem}.tab{padding:.4rem .85rem;border-radius:6px;border:none;background:transparent;color:var(--text-muted);font-size:.8rem;cursor:pointer;font-family:inherit;font-weight:500;transition:all .15s}.tab:hover{color:var(--text);background:#ffffff0a}.tab.active{background:#ffffff14;color:var(--text)}.tx-list{list-style:none;padding:0;margin:0}.tx-item{display:flex;align-items:center;gap:.75rem;padding:.7rem 1.25rem;border-bottom:1px solid var(--border);transition:background .1s}.tx-item:last-child{border-bottom:none}.tx-item:hover{background:#ffffff05}.tx-icon{width:38px;height:38px;border-radius:10px;display:grid;place-items:center;font-size:1.1rem;flex-shrink:0}.tx-info{flex:1;min-width:0}.tx-name{font-size:.88rem;font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.tx-category{font-size:.73rem;color:var(--text-muted);margin-top:.1rem}.tx-amount{font-size:.92rem;font-weight:600;font-variant-numeric:tabular-nums;text-align:right;white-space:nowrap}.tx-amount.income{color:var(--accent)}.tx-amount.expense{color:var(--danger)}.tx-date{font-size:.7rem;color:var(--text-muted);text-align:right}.tx-actions{display:flex;gap:.25rem;opacity:0;transition:opacity .15s}.tx-item:hover .tx-actions{opacity:1}.icon-btn{width:28px;height:28px;border-radius:6px;border:none;background:transparent;color:var(--text-muted);cursor:pointer;display:grid;place-items:center;font-size:.85rem;transition:all .15s}.icon-btn:hover{background:#ffffff14;color:var(--text)}.icon-btn.delete:hover{background:var(--danger-dim);color:var(--danger)}.category-list{display:flex;flex-direction:column;gap:0}.category-item{display:flex;align-items:center;gap:.65rem;padding:.65rem 1.25rem;border-bottom:1px solid var(--border)}.category-item:last-child{border-bottom:none}.cat-dot{width:10px;height:10px;border-radius:50%;flex-shrink:0}.cat-info{flex:1;min-width:0}.cat-name{font-size:.82rem;font-weight:500}.cat-bar-wrap{height:4px;background:#ffffff0f;border-radius:2px;margin-top:.3rem;overflow:hidden}.cat-bar{height:100%;border-radius:2px;transition:width .4s ease}.cat-amount{font-size:.82rem;font-weight:600;font-variant-numeric:tabular-nums;text-align:right}.cat-pct{font-size:.68rem;color:var(--text-muted);text-align:right}.budget-item{display:flex;align-items:center;gap:.65rem;padding:.65rem 1.25rem;border-bottom:1px solid var(--border)}.budget-item:last-child{border-bottom:none}.budget-info{flex:1;min-width:0}.budget-label{font-size:.82rem;font-weight:500;display:flex;justify-content:space-between;margin-bottom:.3rem}.budget-bar-wrap{height:6px;background:#ffffff0f;border-radius:3px;overflow:hidden}.budget-bar{height:100%;border-radius:3px;transition:width .4s ease}.modal-overlay{position:fixed;top:0;right:0;bottom:0;left:0;background:#0009;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);display:grid;place-items:center;z-index:200;animation:fadeIn .15s}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}.modal{background:var(--surface);border:1px solid var(--border);border-radius:14px;width:min(440px,calc(100vw - 2rem));max-height:calc(100vh - 2rem);overflow-y:auto;animation:slideUp .2s}@keyframes slideUp{0%{opacity:0;transform:translateY(12px)}to{opacity:1;transform:translateY(0)}}.modal-header{padding:1.25rem 1.25rem 0;display:flex;align-items:center;justify-content:space-between}.modal-header h2{margin:0;font-size:1.05rem;font-weight:600}.modal-close{width:32px;height:32px;border-radius:8px;border:none;background:transparent;color:var(--text-muted);cursor:pointer;display:grid;place-items:center;font-size:1.1rem;transition:all .15s}.modal-close:hover{background:#ffffff14;color:var(--text)}.modal-body{padding:1.25rem}.form-group{margin-bottom:1rem}.form-label{display:block;font-size:.78rem;font-weight:500;color:var(--text-muted);margin-bottom:.4rem;text-transform:uppercase;letter-spacing:.05em}.form-input{width:100%;padding:.6rem .85rem;border-radius:8px;border:1px solid var(--border);background:var(--surface-2);color:var(--text);font-size:.9rem;font-family:inherit;transition:border-color .15s}.form-input:focus{outline:none;border-color:var(--accent)}.form-input::placeholder{color:#ffffff40}.form-row{display:grid;grid-template-columns:1fr 1fr;gap:.75rem}.type-toggle{display:flex;border-radius:8px;overflow:hidden;border:1px solid var(--border)}.type-btn{flex:1;padding:.55rem;border:none;background:transparent;color:var(--text-muted);font-size:.82rem;font-weight:500;cursor:pointer;font-family:inherit;transition:all .15s}.type-btn.active-income{background:var(--accent-dim);color:var(--accent)}.type-btn.active-expense{background:var(--danger-dim);color:var(--danger)}.form-actions{display:flex;gap:.5rem;justify-content:flex-end;margin-top:1.5rem}select.form-input{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-image:url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%23666' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right .75rem center;padding-right:2rem}.empty-state{padding:2.5rem 1rem;text-align:center;color:var(--text-muted)}.empty-state-icon{font-size:2rem;margin-bottom:.5rem;opacity:.5}.empty-state p{font-size:.85rem;margin:0}@media(max-width:768px){.balance-row,.content-grid{grid-template-columns:1fr}.quick-actions{flex-wrap:wrap}}.search-wrap{position:relative;flex:1;max-width:260px}.search-input{width:100%;padding:.5rem .75rem .5rem 2rem;border-radius:8px;border:1px solid var(--border);background:var(--surface-2);color:var(--text);font-size:.82rem;font-family:inherit}.search-input:focus{outline:none;border-color:var(--accent)}.search-input::placeholder{color:#ffffff40}.search-icon{position:absolute;left:.65rem;top:50%;transform:translateY(-50%);color:var(--text-muted);font-size:.8rem;pointer-events:none}.pin-screen{min-height:100vh;display:grid;place-items:center;padding:2rem}.pin-card{background:var(--surface);border:1px solid var(--border);border-radius:16px;padding:2.5rem 2rem 2rem;width:min(360px,calc(100vw - 2rem));text-align:center}.pin-card h2{margin:0 0 .35rem;font-size:1.25rem;font-weight:700}.pin-card p{margin:0 0 1.5rem;font-size:.85rem;color:var(--text-muted)}.pin-dots{display:flex;justify-content:center;gap:.75rem;margin-bottom:1.75rem}.pin-dot{width:14px;height:14px;border-radius:50%;border:2px solid rgba(255,255,255,.2);transition:all .15s}.pin-dot.filled{background:var(--accent);border-color:var(--accent)}.pin-dot.error{border-color:var(--danger);background:var(--danger)}.pin-keypad{display:grid;grid-template-columns:repeat(3,1fr);gap:.5rem;max-width:260px;margin:0 auto}.pin-key{height:56px;border-radius:12px;border:1px solid var(--border);background:var(--surface-2);color:var(--text);font-size:1.25rem;font-weight:500;cursor:pointer;font-family:inherit;transition:all .15s;display:grid;place-items:center}.pin-key:hover{background:#ffffff14}.pin-key:active{transform:scale(.96)}.pin-key.empty{border:none;background:transparent;cursor:default}.pin-key.backspace{font-size:1rem}.pin-error{color:var(--danger);font-size:.78rem;margin-top:1rem;min-height:1.2em}.goal-section{padding:1rem 1.25rem}.goal-header{display:flex;justify-content:space-between;align-items:baseline;margin-bottom:.5rem}.goal-label{font-size:.82rem;font-weight:500}.goal-values{font-size:.75rem;color:var(--text-muted)}.goal-bar-wrap{height:8px;background:#ffffff0f;border-radius:4px;overflow:hidden;margin-bottom:.4rem}.goal-bar{height:100%;border-radius:4px;background:var(--accent);transition:width .4s ease}.goal-remaining{font-size:.73rem;color:var(--text-muted)}
