/* ═══════════════════════════════════════════════════════════
   FIRSTBANK ONLINE — UNIFIED DESIGN SYSTEM v3.0
   Fonts: Clash Display (headings) + Plus Jakarta Sans (body)
   Theme: Premium dark/light banking interface
══════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,300;1,400&display=swap');
@import url('https://api.fontshare.com/v2/css?f[]=clash-display@400,500,600,700&display=swap');

/* ── CSS Variables ──────────────────────────────────────── */
:root {
  /* Brand */
  --fb-navy:   #001b4d;
  --fb-blue:   #0052cc;
  --fb-sky:    #1a78f0;
  --fb-light:  #4a9eff;
  --fb-gold:   #f5a623;
  --fb-gold2:  #ffd166;
  --fb-green:  #06d6a0;
  --fb-red:    #ef4444;
  --fb-purple: #7c3aed;

  /* Semantic */
  --success: #10b981;
  --danger:  #ef4444;
  --warning: #f59e0b;

  font-size: 15px;
}

/* Dark theme (default) */
[data-theme="dark"], html:not([data-theme]) {
  --bg:        #06091a;
  --bg-2:      #0d1630;
  --bg-card:   rgba(255,255,255,0.042);
  --bg-raised: rgba(255,255,255,0.065);
  --bg-nav:    rgba(6,9,26,0.88);
  --border:    rgba(255,255,255,0.075);
  --border-2:  rgba(255,255,255,0.13);
  --border-3:  rgba(255,255,255,0.22);
  --text:      #eef2ff;
  --text-2:    rgba(238,242,255,0.62);
  --text-3:    rgba(238,242,255,0.36);
  --shadow:    rgba(0,0,0,0.55);
  --input-bg:  rgba(255,255,255,0.05);
  --glow:      rgba(0,82,204,0.4);
  --mesh-1:    rgba(0,82,204,0.13);
  --mesh-2:    rgba(0,27,77,0.1);
}

/* Light theme */
[data-theme="light"] {
  --bg:        #f0f4fb;
  --bg-2:      #ffffff;
  --bg-card:   #ffffff;
  --bg-raised: #f8faff;
  --bg-nav:    rgba(248,250,255,0.94);
  --border:    rgba(0,27,77,0.08);
  --border-2:  rgba(0,27,77,0.14);
  --border-3:  rgba(0,27,77,0.22);
  --text:      #09142a;
  --text-2:    rgba(9,20,42,0.62);
  --text-3:    rgba(9,20,42,0.36);
  --shadow:    rgba(0,52,130,0.09);
  --input-bg:  rgba(0,27,77,0.04);
  --glow:      rgba(0,82,204,0.14);
  --mesh-1:    rgba(0,82,204,0.06);
  --mesh-2:    rgba(0,27,77,0.04);
}

/* ── Base ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  transition: background 0.3s, color 0.3s;
  line-height: 1.6;
}

body::before {
  content: '';
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 90% 70% at 5% 0%,   var(--mesh-1), transparent),
    radial-gradient(ellipse 60% 80% at 95% 90%,  var(--mesh-2), transparent),
    radial-gradient(ellipse 40% 50% at 50% 50%,  rgba(0,82,204,0.04), transparent);
}

::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-2); border-radius: 99px; }

/* ── Typography ─────────────────────────────────────────── */
.font-display { font-family: 'Clash Display', 'Plus Jakarta Sans', sans-serif !important; }

h1,h2,h3,h4,h5,h6 {
  font-family: 'Clash Display', 'Plus Jakarta Sans', sans-serif;
  font-weight: 600;
  line-height: 1.25;
}

/* ── Shared Navbar ──────────────────────────────────────── */
.fb-navbar {
  position: sticky; top: 0; z-index: 1000;
  background: var(--bg-nav);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid var(--border);
  padding: 0;
  transition: background 0.3s;
}

.fb-navbar .container-fluid { padding: 0 1.5rem; min-height: 62px; display: flex; align-items: center; gap: 1rem; }

