/* ═══════════════════════════════════════════════════════════
   Alderwick Bank — Premium Design System
   ═══════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* ─── CSS Variables ─────────────────────────────────────── */
:root {
  --bg-primary:     #080d1a;
  --bg-secondary:   #0f1628;
  --bg-card:        #141c2e;
  --bg-card-hover:  #1a2540;
  --border:         rgba(255,255,255,0.07);
  --border-accent:  rgba(251,191,36,0.3);

  --gold:           #f59e0b;
  --gold-light:     #fbbf24;
  --teal:           #06b6d4;
  --teal-light:     #22d3ee;
  --green:          #10b981;
  --red:            #ef4444;
  --orange:         #f97316;
  --purple:         #8b5cf6;

  --gradient-gold:  linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  --gradient-teal:  linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
  --gradient-brand: linear-gradient(135deg, #f59e0b 0%, #06b6d4 100%);
  --gradient-dark:  linear-gradient(135deg, #141c2e 0%, #0f1628 100%);

  --text-primary:   #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted:     #64748b;

  --sidebar-width:  260px;
  --header-height:  70px;

  --radius-sm:  6px;
  --radius-md:  10px;
  --radius-lg:  16px;
  --radius-xl:  24px;

  --shadow-sm:  0 2px 8px rgba(0,0,0,0.3);
  --shadow-md:  0 8px 24px rgba(0,0,0,0.4);
  --shadow-lg:  0 20px 60px rgba(0,0,0,0.5);
  --shadow-gold:0 0 30px rgba(245,158,11,0.2);
  --shadow-teal:0 0 30px rgba(6,182,212,0.2);

  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; transition: var(--transition); }
img { max-width: 100%; }
button { cursor: pointer; }

/* ─── Scrollbar ─────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold); }

/* ═══════════════════════════════════════════════════════════
   TYPOGRAPHY
   ═══════════════════════════════════════════════════════════ */
h1, h2, h3, h4, h5, h6 { font-weight: 700; line-height: 1.2; }
.text-gradient {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.text-gold   { color: var(--gold); }
.text-teal   { color: var(--teal); }
.text-green  { color: var(--green); }
.text-red    { color: var(--red); }
.text-muted  { color: var(--text-muted); }
.text-secondary { color: var(--text-secondary); }

/* ═══════════════════════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border: none;
  border-radius: var(--radius-md);
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}
.btn-primary {
  background: var(--gradient-gold);
  color: #000;
  box-shadow: 0 4px 15px rgba(245,158,11,0.3);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(245,158,11,0.5);
}
.btn-teal {
  background: var(--gradient-teal);
  color: #fff;
  box-shadow: 0 4px 15px rgba(6,182,212,0.3);
}
.btn-teal:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(6,182,212,0.5);
}
.btn-outline {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-primary);
}
.btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(245,158,11,0.05);
}
.btn-danger {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: #fff;
}
.btn-danger:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(239,68,68,0.4); }
.btn-success {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff;
}
.btn-success:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(16,185,129,0.4); }
.btn-sm { padding: 6px 14px; font-size: 0.8rem; }
.btn-lg { padding: 14px 32px; font-size: 1rem; }
.btn-block { width: 100%; justify-content: center; }

/* ═══════════════════════════════════════════════════════════
   CARDS
   ═══════════════════════════════════════════════════════════ */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: var(--transition);
}
.card:hover { border-color: rgba(245,158,11,0.15); }
.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.card-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
}

/* ─── Stat Cards ─────────────────────────────────────────── */
.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.stat-card::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 100px; height: 100px;
  border-radius: 50%;
  opacity: 0.05;
  transform: translate(30%, -30%);
}
.stat-card.gold::before  { background: var(--gold); }
.stat-card.teal::before  { background: var(--teal); }
.stat-card.green::before { background: var(--green); }
.stat-card.purple::before{ background: var(--purple); }
.stat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: rgba(245,158,11,0.2); }

.stat-icon {
  width: 56px; height: 56px;
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}
.stat-icon.gold   { background: rgba(245,158,11,0.15); color: var(--gold); }
.stat-icon.teal   { background: rgba(6,182,212,0.15);  color: var(--teal); }
.stat-icon.green  { background: rgba(16,185,129,0.15); color: var(--green); }
.stat-icon.purple { background: rgba(139,92,246,0.15); color: var(--purple); }
.stat-icon.red    { background: rgba(239,68,68,0.15);  color: var(--red); }

