/* ============================================
   Lexington Trust — Global Stylesheet
   Primary: #0A3D62 | Accent: #3C91E6
   Font: DM Sans (Google Fonts)
   ============================================ */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&display=swap');

/* ── CSS Variables ── */
:root {
  --navy:       #0A3D62;
  --navy-light: #0D4F80;
  --accent:     #3C91E6;
  --accent-light: #5BA4EC;
  --success:    #2ECC71;
  --error:      #E74C3C;
  --warning:    #F39C12;
  --bg:         #F0F4F8;
  --bg-dark:    #E4EAF2;
  --white:      #FFFFFF;
  --card-bg:    #FFFFFF;
  --text-primary:   #0A3D62;
  --text-secondary: #5A7A9A;
  --text-muted:     #94A8BE;
  --border:     rgba(10,61,98,0.08);
  --shadow-sm:  0 2px 8px rgba(10,61,98,0.07);
  --shadow-md:  0 4px 20px rgba(10,61,98,0.10);
  --shadow-lg:  0 8px 40px rgba(10,61,98,0.14);
  --shadow-xl:  0 20px 60px rgba(10,61,98,0.18);
  --radius-sm:  8px;
  --radius-md:  16px;
  --radius-lg:  24px;
  --radius-xl:  32px;
  --nav-height: 72px;
  --topbar-height: 64px;
  --sidebar-width: 240px;
  --transition: 0.3s ease;
}

/* ── Dark Mode ── */
body.dark-mode {
  --bg:         #0D1B2A;
  --bg-dark:    #162435;
  --white:      #1A2E42;
  --card-bg:    #1A2E42;
  --text-primary:   #E8F0F8;
  --text-secondary: #8AABCC;
  --text-muted:     #4A6A8A;
  --border:     rgba(255,255,255,0.08);
  --shadow-sm:  0 2px 8px rgba(0,0,0,0.3);
  --shadow-md:  0 4px 20px rgba(0,0,0,0.4);
  --shadow-lg:  0 8px 40px rgba(0,0,0,0.5);
  --shadow-xl:  0 20px 60px rgba(0,0,0,0.6);
}
body.dark-mode .topbar { background: rgba(13,27,42,0.96); border-bottom-color: rgba(255,255,255,0.06); }
body.dark-mode .bottom-nav,
body.dark-mode .sidebar-nav { background: rgba(26,46,66,0.98); border-color: rgba(255,255,255,0.06); }
body.dark-mode .topbar-search input { background: #162435; border-color: rgba(255,255,255,0.1); color: var(--text-primary); }
body.dark-mode .topbar-btn { background: #162435; border-color: rgba(255,255,255,0.1); color: var(--text-secondary); }
body.dark-mode .topbar-logo .logo-text { color: var(--text-primary); }
body.dark-mode .sidebar-logo .logo-text { color: var(--text-primary); }
body.dark-mode .tag { background: #162435; color: var(--text-secondary); }
body.dark-mode .tag:hover, body.dark-mode .tag.active { background: var(--navy); color: white; }
body.dark-mode .toggle-slider { background: rgba(255,255,255,0.15); }
body.dark-mode .modal-box { background: #1A2E42; }
body.dark-mode .numpad-key { background: #162435; color: var(--text-primary); }
body.dark-mode .account-selector { background: #162435; }
body.dark-mode .pull-up-card { background: var(--bg); }
body.dark-mode .profile-stat { background: var(--card-bg); }
body.dark-mode .settings-item:hover { background: rgba(60,145,230,0.06); }

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { font-family: 'DM Sans', sans-serif; background: var(--bg); color: var(--text-primary); min-height: 100vh; overflow-x: hidden; -webkit-font-smoothing: antialiased; transition: background 0.3s, color 0.3s; }
a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }
img, svg { display: block; max-width: 100%; }
button { cursor: pointer; border: none; background: none; font-family: 'DM Sans', sans-serif; }
input, select, textarea { font-family: 'DM Sans', sans-serif; outline: none; }

/* ── Page Wrapper ── */
.page-wrapper { min-height: 100vh; padding-bottom: calc(var(--nav-height) + 16px); }

/* ── Animations ── */
@keyframes fadeSlideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideDown { from { opacity: 0; transform: translateY(-12px); } to { opacity: 1; transform: translateY(0); } }
@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.05); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes shimmer { 0% { background-position: -200% 0; } 100% { background-position: 200% 0; } }

.animate-in { animation: fadeSlideUp 0.5s ease forwards; }
.animate-in-delay-1 { animation: fadeSlideUp 0.5s 0.1s ease both; }
.animate-in-delay-2 { animation: fadeSlideUp 0.5s 0.2s ease both; }
.animate-in-delay-3 { animation: fadeSlideUp 0.5s 0.3s ease both; }
.animate-in-delay-4 { animation: fadeSlideUp 0.5s 0.4s ease both; }
.animate-in-delay-5 { animation: fadeSlideUp 0.5s 0.5s ease both; }

/* ── Top Bar ── */
.topbar {
  position: sticky; top: 0; z-index: 100;
  background: rgba(240,244,248,0.92);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  height: var(--topbar-height);
  display: flex; align-items: center;
  padding: 0 20px; gap: 16px;
  border-bottom: 1px solid var(--border);
}
.topbar-logo { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.topbar-logo .logo-mark {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--accent) 100%);
  border-radius: 10px; display: flex; align-items: center; justify-content: center;
  color: white; font-weight: 700; font-size: 15px; letter-spacing: -0.5px;
  box-shadow: 0 4px 12px rgba(60,145,230,0.3);
}
.topbar-logo .logo-text { font-size: 18px; font-weight: 700; color: var(--navy); letter-spacing: -0.5px; }
.topbar-search { flex: 1; max-width: 420px; position: relative; }
.topbar-search input {
  width: 100%; padding: 10px 16px 10px 40px;
  border-radius: 50px; border: 1.5px solid var(--border);
  background: var(--white); font-size: 14px; color: var(--text-primary); transition: var(--transition);
}
.topbar-search input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(60,145,230,0.12); }
.topbar-search .search-icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--text-muted); font-size: 15px; pointer-events: none; }

