:root {
  --bank-ink: #07111f;
  --bank-navy: #081320;
  --bank-navy-2: #10213a;
  --bank-blue: #2638c4;
  --bank-gold: #e8c547;
  --bank-gold-2: #f5d76e;
  --bank-muted: #667085;
  --bank-line: #dbe4f0;
  --bank-panel: #ffffff;
  --bank-soft: #eef4ff;
  --bank-success: #10b981;
  --bank-danger: #ef4444;
  --bank-warning: #f59e0b;
  --bank-radius: 18px;
  --bank-shadow: 0 18px 48px rgba(15, 23, 42, 0.10);
}

body:not(.auth-page) {
  background: #eef4ff;
  color: var(--bank-ink);
}

body.banking-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 12% 0%, rgba(232, 197, 71, 0.16), transparent 34%),
    linear-gradient(180deg, #07111f 0, #10213a 230px, #eef4ff 230px, #f6f9ff 100%);
}

body.banking-page .header-bg {
  display: none;
}

body.banking-page .body-content {
  margin-top: 65px;
  padding: 6px 0 108px;
  background: transparent;
  border-radius: 0;
  min-height: calc(100vh - 65px);
}

body.banking-page .container {
  max-width: 1160px;
}

body.banking-page .preloader {
  pointer-events: none;
}

.appbar-area {
  background: rgba(8, 19, 32, 0.92);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 12px 34px rgba(4, 9, 20, 0.22);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.appbar-area.is-sticky {
  background: rgba(8, 19, 32, 0.94);
  box-shadow: 0 12px 34px rgba(4, 9, 20, 0.22);
}

.appbar-container {
  min-height: 64px;
}

.appbar-action-item a,
.appbar-area.is-sticky .appbar-action-item a,
.appbar-option-item a,
.appbar-area.is-sticky .appbar-option-item a,
.appbar-page-title h3,
.appbar-area.is-sticky .appbar-page-title h3 {
  color: #ffffff;
}

.appbar-action-item a,
.appbar-option-item > a {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.07);
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.appbar-action-item a:hover,
.appbar-option-item > a:hover {
  color: #ffffff;
  background: rgba(232, 197, 71, 0.16);
  border-color: rgba(232, 197, 71, 0.42);
  transform: translateY(-1px);
}

.appbar-action-bar,
.appbar-area.is-sticky .appbar-action-bar {
  background: rgba(255, 255, 255, 0.07);
  border-radius: 14px;
}

.appbar-brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.appbar-brand-lockup img {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 8px 20px rgba(232, 197, 71, 0.22);
}

.appbar-brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
  min-width: 0;
}

.appbar-brand-copy strong {
  color: #ffffff;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: capitalize;
}

.appbar-brand-copy span {
  color: rgba(255, 255, 255, 0.58);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.appbar-page-title h3 {
  font-size: 15px;
  font-weight: 800;
}

.appbar-option-notification .option-badge,
.option-badge {
  width: 18px;
  height: 18px;
  top: -3px;
  right: -3px;
  background: var(--bank-gold);
  color: #081320;
  border: 2px solid #081320;
  font-size: 10px;
  font-weight: 900;
}

.appbar-option-profile {
  width: 42px !important;
  height: 42px !important;
  border: 2px solid rgba(232, 197, 71, 0.42);
  box-shadow: 0 8px 24px rgba(4, 9, 20, 0.22);
}

.dashboard-hero,
.dashboard-panel,
.modern-panel,
.settings-profile-panel,
.transactions-panel {
  border: 1px solid rgba(219, 228, 240, 0.9);
  border-radius: var(--bank-radius);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--bank-shadow);
}

.dashboard-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.85fr);
  gap: 18px;
  padding: 20px;
  color: #ffffff;
  background:
    linear-gradient(135deg, rgba(8, 19, 32, 0.98), rgba(16, 33, 58, 0.94)),
    linear-gradient(90deg, rgba(232, 197, 71, 0.22), transparent 48%);
  border-color: rgba(255, 255, 255, 0.12);
  overflow: hidden;
  position: relative;
}