.stat-info { flex: 1; }
.stat-label { font-size: 0.8rem; color: var(--text-muted); font-weight: 500; text-transform: uppercase; letter-spacing: 0.5px; }
.stat-value { font-size: 1.6rem; font-weight: 800; margin-top: 4px; }
.stat-sub   { font-size: 0.75rem; color: var(--text-muted); margin-top: 2px; }

/* ═══════════════════════════════════════════════════════════
   FORMS
   ═══════════════════════════════════════════════════════════ */
.form-group { margin-bottom: 20px; }
.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 8px;
}
.form-control {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  transition: var(--transition);
  outline: none;
}
.form-control:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(245,158,11,0.1);
}
.form-control::placeholder { color: var(--text-muted); }
.form-control.is-invalid { border-color: var(--red); }

.input-group {
  position: relative;
  display: flex;
  align-items: center;
}
.input-group .input-icon {
  position: absolute;
  left: 14px;
  color: var(--text-muted);
  font-size: 0.9rem;
  pointer-events: none;
}
.input-group .form-control { padding-left: 40px; }

.invalid-feedback {
  font-size: 0.8rem;
  color: var(--red);
  margin-top: 6px;
}

select.form-control option { background: var(--bg-secondary); }

/* ═══════════════════════════════════════════════════════════
   SIDEBAR LAYOUT
   ═══════════════════════════════════════════════════════════ */
.layout-wrapper { display: flex; min-height: 100vh; width: 100%; overflow-x: hidden; }

/* ─── Sidebar ────────────────────────────────────────────── */
.sidebar {
  width: var(--sidebar-width);
  background: var(--bg-secondary);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0;
  height: 100vh;
  z-index: 1000;
  transition: var(--transition);
  overflow-y: auto;
  overflow-x: hidden;
}

.sidebar-logo {
  padding: 24px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.logo-icon {
  width: 42px; height: 42px;
  background: var(--gradient-brand);
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  color: #fff;
  font-weight: 900;
  flex-shrink: 0;
}
.logo-text { font-size: 1rem; font-weight: 800; }
.logo-text span { color: var(--gold); }
.logo-sub { font-size: 0.65rem; color: var(--text-muted); letter-spacing: 1px; text-transform: uppercase; }

.sidebar-user {
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--border);
}
.sidebar-avatar {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--gradient-brand);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  color: #fff;
  flex-shrink: 0;
  text-transform: uppercase;
}
.sidebar-user-info { flex: 1; min-width: 0; }
.sidebar-user-name { font-size: 0.875rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar-user-role { font-size: 0.7rem; color: var(--gold); text-transform: uppercase; letter-spacing: 0.5px; font-weight: 500; }

.sidebar-nav { flex: 1; padding: 16px 0; }
.nav-section-label {
  padding: 8px 20px 4px;
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 500;
  border-left: 3px solid transparent;
  transition: var(--transition);
  cursor: pointer;
  position: relative;
}
.nav-item:hover {
  color: var(--text-primary);
  background: rgba(255,255,255,0.04);
  border-left-color: rgba(245,158,11,0.5);
}
.nav-item.active {
  color: var(--gold);
  background: rgba(245,158,11,0.08);
  border-left-color: var(--gold);
}
.nav-item i { width: 20px; text-align: center; font-size: 0.95rem; }
.nav-badge {
  margin-left: auto;
  background: var(--red);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 20px;
}

.sidebar-footer {
  padding: 16px 20px;
  border-top: 1px solid var(--border);
}
.sidebar-balance {
  background: var(--gradient-dark);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  margin-bottom: 12px;
}
.balance-label { font-size: 0.7rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; }
.balance-value { font-size: 1.2rem; font-weight: 800; color: var(--gold); margin-top: 2px; }

/* ─── Main Content ───────────────────────────────────────── */
.main-content {
  margin-left: var(--sidebar-width);
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-width: 0;
}

.topbar {
  height: var(--header-height);
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
}
.topbar-left { display: flex; align-items: center; gap: 16px; }
.page-title  { font-size: 1.1rem; font-weight: 700; }
.page-breadcrumb { font-size: 0.8rem; color: var(--text-muted); }

.topbar-right { display: flex; align-items: center; gap: 16px; }
.topbar-icon-btn {
  width: 38px; height: 38px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-secondary);
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition);
}
.topbar-icon-btn:hover { border-color: var(--gold); color: var(--gold); }