.fb-brand {
  display: flex; align-items: center; gap: 0.6rem;
  text-decoration: none; flex-shrink: 0;
}
.fb-brand-logo {
  width: 38px; height: 38px; border-radius: 9px;
  overflow: hidden; display: flex; align-items: center; justify-content: center;
  background: var(--fb-blue);
}
.fb-brand-logo img { width: 100%; height: 100%; object-fit: cover; }
.fb-brand-name {
  font-family: 'Clash Display', sans-serif;
  font-weight: 700; font-size: 1.15rem;
  color: var(--fb-sky); letter-spacing: -0.02em;
  white-space: nowrap;
}

/* Top-level nav links */
.fb-nav-links {
  display: flex; align-items: stretch; gap: 0; flex: 1; margin: 0;
}

.fb-nav-item {
  position: relative;
  display: flex; align-items: stretch;
}

.fb-nav-link {
  font-size: 0.875rem; font-weight: 500;
  color: var(--text-2) !important;
  padding: 0 1rem;
  text-decoration: none; white-space: nowrap;
  display: flex; align-items: center; gap: 0.4rem;
  border-bottom: 3px solid transparent;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
  position: relative;
}
.fb-nav-link:hover { color: var(--text) !important; background: var(--bg-raised); }
.fb-nav-link.active { color: var(--fb-sky) !important; border-bottom-color: var(--fb-sky); font-weight: 600; }
.fb-nav-link .caret { font-size: 0.65rem; opacity: 0.6; margin-left: 2px; transition: transform 0.2s; }
.fb-nav-item:hover .caret { transform: rotate(180deg); }

/* Dropdown mega menus */
.fb-dropdown {
  position: absolute; top: 100%; left: 0;
  min-width: 200px;
  background: var(--bg-2);
  border: 1px solid var(--border-2);
  border-radius: 0 0 12px 12px;
  box-shadow: 0 16px 48px var(--shadow);
  opacity: 0; visibility: hidden; pointer-events: none;
  transform: translateY(-6px);
  transition: all 0.2s ease;
  z-index: 999;
  padding: 0.5rem 0;
}
.fb-nav-item:hover .fb-dropdown {
  opacity: 1; visibility: visible; pointer-events: all;
  transform: translateY(0);
}
.fb-dropdown-link {
  display: flex; align-items: center; gap: 0.65rem;
  padding: 0.6rem 1.1rem;
  font-size: 0.845rem; font-weight: 500;
  color: var(--text-2); text-decoration: none;
  transition: all 0.15s;
}
.fb-dropdown-link:hover { background: var(--input-bg); color: var(--fb-sky); }
.fb-dropdown-link i { width: 16px; color: var(--fb-blue); font-size: 0.8rem; }
.fb-dropdown-divider { height: 1px; background: var(--border); margin: 0.35rem 0; }

/* Nav actions */
.fb-nav-actions { display: flex; align-items: center; gap: 0.6rem; margin-left: auto; flex-shrink: 0; }

.fb-icon-btn {
  width: 36px; height: 36px; border-radius: 9px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-2); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.88rem; transition: all 0.2s; text-decoration: none;
  position: relative;
}
.fb-icon-btn:hover { border-color: var(--border-2); color: var(--text); background: var(--bg-raised); }

.fb-notif-dot {
  position: absolute; top: 5px; right: 5px;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--fb-red); border: 2px solid var(--bg);
}

.fb-avatar-btn {
  width: 36px; height: 36px; border-radius: 9px;
  overflow: hidden; cursor: pointer;
  border: 2px solid var(--border-2);
  transition: border-color 0.2s; flex-shrink: 0;
}
.fb-avatar-btn:hover { border-color: var(--fb-sky); }
.fb-avatar-btn img { width: 100%; height: 100%; object-fit: cover; }

