/* ============================================================
   CTGMC Dashboard Stylesheet
   ============================================================ */

/* ========== LAYOUT ========== */
.db-layout {
  display: flex;
  min-height: 100vh;
  background: #f0f4f8;
}

/* ========== SIDEBAR ========== */
.sidebar {
  width: 260px;
  background: var(--primary-dark);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 100;
  transition: transform 0.3s ease;
  overflow-y: auto;
}
.sidebar-logo {
  padding: 28px 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  flex-shrink: 0;
}
.sidebar-logo-icon {
  width: 40px;
  height: 40px;
  background: var(--secondary);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 800;
  color: var(--primary);
}
.sidebar-logo-text { font-size: 20px; font-weight: 800; color: white; }
.sidebar-logo-text span { color: var(--secondary); }
.sidebar-nav {
  flex: 1;
  padding: 16px 0;
  overflow-y: auto;
}
.nav-section {
  margin-bottom: 8px;
}
.nav-section-title {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  padding: 16px 24px 8px;
}
.sidebar-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 24px;
  color: rgba(255,255,255,0.65);
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s;
  cursor: pointer;
  border-left: 3px solid transparent;
}
.sidebar-link:hover {
  background: rgba(255,255,255,0.06);
  color: white;
}
.sidebar-link.active {
  background: rgba(234,181,67,0.12);
  color: var(--secondary);
  border-left-color: var(--secondary);
  font-weight: 600;
}
.sidebar-link i {
  width: 20px;
  text-align: center;
  font-size: 16px;
}
.sidebar-link .badge-count {
  margin-left: auto;
  background: var(--secondary);
  color: var(--primary);
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 50px;
}
.sidebar-footer {
  padding: 20px 24px;
  border-top: 1px solid rgba(255,255,255,0.06);
  flex-shrink: 0;
}
.sidebar-user {
  display: flex;
  align-items: center;
  gap: 12px;
}
.sidebar-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--secondary), var(--secondary-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  color: var(--primary);
  flex-shrink: 0;
}
.sidebar-user-info {}
.sidebar-user-name { font-size: 13px; font-weight: 700; color: white; }
.sidebar-user-role { font-size: 11px; color: rgba(255,255,255,0.45); }
.sidebar-logout-btn {
  margin-left: auto;
  background: none;
  border: none;
  color: rgba(255,255,255,0.4);
  cursor: pointer;
  font-size: 18px;
  padding: 4px;
  transition: all 0.2s;
}
.sidebar-logout-btn:hover { color: var(--danger); }

/* ========== MAIN CONTENT ========== */
.main-content {
  margin-left: 260px;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ========== TOP BAR ========== */
.topbar {
  background: white;
  padding: 0 32px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 1px 0 var(--gray-200);
  position: sticky;
  top: 0;
  z-index: 99;
}
.topbar-left { display: flex; align-items: center; gap: 16px; }
.topbar-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 22px;
  color: var(--text);
  cursor: pointer;
  padding: 4px;
}
.topbar-title { font-size: 20px; font-weight: 700; color: var(--primary); }
.topbar-right { display: flex; align-items: center; gap: 16px; }
.topbar-search {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--gray-100);
  border-radius: 10px;
  padding: 9px 16px;
  width: 240px;
}
.topbar-search input {
  border: none;
  background: none;
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  color: var(--text);
  outline: none;
  width: 100%;
}
.topbar-search i { color: var(--gray-500); font-size: 14px; }
.topbar-btn {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--gray-100);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  color: var(--text-muted);
  position: relative;
  transition: var(--transition);
}
.topbar-btn:hover { background: var(--gray-200); color: var(--primary); }
.topbar-btn .notif-dot {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 8px;
  height: 8px;
  background: var(--danger);
  border-radius: 50%;
  border: 2px solid white;
}
.topbar-user {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  padding: 6px 12px;
  border-radius: 10px;
  transition: var(--transition);
}
.topbar-user:hover { background: var(--gray-100); }
.topbar-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 700;
  color: white;
}
.topbar-user-info {}
.topbar-user-name { font-size: 14px; font-weight: 600; color: var(--text); }
.topbar-user-acct { font-size: 11px; color: var(--text-muted); }

/* ========== PAGE CONTENT ========== */
.page-content {
  padding: 32px;
  flex: 1;
}
.db-section { display: none; }
.db-section.active { display: block; }