body.banking-page .dashboard-hero.fade-up {
  animation: none;
  opacity: 1;
  transform: none;
}

.dashboard-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.17;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 42px 42px;
  pointer-events: none;
}

.dashboard-hero > * {
  position: relative;
  z-index: 1;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 20px;
  padding: 0;
  border-radius: 999px;
  background: transparent;
  color: #f8e28b;
  border: 0;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.dashboard-hero h1 {
  margin: 10px 0 8px;
  color: #ffffff;
  font-size: clamp(28px, 3.3vw, 40px);
  line-height: 1.05;
  letter-spacing: 0;
}

.dashboard-hero p {
  color: rgba(255, 255, 255, 0.68);
  max-width: 620px;
  margin-bottom: 0;
  font-size: 15px;
  line-height: 1.45;
}

.hero-balance-row {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 0;
  width: fit-content;
  max-width: 100%;
  margin-top: 18px;
  padding: 13px 15px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.055);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.hero-balance-row .balance-block {
  padding-right: 18px;
}

.hero-balance-row .balance-block + .balance-block {
  padding-left: 18px;
  border-left: 1px solid rgba(255, 255, 255, 0.11);
}

.balance-block small {
  display: block;
  color: rgba(255, 255, 255, 0.56);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 10px;
}

.balance-amount {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  color: #ffffff;
  font-size: clamp(26px, 3.4vw, 38px);
  line-height: 1;
  font-weight: 900;
}

.balance-toggle,
.copy-button,
.icon-button {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
  color: inherit;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.balance-toggle:hover,
.copy-button:hover,
.icon-button:hover {
  transform: translateY(-1px);
  background: rgba(232, 197, 71, 0.16);
  border-color: rgba(232, 197, 71, 0.38);
}

body.banking-page .balance-toggle i,
body.banking-page .copy-button i,
body.banking-page .icon-button i {
  font-size: 16px !important;
  line-height: 1;
}

.balance-amount .balance-toggle {
  flex: 0 0 auto;
}

.account-chip-row,
.status-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 12px;
}

.account-chip,
.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  padding: 5px 9px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.78);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.13);
  font-size: 11px;
  font-weight: 800;
}

.account-chip i,
.status-chip i {
  font-size: 13px;
}

.account-chip .copy-button {
  width: 26px;
  height: 26px;
  margin: -4px -7px -4px 1px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.07);
}

.account-chip .copy-button i {
  font-size: 12px !important;
}

.status-chip.is-good {
  color: #a7f3d0;
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.26);
}

.status-chip.is-warning {
  color: #fde68a;
  background: rgba(245, 158, 11, 0.13);
  border-color: rgba(245, 158, 11, 0.28);
}

.status-chip.is-danger {
  color: #fecdd3;
  background: rgba(239, 68, 68, 0.13);
  border-color: rgba(239, 68, 68, 0.28);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.hero-actions .bank-btn {
  flex: 0 0 auto;
  white-space: nowrap;
}

.bank-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 36px;
  padding: 8px 12px;
  border-radius: 12px;
  border: 1px solid rgba(8, 19, 32, 0.12);
  background: #ffffff;
  color: var(--bank-ink);
  font-size: 12px;
  font-weight: 850;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.bank-btn:hover {
  color: var(--bank-ink);
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
}

.bank-btn.primary {
  background: linear-gradient(135deg, var(--bank-gold), var(--bank-gold-2));
  color: #081320;
  border-color: rgba(232, 197, 71, 0.32);
}

.bank-btn.dark {
  background: #101f36;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.12);
}

.bank-btn.ghost {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.14);
}

.hero-card-column {
  display: grid;
  gap: 12px;
  align-content: start;
}