/* Theme Toggle */
.fb-theme-toggle {
  width: 50px; height: 26px;
  background: var(--border-2); border-radius: 99px;
  position: relative; cursor: pointer;
  transition: background 0.3s; border: none; outline: none;
}
.fb-theme-toggle::after {
  content: ''; position: absolute; top: 3px; left: 3px;
  width: 20px; height: 20px; border-radius: 50%;
  background: white; transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1);
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}
[data-theme="light"] .fb-theme-toggle { background: var(--fb-blue); }
[data-theme="light"] .fb-theme-toggle::after { transform: translateX(24px); }

/* Mobile hamburger */
.fb-hamburger {
  display: none; background: transparent; border: 1px solid var(--border);
  border-radius: 8px; width: 36px; height: 36px;
  align-items: center; justify-content: center;
  color: var(--text-2); cursor: pointer; font-size: 0.9rem;
}

/* ── Cards ──────────────────────────────────────────────── */
.fb-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}
[data-theme="light"] .fb-card { box-shadow: 0 2px 16px var(--shadow); }
[data-theme="dark"]  .fb-card { box-shadow: 0 4px 24px rgba(0,0,0,0.18); }
.fb-card:hover { border-color: var(--border-2); transform: translateY(-2px); }
[data-theme="light"] .fb-card:hover { box-shadow: 0 10px 32px var(--shadow); }
[data-theme="dark"]  .fb-card:hover { box-shadow: 0 12px 40px rgba(0,0,0,0.32); }
.fb-card-body { padding: 1.5rem; }

.fb-card-title {
  font-family: 'Clash Display', sans-serif;
  font-size: 0.95rem; font-weight: 600;
  color: var(--text);
  display: flex; align-items: center; gap: 0.5rem;
  margin-bottom: 1.25rem;
}
.fb-card-title i { color: var(--fb-sky); font-size: 0.95rem; }

/* ── Balance Hero Card ──────────────────────────────────── */
.fb-balance-hero {
  background: linear-gradient(135deg, var(--fb-navy) 0%, #003a99 55%, var(--fb-sky) 100%);
  border-radius: 20px; padding: 2rem 2.25rem;
  position: relative; overflow: hidden; color: white;
  border: none !important;
}
.fb-balance-hero::before {
  content: ''; position: absolute; top: -70px; right: -70px;
  width: 300px; height: 300px;
  background: rgba(255,255,255,0.07); border-radius: 50%;
}
.fb-balance-hero::after {
  content: ''; position: absolute; bottom: -50px; right: 100px;
  width: 180px; height: 180px;
  background: rgba(255,255,255,0.04); border-radius: 50%;
}
.fb-balance-inner { position: relative; z-index: 2; }
.fb-balance-label { font-size: 0.76rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.11em; opacity: 0.72; margin-bottom: 0.35rem; }
.fb-balance-amount {
  font-family: 'Clash Display', sans-serif;
  font-size: 3rem; font-weight: 700; line-height: 1;
  margin-bottom: 0.25rem; cursor: pointer;
  text-shadow: 0 2px 16px rgba(0,0,0,0.18);
}
.fb-balance-meta { font-size: 0.81rem; opacity: 0.68; display: flex; align-items: center; gap: 0.45rem; }

/* ── Stat Mini Cards ────────────────────────────────────── */
.fb-stat-mini {
  padding: 1.2rem 1.4rem;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 16px; display: flex; align-items: center; gap: 1rem;
  transition: all 0.22s;
}
[data-theme="light"] .fb-stat-mini { box-shadow: 0 2px 12px var(--shadow); }
.fb-stat-mini:hover { border-color: var(--border-2); transform: translateY(-2px); }
.fb-stat-icon {
  width: 44px; height: 44px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; flex-shrink: 0;
}
.fb-stat-icon.blue   { background: rgba(0,82,204,0.12);   color: var(--fb-sky); }
.fb-stat-icon.gold   { background: rgba(245,166,35,0.12);  color: var(--fb-gold); }
.fb-stat-icon.green  { background: rgba(6,214,160,0.12);   color: var(--fb-green); }
.fb-stat-icon.red    { background: rgba(239,68,68,0.12);   color: var(--fb-red); }
.fb-stat-icon.purple { background: rgba(124,58,237,0.12);  color: var(--fb-purple); }
.fb-stat-val {
  font-family: 'Clash Display', sans-serif;
  font-size: 1.3rem; font-weight: 600; line-height: 1; margin-bottom: 0.15rem;
}
.fb-stat-lbl { font-size: 0.77rem; color: var(--text-2); font-weight: 500; }
.fb-badge { font-size: 0.72rem; font-weight: 600; padding: 0.18rem 0.5rem; border-radius: 99px; margin-left: auto; white-space: nowrap; }
.fb-badge-up   { background: rgba(6,214,160,0.12); color: var(--fb-green); }
.fb-badge-down { background: rgba(239,68,68,0.12);  color: var(--fb-red); }
.fb-badge-neu  { background: rgba(245,166,35,0.12); color: var(--fb-gold); }

/* ── Buttons ────────────────────────────────────────────── */
.fb-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.7rem 1.4rem; border-radius: 10px;
  font-weight: 600; font-size: 0.88rem; cursor: pointer;
  transition: all 0.2s; border: none; text-decoration: none;
}
.fb-btn-primary {
  background: var(--fb-blue); color: white;
}
.fb-btn-primary:hover { background: var(--fb-navy); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(0,82,204,0.3); color: white; }
.fb-btn-outline {
  background: transparent; color: var(--fb-sky);
  border: 1px solid var(--fb-sky) !important;
}
.fb-btn-outline:hover { background: rgba(26,120,240,0.08); }
.fb-btn-ghost { background: var(--input-bg); color: var(--text-2); border: 1px solid var(--border) !important; }
.fb-btn-ghost:hover { border-color: var(--border-2) !important; color: var(--text); }
.fb-btn-full { width: 100%; }