/* Search Dropdown */
.search-dropdown {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0;
  background: var(--white); border-radius: var(--radius-md);
  border: 1.5px solid var(--border); box-shadow: var(--shadow-lg);
  z-index: 999; overflow: hidden; display: none; animation: slideDown 0.2s ease;
}
.search-dropdown.open { display: block; }
.search-result-item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px; cursor: pointer; transition: var(--transition);
  border-bottom: 1px solid var(--border); font-size: 14px;
}
.search-result-item:last-child { border-bottom: none; }
.search-result-item:hover { background: rgba(60,145,230,0.06); }
.search-result-icon { font-size: 20px; flex-shrink: 0; }
.search-result-info { flex: 1; }
.search-result-name { font-weight: 600; font-size: 14px; color: var(--text-primary); }
.search-result-sub  { font-size: 12px; color: var(--text-muted); }
.search-result-tag  { font-size: 11px; font-weight: 600; color: var(--accent); background: rgba(60,145,230,0.1); padding: 2px 8px; border-radius: 50px; flex-shrink: 0; }

.topbar-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; margin-left: auto; }
.topbar-btn {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--white); border: 1.5px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; color: var(--text-secondary); transition: var(--transition); position: relative;
}
.topbar-btn:hover { background: var(--navy); color: white; border-color: var(--navy); transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.notif-badge { position: absolute; top: -2px; right: -2px; width: 10px; height: 10px; background: var(--error); border-radius: 50%; border: 2px solid var(--bg); }
.avatar-btn {
  width: 38px; height: 38px; border-radius: 50%;
  background: linear-gradient(135deg, var(--navy), var(--accent));
  color: white; font-weight: 600; font-size: 14px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: var(--transition); border: 2px solid transparent; overflow: hidden; flex-shrink: 0;
}
.avatar-btn img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.avatar-btn:hover { border-color: var(--accent); transform: scale(1.05); }

/* ── Bottom Navigation (Mobile) ── */
.bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 200;
  height: var(--nav-height);
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-around;
  padding: 0 8px; box-shadow: 0 -4px 24px rgba(10,61,98,0.08);
}