.content-area { padding: 28px; flex: 1; }

/* ─── Grid Helpers ───────────────────────────────────────── */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-1-2 { grid-template-columns: 1fr 2fr; }
.grid-2-1 { grid-template-columns: 2fr 1fr; }

/* ═══════════════════════════════════════════════════════════
   TABLES
   ═══════════════════════════════════════════════════════════ */
.table-wrapper {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}
thead th {
  background: var(--bg-secondary);
  padding: 14px 16px;
  text-align: left;
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  white-space: nowrap;
}
tbody tr {
  border-top: 1px solid var(--border);
  transition: var(--transition);
}
tbody tr:hover { background: rgba(255,255,255,0.02); }
tbody td { padding: 14px 16px; color: var(--text-secondary); vertical-align: middle; }
tbody td strong { color: var(--text-primary); }

/* ─── Badges ─────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.badge-success  { background: rgba(16,185,129,0.15); color: var(--green); }
.badge-danger   { background: rgba(239,68,68,0.15);  color: var(--red); }
.badge-warning  { background: rgba(245,158,11,0.15); color: var(--gold); }
.badge-info     { background: rgba(6,182,212,0.15);  color: var(--teal); }
.badge-purple   { background: rgba(139,92,246,0.15); color: var(--purple); }
.badge-gray     { background: rgba(100,116,139,0.15);color: var(--text-muted); }

/* ═══════════════════════════════════════════════════════════
   ALERTS / FLASH MESSAGES
   ═══════════════════════════════════════════════════════════ */
.alert {
  padding: 14px 18px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.875rem;
  margin-bottom: 20px;
  border: 1px solid transparent;
}
.alert-success { background: rgba(16,185,129,0.1);  border-color: rgba(16,185,129,0.3);  color: #6ee7b7; }
.alert-error   { background: rgba(239,68,68,0.1);   border-color: rgba(239,68,68,0.3);   color: #fca5a5; }
.alert-warning { background: rgba(245,158,11,0.1);  border-color: rgba(245,158,11,0.3);  color: var(--gold); }
.alert-info    { background: rgba(6,182,212,0.1);   border-color: rgba(6,182,212,0.3);   color: var(--teal); }

/* ═══════════════════════════════════════════════════════════
   TRANSACTION ITEMS
   ═══════════════════════════════════════════════════════════ */
.txn-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.txn-item:last-child { border-bottom: none; }
.txn-icon {
  width: 44px; height: 44px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}
.txn-icon.credit { background: rgba(16,185,129,0.15); color: var(--green); }
.txn-icon.debit  { background: rgba(239,68,68,0.15);  color: var(--red); }
.txn-icon.deposit{ background: rgba(6,182,212,0.15);  color: var(--teal); }
.txn-details { flex: 1; min-width: 0; }
.txn-name { font-size: 0.875rem; font-weight: 600; }
.txn-ref  { font-size: 0.75rem; color: var(--text-muted); margin-top: 2px; }
.txn-amount { font-size: 0.95rem; font-weight: 700; }
.txn-amount.credit { color: var(--green); }
.txn-amount.debit  { color: var(--red); }
.txn-date { font-size: 0.72rem; color: var(--text-muted); }

/* ═══════════════════════════════════════════════════════════
   LANDING PAGE
   ═══════════════════════════════════════════════════════════ */
.landing-nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 999;
  padding: 16px 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(8,13,26,0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}
.nav-brand { display: flex; align-items: center; gap: 12px; font-weight: 800; font-size: 1.1rem; }
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a { font-size: 0.875rem; color: var(--text-secondary); font-weight: 500; }
.nav-links a:hover { color: var(--gold); }
.nav-actions { display: flex; align-items: center; gap: 12px; }

/* Hero */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  padding: 120px 20px 80px;
}
.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(245,158,11,0.15) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 100%, rgba(6,182,212,0.1) 0%, transparent 60%);
}
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 50px 50px;
}
.hero-content { position: relative; max-width: 780px; margin: 0 auto; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(245,158,11,0.1);
  border: 1px solid rgba(245,158,11,0.3);
  color: var(--gold);
  padding: 8px 18px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 28px;
  animation: fadeInDown 0.6s ease;
}
.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 24px;
  animation: fadeInUp 0.7s ease 0.1s both;
}
.hero p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 540px;
  margin: 0 auto 40px;
  animation: fadeInUp 0.7s ease 0.2s both;
}
.hero-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 0.7s ease 0.3s both;
}
.hero-stats {
  display: flex;
  gap: 48px;
  justify-content: center;
  margin-top: 64px;
  animation: fadeInUp 0.7s ease 0.4s both;
}
.hero-stat-value { font-size: 1.8rem; font-weight: 900; color: var(--gold); }
.hero-stat-label { font-size: 0.8rem; color: var(--text-muted); }