.hero-card-column .credit-card {
  min-height: 210px;
  background: linear-gradient(135deg, #142844, #07111f 54%, #c9a227);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.34);
}

.card-control-strip,
.hero-mini-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.mini-control {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-height: 68px;
  padding: 12px;
  border-radius: 16px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.mini-control i {
  color: var(--bank-gold);
  font-size: 18px;
}

.mini-control span {
  color: rgba(255, 255, 255, 0.6);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.mini-control strong {
  color: #ffffff;
  font-size: 12px;
}

.quick-action-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  margin: 16px 0;
}

.quick-action {
  min-height: 96px;
  padding: 13px 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(219, 228, 240, 0.94);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.07);
  color: var(--bank-ink);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.quick-action:hover {
  color: var(--bank-ink);
  transform: translateY(-3px);
  box-shadow: 0 20px 42px rgba(15, 23, 42, 0.12);
  border-color: rgba(232, 197, 71, 0.55);
}

.quick-action i {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: #081320;
  background: linear-gradient(135deg, var(--bank-gold), var(--bank-gold-2));
  font-size: 17px;
}

.quick-action strong {
  display: block;
  margin-top: 11px;
  font-size: 13px;
}

.quick-action span {
  display: block;
  margin-top: 3px;
  color: var(--bank-muted);
  font-size: 10.5px;
  font-weight: 700;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(315px, 0.8fr);
  gap: 18px;
}

.dashboard-panel,
.modern-panel,
.settings-profile-panel,
.transactions-panel {
  padding: 18px;
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.panel-header h2,
.panel-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 900;
  color: var(--bank-ink);
}

.panel-header p {
  margin: 4px 0 0;
  color: var(--bank-muted);
  font-size: 12px;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.metric-tile {
  min-height: 118px;
  padding: 15px;
  border-radius: 16px;
  background: #f8fbff;
  border: 1px solid #e7eef8;
}

.metric-tile span,
.insight-row span,
.health-item span {
  color: var(--bank-muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.metric-tile strong {
  display: block;
  margin-top: 8px;
  color: var(--bank-ink);
  font-size: 22px;
  line-height: 1;
}

.metric-tile small {
  display: block;
  margin-top: 8px;
  color: #8a94a6;
  font-size: 12px;
}

.progress-track {
  height: 9px;
  border-radius: 999px;
  background: #e7edf7;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--bank-gold), var(--bank-success));
}

.transaction-list {
  display: grid;
  gap: 10px;
}

.transaction-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 13px;
  border-radius: 16px;
  background: #fbfdff;
  border: 1px solid #e8eef8;
  text-decoration: none;
  color: var(--bank-ink);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.transaction-item:hover {
  color: var(--bank-ink);
  transform: translateY(-1px);
  border-color: rgba(232, 197, 71, 0.48);
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.08);
}

.transaction-icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #081320;
  background: #f5d76e;
}

.transaction-icon.debit {
  background: #dbeafe;
  color: #1d4ed8;
}

.transaction-icon.pending {
  background: #fffbeb;
  color: #d97706;
}

.transaction-copy strong {
  display: block;
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.transaction-copy span {
  display: block;
  margin-top: 3px;
  color: var(--bank-muted);
  font-size: 12px;
}

.transaction-amount {
  text-align: right;
}

.transaction-amount strong {
  display: block;
  font-size: 14px;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 24px;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.status-badge.success {
  color: #047857;
  background: #ecfdf5;
}

.status-badge.pending {
  color: #92400e;
  background: #fffbeb;
}

.status-badge.failed {
  color: #991b1b;
  background: #fff1f2;
}

.health-list,
.beneficiary-list,
.schedule-list {
  display: grid;
  gap: 10px;
}

.health-item,
.beneficiary-item,
.schedule-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px;
  border-radius: 16px;
  background: #fbfdff;
  border: 1px solid #e8eef8;
}

.health-copy,
.beneficiary-copy,
.schedule-copy {
  min-width: 0;
}

.health-copy strong,
.beneficiary-copy strong,
.schedule-copy strong {
  display: block;
  color: var(--bank-ink);
  font-size: 14px;
}

.health-copy small,
.beneficiary-copy small,
.schedule-copy small {
  display: block;
  margin-top: 3px;
  color: var(--bank-muted);
  font-size: 12px;
}

.health-icon,
.beneficiary-avatar {
  width: 38px;
  height: 38px;
  border-radius: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  color: #081320;
  background: #f5d76e;
  font-weight: 900;
}

.side-stack {
  display: grid;
  gap: 18px;
}

.settings-profile-panel {
  text-align: center;
  margin-bottom: 18px;
  background:
    linear-gradient(135deg, rgba(8, 19, 32, 0.98), rgba(16, 33, 58, 0.94)),
    linear-gradient(90deg, rgba(232, 197, 71, 0.22), transparent);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.12);
}

.settings-profile-panel .user-setting-thumb {
  margin-bottom: 12px;
}

.settings-profile-panel h2 {
  color: #ffffff;
  margin: 0;
  font-size: 24px;
  font-weight: 900;
}

.settings-profile-panel p {
  color: rgba(255, 255, 255, 0.66);
  margin-bottom: 0;
}

.settings-status-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.settings-status-grid div {
  padding: 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.settings-status-grid span {
  display: block;
  color: rgba(255, 255, 255, 0.58);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.settings-status-grid strong {
  display: block;
  margin-top: 5px;
  color: #ffffff;
  font-size: 13px;
}

body.banking-page .list-group {
  border: 0;
  border-radius: 18px !important;
  background: #ffffff;
  box-shadow: var(--bank-shadow) !important;
  overflow: hidden;
}

body.banking-page .list-group-item {
  min-height: 58px;
  border-color: #edf2f8;
  color: var(--bank-ink);
  font-weight: 750;
}

body.banking-page .list-group-item i {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #eef4ff;
}

.transactions-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  color: #ffffff;
}

.transactions-header h1 {
  color: #ffffff;
  margin: 0;
  font-size: clamp(26px, 4vw, 40px);
}

.transactions-header p {
  color: rgba(255, 255, 255, 0.66);
  margin: 6px 0 0;
}

.transactions-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.transactions-summary .metric-tile {
  background: rgba(255, 255, 255, 0.94);
}

.cards-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(320px, 0.68fr);
  align-items: center;
  gap: 22px;
  padding: 22px;
  border-radius: 22px;
  color: #ffffff;
  background:
    radial-gradient(circle at 88% 18%, rgba(232, 197, 71, 0.24), transparent 26%),
    linear-gradient(135deg, #07111f 0%, #10213a 58%, #07111f 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 20px 54px rgba(4, 9, 20, 0.22);
  overflow: hidden;
}

.cards-hero-copy h1 {
  margin: 10px 0 8px;
  color: #ffffff;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1;
  letter-spacing: 0;
}

.cards-hero-copy p {
  max-width: 560px;
  margin: 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 15px;
  line-height: 1.5;
}

.cards-hero-visual {
  min-width: 0;
}

.cards-hero-visual .credit-card {
  max-width: 440px;
  margin-left: auto;
  background: linear-gradient(135deg, #142844 0%, #07111f 58%, #c9a227 100%);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.36);
}

.cards-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 16px 0;
}

.cards-summary-grid .metric-tile {
  background: rgba(255, 255, 255, 0.96);
}

.card-wallet-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 1.05fr);
  gap: 18px;
  align-items: start;
}

.card-purchase-panel {
  scroll-margin-top: 88px;
}

.card-plan-grid {
  display: grid;
  gap: 10px;
}

.card-plan-option {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-height: 88px;
  padding: 13px;
  border-radius: 16px;
  background: #fbfdff;
  border: 1px solid #e8eef8;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.card-plan-option:hover {
  transform: translateY(-1px);
  border-color: rgba(232, 197, 71, 0.48);
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.08);
}

.card-plan-option:has(input:checked) {
  border-color: rgba(232, 197, 71, 0.72);
  background: #fffaf0;
  box-shadow: inset 3px 0 0 var(--bank-gold);
}

.card-plan-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.card-plan-icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #081320;
  background: #eef4ff;
  border: 1px solid #e2eaf6;
}