/* ── Sidebar Navigation (Desktop) ── */
.sidebar-nav {
  display: none;
  position: fixed; left: 0; top: 0; bottom: 0;
  width: var(--sidebar-width);
  background: rgba(255,255,255,0.98);
  backdrop-filter: blur(20px);
  border-right: 1px solid var(--border);
  z-index: 150;
  flex-direction: column;
  padding: 0 12px 16px;
  box-shadow: 4px 0 24px rgba(10,61,98,0.06);
  overflow-y: auto;
}

.sidebar-logo-wrap {
  display: flex; align-items: center; gap: 10px;
  padding: 20px 8px 24px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 12px;
}
.sidebar-logo-mark {
  width: 38px; height: 38px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--accent) 100%);
  border-radius: 10px; display: flex; align-items: center; justify-content: center;
  color: white; font-weight: 700; font-size: 16px;
  box-shadow: 0 4px 12px rgba(60,145,230,0.3); flex-shrink: 0;
}
.sidebar-logo-text { font-size: 20px; font-weight: 700; color: var(--navy); letter-spacing: -0.5px; }
body.dark-mode .sidebar-logo-text { color: var(--text-primary); }

.sidebar-section-label {
  font-size: 10px; font-weight: 700; color: var(--text-muted);
  letter-spacing: 1px; text-transform: uppercase;
  padding: 12px 12px 6px; display: block;
}
.sidebar-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px; border-radius: var(--radius-sm);
  cursor: pointer; transition: var(--transition);
  text-decoration: none; color: var(--text-secondary);
  font-size: 14px; font-weight: 600; margin-bottom: 2px;
}
.sidebar-item:hover { background: rgba(60,145,230,0.08); color: var(--accent); }
.sidebar-item.active { background: rgba(60,145,230,0.12); color: var(--navy); font-weight: 700; }
body.dark-mode .sidebar-item.active { color: var(--accent); background: rgba(60,145,230,0.15); }
.sidebar-item svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.sidebar-item.active svg { stroke-width: 2.2; }
.sidebar-spacer { flex: 1; min-height: 20px; }
.sidebar-user {
  display: flex; align-items: center; gap: 10px; padding: 12px;
  background: var(--bg); border-radius: var(--radius-sm);
  cursor: pointer; transition: var(--transition);
  border: 1px solid var(--border); margin-top: 8px;
}
.sidebar-user:hover { background: rgba(60,145,230,0.06); }
.sidebar-user-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, var(--navy), var(--accent));
  color: white; font-weight: 700; font-size: 13px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0; overflow: hidden;
}
.sidebar-user-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.sidebar-user-info { flex: 1; min-width: 0; }
.sidebar-user-name { font-size: 13px; font-weight: 700; color: var(--text-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar-user-role { font-size: 11px; color: var(--text-muted); }

/* ── Nav Items (bottom nav) ── */
.nav-item {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 8px 16px; border-radius: var(--radius-md);
  transition: var(--transition); cursor: pointer; text-decoration: none;
  color: var(--text-muted); min-width: 56px;
}
.nav-item:hover { color: var(--accent); background: rgba(60,145,230,0.06); }
.nav-item.active { color: var(--accent); }
.nav-item svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.nav-item.active svg { stroke-width: 2.2; }
.nav-label { font-size: 10px; font-weight: 600; letter-spacing: 0.3px; }
.nav-pay-btn {
  width: 52px; height: 52px; border-radius: 50%;
  background: linear-gradient(135deg, var(--navy) 0%, var(--accent) 100%);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(60,145,230,0.4);
  transition: var(--transition); margin-bottom: 8px; text-decoration: none;
}
.nav-pay-btn:hover { transform: translateY(-3px) scale(1.05); box-shadow: 0 8px 24px rgba(60,145,230,0.5); }
.nav-pay-btn svg { width: 22px; height: 22px; stroke: white; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ── Cards ── */
.card { background: var(--card-bg); border-radius: var(--radius-md); box-shadow: var(--shadow-sm); border: 1px solid var(--border); transition: var(--transition); }
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }

/* ── Buttons ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 24px; border-radius: 50px; font-size: 14px; font-weight: 600; transition: var(--transition); cursor: pointer; border: none; white-space: nowrap; }
.btn-primary { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%); color: white; box-shadow: 0 4px 16px rgba(10,61,98,0.25); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(10,61,98,0.3); }
.btn-accent  { background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%); color: white; box-shadow: 0 4px 16px rgba(60,145,230,0.3); }
.btn-accent:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(60,145,230,0.4); }
.btn-outline { background: transparent; color: var(--navy); border: 1.5px solid var(--border); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-1px); }
.btn-ghost   { background: rgba(60,145,230,0.08); color: var(--accent); border: none; }
.btn-ghost:hover { background: rgba(60,145,230,0.15); transform: translateY(-1px); }
.btn-success { background: linear-gradient(135deg, #27AE60, var(--success)); color: white; box-shadow: 0 4px 16px rgba(46,204,113,0.3); }
.btn-danger  { background: linear-gradient(135deg, #C0392B, var(--error)); color: white; box-shadow: 0 4px 16px rgba(231,76,60,0.3); }
.btn-sm   { padding: 8px 16px; font-size: 12px; }
.btn-lg   { padding: 16px 32px; font-size: 16px; }
.btn-full { width: 100%; }
.btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none !important; }

/* ── Form Elements ── */
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-label { font-size: 13px; font-weight: 600; color: var(--text-secondary); letter-spacing: 0.2px; }
.form-input { padding: 13px 16px; border-radius: var(--radius-sm); border: 1.5px solid var(--border); background: var(--white); font-size: 14px; color: var(--text-primary); transition: var(--transition); width: 100%; }
.form-input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(60,145,230,0.12); }
.form-input.error { border-color: var(--error); box-shadow: 0 0 0 3px rgba(231,76,60,0.10); }
.form-input:disabled { background: var(--bg-dark); cursor: not-allowed; opacity: 0.7; }
.input-wrapper { position: relative; }
.input-icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--text-muted); font-size: 16px; pointer-events: none; }
.input-wrapper .form-input { padding-left: 42px; }
.input-toggle { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: var(--text-muted); cursor: pointer; font-size: 16px; transition: var(--transition); }
.input-toggle:hover { color: var(--accent); }