/* ========== DECLINE ALERT BANNERS ========== */
#declineAlertContainer { display: flex; flex-direction: column; gap: 12px; margin-bottom: 16px; }
.decline-alert-banner {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: #fff1f1;
  border: 1.5px solid #e53e3e;
  border-left: 5px solid #e53e3e;
  border-radius: 10px;
  padding: 16px 18px;
  box-shadow: 0 2px 8px rgba(229,62,62,0.10);
  max-height: 400px;
  overflow: hidden;
  transition: opacity 0.3s, max-height 0.4s;
}
body.dark-mode .decline-alert-banner {
  background: #2a1010;
  border-color: #c53030;
}
.decline-alert-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(229,62,62,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #e53e3e;
  font-size: 18px;
  margin-top: 2px;
}
.decline-alert-body { flex: 1; }
.decline-alert-title { font-size: 15px; font-weight: 700; color: #c53030; margin-bottom: 6px; }
body.dark-mode .decline-alert-title { color: #fc8181; }
.decline-alert-details {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  font-size: 13px;
  color: #555;
  margin-bottom: 8px;
}
body.dark-mode .decline-alert-details { color: #ccc; }
.decline-alert-details span { display: flex; align-items: center; gap: 5px; }
.decline-alert-details i { color: #e53e3e; font-size: 12px; }
.decline-alert-reason {
  font-size: 13.5px;
  color: #333;
  background: rgba(229,62,62,0.06);
  border-radius: 6px;
  padding: 7px 10px;
  line-height: 1.5;
  display: flex;
  gap: 6px;
  align-items: flex-start;
}
body.dark-mode .decline-alert-reason { background: rgba(229,62,62,0.12); color: #eee; }
.decline-alert-reason i { color: #e53e3e; margin-top: 2px; flex-shrink: 0; }
.decline-alert-close {
  flex-shrink: 0;
  background: none;
  border: none;
  color: #999;
  font-size: 16px;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 4px;
  line-height: 1;
  transition: color 0.2s, background 0.2s;
  margin-left: 4px;
}
.decline-alert-close:hover { color: #e53e3e; background: rgba(229,62,62,0.08); }

/* ========== WELCOME BANNER (new accounts) ========== */
#welcomeBannerContainer { margin-bottom: 20px; }
.welcome-new-banner {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  background: linear-gradient(135deg, #f0fdf4, #dcfce7);
  border: 1.5px solid #86efac;
  border-left: 5px solid #22c55e;
  border-radius: 14px;
  padding: 20px 20px 20px 22px;
  position: relative;
  animation: wbFadeIn 0.4s ease;
}
@keyframes wbFadeIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }
body.dark-mode .welcome-new-banner {
  background: linear-gradient(135deg, rgba(34,197,94,0.07), rgba(34,197,94,0.12));
  border-color: rgba(34,197,94,0.35);
  border-left-color: #22c55e;
}
.welcome-new-icon {
  width: 48px; height: 48px; border-radius: 50%;
  background: rgba(34,197,94,0.15);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-size: 22px;
  color: #16a34a;
}
body.dark-mode .welcome-new-icon { background: rgba(34,197,94,0.18); color: #4ade80; }
.welcome-new-body { flex: 1; }
.welcome-new-title { font-size: 16px; font-weight: 700; color: #15803d; margin-bottom: 4px; }
body.dark-mode .welcome-new-title { color: #4ade80; }
.welcome-new-desc { font-size: 13.5px; color: #166534; line-height: 1.5; margin-bottom: 14px; }
body.dark-mode .welcome-new-desc { color: #bbf7d0; }
.welcome-new-steps {
  display: flex; flex-wrap: wrap; gap: 8px;
}
.welcome-new-step {
  display: flex; align-items: center; gap: 6px;
  background: rgba(34,197,94,0.12);
  border: 1px solid rgba(34,197,94,0.3);
  border-radius: 20px;
  padding: 5px 12px;
  font-size: 12.5px; font-weight: 600; color: #15803d;
  cursor: pointer;
  transition: background 0.18s;
}
.welcome-new-step:hover { background: rgba(34,197,94,0.22); }
body.dark-mode .welcome-new-step { background: rgba(34,197,94,0.1); border-color: rgba(34,197,94,0.25); color: #4ade80; }
body.dark-mode .welcome-new-step:hover { background: rgba(34,197,94,0.2); }
.welcome-new-step i { font-size: 11px; }
.welcome-new-close {
  position: absolute; top: 12px; right: 14px;
  background: none; border: none; cursor: pointer;
  font-size: 16px; color: #6b7280; padding: 4px 6px; border-radius: 6px;
  transition: color 0.2s, background 0.2s;
}
.welcome-new-close:hover { color: #15803d; background: rgba(34,197,94,0.1); }
body.dark-mode .welcome-new-close { color: #9ca3af; }
body.dark-mode .welcome-new-close:hover { color: #4ade80; background: rgba(34,197,94,0.12); }

/* ========== DASHBOARD OVERVIEW ========== */
.welcome-banner {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  border-radius: var(--radius-lg);
  padding: 32px 36px;
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
  position: relative;
  overflow: hidden;
}
.welcome-banner::before {
  content: '';
  position: absolute;
  right: -40px;
  top: -40px;
  width: 200px;
  height: 200px;
  background: rgba(255,255,255,0.05);
  border-radius: 50%;
}
.welcome-banner::after {
  content: '';
  position: absolute;
  right: 60px;
  bottom: -60px;
  width: 160px;
  height: 160px;
  background: rgba(234,181,67,0.1);
  border-radius: 50%;
}
.welcome-text { position: relative; z-index: 1; }
.welcome-greeting { font-size: 14px; color: rgba(255,255,255,0.7); margin-bottom: 6px; }
.welcome-name { font-size: 26px; font-weight: 800; margin-bottom: 8px; }
.welcome-acct { font-size: 14px; color: rgba(255,255,255,0.65); }
.welcome-balance { text-align: right; position: relative; z-index: 1; }
.wb-label { font-size: 13px; color: rgba(255,255,255,0.65); margin-bottom: 6px; }
.wb-amount { font-size: 36px; font-weight: 800; color: var(--secondary); }
.wb-currency { font-size: 16px; vertical-align: top; margin-top: 8px; display: inline-block; }

/* ========== STAT CARDS ========== */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 32px;
}
.stat-card {
  background: white;
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-200);
  transition: var(--transition);
}
.stat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.stat-card-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 16px; }
.stat-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}
.sci-blue { background: rgba(10,61,98,0.08); color: var(--primary); }
.sci-gold { background: rgba(234,181,67,0.15); color: var(--secondary-dark); }
.sci-green { background: rgba(39,174,96,0.1); color: var(--success); }
.sci-red { background: rgba(231,76,60,0.1); color: var(--danger); }
.stat-card-trend { font-size: 12px; font-weight: 600; display: flex; align-items: center; gap: 4px; }
.trend-up { color: var(--success); }
.trend-down { color: var(--danger); }
.stat-card-value { font-size: 24px; font-weight: 800; color: var(--primary); margin-bottom: 4px; }
.stat-card-label { font-size: 13px; color: var(--text-muted); }

/* ========== QUICK ACTIONS ========== */
.quick-actions {
  background: white;
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 32px;
  box-shadow: var(--shadow);
}
.section-title-sm { font-size: 16px; font-weight: 700; color: var(--primary); margin-bottom: 20px; }
.qa-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.qa-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 20px 8px;
  border-radius: var(--radius);
  cursor: pointer;
  transition: var(--transition);
  background: var(--gray-100);
  border: 1px solid transparent;
}
.qa-item:hover { background: rgba(10,61,98,0.06); border-color: rgba(10,61,98,0.12); transform: translateY(-2px); }
.qa-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}
.qa-label { font-size: 12px; font-weight: 600; color: var(--text); text-align: center; }

/* ========== CONTENT GRID ========== */
.content-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 24px;
  margin-bottom: 24px;
}
.content-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 24px;
}

/* ========== CARD ========== */
.card {
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-200);
}
.card-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--gray-200);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.card-title { font-size: 16px; font-weight: 700; color: var(--primary); }
.card-body { padding: 24px; }

/* ========== TRANSACTIONS TABLE ========== */
.tx-table { width: 100%; border-collapse: collapse; }
.tx-table thead th {
  padding: 12px 16px;
  text-align: left;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-muted);
  background: var(--gray-100);
  border-bottom: 1px solid var(--gray-200);
}
.tx-table thead th:first-child { border-radius: 10px 0 0 0; }
.tx-table thead th:last-child { border-radius: 0 10px 0 0; }
.tx-table tbody tr {
  border-bottom: 1px solid var(--gray-100);
  transition: var(--transition);
}
.tx-table tbody tr:last-child { border-bottom: none; }
.tx-table tbody tr:hover { background: var(--gray-100); }
.tx-table td { padding: 14px 16px; font-size: 14px; color: var(--text); vertical-align: middle; }
.tx-icon-cell { display: flex; align-items: center; gap: 12px; }
.tx-type-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}
.tx-desc { font-size: 14px; font-weight: 600; color: var(--text); }
.tx-date { font-size: 12px; color: var(--text-muted); }
.tx-amount-positive { color: var(--success); font-weight: 700; font-size: 15px; }
.tx-amount-negative { color: var(--danger); font-weight: 700; font-size: 15px; }
.tx-trx { font-size: 12px; color: var(--text-muted); font-family: monospace; }

/* ========== ACCOUNT CARD ========== */
.virtual-card {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary-light));
  border-radius: 18px;
  padding: 24px;
  color: white;
  position: relative;
  overflow: hidden;
  margin-bottom: 20px;
}
.virtual-card::before {
  content: '';
  position: absolute;
  top: -40px; right: -40px;
  width: 160px; height: 160px;
  background: rgba(255,255,255,0.06);
  border-radius: 50%;
}
.vc-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 24px; }
.vc-chip { width: 38px; height: 28px; background: var(--secondary); border-radius: 6px; }
.vc-network { font-size: 24px; }
.vc-number { font-size: 16px; letter-spacing: 4px; font-family: monospace; margin-bottom: 20px; }
.vc-footer { display: flex; justify-content: space-between; align-items: flex-end; }
.vc-name { font-size: 14px; font-weight: 600; }
.vc-expiry { font-size: 11px; opacity: 0.7; }

/* ========== MINI STATS ========== */
.mini-stat { display: flex; justify-content: space-between; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--gray-100); }
.mini-stat:last-child { border-bottom: none; }
.mini-stat-label { font-size: 13px; color: var(--text-muted); }
.mini-stat-value { font-size: 14px; font-weight: 700; color: var(--text); }