.card-plan-option input:checked ~ .card-plan-icon,
.card-plan-option:has(input:checked) .card-plan-icon {
  background: linear-gradient(135deg, var(--bank-gold), var(--bank-gold-2));
  border-color: transparent;
}

.card-plan-copy {
  min-width: 0;
}

.card-plan-copy strong {
  display: block;
  color: var(--bank-ink);
  font-size: 14px;
}

.card-plan-copy small,
.card-plan-copy em {
  display: block;
  margin-top: 3px;
  color: var(--bank-muted);
  font-size: 12px;
  font-style: normal;
}

.card-plan-copy em {
  color: #9a7400;
  font-weight: 850;
}

.card-request-panel {
  margin-top: 18px;
}

.card-request-list {
  display: grid;
  gap: 10px;
}

.card-request-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 13px;
  border-radius: 16px;
  background: #fbfdff;
  border: 1px solid #e8eef8;
}

.request-meta {
  text-align: right;
}

.request-meta strong {
  display: block;
  margin-bottom: 4px;
  color: var(--bank-ink);
  font-size: 14px;
}

body.banking-page .table-responsive {
  border-radius: 18px;
  background: #ffffff;
  border: 1px solid #e7eef8;
  box-shadow: var(--bank-shadow);
  padding: 12px;
}