/* ── Inputs ─────────────────────────────────────────────── */
.fb-input {
  width: 100%; padding: 0.72rem 1rem;
  background: var(--input-bg); border: 1px solid var(--border);
  border-radius: 10px; color: var(--text); font-size: 0.92rem;
  font-family: 'Plus Jakarta Sans', sans-serif;
  outline: none; transition: border-color 0.2s;
}
.fb-input:focus { border-color: var(--fb-sky); }
.fb-input::placeholder { color: var(--text-3); }
.fb-label { font-size: 0.8rem; font-weight: 600; color: var(--text-2); display: block; margin-bottom: 0.4rem; }
.fb-field { margin-bottom: 1rem; }

/* ── Info Pills ─────────────────────────────────────────── */
.fb-info-pill {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 1rem 1.15rem;
  background: var(--input-bg); border: 1px solid var(--border);
  border-radius: 12px; transition: border-color 0.2s;
}
.fb-info-pill:hover { border-color: var(--border-2); }
.fb-info-pill-icon {
  width: 36px; height: 36px; border-radius: 9px;
  background: rgba(0,82,204,0.1); color: var(--fb-sky);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.88rem; flex-shrink: 0;
}
.fb-info-pill-lbl { font-size: 0.73rem; color: var(--text-3); font-weight: 500; margin-bottom: 0.08rem; }
.fb-info-pill-val { font-family: 'Clash Display', sans-serif; font-size: 0.92rem; font-weight: 600; letter-spacing: 0.02em; }

/* ── Action Tiles ───────────────────────────────────────── */
.fb-action-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 0.7rem; }
.fb-action-tile {
  display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
  padding: 1.1rem 0.4rem;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 14px; cursor: pointer;
  transition: all 0.22s; text-decoration: none; color: inherit;
}
.fb-action-tile:hover { border-color: var(--fb-sky); transform: translateY(-3px); background: rgba(26,120,240,0.04); color: var(--fb-sky); }
.fb-action-tile-icon {
  width: 44px; height: 44px; border-radius: 12px;
  background: rgba(0,82,204,0.09); color: var(--fb-sky);
  display: flex; align-items: center; justify-content: center; font-size: 1.05rem;
  transition: background 0.22s;
}
.fb-action-tile:hover .fb-action-tile-icon { background: rgba(0,82,204,0.17); }
.fb-action-tile-lbl { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.02em; }