/* ========== PROGRESS BAR ========== */
.progress-wrap { margin-bottom: 16px; }
.progress-header { display: flex; justify-content: space-between; margin-bottom: 8px; }
.progress-label { font-size: 13px; color: var(--text-muted); }
.progress-value { font-size: 13px; font-weight: 700; color: var(--primary); }
.progress-bar { height: 8px; background: var(--gray-200); border-radius: 10px; overflow: hidden; }
.progress-fill { height: 100%; border-radius: 10px; background: linear-gradient(90deg, var(--primary), var(--secondary)); transition: width 1s ease; }

/* ========== TRANSFER FORM ========== */
.transfer-page-grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 24px;
}
.transfer-tabs { display: flex; gap: 8px; margin-bottom: 28px; background: var(--gray-100); padding: 4px; border-radius: 12px; }
.transfer-tab {
  flex: 1;
  padding: 10px 20px;
  border-radius: 10px;
  border: none;
  background: none;
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
}
.transfer-tab.active { background: white; color: var(--primary); box-shadow: var(--shadow); }
.transfer-amount-display {
  text-align: center;
  padding: 40px;
  background: var(--gray-100);
  border-radius: var(--radius);
  margin-bottom: 24px;
}
.tad-label { font-size: 14px; color: var(--text-muted); margin-bottom: 8px; }
.tad-amount { font-size: 48px; font-weight: 800; color: var(--primary); }
.tad-currency { font-size: 20px; color: var(--text-muted); }

/* ========== LOAN PLANS ========== */
.plans-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.plan-card {
  background: white;
  border-radius: var(--radius);
  border: 2px solid var(--gray-200);
  padding: 28px;
  transition: var(--transition);
  cursor: pointer;
  position: relative;
}
.plan-card:hover, .plan-card.selected {
  border-color: var(--primary);
  box-shadow: var(--shadow);
}
.plan-card.selected::before {
  content: '✓';
  position: absolute;
  top: -12px;
  right: -12px;
  width: 28px;
  height: 28px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
}
.plan-card.featured { border-color: var(--secondary); }
.plan-badge {
  position: absolute;
  top: -12px;
  left: 20px;
  background: var(--secondary);
  color: var(--primary);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 50px;
}
.plan-icon { font-size: 32px; margin-bottom: 16px; }
.plan-name { font-size: 18px; font-weight: 700; color: var(--primary); margin-bottom: 8px; }
.plan-rate { font-size: 28px; font-weight: 800; color: var(--secondary-dark); }
.plan-rate span { font-size: 14px; color: var(--text-muted); font-weight: 400; }
.plan-divider { height: 1px; background: var(--gray-200); margin: 16px 0; }
.plan-detail { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 8px; }
.plan-detail-label { color: var(--text-muted); }
.plan-detail-value { font-weight: 600; color: var(--text); }

/* ========== DEPOSIT SCHEME ========== */
.scheme-card {
  background: white;
  border-radius: var(--radius);
  border: 2px solid var(--gray-200);
  padding: 28px;
  transition: var(--transition);
}
.scheme-card:hover { border-color: var(--primary); box-shadow: var(--shadow); }
.scheme-header { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
.scheme-icon { font-size: 28px; }
.scheme-name { font-size: 18px; font-weight: 700; color: var(--primary); }
.scheme-tag { font-size: 12px; color: var(--text-muted); }
.scheme-rate { font-size: 32px; font-weight: 800; color: var(--success); margin-bottom: 4px; }
.scheme-rate-label { font-size: 13px; color: var(--text-muted); margin-bottom: 20px; }
.scheme-details { display: flex; flex-direction: column; gap: 10px; }
.scheme-detail { display: flex; justify-content: space-between; align-items: center; font-size: 13px; padding: 10px 0; border-bottom: 1px solid var(--gray-100); }
.scheme-detail:last-child { border-bottom: none; }

/* ========== PROFILE PAGE ========== */
.profile-banner {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  border-radius: var(--radius-lg);
  padding: 40px;
  color: white;
  display: flex;
  gap: 28px;
  align-items: center;
  margin-bottom: 28px;
}
.profile-avatar-wrap {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  font-weight: 700;
  color: white;
  flex-shrink: 0;
  border: 3px solid var(--secondary);
}
.profile-name { font-size: 24px; font-weight: 800; margin-bottom: 6px; }
.profile-email { font-size: 14px; color: rgba(255,255,255,0.7); margin-bottom: 4px; }
.profile-acct { font-size: 14px; color: var(--secondary); font-weight: 600; }
.profile-tags { display: flex; gap: 8px; margin-top: 12px; }
.profile-tag {
  background: rgba(255,255,255,0.1);
  padding: 5px 14px;
  border-radius: 50px;
  font-size: 12px;
  color: rgba(255,255,255,0.8);
}
.profile-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }

/* ========== PAGINATION ========== */
.pagination { display: flex; gap: 8px; align-items: center; justify-content: center; margin-top: 24px; }
.page-btn {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid var(--gray-300);
  background: white;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}
.page-btn:hover, .page-btn.active { background: var(--primary); color: white; border-color: var(--primary); }
.page-btn.active { pointer-events: none; }

/* ========== FILTER BAR ========== */
.filter-bar {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.filter-bar .form-control { max-width: 200px; }

/* ========== NOTIFICATIONS ========== */
.notif-list { display: flex; flex-direction: column; gap: 12px; }
.notif-item {
  display: flex;
  gap: 14px;
  padding: 16px;
  border-radius: 12px;
  background: var(--gray-100);
  transition: var(--transition);
  cursor: pointer;
}
.notif-item.unread { background: rgba(10,61,98,0.04); border-left: 3px solid var(--primary); }
.notif-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
.notif-content { flex: 1; }
.notif-title { font-size: 14px; font-weight: 600; color: var(--text); margin-bottom: 4px; }
.notif-desc { font-size: 13px; color: var(--text-muted); margin-bottom: 4px; }
.notif-time { font-size: 11px; color: var(--text-muted); }
.notif-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--primary); flex-shrink: 0; margin-top: 6px; }