body.banking-page table.dataTable,
body.banking-page .table {
  margin-bottom: 0 !important;
  border-color: #e7eef8;
}

body.banking-page .table thead th {
  border-bottom: 0;
  background: #f7faff;
  color: #475467;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

body.banking-page .table td {
  vertical-align: middle;
  color: #1d2939;
  font-size: 13px;
}

body.banking-page .modal-content {
  border-radius: 24px 24px 0 0;
  background: #f7faff;
  box-shadow: 0 -24px 60px rgba(15, 23, 42, 0.18);
}

body.banking-page .card-wallet-dialog {
  max-width: 500px;
}

body.banking-page .card-wallet-dialog .modal-content {
  border-radius: 28px;
  background:
    radial-gradient(circle at 80% 0%, rgba(232, 197, 71, 0.2), transparent 34%),
    linear-gradient(180deg, #07111f 0%, #0d1b2f 100%);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.42);
  overflow: hidden;
}

body.banking-page .card-wallet-dialog .modal-header {
  border-bottom-color: rgba(255, 255, 255, 0.1);
  padding: 17px 20px 14px;
}

body.banking-page .card-wallet-dialog .modal-title,
body.banking-page .card-wallet-dialog .modal-header-title i {
  color: #ffffff;
}

body.banking-page .card-wallet-dialog .btn-close {
  filter: invert(1) grayscale(1) brightness(1.8);
  opacity: 0.82;
}

body.banking-page .card-wallet-dialog .modal-body {
  padding: 18px 20px 20px;
  max-height: calc(100dvh - 130px);
  overflow-y: auto;
  scrollbar-width: none;
}

body.banking-page .card-wallet-dialog .modal-body::-webkit-scrollbar {
  display: none;
}

.card-wallet-carousel {
  min-width: 0;
}

.wallet-card-preview {
  position: relative;
  min-height: 275px;
  padding: 20px;
  border-radius: 24px;
  color: #ffffff;
  background:
    radial-gradient(circle at 86% 18%, rgba(245, 215, 110, 0.48), transparent 27%),
    radial-gradient(circle at 8% 88%, rgba(255, 255, 255, 0.12), transparent 30%),
    linear-gradient(135deg, #162943 0%, #07111f 58%, #b89217 100%);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 24px 62px rgba(0, 0, 0, 0.38);
  overflow: hidden;
}

.wallet-card-preview::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.14;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.16) 1px, transparent 1px);
  background-size: 44px 44px;
  pointer-events: none;
}

.wallet-card-preview::after {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  right: -80px;
  bottom: -105px;
  border-radius: 999px;
  background: rgba(232, 197, 71, 0.16);
  filter: blur(2px);
  pointer-events: none;
}

