:root {
  --navy: #0b1f3a;
  --navy-2: #0f2a4a;
  --blue: #1e6fd9;
  --blue-light: #4f9cf0;
  --blue-bg: #eef5ff;
  --gold: #f5a623;
  --green: #16a34a;
  --red: #e0453b;
  --text: #1a2233;
  --muted: #6b7686;
  --border: #e6e9ef;
  --bg: #f4f6fb;
  --card: #ffffff;
  --radius: 14px;
  --shadow: 0 2px 10px rgba(15, 42, 74, 0.06);
  --shadow-lg: 0 8px 30px rgba(15, 42, 74, 0.12);
}

* { box-sizing: border-box; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  margin: 0;
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }

/* ---------- Auth pages (login/register/forgot) ---------- */
.auth-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(1200px 600px at 10% -10%, #16345f 0%, var(--navy) 45%, #071224 100%);
  padding: 24px;
}
.auth-card {
  width: 100%;
  max-width: 420px;
  background: var(--card);
  border-radius: 18px;
  box-shadow: var(--shadow-lg);
  padding: 36px 32px;
}
.auth-logo { text-align: center; margin-bottom: 18px; }
.auth-logo img { width: 84px; height: 84px; object-fit: contain; }
.auth-title { text-align: center; font-weight: 700; font-size: 22px; margin: 6px 0 2px; }
.auth-sub { text-align: center; color: var(--muted); font-size: 14px; margin-bottom: 24px; }