/* ========== EMPTY STATE ========== */
.empty-state { text-align: center; padding: 60px 20px; color: var(--text-muted); }
.empty-icon { font-size: 60px; opacity: 0.3; margin-bottom: 16px; }
.empty-title { font-size: 18px; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.empty-desc { font-size: 14px; }

/* ========== CHART PLACEHOLDER ========== */
.chart-wrap { position: relative; width: 100%; height: 200px; }
.chart-bar-row { display: flex; gap: 10px; align-items: flex-end; height: 160px; padding: 0 8px; }
.chart-bar {
  flex: 1;
  border-radius: 8px 8px 0 0;
  background: linear-gradient(180deg, var(--primary-light), var(--primary));
  position: relative;
  cursor: pointer;
  transition: opacity 0.2s;
  min-width: 20px;
}
.chart-bar:hover { opacity: 0.8; }
.chart-bar.gold { background: linear-gradient(180deg, var(--secondary), var(--secondary-dark)); }
.chart-labels { display: flex; gap: 10px; padding: 8px 8px 0; }
.chart-label { flex: 1; text-align: center; font-size: 11px; color: var(--text-muted); }

/* ========== RESPONSIVE ========== */
@media (max-width: 1100px) {
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .qa-grid { grid-template-columns: repeat(3, 1fr); }
  .content-grid { grid-template-columns: 1fr; }
  .transfer-page-grid { grid-template-columns: 1fr; }
  .plans-grid { grid-template-columns: repeat(2, 1fr); }
  .profile-grid { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: translateX(0); }
  .main-content { margin-left: 0; }
  .topbar-menu-btn { display: flex; }
  .topbar-search { width: 160px; }
}
@media (max-width: 640px) {
  .page-content { padding: 16px; }
  .stats-row { grid-template-columns: 1fr 1fr; }
  .qa-grid { grid-template-columns: repeat(3, 1fr); }
  .welcome-banner { flex-direction: column; gap: 20px; text-align: center; }
  .welcome-balance { text-align: center; }
  .plans-grid { grid-template-columns: 1fr; }
  .content-grid-3 { grid-template-columns: 1fr; }
  .topbar-search { display: none; }
}

/* ========== BADGE VARIANTS ========== */
.badge { display:inline-flex;align-items:center;gap:5px;padding:4px 10px;border-radius:99px;font-size:11px;font-weight:700; }
.badge-success { background:rgba(39,174,96,.12);color:#27ae60; }
.badge-danger  { background:rgba(231,76,60,.12);color:#e74c3c; }
.badge-warning { background:rgba(234,181,67,.15);color:#c89a00; }
.badge-info    { background:rgba(52,152,219,.12);color:#2980b9; }
.badge-gray    { background:var(--gray-200);color:var(--text-muted); }
.badge-primary { background:rgba(10,61,98,.1);color:var(--primary); }

/* ========== TOGGLE SWITCH ========== */
.toggle-switch { position:relative;display:inline-block;width:46px;height:26px;flex-shrink:0; }
.toggle-switch input { opacity:0;width:0;height:0; }
.toggle-slider { position:absolute;inset:0;background:var(--gray-300);border-radius:99px;cursor:pointer;transition:var(--transition); }
.toggle-slider::before { content:'';position:absolute;width:20px;height:20px;left:3px;top:3px;background:white;border-radius:50%;transition:var(--transition);box-shadow:0 1px 4px rgba(0,0,0,.2); }
.toggle-switch input:checked + .toggle-slider { background:var(--primary); }
.toggle-switch input:checked + .toggle-slider::before { transform:translateX(20px); }

/* ========== DARK MODE ========== */
body.dark-mode {
  --text: #e8edf2;
  --text-muted: #8b9ab0;
  --bg: #111927;
  --card-bg: #1a2535;
  --gray-100: #1e2d3e;
  --gray-200: #263548;
  --gray-300: #304057;
}
body.dark-mode .db-layout { background:#111927; }
body.dark-mode .main-content { background:#111927; }
body.dark-mode .card,
body.dark-mode .db-topbar { background:#1a2535;border-color:#263548; }
body.dark-mode .form-control { background:#1e2d3e;border-color:#304057;color:#e8edf2; }
body.dark-mode .form-control:focus { background:#263548; }
body.dark-mode .tx-table thead th { background:#1e2d3e;color:#8b9ab0; }
body.dark-mode .tx-table tbody tr:hover { background:#1e2d3e; }
body.dark-mode .modal { background:#1a2535; }
body.dark-mode .page-content { background:#111927; }
body.dark-mode .mini-stat { border-color:#263548; }
body.dark-mode .notif-item { background:#1e2d3e; }
body.dark-mode .welcome-banner { background:linear-gradient(135deg,#0a3d62,#0d4f80); }
body.dark-mode .modal-overlay { background:rgba(0,0,0,.75); }
body.dark-mode .virtual-card { /* keep gradient */ }
body.dark-mode .tx-table { color:#e8edf2; }
body.dark-mode .loan-plan-card { background:#1a2535;border-color:#263548; }
body.dark-mode .scheme-card { background:#1a2535;border-color:#263548; }
body.dark-mode .topbar-search { background:#1e2d3e;color:#e8edf2;border-color:#304057; }
body.dark-mode .topbar-search::placeholder { color:#8b9ab0; }
body.dark-mode .btn-outline { border-color:#304057;color:#e8edf2; }
body.dark-mode .btn-ghost { color:#e8edf2; }
body.dark-mode .card-header { border-color:#263548; }
body.dark-mode .modal-footer { border-color:#263548; }
body.dark-mode .page-btn { background:#1e2d3e;border-color:#304057;color:#8b9ab0; }
body.dark-mode .page-btn.active, body.dark-mode .page-btn:hover { background:var(--primary);color:white; }
body.dark-mode select.form-control option { background:#1a2535; }

/* ========== PRINT STYLES ========== */
@media print {
  .sidebar, .db-topbar, .btn, button, .modal-overlay { display:none !important; }
  .main-content { margin-left:0 !important; }
  .page-content { padding:0 !important; }
  .card { box-shadow:none !important;border:1px solid #ddd !important; }
  body { background:white !important; color:black !important; }
  .print-header { display:block !important; }
}
.print-header { display:none; }

/* ========== RECEIPT ========== */
.receipt-line { display:flex;justify-content:space-between;align-items:center;padding:10px 0;border-bottom:1px dashed var(--gray-200);font-size:13px; }
.receipt-line:last-child { border-bottom:none; }
.receipt-line strong { color:var(--text); }
.receipt-total { display:flex;justify-content:space-between;align-items:center;padding:14px;background:var(--primary);color:white;border-radius:10px;font-weight:800;font-size:15px;margin-top:10px; }
.receipt-stamp { text-align:center;margin-top:20px;padding:12px;background:rgba(39,174,96,.08);border:2px solid rgba(39,174,96,.3);border-radius:10px; }

/* ========== AMORTIZATION TABLE ========== */
.amort-table { width:100%;border-collapse:collapse;font-size:13px; }
.amort-table th { background:var(--primary);color:white;padding:10px 12px;text-align:right; }
.amort-table th:first-child { text-align:center; }
.amort-table td { padding:9px 12px;text-align:right;border-bottom:1px solid var(--gray-100); }
.amort-table td:first-child { text-align:center;font-weight:700;color:var(--text-muted); }
.amort-table tr.paid td { color:var(--text-muted);background:rgba(39,174,96,.04); }
.amort-table tr.current td { background:rgba(234,181,67,.1);font-weight:700; }
.amort-table tfoot td { font-weight:800;color:var(--primary);background:var(--gray-100);border-top:2px solid var(--gray-300); }

/* ========== WIRE TRANSFER STEPS ========== */
.wire-step { display:flex;flex-direction:column;align-items:center;gap:4px;flex:1; }
.ws-num { width:32px;height:32px;border-radius:50%;background:var(--gray-200);color:var(--text-muted);display:flex;align-items:center;justify-content:center;font-weight:800;font-size:13px;transition:all .3s; }
.ws-label { font-size:11px;color:var(--text-muted);font-weight:600;transition:all .3s; }
.wire-step.active .ws-num { background:var(--primary);color:white; }
.wire-step.active .ws-label { color:var(--primary); }
.wire-step.done .ws-num { background:var(--success);color:white; }
.ws-line { flex:1;height:2px;background:var(--gray-200);align-self:center;margin-bottom:16px;transition:background .3s;min-width:20px; }
.ws-line.done { background:var(--success); }

/* ========== MOBILE BOTTOM NAV ========== */
.mobile-bottom-nav { display:none; }
@media (max-width:900px) {
  .mobile-bottom-nav {
    display:flex;
    position:fixed;
    bottom:0;left:0;right:0;
    background:white;
    border-top:1px solid var(--gray-200);
    z-index:200;
    padding:8px 0 max(8px,env(safe-area-inset-bottom));
    box-shadow:0 -4px 20px rgba(0,0,0,.08);
  }
  .mbn-item {
    flex:1;display:flex;flex-direction:column;align-items:center;gap:3px;
    font-size:10px;font-weight:600;color:var(--text-muted);cursor:pointer;
    padding:4px 0;transition:color .2s;text-decoration:none;
  }
  .mbn-item i { font-size:18px; }
  .mbn-item.active { color:var(--primary); }
  .mbn-center-btn {
    width:48px;height:48px;border-radius:50%;background:var(--primary);
    display:flex;align-items:center;justify-content:center;
    margin-top:-20px;box-shadow:0 4px 16px rgba(10,61,98,.4);
  }
  .mbn-center-btn i { color:white;font-size:18px; }
  .main-content { padding-bottom:72px; }
  body.dark-mode .mobile-bottom-nav { background:#1a2535;border-color:#263548; }
}

/* ========== DARK MODE: new sections ========== */
body.dark-mode .wire-step .ws-num { background:#263548;color:#8b9ab0; }
body.dark-mode .ws-line { background:#263548; }

/* ================================================================
   ████  DASHBOARD LUXURY TIER  ████
   International private banking dashboard refinements
   ================================================================ */

/* ── Body & Layout ─────────────────────────────────── */
.db-layout { background: #f0ebe0; }

/* ── Sidebar ───────────────────────────────────────── */
.sidebar {
  background: linear-gradient(180deg, #010912 0%, #020e1c 60%, #030e1a 100%);
  border-right: 1px solid rgba(201,168,80,.1);
}
.sidebar-logo {
  padding: 26px 22px;
  border-bottom: 1px solid rgba(201,168,80,.1);
}
.sidebar-logo-icon {
  background: var(--gold-gradient, linear-gradient(135deg, #c9a850, #e8d098, #c9a850));
  box-shadow: 0 4px 14px rgba(201,168,80,.3);
  color: #030e1a;
  border-radius: 10px;
}
.sidebar-logo-text { font-family: 'Cormorant Garamond', serif; font-size: 21px; font-weight: 600; letter-spacing: .04em; color: white; }
.sidebar-logo-text span { color: #c9a850; }

.nav-section-title {
  font-size: 9.5px; font-weight: 800; letter-spacing: .18em;
  text-transform: uppercase; color: rgba(201,168,80,.38);
  padding: 18px 22px 6px;
}
.sidebar-link {
  padding: 10px 22px; font-size: 13px; font-weight: 500; letter-spacing: .01em;
  color: rgba(255,255,255,.55); border-left: 2px solid transparent;
  border-radius: 0;
}
.sidebar-link:hover { background: rgba(201,168,80,.06); color: rgba(255,255,255,.9); border-left-color: rgba(201,168,80,.3); }
.sidebar-link.active {
  background: rgba(201,168,80,.1);
  color: #c9a850;
  border-left-color: #c9a850;
  font-weight: 600;
}
.sidebar-link i { color: inherit; font-size: 14px; }
.sidebar-footer { border-top: 1px solid rgba(201,168,80,.1); }
.sidebar-avatar {
  background: linear-gradient(135deg, #c9a850, #a07828);
  box-shadow: 0 3px 10px rgba(201,168,80,.3);
  font-weight: 700;
}

/* ── Topbar ────────────────────────────────────────── */
.topbar { background: #ffffff; box-shadow: 0 1px 0 rgba(201,168,80,.14), 0 2px 12px rgba(3,14,26,.05); }
.topbar-title { font-family: 'Cormorant Garamond', serif; font-size: 22px; font-weight: 600; font-style: italic; color: var(--primary, #030e1a); }
.topbar-search { background: #f5f0e6; border: 1px solid #e5dcc8; border-radius: 8px; }
.topbar-btn { background: #f5f0e6; border-radius: 8px; border: 1px solid #e5dcc8; transition: all .2s; }
.topbar-btn:hover { background: #ede5d2; border-color: #c9a850; color: #c9a850; }
.topbar-avatar { background: linear-gradient(135deg, #030e1a, #0f2a42); }

/* ── Welcome Banner ────────────────────────────────── */
.welcome-banner {
  background:
    radial-gradient(ellipse at 18% 40%, rgba(201,168,80,.22), transparent 44%),
    linear-gradient(145deg, #010912 0%, #030e1a 55%, #0f2a42 100%);
  border-radius: 18px;
  padding: 36px 40px;
  border: 1px solid rgba(201,168,80,.15);
  box-shadow: 0 8px 40px rgba(3,14,26,.2);
}
.welcome-banner::before {
  background: radial-gradient(circle, rgba(255,255,255,.04) 0%, transparent 70%);
}
.welcome-banner::after {
  background: radial-gradient(circle, rgba(201,168,80,.09) 0%, transparent 70%);
}
.welcome-greeting { font-size: 12px; text-transform: uppercase; letter-spacing: .12em; color: rgba(255,255,255,.55); }
.welcome-name { font-family: 'Cormorant Garamond', serif; font-size: 28px; font-weight: 600; font-style: italic; color: white; }
.welcome-acct { font-size: 12.5px; color: rgba(255,255,255,.55); letter-spacing: .04em; }
.wb-label { font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: rgba(255,255,255,.5); }
.wb-amount { font-family: 'Cormorant Garamond', serif; font-size: 42px; font-weight: 700; color: #c9a850; }

/* ── Stat Cards ────────────────────────────────────── */
.stat-card {
  background: #ffffff;
  border: 1px solid #e8dfc8;
  border-radius: 14px;
  box-shadow: 0 4px 20px rgba(3,14,26,.06);
  position: relative;
  overflow: hidden;
}
.stat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(135deg, #c9a850 0%, #e8d098 42%, #c9a850 100%);
  opacity: 0;
  transition: opacity .3s;
}
.stat-card:hover::before { opacity: 1; }
.stat-card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(3,14,26,.1), 0 0 0 1px rgba(201,168,80,.15); }
.stat-card-value { font-family: 'Cormorant Garamond', serif; font-size: 28px; font-weight: 700; color: #030e1a; }
.stat-card-label { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--text-muted, #5a5248); }
.sci-gold { background: rgba(201,168,80,.1); color: #a07828; }
.sci-blue { background: rgba(3,14,26,.07); color: #030e1a; }

/* ── Quick Actions ─────────────────────────────────── */
.quick-actions { background: #ffffff; border: 1px solid #e8dfc8; border-radius: 14px; box-shadow: 0 4px 20px rgba(3,14,26,.06); }
.section-title-sm { font-family: 'Cormorant Garamond', serif; font-size: 18px; font-weight: 600; font-style: italic; }
.qa-item { background: #f5f0e6; border: 1px solid transparent; border-radius: 12px; }
.qa-item:hover { background: rgba(3,14,26,.04); border-color: rgba(201,168,80,.2); }
.qa-label { font-size: 11px; font-weight: 600; letter-spacing: .03em; }

/* ── Card / Panel ──────────────────────────────────── */
.card { background: #ffffff; border: 1px solid #e8dfc8; border-radius: 14px; box-shadow: 0 4px 20px rgba(3,14,26,.06); }
.card-header { border-bottom: 1px solid #f0e9d8; background: linear-gradient(90deg, #faf9f5, #ffffff); }
.card-title { font-family: 'Cormorant Garamond', serif; font-size: 18px; font-weight: 600; font-style: italic; }

/* ── Virtual Card ──────────────────────────────────── */
.virtual-card {
  background: linear-gradient(145deg, #010912 0%, #030e1a 60%, #0f2a42 100%);
  border-radius: 20px;
  border: 1px solid rgba(201,168,80,.18);
  box-shadow: 0 20px 60px rgba(3,14,26,.3), inset 0 1px 0 rgba(255,255,255,.06);
}
.vc-chip { background: linear-gradient(135deg, #c9a850, #e8d098, #a07828); box-shadow: 0 2px 8px rgba(201,168,80,.3); border-radius: 6px; }
.vc-number { letter-spacing: 5px; font-family: 'Courier New', monospace; color: rgba(255,255,255,.9); }
.vc-name { text-transform: uppercase; letter-spacing: .12em; font-size: 13px; font-weight: 600; }

/* ── Transaction Table ─────────────────────────────── */
.tx-table thead th { background: #030e1a !important; color: rgba(201,168,80,.85) !important; font-size: 10px !important; letter-spacing: .12em !important; text-transform: uppercase !important; font-weight: 700 !important; }
.tx-table tbody tr:hover { background: #faf9f5; }
.tx-desc { font-size: 13.5px; font-weight: 600; }
.tx-amount-positive { color: #1e9b58; }
.tx-amount-negative { color: #c0392b; }

/* ── Progress Bar ──────────────────────────────────── */
.progress-fill { background: linear-gradient(90deg, #030e1a, #c9a850); }

/* ── Transfer Tabs ─────────────────────────────────── */
.transfer-tabs { background: #f0ebe0; border-radius: 10px; }
.transfer-tab.active { background: white; color: #030e1a; box-shadow: 0 2px 12px rgba(3,14,26,.1); }

/* ── Plan Cards ────────────────────────────────────── */
.plan-card:hover, .plan-card.selected { border-color: #c9a850; box-shadow: 0 8px 28px rgba(201,168,80,.18); }
.plan-card.featured { border-color: #c9a850; }
.plan-badge { background: linear-gradient(135deg, #c9a850, #e8d098, #c9a850); color: #030e1a; font-weight: 800; }

/* ══════════════════════════════════════════════════════════════
   DASHBOARD VINTAGE TIER  —  CTGMC  —  Est. 1987
   Aged parchment dashboard · Engraved panels · Antique gilt
   ══════════════════════════════════════════════════════════════ */

/* ── Dashboard Parchment Layout ────────────────────────────── */
.db-layout { background: #ede0c4 !important; }

/* ── Vintage Sidebar ───────────────────────────────────────── */
.sidebar {
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='vn'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23vn)' opacity='0.04'/%3E%3C/svg%3E"),
    linear-gradient(170deg, #2a1f0e 0%, #1c1208 52%, #3d2b0e 100%) !important;
  border-right: 2px solid #c4a97d !important;
}
.sidebar-logo {
  border-bottom: 1px solid rgba(196,169,125,.22) !important;
}
.sidebar-logo-icon {
  background: linear-gradient(145deg, #b8830a 0%, #e4c870 45%, #8a6008 100%) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.3), 0 3px 10px rgba(61,43,14,.35) !important;
  border-radius: 6px !important;
}
.sidebar-logo-text {
  font-family: 'IM Fell English', 'Cormorant Garamond', serif !important;
  font-style: italic !important;
  letter-spacing: .05em !important;
}
.nav-section-title {
  font-variant: small-caps !important;
  letter-spacing: .14em !important;
  color: rgba(196,169,125,.5) !important;
}
.sidebar-link { color: rgba(240,232,208,.58) !important; }
.sidebar-link:hover { background: rgba(196,169,125,.09) !important; color: rgba(240,232,208,.9) !important; }
.sidebar-link.active {
  background: rgba(184,131,10,.15) !important;
  color: #c4a97d !important;
  border-left-color: #b8830a !important;
}

/* ── Vintage Topbar ────────────────────────────────────────── */
.db-topbar {
  background: #f0e8d0 !important;
  border-bottom: 1.5px solid #c4a97d !important;
  box-shadow: inset 0 -1px 0 rgba(255,255,255,.7), 0 2px 12px rgba(61,43,14,.1) !important;
}

/* ── Vintage Welcome Banner ────────────────────────────────── */
.welcome-banner {
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='vn'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23vn)' opacity='0.04'/%3E%3C/svg%3E"),
    radial-gradient(ellipse at 20% 50%, rgba(184,131,10,.20), transparent 44%),
    linear-gradient(135deg, #1c1208 0%, #2a1f0e 52%, #3d2b0e 100%) !important;
  border-bottom: 2px solid #c4a97d !important;
  position: relative;
}
.welcome-banner::after {
  content: '';
  position: absolute;
  inset: 8px 0;
  border-top: 1px solid rgba(196,169,125,.18);
  border-bottom: 1px solid rgba(196,169,125,.18);
  pointer-events: none;
}
.welcome-title {
  font-family: 'IM Fell English', 'Cormorant Garamond', serif !important;
  font-style: italic !important;
  text-shadow: 0 2px 0 rgba(255,255,255,.07), 0 -1px 0 rgba(0,0,0,.22) !important;
}
.balance-amount {
  font-family: 'IM Fell English', 'Cormorant Garamond', serif !important;
  font-style: italic !important;
  text-shadow: 0 0 24px rgba(184,131,10,.35) !important;
  color: #d4b050 !important;
}

/* ── Vintage Stat Cards ────────────────────────────────────── */
.stat-card {
  background: #faf5e8 !important;
  border: 1px solid #c4a97d !important;
  border-top: 3px solid #b8830a !important;
  box-shadow: 0 4px 20px rgba(61,43,14,.11), inset 0 0 28px rgba(160,114,10,.05) !important;
  border-radius: 5px !important;
  position: relative;
}
.stat-card::before {
  content: '';
  position: absolute;
  inset: 7px;
  border: 1px solid rgba(196,169,125,.22);
  border-radius: 3px;
  pointer-events: none;
}
.stat-card:hover {
  transform: translateY(-4px) !important;
  box-shadow: 0 10px 34px rgba(61,43,14,.16), inset 0 0 28px rgba(160,114,10,.05) !important;
}
.stat-value {
  font-family: 'IM Fell English', 'Cormorant Garamond', serif !important;
  font-style: italic !important;
  color: #3d2b0e !important;
}
.stat-title { font-variant: small-caps !important; letter-spacing: .08em !important; }

/* ══════════════════════════════════════════════════════════
   RICH VIRTUAL CARD  —  CTGMC
   Premium bank card with logo, holographic shimmer, EMV chip
   ══════════════════════════════════════════════════════════ */
.virtual-card {
  background: linear-gradient(145deg, #060e1c 0%, #0d1f35 35%, #1a0f02 75%, #0f1a30 100%) !important;
  border: 1px solid rgba(196,169,125,.32) !important;
  border-radius: 18px !important;
  box-shadow:
    0 24px 70px rgba(28,18,8,.45),
    0 4px 20px rgba(196,169,125,.1),
    inset 0 1px 0 rgba(255,255,255,.08) !important;
  aspect-ratio: 85.6 / 53.98 !important;
  overflow: hidden !important;
  position: relative !important;
  padding: 22px 26px !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  min-height: 200px !important;
  cursor: default !important;
  user-select: none !important;
}
/* Holographic light sweep */
.virtual-card::before {
  content: '' !important;
  position: absolute !important;
  inset: 0 !important;
  background:
    radial-gradient(ellipse at 20% 25%, rgba(196,169,125,.10) 0%, transparent 55%),
    radial-gradient(ellipse at 80% 75%, rgba(255,255,255,.05) 0%, transparent 50%) !important;
  border-radius: inherit !important;
  pointer-events: none !important;
  z-index: 1 !important;
}
/* Subtle diagonal shine */
.virtual-card::after {
  content: '' !important;
  position: absolute !important;
  top: -60% !important; left: -30% !important;
  width: 80% !important; height: 200% !important;
  background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,.04) 50%, transparent 60%) !important;
  transform: rotate(-10deg) !important;
  pointer-events: none !important;
  z-index: 1 !important;
}
.virtual-card > * { position: relative !important; z-index: 2 !important; }

/* Gold card variant */
.virtual-card.vc-gold {
  background: linear-gradient(145deg, #3a2000 0%, #6b3c00 40%, #2a1500 80%, #4a2800 100%) !important;
  border-color: rgba(228,200,152,.42) !important;
  box-shadow:
    0 24px 70px rgba(100,50,0,.5),
    0 4px 20px rgba(228,200,152,.15),
    inset 0 1px 0 rgba(255,255,255,.10) !important;
}

/* ── Card Header Row ─────── */
.vc-header {
  display: flex !important;
  justify-content: space-between !important;
  align-items: flex-start !important;
  flex-direction: row-reverse !important;
}
.vc-bank-row {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
}
.vc-bank-logo {
  width: 32px !important;
  height: 32px !important;
  border-radius: 7px !important;
  background: linear-gradient(145deg, #b8830a, #e4c870, #8a6008) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.3),
    0 2px 10px rgba(61,43,14,.45) !important;
  overflow: hidden !important;
  flex-shrink: 0 !important;
}
.vc-bank-logo img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  display: block !important;
  border-radius: 6px !important;
}
.vc-bank-logo-icon {
  font-size: 13px !important;
  color: #1a0f02 !important;
}
.vc-bank-name {
  font-family: 'IM Fell English', 'Cormorant Garamond', serif !important;
  font-style: italic !important;
  font-size: 12.5px !important;
  font-weight: 500 !important;
  color: rgba(212,190,140,.85) !important;
  letter-spacing: .04em !important;
  text-shadow: 0 1px 4px rgba(0,0,0,.6) !important;
  line-height: 1 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  max-width: 160px !important;
}
.vc-contactless {
  width: 22px !important;
  height: 22px !important;
  opacity: .55 !important;
  flex-shrink: 0 !important;
}
.vc-contactless svg { width: 100% !important; height: 100% !important; }

/* ── EMV Chip ───────────────── */
.vc-chip-row {
  display: flex !important;
  align-items: center !important;
  gap: 0 !important;
}
.vc-chip {
  width: 46px !important;
  height: 36px !important;
  background: linear-gradient(135deg, #b8830a 0%, #e4c870 48%, #8a6008 100%) !important;
  border-radius: 7px !important;
  position: relative !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.32),
    inset 0 -1px 0 rgba(0,0,0,.2),
    0 3px 12px rgba(61,43,14,.35) !important;
}
/* Chip contact plate lines */
.vc-chip::before {
  content: '' !important;
  position: absolute !important;
  top: 5px !important; bottom: 5px !important;
  left: 6px !important; right: 6px !important;
  border: 1px solid rgba(120,80,5,.55) !important;
  border-radius: 3px !important;
}
.vc-chip::after {
  content: '' !important;
  position: absolute !important;
  top: 50% !important; left: 50% !important;
  transform: translate(-50%,-50%) !important;
  width: 1px !important;
  height: calc(100% - 10px) !important;
  background: rgba(120,80,5,.45) !important;
}

/* ── Card Number ────────────── */
.vc-number {
  font-family: 'Courier New', monospace !important;
  font-size: 16px !important;
  letter-spacing: 5px !important;
  color: rgba(255,255,255,.88) !important;
  text-shadow:
    0 0 14px rgba(196,169,125,.35),
    0 1px 3px rgba(0,0,0,.5) !important;
  margin: 0 !important;
}

/* ── Card Footer ────────────── */
.vc-footer {
  display: flex !important;
  justify-content: space-between !important;
  align-items: flex-end !important;
}
.vc-holder-info,
.vc-expiry-block {
  display: flex !important;
  flex-direction: column !important;
  gap: 3px !important;
}
.vc-label {
  font-size: 7.5px !important;
  letter-spacing: .13em !important;
  text-transform: uppercase !important;
  color: rgba(196,169,125,.55) !important;
  font-family: sans-serif !important;
  line-height: 1 !important;
}
.vc-name {
  font-size: 12.5px !important;
  font-weight: 700 !important;
  letter-spacing: .14em !important;
  font-variant: small-caps !important;
  text-transform: uppercase !important;
  color: rgba(255,255,255,.9) !important;
  line-height: 1 !important;
}
.vc-expiry {
  font-size: 13px !important;
  font-weight: 600 !important;
  color: rgba(255,255,255,.85) !important;
  line-height: 1 !important;
  font-family: 'Courier New', monospace !important;
}
.vc-status-badge {
  display: inline-block !important;
  font-size: 9px !important;
  font-weight: 700 !important;
  letter-spacing: .1em !important;
  text-transform: uppercase !important;
  padding: 3px 7px !important;
  border-radius: 20px !important;
  line-height: 1 !important;
}
.vc-status-active {
  background: rgba(39,174,96,.25) !important;
  color: #5fffaa !important;
  border: 1px solid rgba(39,174,96,.35) !important;
}
.vc-status-frozen {
  background: rgba(52,152,219,.25) !important;
  color: #7dd5ff !important;
  border: 1px solid rgba(52,152,219,.35) !important;
}
/* ── Network Brand ──────────── */
.vc-network-brand {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
}
.vc-visa-text {
  font-family: 'Times New Roman', 'Georgia', serif !important;
  font-style: italic !important;
  font-size: 24px !important;
  font-weight: 900 !important;
  color: #fff !important;
  letter-spacing: -.02em !important;
  text-shadow: 0 1px 6px rgba(0,0,0,.4) !important;
  line-height: 1 !important;
}
.vc-mc-wrap {
  display: flex !important;
  position: relative !important;
  width: 44px !important;
  height: 26px !important;
}
.vc-mc-circle {
  width: 28px !important;
  height: 28px !important;
  border-radius: 50% !important;
  position: absolute !important;
  top: 0 !important;
}
.vc-mc-r {
  left: 0 !important;
  background: rgba(235,0,27,.82) !important;
  box-shadow: 0 0 6px rgba(235,0,27,.3) !important;
}
.vc-mc-y {
  left: 16px !important;
  background: rgba(255,163,0,.82) !important;
  mix-blend-mode: screen !important;
  box-shadow: 0 0 6px rgba(255,163,0,.3) !important;
}

/* Dark-mode keeps card colors intact */
body.dark-mode .virtual-card {
  background: linear-gradient(145deg, #060e1c 0%, #0d1f35 35%, #1a0f02 75%, #0f1a30 100%) !important;
}

/* ── Vintage Card / Panel ──────────────────────────────────── */
.card {
  background: #faf5e8 !important;
  border: 1px solid #d0c09a !important;
  border-radius: 5px !important;
  box-shadow: 0 4px 20px rgba(61,43,14,.09), inset 0 0 24px rgba(160,114,10,.04) !important;
}
.card-header {
  background: linear-gradient(90deg, #f0e8d0, #faf5e8) !important;
  border-bottom: 1px solid #d0c09a !important;
}
.card-title {
  font-family: 'IM Fell English', 'Cormorant Garamond', serif !important;
  font-style: italic !important;
  color: #3d2b0e !important;
}

/* ── Vintage Transaction Table ─────────────────────────────── */
.tx-table thead th {
  background: #2a1f0e !important;
  color: rgba(196,169,125,.88) !important;
  font-variant: small-caps !important;
  letter-spacing: .12em !important;
}
.tx-table tbody tr:hover { background: #f5eed8 !important; }
.tx-desc { font-family: 'IM Fell English', 'Cormorant Garamond', serif !important; font-style: italic !important; }

/* ── Vintage Transfer Tabs ─────────────────────────────────── */
.transfer-tabs { background: #e6d8b8 !important; border-radius: 4px !important; }
.transfer-tab.active {
  background: #faf5e8 !important;
  color: #3d2b0e !important;
  box-shadow: inset 0 0 0 1px #c4a97d, 0 2px 12px rgba(61,43,14,.12) !important;
}

/* ── Vintage Plan / Scheme Cards ───────────────────────────── */
.plan-card:hover, .plan-card.selected {
  border-color: #b8830a !important;
  box-shadow: 0 8px 28px rgba(184,131,10,.2) !important;
}
.plan-card.featured { border-color: #b8830a !important; }
.plan-badge {
  background: linear-gradient(135deg, #b8830a, #e4c870, #b8830a) !important;
  color: #1c1208 !important;
  border-radius: 3px !important;
}

/* ── Vintage Progress Bar ──────────────────────────────────── */
.progress-fill {
  background: linear-gradient(90deg, #3d2b0e, #b8830a) !important;
}

/* ── Vintage Form Inputs (Dashboard) ──────────────────────── */
.db-main input[type="text"],
.db-main input[type="number"],
.db-main input[type="email"],
.db-main select,
.db-main textarea {
  background: #faf5e8 !important;
  border-color: #c4a97d !important;
  border-radius: 4px !important;
  font-family: 'Libre Baskerville', 'Cormorant Garamond', serif !important;
}
.db-main input:focus,
.db-main select:focus,
.db-main textarea:focus {
  border-color: #b8830a !important;
  box-shadow: 0 0 0 3px rgba(184,131,10,.1) !important;
}

/* ── Vintage Quick Action Buttons ──────────────────────────── */
.quick-action {
  border-radius: 5px !important;
  border: 1px solid #d0c09a !important;
  background: #faf5e8 !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.6), 0 2px 8px rgba(61,43,14,.1) !important;
}
.quick-action:hover {
  border-color: #b8830a !important;
  background: #fdf8ee !important;
}
.quick-action-icon { color: #b8830a !important; }

/* ── Vintage OTP Modal (Dashboard) ────────────────────────── */
.otp-method-card:hover, .otp-method-card.selected {
  border-color: #b8830a !important;
  background: rgba(184,131,10,.06) !important;
}
.otp-method-card i { color: #3d2b0e !important; }
.otp-box {
  border-color: #c4a97d !important;
  background: #faf5e8 !important;
  color: #3d2b0e !important;
  border-radius: 4px !important;
}
.otp-box:focus { border-color: #b8830a !important; }

/* ── Dark Mode Vintage Overrides ───────────────────────────── */
body.dark-mode .db-layout { background: #100d08 !important; }
body.dark-mode .card {
  background: #1e1610 !important;
  border-color: rgba(196,169,125,.18) !important;
}
body.dark-mode .card-header {
  background: linear-gradient(90deg, #1c1208, #1e1610) !important;
  border-bottom-color: rgba(196,169,125,.15) !important;
}
body.dark-mode .stat-card {
  background: #1e1610 !important;
  border-color: rgba(196,169,125,.18) !important;
}
body.dark-mode .tx-table tbody tr:hover { background: rgba(196,169,125,.06) !important; }
body.dark-mode .db-topbar {
  background: #1c1208 !important;
  border-bottom-color: rgba(196,169,125,.2) !important;
}
.plan-name { font-family: 'Cormorant Garamond', serif; font-size: 19px; font-weight: 600; }
.plan-rate { color: #a07828; font-family: 'Cormorant Garamond', serif; }

/* ── Scheme Cards ──────────────────────────────────── */
.scheme-card:hover { border-color: #c9a850; box-shadow: 0 8px 28px rgba(201,168,80,.15); }
.scheme-name { font-family: 'Cormorant Garamond', serif; font-size: 19px; font-weight: 600; }
.scheme-rate { color: #1e9b58; font-family: 'Cormorant Garamond', serif; }

/* ── Profile Banner ────────────────────────────────── */
.profile-banner {
  background:
    radial-gradient(ellipse at 18% 40%, rgba(201,168,80,.2), transparent 44%),
    linear-gradient(145deg, #010912 0%, #030e1a 55%, #0f2a42 100%);
  border: 1px solid rgba(201,168,80,.15);
  border-radius: 18px;
}
.profile-avatar-wrap { border: 3px solid #c9a850; box-shadow: 0 4px 20px rgba(201,168,80,.3); }
.profile-name { font-family: 'Cormorant Garamond', serif; font-size: 26px; font-weight: 600; font-style: italic; }
.profile-acct { color: #c9a850; }

/* ── Notification Items ────────────────────────────── */
.notif-item { background: #f5f0e6; border-radius: 10px; }
.notif-item.unread { background: rgba(201,168,80,.06); border-left: 3px solid #c9a850; }

/* ── Pagination ────────────────────────────────────── */
.page-btn:hover, .page-btn.active { background: #030e1a; border-color: #030e1a; }

/* ── Chart Bars ────────────────────────────────────── */
.chart-bar { background: linear-gradient(180deg, #0f2a42, #030e1a); }
.chart-bar.gold { background: linear-gradient(180deg, #c9a850, #a07828); }

/* ── Mobile Bottom Nav ─────────────────────────────── */
.mobile-bottom-nav { background: #ffffff; border-top: 1px solid rgba(201,168,80,.18); }
.mbn-item.active { color: #030e1a; }
.mbn-center-btn { background: linear-gradient(135deg, #c9a850, #a07828); box-shadow: 0 4px 18px rgba(201,168,80,.4); }

/* ── Amortization Table ────────────────────────────── */
.amort-table th { background: #030e1a; color: rgba(201,168,80,.85); }
.amort-table tr.current td { background: rgba(201,168,80,.08); font-weight: 700; }

/* ── Toggle Slider ─────────────────────────────────── */
.toggle-switch input:checked + .toggle-slider { background: #c9a850; }

/* ── Dark Mode Luxury Overrides ────────────────────── */
body.dark-mode .db-layout { background: #050d18; }
body.dark-mode .card, body.dark-mode .quick-actions { background: #0d1c2e; border-color: rgba(201,168,80,.1); }
body.dark-mode .stat-card { background: #0d1c2e; border-color: rgba(201,168,80,.1); }
body.dark-mode .topbar { background: #0a1625; border-bottom: 1px solid rgba(201,168,80,.1); }
body.dark-mode .card-header { background: #0a1625; border-color: rgba(201,168,80,.08); }
body.dark-mode .tx-table tbody tr:hover { background: rgba(201,168,80,.04); }
body.dark-mode .qa-item { background: rgba(255,255,255,.04); }
body.dark-mode .topbar-search { background: rgba(255,255,255,.04); border-color: rgba(201,168,80,.1); }
body.dark-mode .topbar-btn { background: rgba(255,255,255,.04); border-color: rgba(201,168,80,.08); }
body.dark-mode .notif-item { background: rgba(255,255,255,.04); }
body.dark-mode .mobile-bottom-nav { background: #0a1625; border-color: rgba(201,168,80,.1); }
body.dark-mode .page-content { background: #050d18; }