.wallet-card-preview > * {
  position: relative;
  z-index: 1;
}

.wallet-card-top,
.wallet-card-chip-row,
.wallet-card-bottom,
.card-wallet-modal-actions,
.card-wallet-slide-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.wallet-card-top span {
  font-weight: 850;
  letter-spacing: 0;
}

.wallet-card-top strong {
  min-height: 25px;
  padding: 5px 10px;
  border-radius: 999px;
  color: #a7f3d0;
  background: rgba(16, 185, 129, 0.14);
  border: 1px solid rgba(16, 185, 129, 0.24);
  font-size: 11px;
}

.wallet-card-chip-row {
  justify-content: flex-start;
  margin-top: 24px;
  color: rgba(255, 255, 255, 0.72);
}

.wallet-card-chip {
  width: 42px;
  height: 30px;
  border-radius: 7px;
  background: repeating-linear-gradient(45deg, #d7dce4, #d7dce4 2px, #9ba3af 2px, #9ba3af 4px);
  opacity: 0.9;
}

.wallet-card-number {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 10px;
  margin: 28px 0 30px;
  font-family: "Courier New", monospace;
  font-size: clamp(22px, 5vw, 29px);
  font-weight: 900;
  letter-spacing: 0.04em;
}

.wallet-card-bottom {
  align-items: flex-end;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
}

.wallet-card-bottom small {
  display: block;
  color: rgba(255, 255, 255, 0.56);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.wallet-card-bottom strong {
  display: block;
  margin-top: 4px;
  color: #ffffff;
  font-size: 13px;
}

.wallet-card-bottom input[name="cvv"] {
  width: 58px;
  min-height: 28px;
  margin-top: 4px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.13);
  color: #ffffff;
  text-align: center;
  font-weight: 900;
  outline: none;
}

.card-wallet-slide-controls {
  margin: 14px 0 0;
  justify-content: space-between;
  min-height: 46px;
  padding: 6px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.075);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.card-slide-btn {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.card-slide-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.card-wallet-slide-controls .carousel-indicators {
  position: static;
  margin: 0;
  gap: 5px;
}

.card-wallet-slide-controls .carousel-indicators [data-bs-target] {
  width: 8px;
  height: 8px;
  margin: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.36);
}

.card-wallet-slide-controls .carousel-indicators .active {
  width: 22px;
  background: var(--bank-gold);
}

.single-card-note {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 12px;
  font-weight: 800;
}

.card-wallet-modal-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  margin-top: 14px;
}

.card-wallet-modal-actions .bank-btn:not(.primary) {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.14);
}

body.banking-page .modal-header {
  justify-content: flex-start;
  text-align: left;
  border-bottom-color: #e7eef8;
}

body.banking-page .modal-header-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

body.banking-page .modal-header-title h5,
body.banking-page .modal-title {
  margin: 0;
  color: var(--bank-ink);
  font-size: 16px;
  font-weight: 900;
}

body.banking-page .form-control,
body.banking-page .form-select {
  min-height: 48px;
  border-radius: 14px !important;
  border-color: #dbe4f0;
  background-color: #ffffff;
  box-shadow: none;
}

body.banking-page .form-control:focus,
body.banking-page .form-select:focus {
  border-color: rgba(232, 197, 71, 0.82);
  box-shadow: 0 0 0 4px rgba(232, 197, 71, 0.15);
}

body.banking-page .main-btn,
body.banking-page .btn-primary {
  min-height: 44px;
  border-radius: 14px !important;
  background: linear-gradient(135deg, var(--bank-gold), var(--bank-gold-2)) !important;
  border-color: transparent !important;
  color: #081320 !important;
  font-weight: 900;
}

