/* RAZEN Wallet Console - Mobile-First TrueMoney Theme */

:root {
  --bg: #111113;
  --bg2: #1a1a1e;
  --card: rgba(30, 30, 36, 0.95);
  --card-border: rgba(255,255,255,0.06);
  --orange: #F7931E;
  --orange-lt: #FFAA42;
  --orange-dk: #E07A00;
  --yellow: #FFD700;
  --red: #E31837;
  --red-lt: #FF4057;
  --green: #4CAF50;
  --green-lt: #6FCF73;
  --blue: #2196F3;
  --blue-lt: #64B5F6;
  --text: #F5F5F5;
  --text2: #B0B0B0;
  --text3: #707070;
  --radius: 14px;
  --radius-sm: 10px;
  --radius-lg: 18px;
  --ease: 0.25s cubic-bezier(0.4,0,0.2,1);
}

*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior:smooth; -webkit-tap-highlight-color:transparent; }

body {
  font-family:'Sarabun',-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;
  background:var(--bg);
  color:var(--text);
  min-height:100vh;
  min-height:100dvh;
  overflow-x:hidden;
  -webkit-font-smoothing:antialiased;
}

/* ── Layout ── */
.app-wrapper { display:flex; min-height:100vh; min-height:100dvh; }

.sidebar-desktop {
  width:256px; background:var(--bg2); border-right:1px solid var(--card-border);
  display:flex; flex-direction:column; position:fixed; inset:0 auto 0 0;
  z-index:100; padding:20px 14px;
}
.sidebar-desktop .brand { display:flex; align-items:center; gap:12px; padding:0 6px 20px; border-bottom:1px solid var(--card-border); margin-bottom:16px; }
.brand-logo { width:44px; height:44px; background:var(--bg); border-radius:10px; display:flex; align-items:center; justify-content:center; flex-shrink:0; padding:5px; }
.brand-logo svg { width:100%; height:100%; }
.brand-text h1 { font-size:18px; font-weight:800; color:var(--orange); }
.brand-text span { font-size:10px; color:var(--text3); letter-spacing:1px; font-weight:500; text-transform:uppercase; }
.sidebar-desktop nav { display:flex; flex-direction:column; gap:2px; flex:1; }
.nav-item {
  display:flex; align-items:center; gap:12px; padding:12px 14px; border-radius:var(--radius-sm);
  cursor:pointer; color:var(--text2); font-size:14px; font-weight:600; border:none; background:none; transition:all var(--ease);
}
.nav-item:hover { background:rgba(247,147,30,0.08); color:var(--text); }
.nav-item.active { background:rgba(247,147,30,0.14); color:var(--orange); }
.nav-item svg { width:20px; height:20px; flex-shrink:0; }
.sidebar-footer { padding:14px 6px 0; border-top:1px solid var(--card-border); margin-top:auto; font-size:11px; color:var(--text3); text-align:center; line-height:1.6; }

.main-content { flex:1; margin-left:256px; padding:24px 28px 80px; max-width:1000px; }

/* ── Pages ── */
.page-section { display:none; }
.page-section.active { display:block; animation:fadeUp .25s ease; }
@keyframes fadeUp { from{opacity:0;transform:translateY(8px)} to{opacity:1;transform:translateY(0)} }

.page-header { margin-bottom:20px; }
.page-header h2 { font-size:24px; font-weight:800; color:var(--text); margin-bottom:4px; }
.page-header p { font-size:13px; color:var(--text2); font-weight:500; }
.section-title { font-size:12px; font-weight:700; color:var(--orange); margin:28px 0 12px; letter-spacing:.5px; text-transform:uppercase; }

/* ── Card ── */
.card {
  background:var(--card); border:1px solid var(--card-border); border-radius:var(--radius);
  padding:18px; transition:border-color var(--ease);
}
.card-flush { padding:12px; }
.card-title { font-size:16px; font-weight:700; color:var(--orange); margin-bottom:16px; }
.card-desc { font-size:13px; color:var(--text2); margin-bottom:16px; font-weight:500; }

