@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,700;1,700&family=Inter:wght@400;500;600;700&display=swap');

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

:root {
  --red: #c8102e;
  --red-dark: #8b0a1e;
  --red-light: rgba(200,16,46,0.08);
  --dark: #1a1a1a;
  --dark-navy: #1a1a2e;
  --bg: #f5f5f7;
  --bg2: #f0f0f0;
  --white: #fff;
  --border: #e5e7eb;
  --border-light: #f3f4f6;
  --text: #111827;
  --text-muted: #6b7280;
  --text-light: #9ca3af;
  --green: #2e7d32;
  --green-light: #f0fdf4;
  --green-text: #15803d;
  --red-light-bg: #fef2f2;
  --serif: 'Playfair Display', serif;
  --sans: 'Inter', system-ui, sans-serif;
}

body { font-family: var(--sans); color: var(--text); background: var(--bg); line-height: 1.5; }
a { text-decoration: none; color: inherit; }
button { font-family: var(--sans); cursor: pointer; border: none; background: none; }
input { font-family: var(--sans); }

/* ── Utility ── */
.sr-only { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; }
.hidden { display: none !important; }
.tabular { font-variant-numeric: tabular-nums; }

/* ── Top Black Bar ── */
.topbar {
  background: var(--dark);
  color: #fff;
  font-size: 12px;
}
.topbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
}
.topbar-left, .topbar-right { display: flex; align-items: center; }
.topbar a {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 10px 12px;
  color: rgba(255,255,255,0.9);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.05em;
  transition: color 0.15s;
}
.topbar a:hover { color: #fff; }
.topbar-sep { color: rgba(255,255,255,0.3); }

/* ── Main Header (login page) ── */
.main-header {
  background: var(--white);
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
  position: relative;
  z-index: 10;
}
.main-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
}
.logo { display: flex; align-items: center; gap: 12px; }
.logo-circle {
  width: 54px; height: 54px;
  border-radius: 50%;
  background: var(--red);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.logo-circle span {
  color: #fff;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 20px;
}
.logo-text h1 {
  font-family: var(--serif);
  font-weight: 700;
  color: var(--red);
  font-size: 20px;
  letter-spacing: 0.05em;
}
.fdic-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 2px;
}
.fdic-badge {
  font-size: 9px;
  font-weight: 700;
  color: #111;
  border: 1px solid #111;
  padding: 1px 3px;
  line-height: 1.2;
}
.fdic-text { font-size: 10px; color: var(--text-muted); font-style: italic; }

.main-nav { display: flex; align-items: center; }
.nav-pills {
  display: flex;
  align-items: center;
  background: var(--red);
  border-radius: 3px;
  overflow: hidden;
}
.nav-pills a {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 10px 20px;
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  border-right: 1px solid rgba(255,255,255,0.2);
}
.nav-pills a:last-child { border-right: none; padding: 10px 14px; }
.nav-pills a:hover { background: rgba(255,255,255,0.1); }

/* ── Hero ── */
.hero {
  position: relative;
  width: 100%;
  height: 260px;
  overflow: hidden;
}
.hero img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.42);
}
.hero-text {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
}
.hero-text-inner { max-width: 1200px; margin: 0 auto; padding: 0 16px; width: 100%; }
.hero-text h2 {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 700;
  color: #fff;
  font-size: clamp(26px, 4vw, 50px);
}

/* ── Login Section ── */
.login-section {
  background: #f5f5f5;
  padding: 60px 16px;
}
.login-card {
  background: var(--white);
  border-radius: 6px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  padding: 32px;
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
}
.login-heading {
  color: var(--red);
  text-align: center;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 28px;
}
.form-group { margin-bottom: 14px; }
.input-wrap {
  border: 1px solid #d1d5db;
  border-radius: 4px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--white);
}
.input-wrap input {
  flex: 1;
  padding: 12px 14px;
  font-size: 13px;
  color: var(--text);
  border: none;
  outline: none;
  background: transparent;
}
.input-wrap input::placeholder { color: var(--text-light); }
.input-wrap input:focus { box-shadow: inset 0 0 0 2px rgba(200,16,46,0.15); }
.show-btn {
  padding: 0 12px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
  cursor: pointer;
}
.btn-primary {
  width: 100%;
  background: var(--red);
  color: #fff;
  padding: 14px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.03em;
  transition: background 0.15s;
  margin-top: 4px;
}
.btn-primary:hover { background: var(--red-dark); }
.login-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-top: 18px;
}
.login-links a { color: var(--red); font-size: 13px; font-weight: 600; }
.error-box {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
  padding: 12px 14px;
  border-radius: 4px;
  font-size: 13px;
  margin-bottom: 14px;
}