.app-navbar {
  background: rgba(255, 255, 255, 0.92);
  border-top: 1px solid rgba(219, 228, 240, 0.9);
  box-shadow: 0 -14px 34px rgba(15, 23, 42, 0.10) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.navbar-content {
  padding-top: 10px;
  padding-bottom: 10px;
}

.navbar-content-item a {
  gap: 4px;
  min-width: 58px;
  padding: 7px 8px;
  border-radius: 14px;
  color: #667085;
  font-weight: 800;
  text-decoration: none;
}

.navbar-content-item a.active {
  color: #081320;
  background: #fff7d6;
}

.navbar-content-item a.active i {
  color: #c9a227;
}

body.banking-page .side-modal-dialog {
  top: 0;
  bottom: auto;
  width: min(312px, calc(100vw - 28px));
  max-width: none;
  height: calc(100dvh - 76px);
}

body.banking-page .side-modal-dialog .modal-content {
  height: 100%;
  padding: 0;
  border-radius: 0 22px 22px 0;
  background:
    linear-gradient(160deg, rgba(232, 197, 71, 0.1), transparent 34%),
    linear-gradient(180deg, #07111f 0%, #0c1728 100%);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-left: 0;
  box-shadow: 24px 0 70px rgba(0, 0, 0, 0.34);
  overflow: hidden;
}

body.banking-page .side-modal-dialog .modal-body {
  max-height: none;
  overflow-y: auto;
  padding: 0 12px 18px;
  scrollbar-width: thin;
  scrollbar-color: rgba(232, 197, 71, 0.35) transparent;
}

body.banking-page .side-modal-dialog .modal-body::-webkit-scrollbar {
  width: 5px;
}

body.banking-page .side-modal-dialog .modal-body::-webkit-scrollbar-thumb {
  background: rgba(232, 197, 71, 0.35);
  border-radius: 999px;
}

body.banking-page .sidebar-modal-header {
  justify-content: space-between;
  text-align: left;
  padding: 18px 16px 14px;
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

body.banking-page .sidebar-profile-info {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
}

body.banking-page .sidebar-profile-thumb {
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(232, 197, 71, 0.38);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
}

body.banking-page .sidebar-profile-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

body.banking-page .sidebar-profile-text {
  min-width: 0;
}

body.banking-page .sidebar-profile-text h3,
body.banking-page .sidebar-profile-wallet h3,
body.banking-page .sidebar-nav-item h3 {
  color: #ffffff;
}

body.banking-page .sidebar-profile-text h3 {
  max-width: 180px;
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
  font-weight: 900;
}

body.banking-page .sidebar-profile-text p {
  margin: 3px 0 0;
}

body.banking-page .sidebar-profile-text p a,
body.banking-page .sidebar-profile-wallet p {
  color: rgba(255, 255, 255, 0.62);
  font-size: 12px;
}

body.banking-page .sidebar-profile-wallet {
  margin: 12px;
  padding: 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.065);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

body.banking-page .sidebar-profile-wallet h3 {
  margin: 5px 0 0;
  font-size: 25px;
  line-height: 1;
}

body.banking-page .sidebar-profile-wallet .status-chip-row {
  margin-top: 12px;
}

body.banking-page .sidebar-profile-wallet .status-chip {
  min-height: 24px;
  padding: 4px 8px;
  font-size: 10px;
}

body.banking-page .sidebar-nav-item {
  margin-top: 12px;
}

body.banking-page .sidebar-nav-item h3 {
  margin: 0 0 8px;
  padding: 0 8px;
  color: rgba(255, 255, 255, 0.44);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

body.banking-page .sidebar-nav-list {
  display: grid;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

body.banking-page .sidebar-nav-list li {
  margin: 0;
  padding: 0;
  list-style: none;
}

body.banking-page .sidebar-nav-list li a {
  min-height: 38px;
  border-radius: 12px;
  color: rgba(255, 255, 255, 0.74);
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 10px;
  font-weight: 800;
  font-size: 12px;
  border: 1px solid transparent;
}

body.banking-page .sidebar-nav-list li a i {
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border-radius: 9px;
  color: var(--bank-gold);
  background: rgba(255, 255, 255, 0.07);
  font-size: 13px;
}

body.banking-page .sidebar-nav-list li a.active,
body.banking-page .sidebar-nav-list li a:hover {
  color: #ffffff;
  background: rgba(232, 197, 71, 0.12);
  border-color: rgba(232, 197, 71, 0.18);
  box-shadow: inset 3px 0 0 var(--bank-gold);
}

body.banking-page .sidebar-nav-list li a.active i,
body.banking-page .sidebar-nav-list li a:hover i {
  color: #081320;
  background: var(--bank-gold);
}

.empty-state {
  padding: 28px;
  border-radius: 18px;
  background: #f8fbff;
  border: 1px dashed #cbd5e1;
  text-align: center;
  color: var(--bank-muted);
}

.fade-up {
  animation: bankFadeUp 0.55s ease both;
}

@keyframes bankFadeUp {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 991px) {
  .dashboard-hero,
  .dashboard-grid,
  .cards-hero,
  .card-wallet-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-hero {
    gap: 16px;
  }

  .cards-hero-visual .credit-card {
    margin-left: 0;
  }

  .hero-balance-row {
    width: 100%;
  }

  .quick-action-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .transactions-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cards-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-hero .hero-actions {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
  }

  .dashboard-hero .hero-actions::-webkit-scrollbar {
    display: none;
  }

  .dashboard-hero .hero-actions .bank-btn {
    min-height: 34px;
    padding: 7px 10px;
    font-size: 11.5px;
  }
}

@media (max-width: 768px) {
  .dashboard-hero .hero-card-column {
    display: none;
  }
}

@media (max-width: 576px) {
  body.banking-page .body-content {
    margin-top: 65px;
    padding-top: 6px;
  }

  .appbar-brand-copy strong {
    max-width: 105px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .appbar-page-title {
    display: none;
  }

  .dashboard-hero {
    padding: 18px;
    border-radius: 20px;
    gap: 16px;
  }

  .dashboard-hero h1 {
    font-size: clamp(25px, 7vw, 32px);
  }

  .dashboard-hero p {
    font-size: 14px;
    line-height: 1.45;
  }

  .hero-balance-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.82fr);
    padding: 12px;
  }

  .hero-balance-row .balance-block {
    min-width: 0;
    padding-right: 12px;
  }

  .hero-balance-row .balance-block + .balance-block {
    padding-left: 12px;
  }

  .balance-amount {
    font-size: clamp(24px, 7vw, 31px);
  }

  .hero-card-column .credit-card {
    min-height: 190px;
    max-height: 220px;
    padding: 14px;
  }

  .hero-card-column .credit-card .number {
    gap: 8px;
    font-size: 1.12rem;
  }

  .hero-card-column .credit-card .tail {
    font-size: 0.7rem;
  }

  .quick-action-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .metric-grid,
  .settings-status-grid,
  .transactions-summary,
  .cards-summary-grid {
    grid-template-columns: 1fr;
  }

  .cards-hero {
    padding: 18px;
    border-radius: 20px;
    gap: 16px;
  }

  .cards-hero-copy h1 {
    font-size: clamp(28px, 8vw, 38px);
  }

  .cards-hero-copy p {
    font-size: 14px;
  }

  .cards-hero-visual .credit-card {
    max-width: 100%;
  }

  .card-wallet-modal-actions {
    grid-template-columns: 1fr;
    display: grid;
  }

  body.banking-page .card-wallet-dialog {
    margin: 12px;
  }

  .wallet-card-preview {
    min-height: 255px;
    padding: 17px;
  }

  .wallet-card-bottom {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .wallet-card-bottom > div {
    min-width: calc(50% - 8px);
  }

  .card-request-item {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .request-meta {
    grid-column: 2;
    text-align: left;
  }

  .transaction-item {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .transaction-amount {
    grid-column: 2;
    text-align: left;
  }

  .card-control-strip,
  .hero-mini-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .mini-control {
    min-height: 58px;
    padding: 9px 7px;
  }

  .mini-control strong {
    font-size: 11px;
  }
}