/* ── Transaction Items ──────────────────────────────────── */
.fb-txn-item {
  display: flex; align-items: center; gap: 1rem;
  padding: 0.9rem 0; border-bottom: 1px solid var(--border);
  transition: padding 0.2s;
}
.fb-txn-item:last-child { border-bottom: none; }
.fb-txn-item:hover { padding-left: 0.35rem; }
.fb-txn-icon { width: 42px; height: 42px; border-radius: 12px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 0.95rem; }
.fb-txn-icon.inc { background: rgba(6,214,160,0.1); color: var(--fb-green); }
.fb-txn-icon.exp { background: rgba(239,68,68,0.1); color: var(--fb-red); }
.fb-txn-name { font-size: 0.9rem; font-weight: 600; margin-bottom: 0.12rem; }
.fb-txn-date { font-size: 0.77rem; color: var(--text-3); }
.fb-txn-amt { margin-left: auto; font-family: 'Clash Display', sans-serif; font-size: 0.93rem; font-weight: 600; white-space: nowrap; }
.fb-txn-amt.pos { color: var(--fb-green); }
.fb-txn-amt.neg { color: var(--fb-red); }

/* ── Debit Card ─────────────────────────────────────────── */
.fb-debit-card {
  background: linear-gradient(135deg, var(--fb-navy) 0%, #003080 50%, #0055bb 100%);
  border-radius: 18px; padding: 1.5rem; color: white;
  position: relative; overflow: hidden; aspect-ratio: 1.586/1;
  display: flex; flex-direction: column; justify-content: space-between;
  box-shadow: 0 16px 48px rgba(0,27,77,0.45), inset 0 1px 0 rgba(255,255,255,0.15);
}
.fb-debit-card::before { content: ''; position: absolute; top: -50px; left: -50px; width: 220px; height: 220px; background: rgba(255,255,255,0.05); border-radius: 50%; }
.fb-debit-card::after { content: ''; position: absolute; bottom: -60px; right: -20px; width: 240px; height: 240px; background: rgba(255,255,255,0.04); border-radius: 50%; }
.fb-dc-inner { position: relative; z-index: 2; height: 100%; display: flex; flex-direction: column; justify-content: space-between; }
.fb-dc-top { display: flex; justify-content: space-between; align-items: center; }
.fb-dc-bank { font-family: 'Clash Display', sans-serif; font-size: 1rem; font-weight: 700; }
.fb-dc-chip { width: 36px; height: 28px; background: linear-gradient(135deg, #e8c36a, #c8992e); border-radius: 5px; position: relative; }
.fb-dc-num { font-family: 'Clash Display', sans-serif; font-size: 1.3rem; font-weight: 600; letter-spacing: 0.24em; text-align: center; opacity: 0.95; }
.fb-dc-bottom { display: flex; justify-content: space-between; align-items: flex-end; }
.fb-dc-lbl { font-size: 0.62rem; opacity: 0.58; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 0.18rem; }
.fb-dc-holder { font-family: 'Clash Display', sans-serif; font-size: 0.88rem; font-weight: 600; text-transform: uppercase; }
.fb-dc-expiry { font-family: 'Clash Display', sans-serif; font-size: 0.92rem; font-weight: 600; }
.fb-dc-visa { font-size: 1.5rem; opacity: 0.85; }

/* ── Goals / Progress ───────────────────────────────────── */
.fb-goal { margin-bottom: 1.1rem; }
.fb-goal:last-child { margin-bottom: 0; }
.fb-goal-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.4rem; }
.fb-goal-name { font-size: 0.87rem; font-weight: 600; }
.fb-goal-pct { font-size: 0.8rem; font-weight: 700; color: var(--fb-sky); }
.fb-goal-bar { height: 6px; background: var(--border); border-radius: 99px; overflow: hidden; }
.fb-goal-fill { height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--fb-blue), var(--fb-light)); transition: width 0.9s cubic-bezier(0.34,1.56,0.64,1); }
.fb-goal-sub { display: flex; justify-content: space-between; margin-top: 0.28rem; font-size: 0.73rem; color: var(--text-3); }

