/* ============================================================
   First National Demo Bank — mock homepage styles
   ============================================================ */

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

body {
  font-family: system-ui, -apple-system, sans-serif;
  background: #F3F4F6;
  color: #111827;
  min-height: 100vh;
}

/* ---- Demo Banner ---- */

.demo-banner {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #FEF3C7;
  border-bottom: 1px solid #FCD34D;
  padding: 8px 16px;
  font-size: 13px;
  color: #92400E;
  line-height: 1.4;
}

.demo-banner a {
  color: #92400E;
  font-weight: 600;
}

.demo-banner__icon {
  font-size: 16px;
  flex-shrink: 0;
}

.demo-banner__close {
  margin-left: auto;
  background: none;
  border: none;
  font-size: 18px;
  color: #92400E;
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
  flex-shrink: 0;
}

.demo-banner__close:hover {
  color: #78350F;
}

/* ---- Header ---- */

.bank-header {
  background: #fff;
  border-bottom: 1px solid #E5E7EB;
  padding: 0 24px;
  display: flex;
  align-items: center;
  height: 56px;
  position: sticky;
  top: 0;
  z-index: 100;
}

.bank-logo {
  height: 32px;
  flex-shrink: 0;
}

.bank-nav {
  display: flex;
  gap: 4px;
  margin-left: 32px;
  list-style: none;
}

.bank-nav a {
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  color: #374151;
  padding: 8px 14px;
  border-radius: 6px;
  transition: background 0.15s;
}

.bank-nav a:hover,
.bank-nav a.active {
  background: #F3F4F6;
  color: #1E40AF;
}

.bank-header__spacer {
  flex: 1;
}

.bank-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #DBEAFE;
  color: #1E40AF;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---- Main layout ---- */

.bank-main {
  max-width: 960px;
  margin: 0 auto;
  padding: 24px 16px 48px;
}

.bank-greeting {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 20px;
  color: #111827;
}

.bank-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 640px) {
  .bank-grid { grid-template-columns: 1fr; }
  .bank-nav { display: none; }
}

/* ---- Cards ---- */

.bank-card {
  background: #fff;
  border: 1px solid #E5E7EB;
  border-radius: 12px;
  padding: 20px;
}

.bank-card--full {
  grid-column: 1 / -1;
}

.bank-card__label {
  font-size: 12px;
  font-weight: 600;
  color: #6B7280;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.bank-card__title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
}

.bank-card__desc {
  font-size: 13px;
  color: #6B7280;
  line-height: 1.5;
  margin-bottom: 16px;
}

/* ---- Account summary ---- */

.account-name {
  font-size: 14px;
  color: #374151;
}

.account-balance {
  font-size: 28px;
  font-weight: 700;
  color: #111827;
  margin: 4px 0 2px;
}

.account-number {
  font-size: 13px;
  color: #9CA3AF;
}

/* ---- Send Money (widget host) ---- */

.bank-card--send {
  border-color: #C7D2FE;
  background: linear-gradient(135deg, #fff 80%, #EEF2FF 100%);
}

.bank-card--send .bank-card__title {
  color: #1E40AF;
}

/* ---- Transactions ---- */

.txn-list {
  list-style: none;
}

.txn-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid #F3F4F6;
  font-size: 14px;
}

.txn-item:last-child { border-bottom: none; }

.txn-merchant { color: #374151; }
.txn-date { font-size: 12px; color: #9CA3AF; }
.txn-amount { font-weight: 600; }
.txn-amount--debit { color: #111827; }
.txn-amount--credit { color: #059669; }

/* ---- Quick actions ---- */

.quick-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.quick-btn {
  flex: 1 1 calc(50% - 4px);
  min-width: 100px;
  padding: 12px 8px;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  background: #F9FAFB;
  border: 1px solid #E5E7EB;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s;
  min-height: 44px;
  color: #374151;
}

.quick-btn:hover {
  background: #EEF2FF;
  border-color: #C7D2FE;
  color: #1E40AF;
}
