:root {
  --background: #f6f8fb;
  --surface: #ffffff;
  --sidebar-bg: #07131d;
  --sidebar-bg-2: #0b1722;
  --sidebar-active: rgba(20, 184, 166, .12);
  --primary: #14b8a6;
  --primary-hover: #0f9f91;
  --text-primary: #111827;
  --text-secondary: #64748b;
  --text-muted: #94a3b8;
  --border: #e2e8f0;
  --success: #16a34a;
  --danger: #ef4444;
  --warning: #f59e0b;
  --info: #3b82f6;
  --purple: #a855f7;
  --pink: #ec4899;
  --card-radius: 16px;
  --button-radius: 10px;
  --tile-radius: 12px;
  --card-shadow: 0 10px 30px rgba(15, 23, 42, .06);
  --hover-shadow: 0 16px 40px rgba(15, 23, 42, .1);
}

* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--background);
  color: var(--text-primary);
  font-family: Inter, Manrope, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; letter-spacing: 0; }
button:disabled { cursor: not-allowed; opacity: .55; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid rgba(20, 184, 166, .24);
  outline-offset: 2px;
}

.app-shell { display: grid; grid-template-columns: 260px minmax(0, 1fr); min-height: 100vh; transition: grid-template-columns .2s ease; }
.app-shell.sidebar-collapsed { grid-template-columns: 78px minmax(0, 1fr); }
.sidebar {
  position: sticky;
  top: 0;
  z-index: 30;
  height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 24px 14px;
  color: #dbe8ef;
  background: radial-gradient(circle at 25% 0, rgba(20,184,166,.18), transparent 28%), linear-gradient(180deg, var(--sidebar-bg), var(--sidebar-bg-2));
  box-shadow: inset -1px 0 rgba(255,255,255,.05);
}
.brand-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 26px; }
.brand { display: inline-flex; align-items: center; gap: 10px; min-width: 0; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  color: var(--primary);
  border: 2px solid rgba(20,184,166,.85);
  font-size: 18px;
}
.brand-copy strong { color: #fff; font-size: 22px; line-height: 1; }
.sidebar-toggle {
  width: 30px;
  height: 30px;
  min-height: 30px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #c7d3dc;
  box-shadow: none;
}
.nav { display: grid; gap: 7px; }
.nav a {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 42px;
  padding: 10px 12px;
  border-radius: 10px;
  color: #c7d3dc;
  font-weight: 600;
  transition: background .16s ease, color .16s ease, transform .16s ease;
}
.nav a:hover { background: rgba(255,255,255,.07); color: #fff; }
.nav a.active { background: var(--sidebar-active); color: var(--primary); }
.nav a.active::before {
  content: "";
  position: absolute;
  left: -10px;
  top: 9px;
  bottom: 9px;
  width: 3px;
  border-radius: 99px;
  background: var(--primary);
}
.nav-icon { width: 22px; text-align: center; font-size: 18px; color: currentColor; }
.nav-secondary { margin-top: auto; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.09); }
.bank-promo {
  margin-top: 22px;
  padding: 18px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.035));
}
.bank-promo strong { display: block; color: #fff; font-size: 15px; margin-bottom: 10px; }
.bank-promo p { margin: 0 0 16px; color: #b7c6d0; font-size: 13px; line-height: 1.45; }
.bank-promo button {
  width: 100%;
  min-height: 42px;
  border: 0;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), #0ea5a4);
  color: #fff;
  font-weight: 800;
}
.sidebar-collapsed .brand-copy, .sidebar-collapsed .nav-text, .sidebar-collapsed .bank-promo, .sidebar-collapsed .sidebar-toggle { display: none; }
.sidebar-collapsed .sidebar { padding-inline: 12px; }
.sidebar-collapsed .brand-row { justify-content: center; }
.sidebar-collapsed .nav a { justify-content: center; padding-inline: 8px; }

.main { min-width: 0; padding: 24px; }
.topbar { height: 48px; display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 24px; }
.topbar h1 { margin: 0; font-size: 28px; line-height: 1.15; font-weight: 750; letter-spacing: 0; }
.topbar-actions { display: flex; align-items: center; gap: 10px; }
.square-button, .button, .user-button, .quick-action, .wide-link {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-primary);
  border-radius: var(--button-radius);
  box-shadow: 0 3px 12px rgba(15,23,42,.04);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease, background .15s ease;
}
.square-button:hover, .button:hover, .user-button:hover, .quick-action:hover, .wide-link:hover { box-shadow: var(--hover-shadow); transform: translateY(-1px); }
.square-button { display: grid; place-items: center; width: 42px; height: 42px; min-height: 42px; padding: 0; color: var(--text-secondary); }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 0 18px; font-weight: 750; }
.button.primary { border-color: transparent; background: linear-gradient(135deg, #0ea5a4, #059f91); color: #fff; }
.button.primary:hover { background: var(--primary-hover); }
.button.split { width: 42px; padding: 0; border-left: 1px solid rgba(255,255,255,.28); }
.split-action, .menu-wrap, .search-control { position: relative; display: flex; align-items: center; }
.search-control input {
  position: absolute;
  right: 0;
  width: 0;
  opacity: 0;
  pointer-events: none;
  height: 42px;
  border: 1px solid var(--border);
  border-radius: var(--button-radius);
  padding: 0 42px 0 14px;
  transition: width .18s ease, opacity .18s ease;
}
.search-control.open input { width: 260px; opacity: 1; pointer-events: auto; }
.notification-button { position: relative; }
.notification-button span {
  position: absolute;
  right: -4px;
  top: -5px;
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
}
.user-button { display: flex; align-items: center; gap: 10px; min-height: 46px; padding: 5px 10px 5px 6px; }
.avatar {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, #e2e8f0, #cbd5e1);
  color: #0f172a;
  font-weight: 900;
}
.user-meta { display: grid; text-align: left; line-height: 1.15; }
.user-meta b { font-size: 14px; }
.user-meta small { color: var(--primary); font-size: 12px; font-weight: 700; }
.menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 50;
  min-width: 210px;
  display: none;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--hover-shadow);
}
.menu.open { display: grid; gap: 4px; }
.menu a, .menu button, .menu p {
  width: 100%;
  margin: 0;
  padding: 9px 10px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--text-primary);
  text-align: left;
  box-shadow: none;
}
.menu a:hover, .menu button:hover { background: #f1f5f9; }
.notification-menu { min-width: 300px; }
.notification-menu strong { padding: 6px 10px 4px; }
.notification-menu p { color: var(--text-secondary); font-size: 13px; line-height: 1.35; }

.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1fr) 392px; gap: 16px; align-items: start; }
.dashboard-primary { display: grid; gap: 16px; min-width: 0; }
.right-rail { display: grid; gap: 16px; min-width: 0; }
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--card-radius);
  box-shadow: var(--card-shadow);
}
.panel, .account-card, .kpi {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--card-radius);
  box-shadow: var(--card-shadow);
}
.panel { padding: 20px; }
.panel-table { overflow: hidden; }
.panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 14px; }
.panel-head h2, .workspace-head h2, .account-card h2 { margin: 0; font-size: 17px; line-height: 1.25; }
.section-label { margin: 0 0 6px; color: var(--primary-hover); font-size: 12px; font-weight: 800; text-transform: uppercase; }
.workspace-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.workspace-head h2 { max-width: 720px; font-size: 26px; }
.kpi-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 16px; }
.kpi { padding: 18px; }
.kpi span { display: block; color: var(--text-secondary); margin-bottom: 8px; }
.kpi strong { display: block; font-size: 24px; }
.kpi small { display: block; margin-top: 8px; color: var(--text-secondary); }
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.account-card { display: grid; gap: 14px; padding: 20px; }
.account-card-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.account-card-top p { margin: 0; color: var(--text-secondary); font-size: 13px; }
.account-glyph { display: grid; place-items: center; width: 40px; height: 40px; border-radius: var(--tile-radius); background: #ccfbf1; color: var(--primary-hover); font-weight: 850; }
.account-card > strong { font-size: 26px; }
.progress { height: 8px; overflow: hidden; border-radius: 999px; background: #e2e8f0; }
.progress span { display: block; height: 100%; border-radius: inherit; background: var(--primary); }
.card-action { justify-self: start; min-height: 38px; padding: 9px 12px; border: 1px solid var(--border); border-radius: 10px; background: #fff; font-weight: 700; }
.filters { display: grid; grid-template-columns: minmax(180px, 2fr) repeat(3, minmax(130px, 1fr)) auto; gap: 10px; margin-bottom: 16px; }
.filters.panel { padding: 14px; }
.form-panel { max-width: 780px; }
.muted { color: var(--text-secondary); }
.pagination { display: flex; justify-content: center; gap: 14px; margin: 18px 0; color: var(--text-secondary); font-weight: 700; }
.swatch { display: inline-block; width: 14px; height: 14px; border-radius: 4px; margin-right: 8px; vertical-align: -2px; }
.type {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 3px 8px;
  border-radius: 7px;
  background: #e0f2fe;
  color: #0369a1;
  font-size: 12px;
  font-weight: 700;
}
.type.expense, .type.bill_payment, .type.credit_payment { background: #fee2e2; color: #dc2626; }
.type.income { background: #dcfce7; color: #16a34a; }
.type.transfer { background: #dbeafe; color: #2563eb; }
.danger { color: var(--danger); }
.success { color: var(--success); }
.warning { padding: 10px 12px; border-left: 3px solid var(--warning); border-radius: 10px; background: #fffbeb; color: #92400e; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 14px; }
.card-head h2 { margin: 0; font-size: 17px; line-height: 1.25; font-weight: 760; }
.card-head a { color: #0b7fdd; font-size: 13px; font-weight: 650; }
.summary-card { padding: 24px 24px 18px; }
.summary-metrics { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin-bottom: 30px; }
.summary-metric { min-width: 0; padding: 0 26px; border-left: 1px solid var(--border); }
.summary-metric:first-child { padding-left: 0; border-left: 0; }
.summary-metric span { display: block; color: var(--text-secondary); font-size: 13px; margin-bottom: 8px; }
.summary-metric strong { display: block; font-size: 25px; line-height: 1.05; font-weight: 780; letter-spacing: 0; }
.summary-metric small { display: block; margin-top: 8px; color: var(--text-secondary); font-size: 13px; font-weight: 650; }
.summary-metric small.positive { color: var(--success); }
.summary-metric small.negative { color: var(--danger); }
.chart-toolbar { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 8px; }
.chart-toolbar h2 { margin: 0 0 12px; font-size: 17px; }
.chart-toolbar h2 span { color: var(--text-muted); font-size: 14px; }
.legend { display: flex; align-items: center; gap: 10px; color: var(--text-secondary); font-size: 13px; }
.legend span { display: inline-block; width: 18px; height: 2px; border-radius: 99px; }
.legend-fact { background: var(--primary); }
.legend-plan { border-top: 2px dashed #9db0c2; }
.period-tabs { display: flex; gap: 8px; }
.period-tabs button {
  min-height: 34px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: #fff;
  color: var(--text-secondary);
  box-shadow: none;
  font-size: 13px;
}
.period-tabs button.active { border-color: var(--primary); color: var(--primary-hover); background: #f0fdfa; }
.cashflow-chart { position: relative; height: 276px; }
#trendChart { width: 100%; height: 276px; display: block; }
.chart-tooltip {
  position: absolute;
  display: none;
  min-width: 128px;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  box-shadow: var(--hover-shadow);
  color: var(--text-primary);
  font-size: 12px;
  pointer-events: none;
}
.chart-tooltip.open { display: block; }
.mid-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.mid-grid .card, .right-rail .card, .table-card { padding: 20px; }
.account-items, .category-items, .rail-list { display: grid; gap: 11px; }
.finance-row, .payment-item, .notification-item {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 4px 0;
}
.payment-item { grid-template-columns: 44px minmax(0, 1fr) auto; }
.finance-row:hover, .payment-item:hover, .notification-item:hover { background: #f8fafc; border-radius: 10px; }
.tile {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: var(--tile-radius);
  color: #fff;
  font-weight: 850;
  font-size: 15px;
}
.tile.small { width: 24px; height: 24px; border-radius: 8px; font-size: 12px; }
.green { background: #22c55e; }
.yellow { background: #facc15; color: #172033; }
.blue { background: #3b82f6; }
.cyan { background: #38bdf8; }
.coral { background: #fb7185; }
.red { background: #ef4444; }
.indigo { background: #6366f1; }
.orange { background: #f59e0b; }
.pink { background: #ec4899; }
.purple { background: #a855f7; }
.gray { background: #94a3b8; }
.row-copy { min-width: 0; }
.row-copy b { display: block; overflow: hidden; color: #243244; font-size: 14px; font-weight: 680; text-overflow: ellipsis; white-space: nowrap; }
.row-copy small, .payment-meta small, .notification-item small { display: block; margin-top: 3px; color: var(--text-secondary); font-size: 12px; }
.finance-row strong, .payment-meta strong { font-weight: 760; white-space: nowrap; }
.negative { color: var(--danger); }
.card-total {
  display: flex;
  justify-content: space-between;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  font-weight: 760;
}
.category-row {
  display: grid;
  grid-template-columns: 24px minmax(92px, 1fr) minmax(92px, 1.8fr) auto 44px;
  align-items: center;
  gap: 10px;
}
.category-name { font-size: 13px; font-weight: 640; }
.category-bar { height: 6px; overflow: hidden; border-radius: 99px; background: #e2e8f0; }
.category-bar i { display: block; height: 100%; border-radius: inherit; background: var(--primary); }
.category-bar i.gray { background: #94a3b8; }
.category-row strong, .category-row small { color: var(--text-secondary); font-size: 13px; text-align: right; white-space: nowrap; }
.wide-link {
  display: flex;
  justify-content: center;
  margin-top: 14px;
  min-height: 40px;
  align-items: center;
  color: #475569;
  font-weight: 680;
}
.notice-icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-weight: 850;
}
.notice-icon.warning { background: #fff7ed; color: var(--warning); }
.notice-icon.info { background: #eff6ff; color: var(--info); }
.notice-icon.success { background: #ecfdf5; color: var(--success); }
.notification-item { grid-template-columns: 32px minmax(0,1fr); align-items: start; }
.notification-item b { display: block; font-size: 13px; line-height: 1.32; font-weight: 620; }
.quick-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.quick-action {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) 12px;
  align-items: center;
  gap: 8px;
  min-height: 64px;
  padding: 12px;
  text-align: left;
  background: #fff;
}
.quick-action span { color: var(--primary-hover); font-size: 21px; }
.quick-action b { font-size: 13px; line-height: 1.2; font-weight: 720; }
.quick-action i { color: var(--primary-hover); font-style: normal; font-size: 20px; }
.responsive-table { overflow-x: auto; }
.data-table { width: 100%; min-width: 760px; border-collapse: collapse; }
.data-table th {
  padding: 0 0 10px;
  color: var(--text-secondary);
  text-align: left;
  font-size: 12px;
  font-weight: 650;
}
.data-table td { padding: 9px 0; border-top: 1px solid var(--border); color: #475569; font-size: 13px; }
.data-table tr:hover td { background: #fbfdff; }
.badge {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 3px 8px;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 680;
}
.badge.category { background: #e8f8ef; color: #15803d; }
.badge.expense { background: #fee2e2; color: #dc2626; }
.badge.income { background: #dcfce7; color: #16a34a; }
.badge.transfer { background: #dbeafe; color: #2563eb; }
.amount.expense { color: #111827; }
.amount.income { color: #15803d; }
.status { color: #64748b; font-size: 13px; }
.status::first-letter { color: var(--success); }
.show-more { display: block; margin-top: 12px; color: #0b7fdd; text-align: center; font-weight: 650; }

.mobile-menu-button { display: none; }
.drawer-backdrop, .modal, .modal-backdrop { display: none; }
.drawer-panel {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 80;
  width: min(440px, 100vw);
  height: 100vh;
  padding: 24px;
  overflow: auto;
  background: var(--surface);
  box-shadow: -20px 0 60px rgba(15,23,42,.18);
  transform: translateX(100%);
  transition: transform .18s ease;
}
.modal.open { display: block; }
.modal.open .modal-backdrop { display: block; position: fixed; inset: 0; z-index: 70; background: rgba(15,23,42,.35); }
.modal.open .drawer-panel { transform: translateX(0); }
.drawer-head { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-bottom: 20px; }
.drawer-head h2 { margin: 0; font-size: 22px; }
.section-kicker { margin: 0 0 5px; color: var(--primary-hover); font-size: 12px; font-weight: 800; text-transform: uppercase; }
.form label { display: grid; gap: 7px; margin-bottom: 14px; color: #334155; font-weight: 680; }
input, select, textarea {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--border);
  border-radius: var(--button-radius);
  padding: 10px 12px;
  background: #fff;
  color: var(--text-primary);
}
.drawer-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; }
.messages { margin-bottom: 16px; }
.message { padding: 12px 14px; border: 1px solid #bbf7d0; border-radius: 12px; background: #f0fdf4; color: #166534; }
.empty { padding: 20px; color: var(--text-secondary); text-align: center; }
.auth-layout { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: var(--background); }
.auth-panel { width: min(460px, 100%); padding: 28px; background: #fff; border: 1px solid var(--border); border-radius: var(--card-radius); box-shadow: var(--card-shadow); }
.auth-panel h1 { margin: 0 0 10px; font-size: 26px; }
.auth-links { display: flex; justify-content: space-between; gap: 12px; margin-top: 16px; color: #0b7fdd; font-weight: 650; }
.mobile-nav { display: none; }

@media (max-width: 1280px) {
  .dashboard-grid { grid-template-columns: minmax(0, 1fr) 340px; }
  .summary-metric { padding-inline: 16px; }
}

@media (max-width: 1024px) {
  .app-shell { grid-template-columns: 78px minmax(0, 1fr); }
  .brand-copy, .nav-text, .bank-promo, .sidebar-toggle { display: none; }
  .brand-row, .nav a { justify-content: center; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .right-rail { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .summary-metrics { overflow-x: auto; grid-template-columns: repeat(5, 210px); padding-bottom: 4px; }
}

@media (max-width: 768px) {
  .mobile-menu-button {
    position: fixed;
    left: 12px;
    top: 12px;
    z-index: 61;
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: #fff;
    box-shadow: var(--card-shadow);
  }
  .app-shell { display: block; }
  .sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: 280px;
    transform: translateX(-105%);
    transition: transform .2s ease;
  }
  body.drawer-open .sidebar { transform: translateX(0); }
  body.drawer-open .drawer-backdrop { display: block; position: fixed; inset: 0; z-index: 20; background: rgba(15,23,42,.36); }
  .brand-copy, .nav-text, .bank-promo { display: block; }
  .brand-row { justify-content: space-between; }
  .nav a { justify-content: flex-start; }
  .main { padding: 18px 14px 84px; }
  .topbar { height: auto; align-items: flex-start; flex-direction: column; padding-left: 48px; }
  .topbar-actions { width: 100%; flex-wrap: wrap; }
  .user-meta { display: none; }
  .search-control.open input { width: calc(100vw - 28px); }
  .summary-card { padding: 18px; }
  .chart-toolbar { flex-direction: column; }
  .period-tabs { width: 100%; overflow-x: auto; }
  .mid-grid, .right-rail, .quick-grid { grid-template-columns: 1fr; }
  .category-row { grid-template-columns: 24px minmax(0, 1fr) auto; }
  .category-bar, .category-row small { grid-column: 2 / -1; }
  .data-table { min-width: 0; }
  .data-table thead { display: none; }
  .data-table tr { display: grid; gap: 4px; padding: 12px 0; border-top: 1px solid var(--border); }
  .data-table td { display: flex; justify-content: space-between; gap: 12px; padding: 3px 0; border: 0; }
  .data-table td::before { content: attr(data-label); color: var(--text-secondary); font-weight: 650; }
  .mobile-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 40;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    border-top: 1px solid var(--border);
    background: rgba(255,255,255,.96);
    backdrop-filter: blur(14px);
  }
  .mobile-nav a { padding: 12px 4px; color: var(--text-secondary); text-align: center; font-size: 12px; font-weight: 650; }
}

@media (max-width: 390px) {
  .topbar h1 { font-size: 24px; }
  .summary-metrics { grid-template-columns: repeat(5, 190px); }
  .summary-metric strong { font-size: 22px; }
  .cashflow-chart, #trendChart { height: 238px; }
}