/* ── Chart Legend ───────────────────────────────────────── */
.fb-legend-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.6rem 0.75rem; border-radius: 9px;
  background: var(--input-bg); margin-bottom: 0.45rem; font-size: 0.85rem;
}
.fb-legend-row:last-child { margin-bottom: 0; }
.fb-legend-dot { width: 9px; height: 9px; border-radius: 50%; margin-right: 0.5rem; flex-shrink: 0; }
.fb-legend-val { font-family: 'Clash Display', sans-serif; font-weight: 600; font-size: 0.87rem; }

/* ── Section Headers ────────────────────────────────────── */
.fb-sec-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.2rem; }
.fb-sec-link { font-size: 0.8rem; font-weight: 600; color: var(--fb-sky); text-decoration: none; transition: opacity 0.2s; }
.fb-sec-link:hover { opacity: 0.75; }

/* ── Alert Banner ───────────────────────────────────────── */
.fb-alert {
  background: linear-gradient(135deg, rgba(239,68,68,0.08), rgba(239,68,68,0.04));
  border: 1px solid rgba(239,68,68,0.22); border-left: 4px solid var(--fb-red);
  border-radius: 14px; padding: 1rem 1.2rem;
  display: flex; align-items: flex-start; gap: 1rem; margin-bottom: 1.75rem;
  animation: fbSlideDown 0.45s ease-out;
}
@keyframes fbSlideDown { from { opacity:0; transform:translateY(-10px); } to { opacity:1; transform:translateY(0); } }
.fb-alert-icon { width: 38px; height: 38px; flex-shrink: 0; background: rgba(239,68,68,0.1); border-radius: 10px; display: flex; align-items: center; justify-content: center; color: var(--fb-red); font-size: 1rem; }
.fb-alert-title { font-family: 'Clash Display', sans-serif; font-size: 0.87rem; font-weight: 600; color: var(--fb-red); margin-bottom: 0.18rem; text-transform: uppercase; letter-spacing: 0.06em; }
.fb-alert-text { font-size: 0.84rem; color: var(--text-2); line-height: 1.5; }
.fb-alert-close { margin-left: auto; flex-shrink: 0; width: 26px; height: 26px; border-radius: 7px; background: transparent; border: 1px solid var(--border); color: var(--text-3); cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all 0.2s; font-size: 0.75rem; }
.fb-alert-close:hover { background: rgba(239,68,68,0.1); color: var(--fb-red); border-color: rgba(239,68,68,0.3); }

/* ── Modal ──────────────────────────────────────────────── */
.fb-modal .modal-content {
  background: var(--bg-2);
  border: 1px solid var(--border-2);
  border-radius: 20px; color: var(--text);
}
.fb-modal .modal-header {
  background: linear-gradient(135deg, var(--fb-navy), var(--fb-blue));
  border-bottom: none; border-radius: 20px 20px 0 0;
  padding: 1.2rem 1.5rem; color: white;
}
.fb-modal .modal-header .btn-close { filter: invert(1); }
.fb-modal .modal-title { font-family: 'Clash Display', sans-serif; font-weight: 600; font-size: 1rem; }
.fb-modal .modal-body { padding: 1.5rem; }