/* Features */
.section { padding: 100px 60px; }
.section-header { text-align: center; margin-bottom: 60px; }
.section-tag {
  display: inline-block;
  background: rgba(6,182,212,0.1);
  border: 1px solid rgba(6,182,212,0.3);
  color: var(--teal);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
}
.section-title { font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 800; margin-bottom: 16px; }
.section-desc  { color: var(--text-secondary); max-width: 520px; margin: 0 auto; }

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 32px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.feature-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-brand);
  opacity: 0;
  transition: var(--transition);
}
.feature-card:hover {
  transform: translateY(-8px);
  border-color: rgba(245,158,11,0.3);
  box-shadow: var(--shadow-gold);
}
.feature-icon {
  width: 60px; height: 60px;
  background: var(--gradient-brand);
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  color: #fff;
  margin-bottom: 20px;
}
.feature-title { font-size: 1.1rem; font-weight: 700; margin-bottom: 10px; }
.feature-desc  { color: var(--text-secondary); font-size: 0.875rem; line-height: 1.7; }

/* CTA Section */
.cta-section {
  padding: 100px 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-bg {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 50%, rgba(245,158,11,0.08) 0%, transparent 70%);
}
.cta-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-xl);
  padding: 80px 60px;
  max-width: 700px;
  margin: 0 auto;
}
.cta-card h2 { font-size: 2.4rem; font-weight: 900; margin-bottom: 16px; }
.cta-card p  { color: var(--text-secondary); margin-bottom: 36px; }

/* Footer */
.landing-footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 40px 60px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.875rem;
}

/* ═══════════════════════════════════════════════════════════
   AUTH PAGES
   ═══════════════════════════════════════════════════════════ */
.auth-wrapper {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.auth-left {
  background: var(--bg-secondary);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px;
  position: relative;
  overflow: hidden;
}
.auth-left-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 80%, rgba(245,158,11,0.1) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 80% 20%, rgba(6,182,212,0.08) 0%, transparent 60%);
}
.auth-left-content { position: relative; max-width: 400px; text-align: center; }
.auth-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 40px; justify-content: center; }
.auth-brand-name { font-size: 1.3rem; font-weight: 800; }
.auth-tagline { font-size: 2rem; font-weight: 900; margin-bottom: 16px; }
.auth-desc { color: var(--text-secondary); line-height: 1.7; margin-bottom: 40px; }
.auth-features { text-align: left; display: flex; flex-direction: column; gap: 16px; }
.auth-feature { display: flex; align-items: center; gap: 14px; font-size: 0.875rem; color: var(--text-secondary); }
.auth-feature i { color: var(--gold); width: 20px; text-align: center; }

.auth-right {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px;
}
.auth-form-wrapper { width: 100%; max-width: 440px; }
.auth-form-title  { font-size: 1.8rem; font-weight: 800; margin-bottom: 8px; }
.auth-form-subtitle { color: var(--text-muted); margin-bottom: 36px; font-size: 0.9rem; }

.auth-divider {
  display: flex; align-items: center; gap: 16px;
  margin: 24px 0; color: var(--text-muted); font-size: 0.8rem;
}
.auth-divider::before, .auth-divider::after {
  content: ''; flex: 1; height: 1px; background: var(--border);
}
.auth-footer-link { text-align: center; margin-top: 24px; font-size: 0.875rem; color: var(--text-muted); }
.auth-footer-link a { color: var(--gold); font-weight: 600; }
.auth-footer-link a:hover { color: var(--gold-light); }

/* ═══════════════════════════════════════════════════════════
   ACCOUNT NUMBER CARD
   ═══════════════════════════════════════════════════════════ */