.form-label { font-weight: 600; font-size: 13.5px; color: var(--text); margin-bottom: 6px; display: block; }
.form-control {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-size: 14.5px;
  margin-bottom: 16px;
  background: #fbfcfe;
  transition: border-color .15s, box-shadow .15s;
}
.form-control:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(30, 111, 217, 0.14);
  background: #fff;
}
select.form-control { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236b7686' stroke-width='1.6' fill='none' fill-rule='evenodd'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 10px;
  border: none;
  font-weight: 600;
  font-size: 14.5px;
  cursor: pointer;
  transition: transform .1s, box-shadow .15s, background .15s;
}
.btn-primary { background: linear-gradient(135deg, var(--blue), #1552a8); color: #fff; box-shadow: 0 4px 14px rgba(30,111,217,.35); }
.btn-primary:hover { box-shadow: 0 6px 18px rgba(30,111,217,.45); transform: translateY(-1px); }
.btn-block { width: 100%; }
.btn-outline { background: #fff; border: 1.5px solid var(--border); color: var(--text); }
.btn-outline:hover { border-color: var(--blue); color: var(--blue); }
.btn-danger { background: #fdeceb; color: var(--red); }
.btn-sm { padding: 7px 14px; font-size: 13px; }

.auth-links { text-align: center; margin-top: 18px; font-size: 13.5px; color: var(--muted); }
.auth-links a { color: var(--blue); font-weight: 600; }

.alert { padding: 12px 16px; border-radius: 10px; font-size: 13.5px; margin-bottom: 16px; }
.alert-error { background: #fdeceb; color: #b32a20; border: 1px solid #f5c6c2; }
.alert-success { background: #eafaf0; color: #157347; border: 1px solid #bfe8cf; }
.alert-info { background: var(--blue-bg); color: #17508c; border: 1px solid #cfe3fb; }

/* ---------- App shell ---------- */
.app-shell { display: flex; min-height: 100vh; }

.sidebar {
  width: 250px;
  background: linear-gradient(180deg, var(--navy-2), var(--navy));
  color: #cfe0f5;
  flex-shrink: 0;
  position: fixed;
  top: 0; left: 0; bottom: 0;
  display: flex;
  flex-direction: column;
  z-index: 1000;
  transition: transform .25s ease;
}
.sidebar-brand {
  display: flex; align-items: center; gap: 10px;
  padding: 22px 20px 18px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.sidebar-brand img { width: 38px; height: 38px; object-fit: contain; }
.sidebar-brand .name { font-weight: 700; font-size: 16px; color: #fff; line-height: 1.2; }
.sidebar-brand .tag { font-size: 10.5px; letter-spacing: .5px; color: #9fb4d1; text-transform: uppercase; }

.sidebar-nav { padding: 14px 12px; flex: 1; overflow-y: auto; }
.sidebar-nav a {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 14px; border-radius: 10px;
  color: #b9cbe4; font-size: 14px; font-weight: 500;
  margin-bottom: 3px;
  transition: background .15s, color .15s;
}
.sidebar-nav a svg { width: 18px; height: 18px; flex-shrink: 0; }
.sidebar-nav a:hover { background: rgba(255,255,255,.06); color: #fff; }
.sidebar-nav a.active { background: var(--blue); color: #fff; box-shadow: 0 4px 14px rgba(30,111,217,.4); }
.sidebar-nav .nav-badge {
  margin-left: auto; background: var(--red); color: #fff; font-size: 10.5px;
  padding: 1px 7px; border-radius: 20px; font-weight: 700;
}

.sidebar-footer { padding: 14px 20px 18px; font-size: 11px; color: #7d94b5; border-top: 1px solid rgba(255,255,255,.08); }

.main-area { margin-left: 250px; flex: 1; min-width: 0; display: flex; flex-direction: column; }

.topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 28px; background: #fff; border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 900;
}
.topbar h1 { font-size: 20px; margin: 0; font-weight: 700; }
.topbar .sub { color: var(--muted); font-size: 13px; margin-top: 2px; }
.hamburger { display: none; background: none; border: none; cursor: pointer; padding: 6px; }
.hamburger svg { width: 24px; height: 24px; }

.topbar-actions { display: flex; align-items: center; gap: 14px; }
.avatar-badge {
  width: 36px; height: 36px; border-radius: 50%; background: var(--blue);
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 14px;
}

.page-content { padding: 24px 28px 60px; flex: 1; }

.sidebar-backdrop { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.4); z-index: 999; }

/* ---------- Dashboard cards ---------- */
.grid { display: grid; gap: 18px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--card); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 22px;
  border: 1px solid var(--border);
}
.card h3 { margin: 0 0 4px; font-size: 15.5px; font-weight: 700; }
.card .card-sub { color: var(--muted); font-size: 12.5px; margin-bottom: 14px; }

.balance-card {
  background: linear-gradient(120deg, var(--navy-2), #123a68 60%, #164a86);
  color: #fff; border: none;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px;
}
.balance-card .label { font-size: 12.5px; color: #b7cbe8; text-transform: uppercase; letter-spacing: .4px; }
.balance-card .amount { font-size: 34px; font-weight: 800; margin-top: 4px; }
.balance-card .note { font-size: 12.5px; color: #9db6d9; margin-top: 4px; }
.balance-stats { display: flex; gap: 26px; }
.balance-stats div span { display: block; }
.balance-stats .stat-label { font-size: 11.5px; color: #9db6d9; text-transform: uppercase; }
.balance-stats .stat-val { font-size: 18px; font-weight: 700; margin-top: 2px; }

.stat-card .stat-num { font-size: 26px; font-weight: 800; margin-top: 2px; }
.stat-card .stat-num.danger { color: var(--red); }
.stat-card .stat-num.good { color: var(--green); }

.cat-row { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.cat-row:last-child { border-bottom: none; }
.cat-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.cat-row .cat-name { flex: 1; font-size: 13.5px; font-weight: 600; }
.cat-row .cat-amt { font-size: 13px; color: var(--muted); }
.bar-track { height: 6px; background: var(--border); border-radius: 6px; overflow: hidden; margin-top: 6px; }
.bar-fill { height: 100%; border-radius: 6px; }

.table-wrap { overflow-x: auto; }
table.data-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
table.data-table th { text-align: left; color: var(--muted); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .3px; padding: 10px 12px; border-bottom: 2px solid var(--border); white-space: nowrap; }
table.data-table td { padding: 12px; border-bottom: 1px solid var(--border); vertical-align: middle; }
table.data-table tr:hover td { background: #fafbfd; }

.badge { display: inline-block; padding: 3px 10px; border-radius: 20px; font-size: 11.5px; font-weight: 700; }
.badge-green { background: #eafaf0; color: #157347; }
.badge-red { background: #fdeceb; color: #b32a20; }
.badge-blue { background: var(--blue-bg); color: #17508c; }
.badge-gray { background: #f0f2f6; color: var(--muted); }

.empty-state { text-align: center; padding: 40px 20px; color: var(--muted); }
.empty-state svg { width: 48px; height: 48px; color: #c4cede; margin-bottom: 10px; }

/* Modal */
.modal-backdrop-custom { display: none; position: fixed; inset: 0; background: rgba(10,20,40,.5); z-index: 1200; align-items: center; justify-content: center; padding: 20px; }
.modal-backdrop-custom.open { display: flex; }
.modal-box { background: #fff; border-radius: 16px; width: 100%; max-width: 480px; padding: 26px; max-height: 90vh; overflow-y: auto; box-shadow: var(--shadow-lg); }
.modal-box h3 { margin-top: 0; }
.modal-close { float: right; cursor: pointer; color: var(--muted); font-size: 20px; line-height: 1; background: none; border: none; }

.page-header { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-bottom: 20px; }
.page-header h2 { margin: 0; font-size: 19px; font-weight: 700; }

.month-switch { display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 6px 6px; }
.month-switch button { background: none; border: none; cursor: pointer; padding: 4px 8px; color: var(--blue); font-weight: 700; border-radius: 6px; }
.month-switch button:hover { background: var(--blue-bg); }
.month-switch .m-label { font-weight: 700; font-size: 13.5px; min-width: 110px; text-align: center; }

.color-swatch { width: 26px; height: 26px; border-radius: 50%; display: inline-block; border: 2px solid #fff; box-shadow: 0 0 0 1.5px var(--border); cursor: pointer; }
.color-swatch.selected { box-shadow: 0 0 0 2px var(--blue); }

.notif-item { display: flex; gap: 12px; padding: 14px 4px; border-bottom: 1px solid var(--border); }
.notif-item:last-child { border-bottom: none; }
.notif-icon { width: 38px; height: 38px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.notif-icon.warning { background: #fff4e2; color: var(--gold); }
.notif-icon.danger { background: #fdeceb; color: var(--red); }
.notif-icon.info { background: var(--blue-bg); color: var(--blue); }
.notif-text { font-size: 13.5px; }
.notif-time { font-size: 11.5px; color: var(--muted); margin-top: 3px; }
.notif-item.unread { background: #f7fbff; border-radius: 10px; }

/* ---------- Responsive ---------- */
@media (max-width: 992px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .sidebar { transform: translateX(-100%); width: 250px; }
  .sidebar.open { transform: translateX(0); }
  .sidebar-backdrop.open { display: block; }
  .main-area { margin-left: 0; }
  .hamburger { display: inline-flex; }
  .topbar { padding: 14px 16px; }
  .topbar h1 { font-size: 17px; }
  .page-content { padding: 16px 14px 50px; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .balance-card { flex-direction: column; align-items: flex-start; }
  .balance-stats { gap: 18px; flex-wrap: wrap; }
  .balance-card .amount { font-size: 28px; }
  .auth-card { padding: 28px 22px; }
  .page-header { align-items: stretch; }
  table.data-table { font-size: 12.5px; }
  .card { padding: 16px; }
}

@media (max-width: 480px) {
  .balance-stats { gap: 14px; }
}

/* ==========================================================================
   Auth landing pages (login / register) — header + marketing panel + footer
   ========================================================================== */

.auth-page { min-height: 100vh; display: flex; flex-direction: column; background: var(--bg); }

.site-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 5vw; background: #fff; border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 50;
}
.site-header .brand { display: flex; align-items: center; gap: 10px; }
.site-header .brand img { width: 34px; height: 34px; object-fit: contain; }
.site-header .brand .name { font-weight: 800; font-size: 16px; color: var(--text); line-height: 1.1; }
.site-header .brand .tag { font-size: 10px; letter-spacing: .4px; color: var(--muted); text-transform: uppercase; }
.site-header nav { display: flex; align-items: center; gap: 28px; }
.site-header nav a.nav-link { font-size: 13.5px; font-weight: 600; color: var(--muted); }
.site-header nav a.nav-link:hover { color: var(--blue); }
.site-header .header-cta { display: flex; align-items: center; gap: 10px; }
.site-header .header-cta .btn { padding: 9px 18px; font-size: 13.5px; }

.auth-hero {
  flex: 1; display: grid; grid-template-columns: 1.15fr 1fr; gap: 60px;
  align-items: center; max-width: 1180px; margin: 0 auto; width: 100%;
  padding: 56px 5vw 60px;
}

.marketing-panel h1 {
  font-size: 34px; line-height: 1.18; font-weight: 800; margin: 0 0 14px; color: var(--navy);
  letter-spacing: -.3px;
}
.marketing-panel h1 span { color: var(--blue); }
.marketing-panel > p.lead { font-size: 15.5px; color: var(--muted); line-height: 1.6; margin: 0 0 28px; max-width: 460px; }

.feature-list { list-style: none; padding: 0; margin: 0 0 30px; display: flex; flex-direction: column; gap: 16px; }
.feature-list li { display: flex; align-items: flex-start; gap: 14px; }
.feature-icon {
  width: 38px; height: 38px; border-radius: 10px; background: var(--blue-bg); color: var(--blue);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.feature-icon svg { width: 19px; height: 19px; }
.feature-text .t { font-weight: 700; font-size: 14px; color: var(--text); margin-bottom: 2px; }
.feature-text .d { font-size: 13px; color: var(--muted); line-height: 1.5; }

.steps-panel {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px 22px; margin-bottom: 24px; box-shadow: var(--shadow);
}
.steps-panel .steps-title { font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; color: var(--muted); margin-bottom: 14px; }
.steps-row { display: flex; gap: 18px; flex-wrap: wrap; }
.step-item { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 150px; }
.step-num {
  width: 26px; height: 26px; border-radius: 50%; background: var(--navy); color: #fff;
  font-size: 12.5px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.step-item .step-label { font-size: 13px; font-weight: 600; color: var(--text); }

.trust-row { display: flex; gap: 10px; flex-wrap: wrap; }
.trust-chip {
  display: inline-flex; align-items: center; gap: 6px; background: #fff; border: 1px solid var(--border);
  padding: 7px 13px; border-radius: 20px; font-size: 12.5px; font-weight: 600; color: var(--text);
}
.trust-chip svg { width: 14px; height: 14px; color: var(--green); flex-shrink: 0; }

.auth-side { display: flex; justify-content: center; }
.auth-side .auth-card { box-shadow: var(--shadow-lg); }

.auth-wrap.auth-wrap-inline { min-height: 0; background: var(--bg); }

.site-footer {
  background: var(--navy); color: #a9bcd6; padding: 26px 5vw; margin-top: auto;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-size: 12.5px;
}
.site-footer .foot-brand { display: flex; align-items: center; gap: 8px; color: #fff; font-weight: 700; font-size: 13.5px; }
.site-footer .foot-brand img { width: 22px; height: 22px; }
.site-footer nav { display: flex; gap: 20px; }
.site-footer nav a { color: #a9bcd6; }
.site-footer nav a:hover { color: #fff; }

@media (max-width: 900px) {
  .auth-hero { grid-template-columns: 1fr; gap: 40px; padding: 36px 6vw 50px; }
  .marketing-panel { order: 2; }
  .auth-side { order: 1; }
  .marketing-panel h1 { font-size: 27px; }
  .site-header nav.main-nav { display: none; }
}
@media (max-width: 480px) {
  .site-header { padding: 14px 5vw; }
  .site-footer { flex-direction: column; align-items: flex-start; text-align: left; }
  .steps-row { flex-direction: column; gap: 12px; }
}

/* ---------- Responsive polish + wallet/budget additions ---------- */
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card-title-row { display:flex; align-items:flex-start; justify-content:space-between; gap:14px; }
.stat-heading-row { display:flex; align-items:center; justify-content:space-between; gap:8px; }
.icon-btn { width:30px; height:30px; border:1px solid var(--border); background:#fff; color:var(--blue); border-radius:8px; cursor:pointer; font-size:15px; }
.icon-btn:hover { background:var(--blue-bg); border-color:#cfe3fb; }
.stat-num-money { white-space:nowrap; }
.form-hint { color:var(--muted); font-size:12px; margin:-8px 0 16px; }
.budget-summary-row { display:grid; grid-template-columns:repeat(3,1fr); gap:12px; margin:8px 0 14px; }
.budget-summary-row div { background:#f7f9fc; border:1px solid var(--border); border-radius:10px; padding:10px 12px; }
.budget-summary-row strong { display:block; font-size:16px; }
.budget-summary-row span { display:block; color:var(--muted); font-size:11px; margin-top:2px; }
.budget-track { height:9px; }
.compact-empty { padding:24px 10px; }
.compact-empty p { margin:0 0 12px; }
.wallet-dashboard-card { min-height:100%; }
.wallet-total { font-size:30px; font-weight:800; margin:2px 0 12px; color:var(--green); }
.wallet-mini-row { display:grid; grid-template-columns:32px minmax(0,1fr) auto; align-items:center; gap:10px; padding:9px 0; border-top:1px solid var(--border); }
.wallet-mini-row > div { min-width:0; }
.wallet-mini-row strong { font-size:13px; }
.wallet-mini-row small { display:block; color:var(--muted); font-size:11px; margin-top:2px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.wallet-mini-icon { width:30px; height:30px; display:flex; align-items:center; justify-content:center; border-radius:9px; background:#eafaf0; color:var(--green); font-size:11px; font-weight:800; }
.wallet-empty, .page-header-note { color:var(--muted); font-size:12.5px; line-height:1.5; }
.page-header-note { margin-top:4px; max-width:650px; }
.wallet-empty-icon { width:56px; height:56px; margin:0 auto 10px; border-radius:16px; display:flex; align-items:center; justify-content:center; background:#eafaf0; color:var(--green); font-size:25px; font-weight:800; }
.wallet-table tfoot td { background:#f8fafc; border-top:2px solid var(--border); border-bottom:0; }
.actions-cell { white-space:nowrap; }
.category-split-wrap { display:flex; align-items:center; gap:24px; flex-wrap:wrap; }
.category-donut { width:150px; height:150px; border-radius:50%; flex-shrink:0; box-shadow:inset 0 0 0 34px #fff; }
.category-legend { flex:1; min-width:160px; }
.legend-row { display:flex; align-items:center; gap:8px; font-size:13px; margin-bottom:8px; }
.legend-row span:nth-child(2) { flex:1; min-width:0; }
.text-truncate { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.recent-amount { font-weight:700; color:var(--text); white-space:nowrap; }
.trend-chart { display:flex; align-items:flex-end; gap:14px; height:160px; padding-top:10px; }
.trend-month { flex:1; min-width:28px; display:flex; flex-direction:column; align-items:center; justify-content:flex-end; height:100%; }
.trend-bars { display:flex; align-items:flex-end; gap:3px; height:120px; }
.trend-bar { width:9px; border-radius:4px 4px 0 0; }
.income-bar { background:var(--blue); }
.expense-bar { background:var(--gold); }
.trend-label { font-size:11px; color:var(--muted); margin-top:8px; }
.trend-legend { display:flex; gap:16px; margin-top:8px; font-size:12px; color:var(--muted); }
.trend-legend i { display:inline-block; width:9px; height:9px; border-radius:2px; margin-right:5px; }
.income-key { background:var(--blue); }
.expense-key { background:var(--gold); }

@media (max-width: 1180px) {
  .page-content { padding-left:22px; padding-right:22px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .balance-stats { gap:18px; }
}

@media (max-width: 768px) {
  .page-content { padding:16px 14px 42px; }
  .topbar { min-height:64px; }
  .topbar > div:first-child { min-width:0; }
  .topbar h1 { white-space:nowrap; overflow:hidden; text-overflow:ellipsis; max-width:55vw; }
  .topbar .sub { white-space:nowrap; overflow:hidden; text-overflow:ellipsis; max-width:58vw; }
  .topbar-actions { gap:10px; }
  .balance-card { padding:18px; }
  .balance-card .amount { font-size:30px; }
  .balance-stats { width:100%; display:grid; grid-template-columns:repeat(2, minmax(0,1fr)); gap:14px 18px; }
  .balance-stats .stat-val { font-size:15px; }
  .dashboard-stats { grid-template-columns:1fr 1fr; }
  .page-header { width:100%; }
  .page-header > div:first-child { min-width:0; }
  .page-header .btn { max-width:100%; }
  .card-title-row { align-items:flex-start; }
  .card-title-row > div { min-width:0; }
  .table-wrap { margin-left:-2px; margin-right:-2px; padding-bottom:3px; }
  table.data-table { min-width:650px; }
  .wallet-table { min-width:760px; }
  .budget-summary-row { grid-template-columns:1fr 1fr 1fr; }
  .category-split-wrap { gap:18px; }
}

@media (max-width: 560px) {
  .dashboard-stats, .grid-4 { grid-template-columns:1fr; }
  .page-header { align-items:stretch; }
  .page-header > .month-switch, .page-header > .btn, .page-header > div:last-child { width:100%; }
  .page-header > .btn { width:100%; }
  .month-switch { justify-content:space-between; }
  .month-switch .m-label { flex:1; }
  .page-header-note { max-width:none; }
  .card { padding:16px; }
  .card-title-row { flex-direction:column; }
  .card-title-row .btn { align-self:flex-start; }
  .budget-summary-row { grid-template-columns:1fr; }
  .budget-summary-row div { display:flex; align-items:center; justify-content:space-between; gap:10px; }
  .budget-summary-row strong { font-size:14px; }
  .budget-summary-row span { margin:0; }
  .category-split-wrap { justify-content:center; }
  .category-legend { width:100%; }
  .wallet-total { font-size:26px; }
  .trend-chart { gap:9px; }
  .trend-bar { width:7px; }
  .sidebar-brand { padding-top:18px; }
}

@media (max-width: 380px) {
  .page-content { padding-left:10px; padding-right:10px; }
  .topbar { padding-left:10px; padding-right:10px; }
  .topbar-actions .avatar-badge { width:32px; height:32px; }
  .balance-stats { gap:12px; }
  .balance-stats .stat-label { font-size:10px; }
  .balance-stats .stat-val { font-size:13px; }
  .btn { padding-left:14px; padding-right:14px; }
}