/* ── Quick Sidebar ──────────────────────────────────────── */
.fb-quick-sidebar {
  position: fixed; left: 1rem; top: 50%; transform: translateY(-50%);
  z-index: 500; display: flex; flex-direction: column; gap: 0.5rem;
}
.fb-qs-btn {
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--bg-card); border: 1px solid var(--border);
  color: var(--text-2); display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all 0.2s; text-decoration: none; font-size: 0.9rem;
  position: relative;
}
.fb-qs-btn:hover { background: var(--fb-blue); color: white; border-color: var(--fb-blue); transform: translateX(3px); }
.fb-qs-tooltip {
  position: absolute; left: calc(100% + 8px); top: 50%; transform: translateY(-50%);
  background: var(--fb-navy); color: white;
  font-size: 0.73rem; font-weight: 600; white-space: nowrap;
  padding: 0.28rem 0.6rem; border-radius: 6px;
  opacity: 0; pointer-events: none; transition: opacity 0.2s;
}
.fb-qs-btn:hover .fb-qs-tooltip { opacity: 1; }

/* ── Summary Cards (transaction/loan pages) ─────────────── */
.fb-summary-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 16px; padding: 1.4rem 1.6rem;
  border-left: 4px solid var(--fb-sky);
  transition: all 0.22s;
}
[data-theme="light"] .fb-summary-card { box-shadow: 0 2px 12px var(--shadow); }
.fb-summary-card.green { border-left-color: var(--fb-green); }
.fb-summary-card.red   { border-left-color: var(--fb-red); }
.fb-summary-card.blue  { border-left-color: var(--fb-sky); }
.fb-summary-label { font-size: 0.8rem; font-weight: 600; color: var(--text-2); display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.5rem; }
.fb-summary-amount { font-family: 'Clash Display', sans-serif; font-size: 1.8rem; font-weight: 700; }
.fb-summary-amount.pos { color: var(--fb-green); }
.fb-summary-amount.neg { color: var(--fb-red); }
.fb-summary-amount.neu { color: var(--fb-sky); }

/* ── Page wrapper ───────────────────────────────────────── */
.fb-page { position: relative; z-index: 1; max-width: 1400px; margin: 0 auto; padding: 2rem 1.5rem; }

/* ── Animations ─────────────────────────────────────────── */
.fb-fade-up {
  opacity: 0; transform: translateY(16px);
  animation: fbFadeUp 0.5s ease-out forwards;
}
@keyframes fbFadeUp { to { opacity: 1; transform: translateY(0); } }
.fb-fade-up:nth-child(1) { animation-delay: 0.05s; }
.fb-fade-up:nth-child(2) { animation-delay: 0.1s; }
.fb-fade-up:nth-child(3) { animation-delay: 0.15s; }
.fb-fade-up:nth-child(4) { animation-delay: 0.2s; }
.fb-fade-up:nth-child(5) { animation-delay: 0.25s; }
.fb-fade-up:nth-child(6) { animation-delay: 0.3s; }

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 1200px) {
  .fb-nav-links { display: none; }
  .fb-hamburger { display: flex; }
}
@media (max-width: 991px) {
  .fb-quick-sidebar { display: none !important; }
  .fb-page { padding: 1.25rem 1rem; }
  .fb-action-grid { grid-template-columns: repeat(2,1fr); }
  .fb-balance-amount { font-size: 2.4rem; }
}
@media (max-width: 575px) {
  .fb-balance-amount { font-size: 2rem; }
  .fb-brand-name { display: none; }
}

/* Mobile nav panel */
.fb-mobile-nav {
  display: none; border-top: 1px solid var(--border);
  background: var(--bg-nav); padding: 1rem 1.5rem;
}
.fb-mobile-nav.open { display: block; }
.fb-mobile-nav a {
  display: flex; align-items: center; gap: 0.65rem;
  padding: 0.65rem 0.75rem; border-radius: 9px;
  font-size: 0.9rem; font-weight: 500; color: var(--text-2);
  text-decoration: none; transition: all 0.2s;
}
.fb-mobile-nav a:hover, .fb-mobile-nav a.active { background: var(--bg-raised); color: var(--fb-sky); }