/* ── Spinner ── */
.spinner { width: 20px; height: 20px; border: 2.5px solid rgba(255,255,255,0.3); border-top-color: white; border-radius: 50%; animation: spin 0.7s linear infinite; display: inline-block; }
.spinner-dark { border-color: rgba(10,61,98,0.15); border-top-color: var(--navy); }

/* ── Toast ── */
.toast-container { position: fixed; top: 80px; right: 16px; z-index: 1000; display: flex; flex-direction: column; gap: 8px; max-width: 320px; }
.toast { background: white; border-radius: var(--radius-sm); padding: 14px 18px; box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: 12px; font-size: 14px; font-weight: 500; animation: slideDown 0.3s ease; border-left: 4px solid var(--accent); }
.toast.success { border-left-color: var(--success); }
.toast.error   { border-left-color: var(--error); }
.toast.warning { border-left-color: var(--warning); }
.toast-icon { font-size: 18px; }
.toast-msg  { flex: 1; color: var(--text-primary); }

/* ── Section ── */
.section { margin-bottom: 20px; }
.section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.section-title { font-size: 16px; font-weight: 700; color: var(--text-primary); letter-spacing: -0.3px; }
.section-link  { font-size: 13px; font-weight: 600; color: var(--accent); transition: var(--transition); }
.section-link:hover { color: var(--navy); }