/* ── Balance Card ── */
.balance-card {
  background:linear-gradient(135deg,#F7931E 0%,#E07A00 100%);
  border:none; position:relative; overflow:hidden; padding:22px;
}
.balance-card::before { content:''; position:absolute; top:-40%; right:-15%; width:180px; height:180px; background:rgba(255,255,255,0.1); border-radius:50%; pointer-events:none; }
.balance-top { display:flex; justify-content:space-between; align-items:flex-start; }
.balance-logo { width:56px; height:46px; opacity:.3; flex-shrink:0; }
.balance-logo svg { width:100%; height:100%; }
.balance-label { font-size:11px; color:rgba(255,255,255,0.8); letter-spacing:1px; text-transform:uppercase; font-weight:600; }
.balance-amount { font-size:36px; font-weight:800; color:#fff; margin:8px 0 12px; letter-spacing:-1px; }
.balance-meta { display:flex; align-items:center; gap:10px; font-size:12px; color:rgba(255,255,255,0.9); flex-wrap:wrap; }
.badge-active { background:rgba(255,255,255,0.2); color:#fff; padding:4px 10px; border-radius:20px; font-size:10px; font-weight:700; }

/* ── Summary Cards ── */
.summary-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:10px; margin-top:14px; }
.summary-card { display:flex; align-items:center; gap:10px; padding:14px 12px; }
.summary-icon { width:36px; height:36px; border-radius:10px; display:flex; align-items:center; justify-content:center; flex-shrink:0; }
.summary-icon svg { width:18px; height:18px; }
.summary-in .summary-icon { background:rgba(76,175,80,0.15); color:var(--green); }
.summary-out .summary-icon { background:rgba(247,147,30,0.15); color:var(--orange); }
.summary-pending .summary-icon { background:rgba(255,215,0,0.15); color:var(--yellow); }
.summary-label { display:block; font-size:10px; color:var(--text3); font-weight:600; letter-spacing:.3px; }
.summary-value { display:block; font-size:17px; font-weight:800; margin-top:2px; }
.summary-value.in { color:var(--green-lt); }
.summary-value.out { color:var(--orange-lt); }
.summary-value.pending { color:var(--yellow); }

/* ── Quick Actions ── */
.quick-actions { display:grid; grid-template-columns:repeat(4,1fr); gap:10px; }
.qa-btn {
  display:flex; flex-direction:column; align-items:center; gap:8px; padding:18px 8px;
  background:var(--card); border:1px solid var(--card-border); border-radius:var(--radius);
  cursor:pointer; color:var(--text); font-family:inherit; font-size:12px; font-weight:700;
  transition:all var(--ease); -webkit-appearance:none;
}
.qa-btn:active { transform:scale(0.95); }
.qa-icon { width:44px; height:44px; border-radius:12px; display:flex; align-items:center; justify-content:center; }
.qa-icon svg { width:22px; height:22px; }
.qa-p2p { background:rgba(247,147,30,0.15); color:var(--orange); }
.qa-pp { background:rgba(33,150,243,0.15); color:var(--blue); }
.qa-bank { background:rgba(76,175,80,0.15); color:var(--green); }
.qa-env { background:rgba(227,24,55,0.15); color:var(--red); }

/* ── Chart ── */
.chart-card { padding:16px; }
.chart-legend { display:flex; gap:20px; margin-bottom:14px; }
.legend-item { display:flex; align-items:center; gap:6px; font-size:12px; font-weight:600; color:var(--text2); }
.legend-dot { width:8px; height:8px; border-radius:50%; }
.legend-dot.green { background:var(--green); }
.legend-dot.orange { background:var(--orange); }
.chart-wrap { height:200px; position:relative; }

/* ── Transactions ── */
.tx-list { display:flex; flex-direction:column; gap:4px; }
.tx-item {
  display:flex; align-items:center; gap:12px; padding:14px;
  border-radius:var(--radius-sm); transition:background var(--ease);
}
.tx-item:active { background:rgba(255,255,255,0.04); }
.tx-icon { width:40px; height:40px; border-radius:10px; display:flex; align-items:center; justify-content:center; flex-shrink:0; }
.tx-icon svg { width:20px; height:20px; }
.tx-out { background:rgba(247,147,30,0.12); color:var(--orange); }
.tx-in { background:rgba(76,175,80,0.12); color:var(--green); }
.tx-pp { background:rgba(33,150,243,0.12); color:var(--blue); }
.tx-info { flex:1; min-width:0; }
.tx-title { font-size:14px; font-weight:700; color:var(--text); }
.tx-sub { font-size:11px; color:var(--text3); margin-top:2px; font-weight:500; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.tx-amount { font-size:15px; font-weight:800; flex-shrink:0; text-align:right; }
.tx-amount-in { color:var(--green-lt); }
.tx-amount-out { color:var(--orange-lt); }

/* ── Transfer Tabs ── */
.transfer-tabs { display:flex; gap:8px; margin-bottom:16px; overflow-x:auto; -webkit-overflow-scrolling:touch; scrollbar-width:none; }
.transfer-tabs::-webkit-scrollbar { display:none; }
.tab-btn {
  display:flex; align-items:center; gap:6px; padding:12px 20px; border-radius:var(--radius);
  font-size:14px; font-weight:700; font-family:inherit; cursor:pointer;
  background:var(--card); border:1px solid var(--card-border); color:var(--text2);
  white-space:nowrap; flex-shrink:0; transition:all var(--ease); -webkit-appearance:none;
}
.tab-btn.active { background:var(--orange); color:#fff; border-color:var(--orange); }
.tab-btn:active { transform:scale(0.97); }
.tab-content { display:none; }
.tab-content.active { display:block; animation:fadeUp .2s ease; }

/* ── Bank Chips ── */
.bank-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:8px; }
.bank-chip {
  display:flex; flex-direction:column; align-items:center; gap:6px; padding:12px 6px;
  border-radius:var(--radius-sm); font-size:11px; font-weight:700; font-family:inherit;
  cursor:pointer; background:rgba(255,255,255,0.04); border:1.5px solid rgba(255,255,255,0.08);
  color:var(--text2); justify-content:center; transition:all var(--ease); -webkit-appearance:none;
}
.bank-chip.active { border-color:var(--orange); background:rgba(247,147,30,0.1); color:var(--orange); }
.bank-chip:active { transform:scale(0.95); }
.bank-logo-mini { width:28px; height:28px; flex-shrink:0; border-radius:6px; overflow:hidden; }
.bank-logo-mini svg { width:100%; height:100%; display:block; }
.bank-name { line-height:1; font-size:10px; letter-spacing:0.3px; }

/* ── Forms ── */
.form-group { margin-bottom:16px; }
.form-group label { display:block; font-size:11px; font-weight:700; color:var(--text2); margin-bottom:6px; text-transform:uppercase; letter-spacing:.5px; }
.form-input, .form-select {
  width:100%; padding:14px 16px; background:rgba(255,255,255,0.05);
  border:1.5px solid rgba(255,255,255,0.08); border-radius:var(--radius-sm);
  color:var(--text); font-size:16px; font-family:inherit; font-weight:500;
  transition:all var(--ease); outline:none; -webkit-appearance:none;
}
.form-input-lg { font-size:24px; font-weight:800; padding:18px 16px; letter-spacing:-0.5px; }
.form-input:focus, .form-select:focus { border-color:var(--orange); background:rgba(247,147,30,0.04); }
.form-input::placeholder { color:var(--text3); }
.form-select {
  appearance:none;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23F7931E' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat:no-repeat; background-position:right 14px center; padding-right:40px; cursor:pointer;
}
.form-select option { background:var(--bg2); color:var(--text); }
.filter-row { display:grid; grid-template-columns:1fr 1fr; gap:10px; }

/* ── Buttons ── */
.btn {
  display:flex; align-items:center; justify-content:center; gap:8px;
  padding:16px 24px; border-radius:var(--radius-sm); font-size:16px; font-weight:700;
  font-family:inherit; cursor:pointer; border:none; width:100%; min-height:54px;
  transition:all var(--ease); -webkit-appearance:none; touch-action:manipulation;
}
.btn:active { transform:scale(0.97); }
.btn-orange { background:var(--orange); color:#fff; }
.btn-orange:active { background:var(--orange-dk); }
.btn-blue { background:var(--blue); color:#fff; }
.btn-green { background:var(--green); color:#fff; }
.btn-red { background:var(--red); color:#fff; }
.btn-gray { background:#3a3a3e; color:var(--text); }
.btn-gray:active { background:#4a4a4e; }
.btn-secondary { background:rgba(255,255,255,0.06); color:var(--text); border:1px solid rgba(255,255,255,0.1); }
.btn-green-outline { background:rgba(76,175,80,0.12); color:var(--green-lt); border:1px solid rgba(76,175,80,0.25); }
.btn-red-outline { background:rgba(227,24,55,0.12); color:var(--red-lt); border:1px solid rgba(227,24,55,0.25); }
.btn-pair { display:grid; grid-template-columns:1fr 1fr; gap:10px; }
.btn-stack { display:flex; flex-direction:column; gap:10px; }

/* ── Accounts List (mobile cards instead of table) ── */
.accounts-list { display:flex; flex-direction:column; gap:10px; }
.account-card {
  background:var(--card); border:1px solid var(--card-border); border-radius:var(--radius);
  padding:16px 18px; display:flex; align-items:center; gap:14px;
}
.account-avatar { width:40px; height:40px; border-radius:10px; background:rgba(247,147,30,0.12); color:var(--orange); display:flex; align-items:center; justify-content:center; flex-shrink:0; font-size:16px; font-weight:800; }
.account-info { flex:1; min-width:0; }
.account-name { font-size:15px; font-weight:700; color:var(--text); }
.account-phone { font-size:12px; color:var(--text3); margin-top:2px; }
.account-badge { padding:4px 10px; border-radius:20px; font-size:10px; font-weight:700; flex-shrink:0; }
.account-badge.active { background:rgba(76,175,80,0.15); color:var(--green-lt); }
.account-badge.inactive { background:rgba(255,215,0,0.15); color:var(--yellow); }

/* ── Envelope ── */
.envelope-preview { display:flex; align-items:center; justify-content:center; padding:30px 20px; }
.envelope-visual {
  width:110px; height:150px; background:linear-gradient(135deg,#dc2626,#ef4444);
  border-radius:14px; display:flex; flex-direction:column; align-items:center; justify-content:center;
  box-shadow:0 8px 30px rgba(220,38,38,0.35); position:relative; animation:floatE 3s ease-in-out infinite;
}
@keyframes floatE { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-8px)} }
.envelope-top { position:absolute; top:0; left:0; right:0; height:50%; background:linear-gradient(135deg,#ef4444,#dc2626); border-radius:14px 14px 0 0; clip-path:polygon(0 0,100% 0,50% 100%); }
.envelope-gold { z-index:2; margin-top:24px; color:#FFD700; }
.envelope-gold svg { width:36px; height:36px; filter:drop-shadow(0 2px 4px rgba(0,0,0,0.3)); }
.envelope-shine { position:absolute; top:10px; right:10px; width:24px; height:24px; background:radial-gradient(circle,rgba(255,255,255,0.3),transparent 70%); border-radius:50%; }

/* ── Skeleton ── */
.skeleton {
  background:linear-gradient(90deg,rgba(255,255,255,0.03) 25%,rgba(255,255,255,0.07) 50%,rgba(255,255,255,0.03) 75%);
  background-size:200% 100%; animation:shimmer 1.4s infinite; border-radius:var(--radius-sm);
}
@keyframes shimmer { 0%{background-position:200% 0} 100%{background-position:-200% 0} }
.skeleton-tx { height:68px; margin-bottom:6px; }

/* ── Transfer Modal / Bottom Sheet ── */
.modal-overlay {
  position:fixed; inset:0; background:rgba(0,0,0,0.8); z-index:300;
  display:flex; align-items:flex-end; justify-content:center;
  opacity:0; pointer-events:none; transition:opacity var(--ease);
}
.modal-overlay.open { opacity:1; pointer-events:auto; }
.modal-sheet {
  background:var(--bg2); border-radius:var(--radius-lg) var(--radius-lg) 0 0;
  padding:16px 20px 32px; width:100%; max-width:420px;
  transform:translateY(100%); transition:transform .3s cubic-bezier(0.32,0.72,0,1);
}
.modal-overlay.open .modal-sheet { transform:translateY(0); }
.sheet-handle { width:36px; height:4px; background:rgba(255,255,255,0.2); border-radius:2px; margin:0 auto 16px; }
.modal-q {
  width:56px; height:56px; border-radius:50%; border:2.5px solid var(--blue);
  display:flex; align-items:center; justify-content:center; margin:0 auto 12px; color:var(--blue);
}
.modal-q svg { width:28px; height:28px; }
.modal-heading { font-size:18px; font-weight:700; color:var(--text); text-align:center; margin-bottom:16px; }
.modal-avatar-wrap { display:flex; flex-direction:column; align-items:center; gap:8px; margin-bottom:18px; }
.modal-avatar-circle {
  width:64px; height:64px; border-radius:50%; background:#333;
  display:flex; align-items:center; justify-content:center; color:var(--text3);
}
.modal-avatar-circle svg { width:32px; height:32px; }
.modal-name-th { font-size:16px; font-weight:700; color:var(--text); text-align:center; }
.modal-name-en { font-size:12px; color:var(--text3); text-align:center; }
.confirm-rows { margin-bottom:20px; }
.confirm-row { display:flex; justify-content:space-between; align-items:center; padding:12px 0; border-bottom:1px solid rgba(255,255,255,0.05); }
.confirm-row:last-child { border-bottom:none; }
.confirm-row span { font-size:14px; color:var(--text3); }
.confirm-row strong { font-size:14px; font-weight:700; color:var(--text); }
.confirm-amount { color:var(--orange) !important; font-size:16px !important; }
.confirm-ok { color:var(--green-lt) !important; }
.modal-actions { display:grid; grid-template-columns:1fr 1fr; gap:10px; }

/* ── Account Bottom Sheet ── */
.sheet-overlay {
  position:fixed; inset:0; background:rgba(0,0,0,0.7); z-index:300;
  opacity:0; pointer-events:none; transition:opacity var(--ease);
}
.sheet-overlay.open { opacity:1; pointer-events:auto; }
.bottom-sheet {
  position:fixed; bottom:0; left:0; right:0; background:var(--bg2);
  border-radius:var(--radius-lg) var(--radius-lg) 0 0; padding:16px 20px 40px;
  z-index:301; transform:translateY(100%); transition:transform .3s cubic-bezier(0.32,0.72,0,1);
  max-height:90vh; max-height:90dvh; overflow-y:auto; -webkit-overflow-scrolling:touch;
}
.bottom-sheet.open { transform:translateY(0); }
.sheet-title { font-size:18px; font-weight:700; color:var(--text); margin-bottom:18px; text-align:center; }

/* ── Toast ── */
.toast-container {
  position:fixed; top:16px; left:16px; right:16px; z-index:400;
  display:flex; flex-direction:column; gap:8px; pointer-events:none;
}
.toast {
  background:var(--bg2); border-radius:var(--radius-sm); padding:14px 18px;
  display:flex; align-items:center; gap:10px; font-size:14px; font-weight:600;
  color:var(--text); box-shadow:0 4px 24px rgba(0,0,0,0.5);
  animation:toastIn .25s ease, toastOut .25s ease 2.7s forwards; pointer-events:auto;
}
.toast.success { border-left:4px solid var(--green); }
.toast.error { border-left:4px solid var(--red); }
.toast.info { border-left:4px solid var(--orange); }
@keyframes toastIn { from{opacity:0;transform:translateY(-16px)} to{opacity:1;transform:translateY(0)} }
@keyframes toastOut { from{opacity:1;transform:translateY(0)} to{opacity:0;transform:translateY(-16px)} }

/* ── Mobile Header ── */
.mobile-header {
  display:none; position:fixed; top:0; left:0; right:0; background:var(--bg2);
  z-index:99; padding:10px 14px; border-bottom:1px solid var(--card-border);
  align-items:center; justify-content:space-between;
}
.mobile-header-brand { display:flex; align-items:center; gap:8px; }
.mobile-header .brand-logo { width:36px; height:36px; }
.brand-title { font-size:16px; font-weight:800; color:var(--orange); }
.brand-subtitle { font-size:9px; color:var(--text3); letter-spacing:1px; font-weight:500; display:block; }
.hamburger {
  width:44px; height:44px; display:flex; flex-direction:column; align-items:center;
  justify-content:center; gap:5px; cursor:pointer; background:none; border:none; border-radius:10px;
}
.hamburger span { display:block; width:20px; height:2px; background:var(--text); border-radius:2px; }

/* ── Drawer ── */
.drawer-overlay { display:none; position:fixed; inset:0; background:rgba(0,0,0,0.7); z-index:150; opacity:0; transition:opacity var(--ease); }
.drawer-overlay.open { display:block; opacity:1; }
.drawer-sidebar {
  position:fixed; top:0; left:0; bottom:0; width:270px; background:var(--bg2);
  z-index:151; transform:translateX(-100%); transition:transform var(--ease);
  display:flex; flex-direction:column; padding:18px 14px;
}
.drawer-sidebar.open { transform:translateX(0); }
.drawer-sidebar .brand { display:flex; align-items:center; gap:12px; padding-bottom:18px; border-bottom:1px solid var(--card-border); margin-bottom:14px; }
.drawer-sidebar nav { flex:1; display:flex; flex-direction:column; gap:2px; }

/* ── Mobile Bottom Nav ── */
.mobile-nav {
  display:none; position:fixed; bottom:0; left:0; right:0; background:var(--bg2);
  border-top:1px solid var(--card-border); z-index:100;
  padding:6px 4px calc(env(safe-area-inset-bottom, 8px) + 6px);
  display:none; /* overridden below */
}
.mobile-nav { display:none; }
.mnav {
  display:flex; flex-direction:column; align-items:center; gap:3px;
  padding:8px 6px; border-radius:10px; cursor:pointer; color:var(--text3);
  font-size:10px; font-weight:600; border:none; background:none; flex:1;
  font-family:inherit; -webkit-appearance:none; transition:all var(--ease); min-height:52px;
}
.mnav:active { transform:scale(0.92); }
.mnav.active { color:var(--orange); }
.mnav svg { width:22px; height:22px; }
.mnav span { line-height:1; }

/* ========== RESPONSIVE ========== */

@media (max-width:768px) {
  .sidebar-desktop { display:none; }
  .main-content { margin-left:0; padding:70px 14px 100px; }
  .mobile-header { display:flex; }
  .mobile-nav { display:flex; }

  .page-header h2 { font-size:22px; }
  .balance-amount { font-size:32px; }

  /* Summary: horizontal scroll on very small but otherwise 3-col */
  .summary-grid { gap:8px; }
  .summary-card { padding:12px 10px; }
  .summary-label { font-size:9px; }
  .summary-value { font-size:15px; }
  .summary-icon { width:32px; height:32px; }
  .summary-icon svg { width:16px; height:16px; }

  .quick-actions { gap:8px; }
  .qa-btn { padding:14px 6px; }
  .qa-icon { width:40px; height:40px; }
  .qa-icon svg { width:20px; height:20px; }
  .qa-btn span { font-size:11px; }

  .chart-wrap { height:180px; }

  .card { padding:16px; }
  .card-flush { padding:10px; }

  .tx-item { padding:12px 10px; gap:10px; }
  .tx-icon { width:36px; height:36px; }
  .tx-icon svg { width:18px; height:18px; }
  .tx-title { font-size:13px; }
  .tx-sub { font-size:10px; }
  .tx-amount { font-size:14px; }

  /* Transfer tabs scroll */
  .tab-btn { padding:10px 16px; font-size:13px; }

  /* Bank chips 4-col on mobile */
  .bank-grid { grid-template-columns:repeat(4,1fr); gap:6px; }
  .bank-chip { padding:10px 6px; font-size:11px; gap:4px; }

  /* Modal already bottom sheet */
  .modal-sheet { max-width:100%; border-radius:var(--radius-lg) var(--radius-lg) 0 0; }

  /* Toast under mobile header */
  .toast-container { top:66px; }

  .btn { min-height:50px; font-size:15px; padding:14px 20px; }

  .filter-row { gap:8px; }
}

@media (max-width:380px) {
  .main-content { padding:66px 10px 96px; }
  .mobile-header { padding:8px 10px; }
  .mobile-header .brand-logo { width:32px; height:32px; }
  .brand-title { font-size:14px; }

  .page-header h2 { font-size:20px; }
  .balance-amount { font-size:28px; }
  .balance-card { padding:16px; }

  .summary-grid { grid-template-columns:1fr 1fr 1fr; gap:6px; }
  .summary-card { padding:10px 8px; flex-direction:column; align-items:flex-start; gap:6px; }
  .summary-icon { width:28px; height:28px; }
  .summary-icon svg { width:14px; height:14px; }
  .summary-value { font-size:14px; }

  .quick-actions { grid-template-columns:repeat(4,1fr); gap:6px; }
  .qa-btn { padding:12px 4px; gap:6px; }
  .qa-icon { width:36px; height:36px; }
  .qa-icon svg { width:18px; height:18px; }
  .qa-btn span { font-size:10px; }

  .chart-wrap { height:160px; }

  .mnav { padding:6px 4px; font-size:9px; min-height:48px; }
  .mnav svg { width:20px; height:20px; }

  .bank-grid { grid-template-columns:repeat(4,1fr); gap:4px; }
  .bank-chip { padding:8px 4px; font-size:10px; }
  .bank-dot { width:8px; height:8px; }

  .form-input-lg { font-size:20px; padding:16px 14px; }
  .btn { min-height:48px; font-size:14px; padding:12px 16px; }
}

/* Desktop enhancements */
@media (min-width:769px) {
  .modal-overlay { align-items:center; }
  .modal-sheet { border-radius:var(--radius-lg); max-width:400px; transform:scale(0.95) translateY(20px); }
  .modal-overlay.open .modal-sheet { transform:scale(1) translateY(0); }
  .sheet-handle { display:none; }

  .toast-container { left:50%; right:auto; transform:translateX(-50%); width:400px; }
}

@media (min-width:1025px) {
  .bank-grid { grid-template-columns:repeat(4,1fr); }
}