.account-card {
  background: linear-gradient(135deg, #1a2540 0%, #0f1628 100%);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-xl);
  padding: 28px;
  position: relative;
  overflow: hidden;
}
.account-card::before {
  content: '';
  position: absolute;
  top: -40px; right: -40px;
  width: 180px; height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245,158,11,0.15), transparent 70%);
}
.account-card-brand { display: flex; align-items: center; justify-content: space-between; margin-bottom: 32px; }
.account-chip {
  width: 48px; height: 34px;
  background: linear-gradient(135deg, #d97706, #f59e0b);
  border-radius: 6px;
}
.account-number-label { font-size: 0.7rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; }
.account-number-value { font-size: 1.2rem; font-weight: 700; letter-spacing: 2px; margin-top: 4px; font-family: monospace; }
.account-balance-label { font-size: 0.7rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; }
.account-balance-value { font-size: 2rem; font-weight: 900; color: var(--gold); margin-top: 4px; }
.account-card-footer { display: flex; align-items: center; justify-content: space-between; margin-top: 28px; }
.account-holder-label { font-size: 0.7rem; color: var(--text-muted); text-transform: uppercase; }
.account-holder-name  { font-size: 0.9rem; font-weight: 600; margin-top: 2px; }

/* ═══════════════════════════════════════════════════════════
   PAGINATION
   ═══════════════════════════════════════════════════════════ */
.pagination-wrapper { margin-top: 24px; display: flex; justify-content: center; }
.pagination { display: flex; gap: 6px; list-style: none; padding: 0; }
.pagination .page-item .page-link {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 500;
  transition: var(--transition);
}
.pagination .page-item.active .page-link { background: var(--gold); border-color: var(--gold); color: #000; font-weight: 700; }
.pagination .page-item .page-link:hover { border-color: var(--gold); color: var(--gold); }

/* ═══════════════════════════════════════════════════════════
   FILTERS BAR
   ═══════════════════════════════════════════════════════════ */
.filters-bar {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.filters-bar .form-control {
  width: auto;
  min-width: 160px;
  padding: 9px 14px;
  font-size: 0.85rem;
}
.search-input { position: relative; }
.search-input input { padding-left: 36px; }
.search-input i {
  position: absolute;
  left: 12px; top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* ═══════════════════════════════════════════════════════════
   EMPTY STATE
   ═══════════════════════════════════════════════════════════ */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}
.empty-state i { font-size: 3rem; margin-bottom: 16px; opacity: 0.3; }
.empty-state p { font-size: 0.9rem; }

/* ═══════════════════════════════════════════════════════════
   MODAL
   ═══════════════════════════════════════════════════════════ */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(4px);
  z-index: 9000;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  opacity: 0; visibility: hidden;
  transition: var(--transition);
}
.modal-overlay.show { opacity: 1; visibility: visible; }
.modal {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 32px;
  width: 100%;
  max-width: 480px;
  transform: scale(0.9);
  transition: var(--transition);
}
.modal-overlay.show .modal { transform: scale(1); }
.modal-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.modal-title { font-size: 1.1rem; font-weight: 700; }
.modal-close { background: none; border: none; color: var(--text-muted); font-size: 1.2rem; cursor: pointer; }
.modal-close:hover { color: var(--red); }

/* ═══════════════════════════════════════════════════════════
   ANIMATIONS
   ═══════════════════════════════════════════════════════════ */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-16px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.6; }
}
.animate-fade-in    { animation: fadeInUp 0.5s ease both; }
.animate-fade-in-1  { animation: fadeInUp 0.5s ease 0.1s both; }
.animate-fade-in-2  { animation: fadeInUp 0.5s ease 0.2s both; }
.animate-fade-in-3  { animation: fadeInUp 0.5s ease 0.3s both; }
.animate-fade-in-4  { animation: fadeInUp 0.5s ease 0.4s both; }

/* ═══════════════════════════════════════════════════════════
   TOASTR OVERRIDES
   ═══════════════════════════════════════════════════════════ */
#toast-container > div {
  border-radius: var(--radius-md) !important;
  padding: 14px 18px !important;
  font-family: 'Inter', sans-serif !important;
  font-size: 0.875rem !important;
  font-weight: 500 !important;
  box-shadow: var(--shadow-md) !important;
  opacity: 1 !important;
}
#toast-container > .toast-success { background: #065f46 !important; border-left: 4px solid var(--green) !important; }
#toast-container > .toast-error   { background: #7f1d1d !important; border-left: 4px solid var(--red) !important; }
#toast-container > .toast-warning { background: #78350f !important; border-left: 4px solid var(--gold) !important; }
#toast-container > .toast-info    { background: #164e63 !important; border-left: 4px solid var(--teal) !important; }