/* ── Badge ── */
.badge { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 50px; font-size: 11px; font-weight: 700; letter-spacing: 0.3px; }
.badge-success { background: rgba(46,204,113,0.12); color: #1a8a4a; }
.badge-error   { background: rgba(231,76,60,0.12);  color: #c0392b; }
.badge-accent  { background: rgba(60,145,230,0.12); color: var(--accent); }
.badge-muted   { background: rgba(10,61,98,0.06);   color: var(--text-secondary); }

/* ── Transaction Item ── */
.txn-item { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--border); transition: var(--transition); }
.txn-item:last-child { border-bottom: none; }
.txn-icon { width: 44px; height: 44px; border-radius: var(--radius-sm); background: var(--bg); display: flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0; }
.txn-info { flex: 1; min-width: 0; }
.txn-name { font-size: 14px; font-weight: 600; color: var(--text-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.txn-date { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.txn-amount { font-size: 15px; font-weight: 700; flex-shrink: 0; }
.txn-amount.debit  { color: var(--error); }
.txn-amount.credit { color: var(--success); }

/* ── Progress Bar ── */
.progress-bar-wrap { background: var(--bg-dark); border-radius: 50px; height: 8px; overflow: hidden; }
.progress-bar-fill { height: 100%; border-radius: 50px; background: linear-gradient(90deg, var(--accent), var(--navy)); transition: width 1.2s cubic-bezier(0.4,0,0.2,1); }

/* ── Pill Tag ── */
.tag { display: inline-flex; align-items: center; padding: 5px 12px; border-radius: 50px; font-size: 12px; font-weight: 600; border: 1.5px solid var(--border); cursor: pointer; transition: var(--transition); color: var(--text-secondary); background: white; }
.tag:hover, .tag.active { background: var(--navy); color: white; border-color: var(--navy); }

/* ── Page Inner ── */
.page-inner { padding: 20px 20px 0; max-width: 520px; margin: 0 auto; }

/* ── Empty State ── */
.empty-state { text-align: center; padding: 48px 24px; color: var(--text-muted); }
.empty-state-icon { font-size: 48px; margin-bottom: 12px; }
.empty-state p    { font-size: 14px; }

/* ── Skeleton ── */
.skeleton { background: linear-gradient(90deg, var(--bg-dark) 25%, var(--bg) 50%, var(--bg-dark) 75%); background-size: 200% 100%; animation: shimmer 1.5s infinite; border-radius: 6px; }

/* ── Toggle Switch ── */
.toggle-switch { position: relative; width: 44px; height: 24px; cursor: pointer; }
.toggle-switch input { opacity: 0; width: 0; height: 0; position: absolute; }
.toggle-slider { position: absolute; inset: 0; background: var(--border); border-radius: 50px; transition: var(--transition); }
.toggle-slider::before { content: ''; position: absolute; width: 18px; height: 18px; background: white; border-radius: 50%; left: 3px; top: 3px; transition: var(--transition); box-shadow: 0 1px 4px rgba(0,0,0,0.15); }
.toggle-switch input:checked + .toggle-slider { background: var(--accent); }
.toggle-switch input:checked + .toggle-slider::before { transform: translateX(20px); }

/* ── Divider ── */
.divider { height: 1px; background: var(--border); margin: 16px 0; }

/* ── State Icons ── */
.state-icon { width: 72px; height: 72px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 32px; margin: 0 auto 16px; }
.state-icon.success { background: rgba(46,204,113,0.12); }
.state-icon.error   { background: rgba(231,76,60,0.12); }

/* ── Gradient Text ── */
.gradient-text { background: linear-gradient(135deg, var(--navy), var(--accent)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 50px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* ── Modal ── */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 500; display: flex; align-items: center; justify-content: center; padding: 20px; backdrop-filter: blur(4px); animation: fadeIn 0.2s ease; }
.modal-overlay.hidden { display: none; }
.modal-box { background: var(--white); border-radius: var(--radius-lg); padding: 28px 24px; width: 100%; max-width: 420px; box-shadow: var(--shadow-xl); animation: fadeSlideUp 0.3s ease; position: relative; }
.modal-title { font-size: 18px; font-weight: 700; color: var(--text-primary); margin-bottom: 6px; letter-spacing: -0.3px; }
.modal-sub   { font-size: 13px; color: var(--text-muted); margin-bottom: 20px; }
.modal-close { position: absolute; top: 16px; right: 16px; width: 32px; height: 32px; border-radius: 50%; background: var(--bg); border: none; font-size: 16px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: var(--transition); }
.modal-close:hover { background: var(--error); color: white; }
.modal-actions { display: flex; gap: 10px; margin-top: 20px; }

/* ── PIN Numpad ── */
.pin-dots { display: flex; gap: 12px; justify-content: center; margin: 20px 0; }
.pin-dot { width: 16px; height: 16px; border-radius: 50%; border: 2.5px solid var(--border); transition: var(--transition); }
.pin-dot.filled { background: var(--accent); border-color: var(--accent); }
.numpad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; max-width: 240px; margin: 0 auto; }
.numpad-key { height: 52px; border-radius: var(--radius-sm); background: var(--bg); font-size: 20px; font-weight: 600; color: var(--text-primary); border: none; cursor: pointer; transition: var(--transition); display: flex; align-items: center; justify-content: center; }
.numpad-key:hover { background: var(--navy); color: white; transform: scale(0.97); }
.numpad-key:active { transform: scale(0.93); }

/* ── Help FAQ ── */
.faq-item { border-bottom: 1px solid var(--border); overflow: hidden; }
.faq-item:last-child { border-bottom: none; }
.faq-q { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; cursor: pointer; font-size: 14px; font-weight: 600; color: var(--text-primary); transition: var(--transition); }
.faq-q:hover { background: rgba(60,145,230,0.04); }
.faq-chevron { font-size: 16px; color: var(--text-muted); transition: var(--transition); }
.faq-a { font-size: 13px; color: var(--text-secondary); line-height: 1.6; padding: 0 16px; max-height: 0; overflow: hidden; transition: max-height 0.3s ease, padding 0.3s ease; }
.faq-item.open .faq-a { padding: 0 16px 14px; max-height: 200px; }
.faq-item.open .faq-chevron { transform: rotate(180deg); }

/* ═══════════════════════════════════════
   DESKTOP LAYOUT (≥ 900px)
   ═══════════════════════════════════════ */
@media (min-width: 900px) {
  .sidebar-nav { display: flex; }
  .bottom-nav  { display: none; }

  .page-wrapper { margin-left: var(--sidebar-width); padding-bottom: 24px; }
  .topbar       { margin-left: var(--sidebar-width); }
  .topbar-logo  { display: none; } /* sidebar shows logo */

  .page-inner {
    max-width: 900px;
    padding: 28px 36px 0;
    margin: 0 auto;
  }

  /* Grid helpers for desktop */
  .desktop-grid   { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
  .desktop-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .desktop-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
  .desktop-wide   { grid-column: 1 / -1; }

  /* Profile desktop */
  .profile-desktop-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 24px;
    align-items: start;
    padding: 28px 36px;
    max-width: 1000px;
    margin: 0 auto;
  }
  .profile-sticky-col { position: sticky; top: calc(var(--topbar-height) + 20px); }
  .pull-up-card { border-radius: 0; margin-top: 0; background: transparent; }
  .profile-hero { border-radius: var(--radius-lg); }
}

/* ── Medium (481-899) ── */
@media (min-width: 481px) and (max-width: 899px) {
  .page-inner { padding: 24px 24px 0; max-width: 640px; }
}

/* ── Mobile (≤ 480px) ── */
@media (max-width: 480px) {
  .topbar-search { display: none; }
  .page-inner    { padding: 16px 16px 0; }
  .topbar        { padding: 0 16px; }
  .modal-box     { padding: 22px 18px; }
}