/* ── Dashboard Topbar ── */
.dash-topbar {
  background: var(--dark);
  color: #fff;
}
.dash-topbar-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
}
.dash-logo {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--red);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.dash-logo span { color:#fff; font-family:var(--serif); font-weight:700; font-size:11px; }
.dash-topbar-left { display:flex; align-items:center; gap:24px; }
.dash-topbar-right { display:flex; align-items:center; gap:16px; }
.dash-nav-link {
  display:flex; align-items:center; gap:6px;
  color: rgba(255,255,255,0.8);
  font-size: 13px;
  transition: color 0.15s;
}
.dash-nav-link:hover { color:#fff; }
.dash-nav-link svg { width:16px; height:16px; flex-shrink:0; }
.dash-nav-btn {
  display:flex; align-items:center; gap:6px;
  color: rgba(255,255,255,0.8);
  font-size: 13px;
  cursor: pointer;
  transition: color 0.15s;
}
.dash-nav-btn:hover { color:#fff; }
.dash-nav-btn svg { width:16px; height:16px; flex-shrink:0; }

/* ── Dashboard Layout ── */
.dash-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 24px;
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 24px;
}
@media (max-width: 1024px) {
  .dash-content { grid-template-columns: 1fr; }
}

/* ── Account Cards ── */
.account-card {
  background: var(--white);
  border-radius: 10px;
  border: 1px solid var(--border-light);
  cursor: pointer;
  transition: all 0.2s;
  margin-bottom: 12px;
}
.account-card:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  border-color: var(--border);
  transform: translateY(-2px);
}
.account-card-inner {
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.account-card-left { display:flex; align-items:center; gap:12px; min-width:0; }
.account-icon {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--red-light);
  display:flex; align-items:center; justify-content:center;
  flex-shrink: 0;
}
.account-icon svg { width:20px; height:20px; color:var(--red); }
.account-name {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text);
}
.account-meta { font-size: 11px; color: var(--text-light); margin-top: 2px; }
.account-card-right { display:flex; align-items:center; gap:12px; flex-shrink:0; }
.account-balance { font-size: 26px; font-weight: 700; color: var(--dark-navy); font-variant-numeric: tabular-nums; }
.account-credit-score { font-size: 30px; font-weight: 700; color: var(--green); font-variant-numeric: tabular-nums; }
.credit-label { font-size: 13px; color: var(--text-light); font-weight: 500; }
.chevron-right svg { width:20px; height:20px; color:#d1d5db; transition:color 0.15s; }
.account-card:hover .chevron-right svg { color: var(--red); }

/* ── Quick Actions ── */
.quick-actions {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 8px;
  margin-bottom: 16px;
}
.qa-dark {
  background: var(--dark-navy);
  border-radius: 12px;
  padding: 20px;
  display: flex; flex-direction: column; align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: all 0.2s;
}
.qa-dark:hover { background: #252540; box-shadow: 0 8px 20px rgba(0,0,0,0.2); transform: translateY(-2px); }
.qa-light {
  background: var(--white);
  border-radius: 12px;
  border: 1px solid var(--border-light);
  padding: 20px;
  display: flex; flex-direction: column; align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: all 0.2s;
}
.qa-light:hover { box-shadow: 0 8px 20px rgba(0,0,0,0.08); border-color: var(--border); transform: translateY(-2px); }
.qa-icon-dark {
  width: 48px; height: 48px;
  border-radius: 10px;
  background: rgba(255,255,255,0.12);
  display:flex; align-items:center; justify-content:center;
}
.qa-icon-dark svg { width:22px; height:22px; color:#fff; }
.qa-dark span { color:#fff; font-size:11px; font-weight:600; letter-spacing:0.05em; }
.qa-icon-light {
  width: 48px; height: 48px;
  border-radius: 10px;
  background: var(--red-light);
  display:flex; align-items:center; justify-content:center;
}
.qa-icon-light svg { width:22px; height:22px; color:var(--red); }
.qa-light span { color: #374151; font-size:11px; font-weight:600; letter-spacing:0.05em; }

/* ── Recent Transactions ── */
.panel {
  background: var(--white);
  border-radius: 10px;
  border: 1px solid var(--border-light);
  margin-bottom: 16px;
  overflow: hidden;
}
.panel-header {
  padding: 16px 24px;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.panel-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #374151;
}
.panel-link {
  color: var(--red);
  font-size: 11px;
  font-weight: 600;
  display: flex; align-items:center; gap:4px;
}
.panel-link:hover { text-decoration: underline; }
.panel-link svg { width:14px; height:14px; }
.tx-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 24px;
  border-bottom: 1px solid rgba(243,244,246,0.8);
  transition: background 0.1s;
}
.tx-row:last-child { border-bottom: none; }
.tx-row:hover { background: rgba(249,250,251,0.7); }
.tx-left { display:flex; align-items:center; gap:12px; min-width:0; }
.tx-icon {
  width: 36px; height: 36px;
  border-radius: 50%;
  display:flex; align-items:center; justify-content:center;
  flex-shrink: 0;
}
.tx-icon.credit { background: var(--green-light); }
.tx-icon.debit { background: var(--red-light-bg); }
.tx-icon.credit svg { width:14px; height:14px; color: var(--green-text); }
.tx-icon.debit svg { width:14px; height:14px; color: #ef4444; }
.tx-desc { font-size: 13px; font-weight: 500; color: #1f2937; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 260px; }
.tx-date { font-size: 10px; color: var(--text-light); margin-top: 2px; }
.tx-amount { font-size: 13px; font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.tx-amount.credit { color: var(--green-text); }
.tx-amount.debit { color: #ef4444; }

/* ── Bank Cards ── */
.cards-stack {
  position: relative;
  height: 210px;
  cursor: pointer;
  margin-bottom: 16px;
  user-select: none;
}
.bank-card {
  position: absolute;
  width: 260px;
  height: 160px;
  border-radius: 12px;
  padding: 20px;
  transition: all 0.5s ease;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}
.bank-card-top { display:flex; align-items:flex-start; justify-content:space-between; margin-bottom: 28px; }
.bank-card-bankname { font-size: 9px; text-transform: uppercase; letter-spacing: 0.2em; }
.card-circles { display:flex; align-items:center; }
.card-circle { width:22px; height:22px; border-radius:50%; }
.bank-card-number { font-size: 11px; letter-spacing: 0.22em; font-family: monospace; margin-bottom: 10px; }
.bank-card-bottom { display:flex; align-items:flex-end; justify-content:space-between; }
.bank-card-name { font-size: 11px; font-weight: 500; }
.bank-card-type { font-size: 9px; }

/* ── Settings Panel ── */
.settings-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-bottom: 1px solid rgba(243,244,246,0.8);
  transition: background 0.1s;
}
.settings-row:last-child { border-bottom: none; }
.settings-row:hover { background: rgba(249,250,251,0.7); }
.settings-row span { font-size: 13px; color: var(--text-muted); }
.settings-row svg { width:16px; height:16px; color: #d1d5db; }

/* ── Summary Panel ── */
.summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.summary-row:last-child { margin-bottom: 0; }
.summary-label { font-size: 13px; color: var(--text-muted); }
.summary-value { font-size: 13px; font-weight: 700; color: var(--text); font-variant-numeric: tabular-nums; }
.summary-value.muted { font-weight: 500; color: #374151; }
.summary-divider { height: 1px; background: var(--border-light); margin: 12px 0; }
.panel-body { padding: 16px 20px; }

/* ── Profile / Account History Topbar ── */
.inner-topbar { background: var(--dark); color: #fff; }
.inner-topbar-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
}
.inner-topbar-left { display:flex; align-items:center; gap:24px; }
.inner-topbar-right { display:flex; align-items:center; gap:16px; }

/* ── Profile Header ── */
.profile-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
}
.profile-header-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px 24px;
}
.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 18px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
}
.back-btn:hover { color: var(--text); }
.back-btn svg { width:16px; height:16px; }
.profile-info { display:flex; align-items:center; justify-content:space-between; gap:16px; flex-wrap:wrap; }
.profile-avatar-wrap { position:relative; display:inline-block; }
.profile-avatar {
  width: 76px; height: 76px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  display:flex; align-items:center; justify-content:center;
}
.profile-avatar span { color:#fff; font-family:var(--serif); font-weight:700; font-size:24px; }
.avatar-cam-btn {
  position:absolute; bottom:0; right:0;
  width:26px; height:26px;
  border-radius:50%;
  background:var(--white);
  border:2px solid var(--border);
  display:flex; align-items:center; justify-content:center;
  cursor:pointer;
}
.avatar-cam-btn svg { width:12px; height:12px; color:var(--text-muted); }
.profile-name-wrap { display:flex; align-items:flex-start; gap:16px; }
.profile-name { font-size:22px; font-weight:700; color:var(--text); }
.profile-since { font-size:12px; color:var(--text-muted); margin-top:2px; }
.profile-badges { display:flex; align-items:center; gap:8px; margin-top:8px; flex-wrap:wrap; }
.badge {
  display:inline-flex; align-items:center; gap:4px;
  padding: 2px 10px;
  border-radius:20px;
  font-size:11px;
  font-weight:500;
}
.badge.verified { background:var(--green-light); color:var(--green-text); }
.badge.verified svg { width:11px; height:11px; }
.badge.premium { background: rgba(200,16,46,0.06); color:var(--red); }
.profile-customer-id { text-align:right; }
.profile-customer-id .label { font-size:10px; color:var(--text-light); text-transform:uppercase; letter-spacing:0.1em; }
.profile-customer-id .value { font-size:13px; font-family:monospace; color:#374151; margin-top:2px; }

/* ── Profile Content ── */
.profile-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 24px;
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 24px;
}
@media (max-width: 768px) {
  .profile-content { grid-template-columns: 1fr; }
}
.profile-sidebar-nav {
  background: var(--white);
  border-radius: 6px;
  border: 1px solid var(--border);
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  overflow: hidden;
}
.profile-tab-btn {
  display:flex; align-items:center; gap:10px;
  width:100%;
  padding: 14px 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  border-left: 3px solid transparent;
  transition: all 0.15s;
  background: none;
  border-right:none; border-top:none; border-bottom:none;
  cursor:pointer;
  text-align:left;
}
.profile-tab-btn svg { width:16px; height:16px; flex-shrink:0; }
.profile-tab-btn:hover { background: var(--bg2); color:var(--text); }
.profile-tab-btn.active { background: rgba(200,16,46,0.04); color:var(--red); border-left-color:var(--red); }

.quick-info {
  background: var(--white);
  border-radius: 6px;
  border: 1px solid var(--border);
  padding: 16px;
  margin-top: 16px;
}
.quick-info-title {
  font-size: 10px; font-weight:700; text-transform:uppercase; letter-spacing:0.1em; color:#374151; margin-bottom:12px;
}
.quick-info-row { display:flex; justify-content:space-between; align-items:center; margin-bottom:12px; }
.quick-info-row:last-child { margin-bottom:0; }
.quick-info-row .lbl { font-size:11px; color:var(--text-muted); }
.quick-info-row .val { font-size:11px; font-weight:600; color:#374151; }
.quick-info-row .val.red { color:var(--red); }

/* ── Profile Section Panels ── */
.section-panel {
  background: var(--white);
  border-radius: 6px;
  border: 1px solid var(--border);
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  margin-bottom: 16px;
  overflow: hidden;
}
.section-panel-header {
  padding: 16px 24px;
  border-bottom: 1px solid #f3f4f6;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.section-panel-title {
  font-size: 11px; font-weight:700; text-transform:uppercase; letter-spacing:0.08em; color:#374151;
}
.edit-btn {
  display:flex; align-items:center; gap:5px;
  color:var(--red);
  font-size:13px;
  font-weight:500;
  cursor:pointer;
  background:none; border:none;
}
.edit-btn svg { width:13px; height:13px; }
.section-panel-body { padding: 20px 24px; }
.fields-grid { display:grid; grid-template-columns:1fr 1fr; gap:20px 32px; }
.fields-grid.full { grid-template-columns:1fr; }
@media (max-width:600px) { .fields-grid { grid-template-columns:1fr; } }
.field-label {
  display:flex; align-items:center; gap:5px;
  font-size:10px; text-transform:uppercase; letter-spacing:0.1em; color:var(--text-light);
  margin-bottom:5px;
}
.field-label svg { width:13px; height:13px; flex-shrink:0; }
.field-value { font-size:13px; font-weight:500; color:#1f2937; padding: 6px 0; }
.field-input {
  width:100%;
  padding: 8px 12px;
  font-size:13px;
  color:#1f2937;
  border: 1px solid #d1d5db;
  border-radius:4px;
  outline:none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.field-input:focus { border-color: rgba(200,16,46,0.4); box-shadow: 0 0 0 2px rgba(200,16,46,0.1); }
.edit-actions { display:flex; justify-content:flex-end; gap:12px; margin-top:4px; }
.btn-cancel {
  padding: 9px 22px;
  font-size:13px; font-weight:500;
  color:var(--text-muted);
  background:var(--white);
  border:1px solid #d1d5db;
  border-radius:4px;
  cursor:pointer;
}
.btn-save {
  padding: 9px 22px;
  font-size:13px; font-weight:500;
  color:#fff;
  background:var(--red);
  border:none;
  border-radius:4px;
  cursor:pointer;
}
.btn-save:hover { background:var(--red-dark); }

/* ── Security Rows ── */
.security-row {
  display:flex; align-items:center; justify-content:space-between; gap:8px;
  padding: 14px 24px;
  border-bottom: 1px solid #f9fafb;
}
.security-row:last-child { border-bottom:none; }
.security-row-left { display:flex; align-items:center; gap:14px; min-width:0; }
.security-icon {
  width:38px; height:38px;
  border-radius:8px;
  background: rgba(200,16,46,0.06);
  display:flex; align-items:center; justify-content:center;
  flex-shrink:0;
}
.security-icon svg { width:18px; height:18px; color:var(--red); }
.security-row-title { font-size:13px; font-weight:500; color:#1f2937; display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.security-row-desc { font-size:11px; color:var(--text-light); margin-top:2px; }
.enabled-badge {
  display:inline-flex; align-items:center; gap:3px;
  padding: 1px 7px;
  border-radius:20px;
  background:var(--green-light);
  color:var(--green-text);
  font-size:10px;
  font-weight:500;
}
.enabled-badge svg { width:9px; height:9px; }
.security-action-btn {
  display:flex; align-items:center; gap:3px;
  color:var(--red);
  font-size:13px; font-weight:500;
  cursor:pointer;
  background:none; border:none;
  flex-shrink:0;
}
.security-action-btn svg { width:14px; height:14px; }

/* ── Activity Rows ── */
.activity-row {
  padding: 14px 24px;
  border-bottom: 1px solid #f9fafb;
  display:flex; align-items:flex-start; justify-content:space-between; gap:12px;
}
.activity-row:last-child { border-bottom:none; }
.activity-date { font-size:12px; color:#374151; font-weight:500; }
.activity-device { font-size:11px; color:var(--text-muted); margin-top:2px; }
.activity-location { font-size:11px; color:var(--text-light); margin-top:1px; }
.activity-status {
  font-size:10px; font-weight:600;
  padding:2px 8px;
  border-radius:20px;
  white-space:nowrap;
  flex-shrink:0;
}
.activity-status.success { background:var(--green-light); color:var(--green-text); }
.activity-status.blocked { background:#fef2f2; color:#b91c1c; }

/* ── Notification Toggles ── */
.notif-row {
  display:flex; align-items:center; justify-content:space-between; gap:12px;
  padding: 14px 24px;
  border-bottom: 1px solid #f9fafb;
}
.notif-row:last-child { border-bottom:none; }
.notif-title { font-size:13px; font-weight:500; color:#1f2937; }
.notif-desc { font-size:11px; color:var(--text-light); margin-top:2px; }
.toggle {
  position:relative;
  width:40px; height:22px;
  flex-shrink:0;
}
.toggle input { display:none; }
.toggle-track {
  width:40px; height:22px;
  border-radius:11px;
  background:#d1d5db;
  transition:background 0.2s;
  cursor:pointer;
  display:block;
}
.toggle input:checked + .toggle-track { background:var(--green-text); }
.toggle-thumb {
  position:absolute;
  top:2px; left:2px;
  width:18px; height:18px;
  border-radius:50%;
  background:#fff;
  transition:transform 0.2s;
  pointer-events:none;
  box-shadow:0 1px 3px rgba(0,0,0,0.2);
}
.toggle input:checked ~ .toggle-thumb { transform:translateX(18px); }

/* ── Channel Cards ── */
.channel-cards { display:grid; grid-template-columns:repeat(3,1fr); gap:14px; padding: 20px 24px; }
.channel-card {
  border:1px solid var(--border);
  border-radius:8px;
  padding:16px;
  text-align:center;
}
.channel-icon {
  width:40px; height:40px;
  border-radius:50%;
  background:var(--red-light);
  display:flex; align-items:center; justify-content:center;
  margin:0 auto 10px;
}
.channel-icon svg { width:18px; height:18px; color:var(--red); }
.channel-title { font-size:13px; font-weight:600; color:#1f2937; }
.channel-status { font-size:10px; color:var(--text-muted); margin-top:2px; }
.channel-detail { font-size:10px; color:var(--text-light); margin-top:4px; word-break:break-all; }

/* ── Account History ── */
.acct-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
}
.acct-header-inner {
  max-width:1400px;
  margin:0 auto;
  padding: 18px 24px;
}
.acct-header-info { display:flex; align-items:center; justify-content:space-between; gap:16px; flex-wrap:wrap; }
.acct-header-left { display:flex; align-items:center; gap:14px; }
.acct-circle {
  width:48px; height:48px;
  border-radius:50%;
  background: rgba(200,16,46,0.1);
  display:flex; align-items:center; justify-content:center;
  flex-shrink:0;
}
.acct-circle svg { width:22px; height:22px; color:var(--red); }
.acct-name { font-size:17px; font-weight:700; text-transform:uppercase; letter-spacing:0.04em; color:var(--text); }
.acct-num { font-size:12px; color:var(--text-muted); margin-top:2px; }
.acct-balance-display { text-align:right; }
.acct-balance-val { font-size:28px; font-weight:700; color:var(--text); font-variant-numeric:tabular-nums; }
.acct-balance-val.score { color:var(--green); }
.acct-avail { font-size:11px; color:var(--text-light); margin-top:2px; }

.history-content {
  max-width:1400px;
  margin:0 auto;
  padding:24px;
}
.history-panel-header {
  padding: 16px 24px;
  border-bottom: 1px solid var(--border-light);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
}
.filter-controls { display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
.search-wrap { position:relative; }
.search-wrap svg {
  position:absolute;
  left:10px; top:50%;
  transform:translateY(-50%);
  width:14px; height:14px;
  color:var(--text-light);
}
.search-input {
  padding: 8px 14px 8px 32px;
  border:1px solid #d1d5db;
  border-radius:4px;
  font-size:13px;
  color:var(--text);
  width:220px;
  outline:none;
  transition: border-color 0.15s;
}
.search-input:focus { border-color:rgba(200,16,46,0.4); box-shadow:0 0 0 2px rgba(200,16,46,0.1); }
.filter-group { display:flex; border:1px solid #d1d5db; border-radius:4px; overflow:hidden; }
.filter-btn {
  padding: 8px 12px;
  font-size:11px; font-weight:500;
  background:var(--white);
  color: var(--text-muted);
  border-right:1px solid #d1d5db;
  cursor:pointer;
  transition:all 0.15s;
}
.filter-btn:last-child { border-right:none; }
.filter-btn.active { background:var(--red); color:#fff; }
.print-btn {
  display:flex; align-items:center; gap:5px;
  padding:8px 12px;
  font-size:11px; font-weight:500;
  border:1px solid #d1d5db;
  border-radius:4px;
  background:var(--white);
  color:var(--text-muted);
  cursor:pointer;
}
.print-btn svg { width:13px; height:13px; }

.tx-table-header {
  display:grid;
  grid-template-columns: 90px 1fr 100px 120px 80px 100px;
  gap:16px;
  padding: 10px 24px;
  background:#f9fafb;
  border-bottom:1px solid var(--border-light);
  font-size:10px;
  font-weight:600;
  text-transform:uppercase;
  letter-spacing:0.08em;
  color:var(--text-muted);
}
.tx-table-header .right { text-align:right; }
.tx-table-header .center { text-align:center; }
.tx-table-row {
  display:grid;
  grid-template-columns: 90px 1fr 100px 120px 80px 100px;
  gap:16px;
  padding: 12px 24px;
  border-bottom: 1px solid #f9fafb;
  align-items:center;
  transition:background 0.1s;
}
.tx-table-row:hover { background:#fafafa; }
.tx-table-row:last-child { border-bottom:none; }
.tx-table-date { font-size:11px; color:#374151; }
.tx-table-desc { display:flex; align-items:center; gap:10px; }
.tx-table-desc p { font-size:13px; color:#1f2937; }
.tx-cat { display:inline-flex; padding:1px 8px; border-radius:20px; background:#f3f4f6; font-size:11px; color:#6b7280; }
.tx-ref { font-size:11px; color:var(--text-light); font-family:monospace; }
.tx-status-cell { text-align:center; }
.tx-status {
  display:inline-flex;
  padding:2px 8px;
  border-radius:20px;
  font-size:10px;
  font-weight:500;
}
.tx-status.completed { background:var(--green-light); color:var(--green-text); }
.tx-status.pending { background:#fffbeb; color:#92400e; }
.tx-status.failed { background:#fef2f2; color:#b91c1c; }
.tx-amount-cell { text-align:right; font-size:13px; font-weight:600; font-variant-numeric:tabular-nums; }
.tx-amount-cell.credit { color:var(--green-text); }
.tx-amount-cell.debit { color:#ef4444; }

/* Mobile tx rows */
.tx-mobile-row {
  padding: 12px 16px;
  border-bottom: 1px solid #f9fafb;
  display:flex; align-items:center; justify-content:space-between; gap:8px;
}
.tx-mobile-row:last-child { border-bottom:none; }
.tx-mobile-left { display:flex; align-items:center; gap:10px; min-width:0; }
.tx-mobile-info p { font-size:13px; color:#1f2937; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; max-width:200px; }
.tx-mobile-meta { display:flex; align-items:center; gap:6px; margin-top:2px; }
.tx-mobile-meta span { font-size:10px; color:var(--text-light); }
.tx-mobile-right { text-align:right; flex-shrink:0; }

/* Pagination */
.pagination {
  display:flex; align-items:center; justify-content:space-between; gap:12px;
  padding: 14px 24px;
  border-top: 1px solid var(--border-light);
  flex-wrap:wrap;
}
.pagination-info { font-size:11px; color:var(--text-muted); }
.page-btns { display:flex; align-items:center; gap:4px; }
.page-btn {
  width:32px; height:32px;
  border-radius:4px;
  border:1px solid #d1d5db;
  background:var(--white);
  color:#374151;
  font-size:12px;
  font-weight:500;
  cursor:pointer;
  display:flex; align-items:center; justify-content:center;
  transition:all 0.15s;
}
.page-btn:hover:not(:disabled) { border-color:var(--red); color:var(--red); }
.page-btn.active { background:var(--red); color:#fff; border-color:var(--red); }
.page-btn:disabled { opacity:0.4; cursor:not-allowed; }
.page-btn svg { width:14px; height:14px; }

.no-transactions {
  padding: 48px 24px;
  text-align:center;
  color:var(--text-muted);
  font-size:13px;
}

/* Credit score display for account history */
.credit-score-display {
  text-align:center;
  padding:40px 24px;
}
.credit-score-num { font-size:72px; font-weight:700; color:var(--green); }
.credit-score-label { font-size:16px; color:var(--text-muted); margin-top:4px; }
.credit-avail { margin-top:20px; font-size:14px; color:#374151; }

/* ── Mobile menu & hamburger ── */
.hide-mobile { display: flex; }
.show-mobile { display: none; }
.hamburger-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: rgba(255,255,255,0.85);
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hamburger-btn svg { width: 22px; height: 22px; }
.mobile-menu {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 8px 0;
}
.mobile-menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  color: rgba(255,255,255,0.85);
  font-size: 14px;
  font-weight: 500;
  transition: background 0.15s;
}
.mobile-menu-item:hover { background: rgba(255,255,255,0.07); }
.mobile-menu-item svg { width: 17px; height: 17px; flex-shrink: 0; }

/* ── Responsive breakpoints ── */
@media (max-width: 768px) {
  .hide-mobile { display: none !important; }
  .show-mobile { display: flex !important; }

  .dash-topbar-inner { padding: 10px 16px; }
  .dash-topbar-left { gap: 0; }

  .dash-content {
    padding: 12px 16px;
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .account-card-inner { padding: 14px 16px; }
  .account-balance { font-size: 20px; }
  .account-credit-score { font-size: 24px; }
  .account-name { font-size: 11px; }

  .quick-actions { grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 12px; }
  .qa-dark, .qa-light { padding: 16px 12px; gap: 8px; }
  .qa-icon-dark, .qa-icon-light { width: 40px; height: 40px; }

  .cards-stack { height: 190px; }
  .bank-card { width: 220px; height: 140px; }

  .tx-desc { max-width: 180px; }

  .profile-content {
    padding: 12px 16px;
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .profile-sidebar-nav { display: flex; overflow-x: auto; }
  .profile-tab-btn { border-left: none !important; border-bottom: 3px solid transparent; white-space: nowrap; padding: 10px 14px; }
  .profile-tab-btn.active { border-bottom-color: var(--red) !important; }
  .quick-info { display: none; }

  .profile-header-inner { padding: 14px 16px; }
  .profile-name { font-size: 18px; }

  .history-content { padding: 12px 16px; }
  .tx-table-header, .tx-table-row { display: none; }
  .acct-header-inner { padding: 14px 16px; }
  .acct-name { font-size: 14px; }
  .acct-balance-val { font-size: 22px; }
  .history-panel-header { flex-direction: column; align-items: flex-start; gap: 10px; }
  .filter-controls { width: 100%; flex-wrap: wrap; }
  .search-input { width: 100%; }

  .section-panel-body { padding: 16px; }
  .fields-grid { grid-template-columns: 1fr; gap: 16px; }
  .security-row { padding: 12px 16px; }
  .activity-row { padding: 12px 16px; }
  .notif-row { padding: 12px 16px; }
  .channel-cards { grid-template-columns: 1fr; padding: 16px; }

  .login-card { padding: 24px 20px; }
  .hero { height: 180px; }
  .hero-text h2 { font-size: 24px; }

  .topbar-left, .topbar-right { display: none; }
  .topbar-inner::after { content: 'Benchmark Bank'; color: rgba(255,255,255,0.7); font-size: 11px; padding: 8px 16px; display: block; }

  .main-header-inner { padding: 10px 16px; }
  .fdic-row { display: none; }
  .logo-circle { width: 42px; height: 42px; }
  .logo-text h1 { font-size: 17px; }
  .main-nav { display: none; }

  .pagination { flex-direction: column; align-items: flex-start; gap: 10px; }

  .inner-topbar-inner { padding: 10px 16px; }

  .acct-header-info { flex-direction: column; align-items: flex-start; gap: 10px; }
  .acct-balance-display { text-align: left; }

  .profile-info { flex-direction: column; gap: 12px; }
  .profile-customer-id { text-align: left; }
}

@media (min-width: 769px) {
  .tx-mobile-row { display: none; }
}

@media (max-width: 480px) {
  .account-balance { font-size: 18px; }
  .bank-card { width: 200px; height: 128px; padding: 14px; }
  .cards-stack { height: 170px; }
  .bank-card-number { font-size: 10px; letter-spacing: 0.18em; }
  .panel-header { padding: 12px 16px; }
  .tx-row { padding: 10px 16px; }
  .summary-label, .summary-value { font-size: 12px; }
}