/* ═══════════════════════════════════════════════════════════
   UTILITIES
   ═══════════════════════════════════════════════════════════ */
.d-flex   { display: flex; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-8    { gap: 8px; }
.gap-12   { gap: 12px; }
.gap-16   { gap: 16px; }
.mt-4  { margin-top: 4px; }
.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mb-8  { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-0  { margin-bottom: 0; }
.w-100 { width: 100%; }
.fw-700 { font-weight: 700; }
.fs-sm  { font-size: 0.8rem; }
.fs-lg  { font-size: 1.1rem; }

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════ */

/* ── Tablet landscape ────────────────────────────────────── */
@media (max-width: 1100px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

/* ── Tablet portrait ─────────────────────────────────────── */
@media (max-width: 900px) {
  .auth-wrapper { grid-template-columns: 1fr; }
  .auth-left { display: none; }
  .grid-2 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-1-2, .grid-2-1 { grid-template-columns: 1fr; }
  .section, .cta-section { padding: 60px 24px; }
  .landing-nav { padding: 16px 24px; }
  .nav-links { display: none; }

  /* Dashboard: account card + quick actions stack */
  .dash-top-grid { grid-template-columns: 1fr !important; }

  /* Stats: 2 columns on tablet */
  .dash-stats-grid { grid-template-columns: repeat(2, 1fr) !important; }

  /* Account balance font shrink */
  .account-balance-value { font-size: 1.6rem; }
}

/* ── Mobile ──────────────────────────────────────────────── */
@media (max-width: 768px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: translateX(0); }
  .main-content { margin-left: 0; }
  .content-area { padding: 16px; }
  .topbar { padding: 0 16px; }
  .topbar .page-breadcrumb { display: none; }
  .grid-4 { grid-template-columns: 1fr; }

  /* Dashboard grids: full single column */
  .dash-top-grid   { grid-template-columns: 1fr !important; gap: 14px !important; }
  .dash-stats-grid { grid-template-columns: 1fr !important; gap: 12px !important; }

  /* Account card: compact layout */
  .account-card { padding: 20px; }
  .account-balance-value { font-size: 1.4rem; }
  .account-number-value  { font-size: 1rem; letter-spacing: 1px; }
  .account-card-footer   { flex-direction: column; gap: 8px; align-items: flex-start; }
  .account-card-footer > div:last-child { text-align: left; }
  .account-chip { width: 38px; height: 28px; }

  /* Stat cards: tighter on mobile */
  .stat-card { padding: 16px; gap: 14px; }
  .stat-icon { width: 46px; height: 46px; font-size: 1.1rem; }
  .stat-value { font-size: 1.3rem; }

  /* Transaction items: allow text wrap */
  .txn-item { gap: 10px; padding: 12px 0; }
  .txn-ref  { font-size: 0.68rem; word-break: break-all; }
  .txn-icon { width: 38px; height: 38px; font-size: 0.9rem; flex-shrink: 0; }
  .txn-amount { font-size: 0.875rem; }

  /* Card header wrap on tiny screens */
  .card-header { flex-wrap: wrap; gap: 10px; }

  /* Quick action cards */
  .quick-action-card { padding: 14px 16px; }

  /* Topbar account number — hide on very small */
  .topbar-acc-num { display: none; }

  /* Table: allow horizontal scroll */
  .table-wrapper { border-radius: var(--radius-md); }
  table { font-size: 0.8rem; }
  thead th, tbody td { padding: 10px 12px; }
}

/* ── Small mobile ─────────────────────────────────────────── */
@media (max-width: 480px) {
  .content-area { padding: 12px; }
  .card { padding: 16px; }
  .account-card { padding: 16px; }
  .account-balance-value { font-size: 1.25rem; }
  .account-number-value  { font-size: 0.9rem; }
  .stat-value { font-size: 1.1rem; }
  .hero-stats { gap: 24px; flex-wrap: wrap; }
  .hero-stat-value { font-size: 1.4rem; }
  .btn-lg { padding: 12px 22px; font-size: 0.9rem; }
  .auth-right { padding: 32px 20px; }
}
