:root{
  --bg:#0f172a; --panel:#0b1220; --text:#e5e7eb; --muted:#94a3b8; --border:#1f2937;
  --green:#16a34a; --green2:#15803d; --red:#dc2626; --red2:#b91c1c;
}
*{box-sizing:border-box} html,body{height:100%}
body{margin:0;font-family:ui-sans-serif,system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Cantarell,Noto Sans,Helvetica Neue,Arial;
     background:radial-gradient(1000px 700px at 10% 10%,#0b1220 0%,var(--bg) 60%); color:var(--text)}
.wrap{max-width:640px;margin:0 auto;padding:14px}
.card{background:linear-gradient(180deg,rgba(255,255,255,.02),rgba(255,255,255,0)); border:1px solid var(--border); border-radius:16px; padding:14px; margin-bottom:12px}
.top{display:flex;align-items:center;justify-content:space-between;padding:10px 14px}
.brand{display:flex;align-items:center;gap:10px}
.logo{width:34px;height:34px;border-radius:10px;background:linear-gradient(135deg,#22c55e,#06b6d4);
      display:grid;place-items:center;color:#06130a;font-weight:900}
.title{font-weight:900}
.muted{color:var(--muted);font-size:12px}
.currency{background:var(--panel);border:1px solid var(--border);border-radius:10px;color:var(--text);padding:8px}
.amount{font-size:44px;font-weight:900;line-height:1}
.balance-card{display:flex;flex-direction:column;gap:6px}

.actions{display:grid;grid-template-columns:1fr;gap:10px}
.btn{display:flex;align-items:center;justify-content:center;gap:10px;padding:16px;border-radius:14px;border:1px solid var(--border);font-weight:900;color:#06130a}
.btn.big{font-size:18px;border:none}
.btn.deposit{background:var(--green)} .btn.deposit:active{background:var(--green2)}
.btn.expense{background:var(--red)} .btn.expense:active{background:var(--red2)}
.btn.primary{background:linear-gradient(135deg,#22c55e,#16a34a);border:none}
.btn.ghost{background:var(--panel);color:var(--text)}
.btn.danger{border-color:#7f1d1d}

.tabbar{position:sticky;bottom:0;left:0;right:0;background:rgba(11,18,32,.9);backdrop-filter:blur(6px);
        border-top:1px solid var(--border);display:flex}
.tabbar .tab{flex:1;text-align:center;padding:12px;color:var(--text);text-decoration:none;border-right:1px solid var(--border)}
.tabbar .tab:last-child{border-right:none}
.tabbar .active{background:#141b2c}

.filters{display:flex;gap:8px}
.filters > *{flex:1}

.history-list .row{display:flex;justify-content:space-between;align-items:flex-start;border-bottom:1px solid var(--border);padding:10px 0}
.history-list .sum.in{color:#22c55e}
.history-list .sum.out{color:#f87171}
.history-list small{color:var(--muted)}

.sheet{position:fixed;inset:0;background:rgba(0,0,0,.5);display:none;z-index:100}
.sheet .sheet-inner{position:absolute;left:0;right:0;bottom:0;background:#0b1220;border-top-left-radius:18px;border-top-right-radius:18px;
                   border:1px solid var(--border);padding:14px 14px 18px 14px}
.sheet.show{display:block}
.sheet-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:8px}
.sheet-title{font-weight:900}
.icon-btn{background:var(--panel);color:var(--text);border:1px solid var(--border);border-radius:10px;padding:6px 10px}
.amount-display{font-size:36px;font-weight:900;text-align:center;padding:8px 0;margin-bottom:8px}
.keypad{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-bottom:8px}
.keypad > button{padding:16px;border-radius:12px;background:#111a2a;border:1px solid var(--border);color:var(--text);font-size:20px}
.keypad > button:active{transform:scale(.98)}
.fields{display:grid;gap:8px;margin-bottom:8px}
.field{display:flex;flex-direction:column;gap:6px}
.field input{background:var(--panel);border:1px solid var(--border);border-radius:12px;color:var(--text);padding:12px 14px}
.sheet-actions{display:flex;gap:8px}
.center{text-align:center}
.lock{position:fixed;inset:0;background:rgba(0,0,0,.7);display:flex;align-items:center;justify-content:center;z-index:9999}
.lock-card{background:#0b1220;border:1px solid var(--border);border-radius:16px;padding:18px;max-width:360px;width:92%}
.lock-title{font-size:20px;font-weight:900;margin-bottom:6px}
.pin-wrap{display:flex;gap:8px}
.pin-wrap input{flex:1;background:var(--panel);border:1px solid var(--border);border-radius:12px;color:var(--text);padding:12px 14px}
