@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

*{
  box-sizing:border-box;
}

:root{
  --bg:#f5f7fb;
  --surface:#ffffff;
  --surface-2:#f8fafc;
  --text:#0f172a;
  --muted:#64748b;
  --line:#e2e8f0;
  --primary:#111827;
  --accent:#3b82f6;
  --success:#10b981;
  --danger:#ef4444;
  --warning:#f59e0b;
  --purple:#8b5cf6;
  --shadow:0 10px 30px rgba(15,23,42,0.08);
  --shadow-2:0 18px 40px rgba(15,23,42,0.12);
  --radius:24px;
}

html, body{
  margin:0;
  padding:0;
}

body{
  font-family:'Plus Jakarta Sans', sans-serif;
  background:var(--bg);
  color:var(--text);
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}

a{
  color:inherit;
  text-decoration:none;
}

.container{
  width:100%;
  max-width:1120px;
  margin:0 auto;
  padding:28px 22px 120px;
}

.topbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  margin-bottom:18px;
}

.brand{
  display:flex;
  align-items:center;
  gap:14px;
}

.brand-box{
  width:48px;
  height:48px;
  border-radius:16px;
  background:linear-gradient(135deg,#d9ff00,#b9f400);
  color:#111827;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:800;
  font-size:22px;
  box-shadow:0 10px 25px rgba(185,244,0,0.25);
}

.brand-name{
  font-size:24px;
  font-weight:800;
  letter-spacing:-0.03em;
}

.topbar-actions{
  display:flex;
  align-items:center;
  gap:10px;
}

.icon-btn{
  width:46px;
  height:46px;
  border-radius:16px;
  border:1px solid var(--line);
  background:rgba(255,255,255,0.9);
  display:flex;
  align-items:center;
  justify-content:center;
  color:#475569;
  box-shadow:var(--shadow);
}

.page-title{
  font-size:42px;
  line-height:1.05;
  margin:6px 0 8px;
  font-weight:800;
  letter-spacing:-0.04em;
}

.page-subtitle{
  margin:0 0 22px;
  color:var(--muted);
  font-size:15px;
  font-weight:500;
}

.card-dark{
  position:relative;
  overflow:hidden;
  background:
    radial-gradient(circle at top right, rgba(96,165,250,0.18), transparent 30%),
    radial-gradient(circle at bottom left, rgba(185,244,0,0.16), transparent 25%),
    linear-gradient(135deg,#0b1020,#121826 60%,#18220b);
  color:white;
  border-radius:34px;
  padding:28px;
  box-shadow:0 20px 45px rgba(2,6,23,0.28);
}

.label-small{
  color:rgba(255,255,255,0.68);
  text-transform:uppercase;
  letter-spacing:.16em;
  font-size:11px;
  font-weight:700;
  margin-bottom:10px;
}

.big-balance{
  font-size:56px;
  line-height:1;
  font-weight:800;
  letter-spacing:-0.05em;
  margin:0 0 20px;
  word-break:break-word;
}

.poverty-box{
  margin-top:4px;
  margin-bottom:22px;
  padding:16px;
  border-radius:22px;
  background:rgba(255,255,255,0.08);
  border:1px solid rgba(255,255,255,0.08);
  backdrop-filter:blur(10px);
}

.poverty-top{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  margin-bottom:12px;
}

.poverty-title{
  font-size:13px;
  color:rgba(255,255,255,0.82);
  font-weight:600;
}

.poverty-badge{
  color:#0f172a;
  font-size:12px;
  font-weight:800;
  padding:8px 14px;
  border-radius:999px;
  box-shadow:0 10px 25px rgba(0,0,0,0.12);
}

.poverty-bar{
  width:100%;
  height:12px;
  border-radius:999px;
  background:rgba(255,255,255,0.12);
  overflow:hidden;
}

.poverty-fill{
  height:100%;
  border-radius:999px;
  transition:all .35s ease;
}

.summary-scroll{
  overflow-x:auto;
  -webkit-overflow-scrolling:touch;
  scrollbar-width:none;
}

.summary-scroll::-webkit-scrollbar{
  display:none;
}

.summary-row{
  display:flex;
  gap:14px;
  min-width:max-content;
}

.summary-box{
  width:220px;
  flex:0 0 auto;
  background:rgba(255,255,255,0.08);
  border:1px solid rgba(255,255,255,0.08);
  border-radius:22px;
  padding:18px;
  backdrop-filter:blur(8px);
}

.summary-title{
  font-size:12px;
  color:rgba(255,255,255,0.72);
  margin-bottom:10px;
  font-weight:700;
}

.summary-value{
  font-size:24px;
  font-weight:800;
  line-height:1.2;
  letter-spacing:-0.03em;
}

.green{ color:#d9ff00; }
.pink{ color:#ff8bc7; }
.blue{ color:#8cb8ff; }

.mini-grid{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:16px;
  margin-top:22px;
}

.mini-stat,
.white-card,
.chart-card,
.info-card,
.form-card{
  background:var(--surface);
  border:1px solid rgba(226,232,240,.9);
  border-radius:28px;
  box-shadow:var(--shadow);
}

.mini-stat{
  padding:20px;
}

.mini-label{
  font-size:12px;
  color:var(--muted);
  margin-bottom:8px;
  font-weight:700;
}

.mini-value{
  font-size:24px;
  line-height:1.25;
  font-weight:800;
  letter-spacing:-0.035em;
  word-break:break-word;
}

.progress-wrap{
  width:100%;
  height:12px;
  background:#e9eef5;
  border-radius:999px;
  overflow:hidden;
  margin-top:12px;
}

.progress-fill{
  height:100%;
  background:linear-gradient(90deg,#d9ff00,#7ee787);
  border-radius:999px;
}

.chart-card{
  margin-top:22px;
  padding:24px;
}

.section-title{
  font-size:22px;
  font-weight:800;
  letter-spacing:-0.03em;
  margin:0 0 16px;
}

.legend{
  display:flex;
  gap:18px;
  margin-top:6px;
  font-size:13px;
  color:var(--muted);
  font-weight:700;
  flex-wrap:wrap;
}

.legend-dot{
  display:inline-block;
  width:10px;
  height:10px;
  border-radius:999px;
  margin-right:6px;
}

.chart-bars{
  display:flex;
  align-items:flex-end;
  gap:14px;
  height:230px;
  margin-top:22px;
}

.chart-group{
  flex:1;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:flex-end;
  gap:10px;
}

.bar-wrap{
  width:100%;
  display:flex;
  align-items:flex-end;
  justify-content:center;
  gap:8px;
  height:175px;
}

.bar{
  width:18px;
  border-radius:12px 12px 0 0;
}

.bar.in{
  background:linear-gradient(180deg,#d9ff00,#a3e635);
}

.bar.out{
  background:linear-gradient(180deg,#f9a8d4,#fb7185);
}

.chart-label{
  font-size:12px;
  color:var(--muted);
  font-weight:700;
}

.chart-action{
  margin-top:22px;
  display:flex;
  justify-content:center;
}

.chart-link-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:12px 20px;
  border-radius:999px;
  background:#0f172a;
  color:#fff;
  font-size:14px;
  font-weight:800;
  box-shadow:0 14px 28px rgba(15,23,42,0.18);
}

.white-card{
  padding:24px;
  margin-top:22px;
}

.transaction-list{
  display:flex;
  flex-direction:column;
  gap:12px;
}

.transaction-item{
  border:1px solid #edf2f7;
  background:#fff;
  border-radius:22px;
  padding:16px;
}

.transaction-left{
  display:flex;
  align-items:center;
  gap:12px;
}

.transaction-icon{
  width:46px;
  height:46px;
  border-radius:16px;
  background:#f8fafc;
  display:flex;
  align-items:center;
  justify-content:center;
  color:#475569;
  border:1px solid #e5e7eb;
}

.transaction-name{
  font-weight:800;
  font-size:15px;
  color:#0f172a;
}

.transaction-date{
  font-size:12px;
  color:var(--muted);
  font-weight:600;
  margin-top:4px;
}

.amount-income,
.amount-expense,
.amount-saving{
  font-weight:800;
  font-size:15px;
  letter-spacing:-0.02em;
}

.amount-income{ color:var(--success); }
.amount-expense{ color:var(--danger); }
.amount-saving{ color:var(--accent); }

.wallet-list{
  display:flex;
  flex-direction:column;
  gap:14px;
}

.wallet-item{
  background:#fff;
  border:1px solid #edf2f7;
  border-radius:22px;
  padding:16px;
  box-shadow:var(--shadow);
  display:flex;
  justify-content:space-between;
  align-items:center;
}

.wallet-left{
  display:flex;
  align-items:center;
  gap:14px;
}

.wallet-icon{
  width:48px;
  height:48px;
  border-radius:16px;
  background:linear-gradient(135deg,#eff6ff,#dbeafe);
  color:#2563eb;
  display:flex;
  align-items:center;
  justify-content:center;
}

.wallet-name{
  font-weight:800;
  font-size:15px;
}

.wallet-type{
  font-size:12px;
  color:var(--muted);
  margin-top:4px;
  font-weight:600;
}

.wallet-amount{
  font-weight:800;
  font-size:15px;
}

.form-card,
.info-card{
  padding:24px;
}

.info-card{
  margin-bottom:16px;
}

.info-row{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  padding:12px 0;
  border-bottom:1px solid #edf2f7;
}

.info-row:last-child{
  border-bottom:none;
}

.badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:7px 12px;
  border-radius:999px;
  font-size:12px;
  font-weight:700;
  background:#f1f5f9;
  color:#475569;
}

.form-group{
  margin-bottom:16px;
}

label{
  display:block;
  margin-bottom:8px;
  font-weight:700;
  font-size:13px;
  color:#475569;
}

input, select, textarea{
  width:100%;
  padding:14px 16px;
  border:1px solid #dbe3ee;
  border-radius:18px;
  font-size:14px;
  background:#f8fafc;
  color:#0f172a;
  font-family:'Plus Jakarta Sans', sans-serif;
  outline:none;
  transition:.2s ease;
}

input:focus, select:focus, textarea:focus{
  border-color:#93c5fd;
  box-shadow:0 0 0 4px rgba(59,130,246,0.10);
  background:#fff;
}

textarea{
  min-height:96px;
  resize:vertical;
}

.btn-primary,
.btn-primary-inline{
  border:none;
  background:linear-gradient(135deg,#0f172a,#1f2937);
  color:#fff;
  padding:15px 18px;
  border-radius:18px;
  font-size:15px;
  font-weight:800;
  cursor:pointer;
  box-shadow:0 16px 28px rgba(15,23,42,0.18);
}

.btn-primary{
  width:100%;
}

.btn-secondary{
  background:#eef2f7;
  color:#0f172a;
  border-radius:18px;
  padding:15px 18px;
  font-size:15px;
  font-weight:800;
  text-align:center;
}

.small-link{
  color:#2563eb;
  font-weight:800;
  font-size:13px;
}

.table-wrap{
  overflow:auto;
  margin-top:14px;
}

table{
  width:100%;
  border-collapse:collapse;
  background:#fff;
}

th, td{
  padding:14px 12px;
  border-bottom:1px solid #edf2f7;
  text-align:left;
  font-size:14px;
  vertical-align:top;
}

th{
  font-size:12px;
  color:#64748b;
  text-transform:uppercase;
  letter-spacing:.08em;
  font-weight:800;
  background:#f8fafc;
}

.currency-box{
  display:flex;
  gap:10px;
  margin-bottom:16px;
  flex-wrap:wrap;
}

.currency-pill{
  padding:10px 14px;
  background:#fff;
  border:1px solid #e5e7eb;
  border-radius:999px;
  font-size:13px;
  font-weight:800;
  color:#334155;
  box-shadow:var(--shadow);
}

.note{
  color:#64748b;
  font-size:13px;
  font-weight:600;
}

.bottom-nav{
  position:fixed;
  left:50%;
  transform:translateX(-50%);
  bottom:14px;
  width:min(760px, calc(100% - 24px));
  background:rgba(255,255,255,0.9);
  backdrop-filter:blur(14px);
  border:1px solid rgba(226,232,240,0.9);
  height:82px;
  border-radius:28px;
  box-shadow:0 16px 40px rgba(15,23,42,0.12);
  display:flex;
  align-items:center;
  justify-content:space-around;
  z-index:50;
}

.nav-link{
  width:60px;
  color:#94a3b8;
  display:flex;
  align-items:center;
  justify-content:center;
}

.nav-link-inner{
  width:48px;
  height:48px;
  border-radius:16px;
  display:flex;
  align-items:center;
  justify-content:center;
  transition:.2s ease;
}

.nav-link.active{
  color:#2563eb;
}

.nav-link.active .nav-link-inner{
  background:#eff6ff;
}

.nav-center{
  width:74px;
  height:74px;
  margin-top:-34px;
  border-radius:999px;
  background:linear-gradient(135deg,#111827,#1f2937);
  color:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
  box-shadow:0 18px 34px rgba(15,23,42,0.26);
  border:8px solid var(--bg);
}

.status-alert{
  padding:14px 16px;
  border-radius:18px;
  margin-bottom:16px;
  font-size:14px;
  font-weight:800;
}

.status-success{
  background:#ecfdf5;
  color:#047857;
  border:1px solid #bbf7d0;
}

.action-wrap{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
}

.btn-edit{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:8px 12px;
  border-radius:999px;
  background:#eef2ff;
  color:#4338ca;
  font-size:12px;
  font-weight:800;
}

.btn-delete{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:8px 12px;
  border-radius:999px;
  background:#fff1f2;
  color:#e11d48;
  font-size:12px;
  font-weight:800;
}

.form-actions{
  display:flex;
  gap:12px;
  margin-top:18px;
  flex-wrap:wrap;
}

@media (max-width: 900px){
  .container{
    max-width:760px;
  }

  .page-title{
    font-size:36px;
  }

  .big-balance{
    font-size:46px;
  }
}

@media (max-width: 680px){
  .container{
    max-width:460px;
    padding:18px 16px 110px;
  }

  .page-title{
    font-size:30px;
  }

  .page-subtitle{
    font-size:14px;
  }

  .brand-name{
    font-size:22px;
  }

  .big-balance{
    font-size:38px;
  }

  .mini-grid{
    grid-template-columns:1fr;
  }

  .bottom-nav{
    width:min(460px, calc(100% - 20px));
    height:78px;
  }

  .nav-center{
    width:70px;
    height:70px;
  }

  .info-row{
    flex-direction:column;
    align-items:flex-start;
  }
}

@media (min-width: 768px){
  .summary-scroll{
    overflow-x:visible;
  }

  .summary-row{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    min-width:0;
  }

  .summary-box{
    width:auto;
  }
}
.bottom-nav{
  position:fixed;
  left:50%;
  transform:translateX(-50%);
  bottom:14px;
  width:min(760px, calc(100% - 24px));
  background:rgba(255,255,255,0.9);
  backdrop-filter:blur(14px);
  border:1px solid rgba(226,232,240,0.9);
  height:82px;
  border-radius:28px;
  box-shadow:0 16px 40px rgba(15,23,42,0.12);
  display:flex;
  align-items:center;
  justify-content:space-around;
  z-index:50;
}

.nav-link{
  width:60px;
  color:#94a3b8;
  display:flex;
  align-items:center;
  justify-content:center;
}

.nav-link-inner{
  width:48px;
  height:48px;
  border-radius:16px;
  display:flex;
  align-items:center;
  justify-content:center;
  transition:.2s ease;
}

.nav-link.active{
  color:#2563eb;
}

.nav-link.active .nav-link-inner{
  background:#eff6ff;
}

.nav-center{
  width:74px;
  height:74px;
  margin-top:-34px;
  border-radius:999px;
  background:linear-gradient(135deg,#111827,#1f2937);
  color:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
  box-shadow:0 18px 34px rgba(15,23,42,0.26);
  border:8px solid #f5f7fb;
}

.nav-link-inner i,
.nav-center i{
  width:20px;
  height:20px;
}

<script>
  document.addEventListener("DOMContentLoaded", function () {
    lucide.createIcons();
  });
</script>