/* ==================================================================
   Fair Funds banking prototype — styles
   ================================================================== */

:root {
  --chase-blue: #117aca;
  --chase-blue-dark: #0b5d9c;
  --chase-blue-deep: #083a61;
  --chase-navy: #0a2942;
  --ink: #1c2733;
  --ink-soft: #5b6b7c;
  --line: #e4e9ee;
  --bg: #f4f6f9;
  --card: #ffffff;
  --positive: #0f8f52;
  --danger: #c02b2b;
  --danger-bg: #fdecec;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(16, 24, 40, 0.06), 0 8px 24px rgba(16, 24, 40, 0.06);
  --shadow-lg: 0 24px 48px rgba(16, 24, 40, 0.14);
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(1100px 520px at 100% -10%, rgba(17, 122, 202, 0.07), transparent 60%),
    var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--chase-blue); text-decoration: none; }
a:hover { text-decoration: underline; }

.hidden { display: none !important; }

/* ---------- Brand ---------- */
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand-word {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.brand-sm .brand-word { font-size: 21px; }

.login-logo {
  height: 42px;
  width: auto;
  display: block;
}

.header-logo {
  height: 28px;
  width: auto;
  display: block;
}

/* Language selector */
.lang-select {
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  background-color: rgba(255, 255, 255, 0.12);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
  background-size: 12px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 8px;
  padding: 6px 24px 6px 10px;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}
.lang-select:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.25);
}
.lang-select option { color: var(--ink); }
.lang-float {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 13px 8px 11px;
  background: rgba(255, 255, 255, 0.72);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(28, 39, 51, 0.08);
  border-radius: 999px;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04), 0 10px 24px rgba(16, 24, 40, 0.08);
  transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.lang-float:hover {
  background: #fff;
  border-color: rgba(28, 39, 51, 0.16);
  box-shadow: 0 2px 6px rgba(16, 24, 40, 0.06), 0 14px 30px rgba(16, 24, 40, 0.12);
}
.lang-globe {
  width: 14px;
  height: 14px;
  color: var(--ink-soft);
  flex: 0 0 auto;
}
.lang-float .lang-select {
  width: auto;
  border: none;
  padding: 0 18px 0 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  background-color: transparent;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235b6b7c' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-position: right 0 center;
  background-size: 12px;
  box-shadow: none;
  cursor: pointer;
}
.lang-float .lang-select:focus {
  outline: none;
  box-shadow: none;
}

.header-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  background: #fff;
  border-radius: 7px;
  overflow: hidden;
  flex: 0 0 auto;
}
.header-mark img {
  width: 22px;
  height: auto;
  display: block;
}

.footer-brand {
  height: 30px;
  width: auto;
  display: block;
  margin: 0 auto 12px;
}

/* ---------- Buttons ---------- */
.btn {
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  border-radius: 10px;
  padding: 12px 20px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.05s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--chase-blue);
  color: #fff;
}
.btn-primary:hover { background: var(--chase-blue-dark); }
.btn-block { width: 100%; }
.btn-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.4);
  padding: 8px 16px;
  font-size: 14px;
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.12); border-color: #fff; }
.btn:disabled { opacity: 0.6; cursor: not-allowed; }

/* ---------- Fields ---------- */
.field { display: block; margin-bottom: 16px; position: relative; }
.field-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
}
.input, input, select {
  width: 100%;
  font-family: inherit;
  font-size: 15px;
  color: var(--ink);
  background: #fff;
  border: 1px solid #ccd4dc;
  border-radius: 10px;
  padding: 12px 14px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
/* Custom dropdown chevron, safely inside the box */
select.input {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235b6b7c' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
  padding-right: 40px;
}
input:focus, select:focus {
  outline: none;
  border-color: var(--chase-blue);
  box-shadow: 0 0 0 3px rgba(17, 122, 202, 0.18);
}
input::placeholder { color: #9aa7b3; }
input[type="number"] { -moz-appearance: textfield; }
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.show-pw {
  position: absolute;
  right: 8px;
  top: 33px;
  background: none;
  border: none;
  color: var(--chase-blue);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  padding: 6px;
}
.show-pw:hover { text-decoration: underline; }

.form-error {
  color: var(--danger);
  font-size: 13px;
  font-weight: 500;
  margin: 10px 0 0;
  min-height: 18px;
}

/* ==================================================================
   LOGIN VIEW
   ================================================================== */
.login-view {
  min-height: 100vh;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  background:
    radial-gradient(1100px 500px at 15% -10%, rgba(17, 122, 202, 0.16), transparent 60%),
    radial-gradient(900px 500px at 100% 110%, rgba(17, 122, 202, 0.12), transparent 55%),
    #f6f8fb;
}
.login-card {
  position: relative;
  overflow: hidden;
  background: var(--card);
  width: 100%;
  max-width: 420px;
  padding: 36px 36px 28px;
  border-radius: 18px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
}
.login-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--chase-blue) 0%, #2f8fd8 55%, #6cbcf5 100%);
}
.login-card .brand { justify-content: center; }
.login-card h1 {
  margin: 24px 0 4px;
  font-size: 24px;
  letter-spacing: -0.01em;
}
.subtitle { margin: 0 0 24px; color: var(--ink-soft); font-size: 14px; }
.login-links {
  display: flex;
  justify-content: flex-end;
  font-size: 13px;
  margin: -4px 0 20px;
}

/* Login field icons (person + lock) */
#login-username,
#login-password {
  background-repeat: no-repeat;
  background-position: left 14px center;
  background-size: 17px;
  padding-left: 42px;
}
#login-username {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235b6b7c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='12' cy='7' r='4'/%3E%3C/svg%3E");
}
#login-password {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235b6b7c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='11' width='18' height='11' rx='2' ry='2'/%3E%3Cpath d='M7 11V7a5 5 0 0 1 10 0v4'/%3E%3C/svg%3E");
  padding-right: 58px;
}

#login-btn {
  box-shadow: 0 6px 16px rgba(17, 122, 202, 0.28);
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}
#login-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(17, 122, 202, 0.34);
}

.login-foot {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 16px 0 0;
  font-size: 12px;
  color: var(--ink-soft);
}
.login-foot-icon {
  width: 13px;
  height: 13px;
  flex: 0 0 auto;
  color: var(--ink-soft);
}


/* ==================================================================
   APP VIEW
   ================================================================== */
.app-header {
  background: var(--chase-blue);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 40;
  box-shadow: 0 6px 20px rgba(10, 41, 66, 0.15);
}
.app-header-inner {
  max-width: 1060px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.app-header .brand-word { color: #fff; }
.app-header-right { display: flex; align-items: center; gap: 18px; }
.hello { font-size: 14px; font-weight: 500; }

/* Navigation */
.app-nav {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.app-nav-inner {
  max-width: 1060px;
  margin: 0 auto;
  padding: 8px 24px;
  display: flex;
  gap: 6px;
}
.nav-link {
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-soft);
  background: none;
  border: none;
  border-radius: 10px;
  padding: 9px 16px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.15s ease, background-color 0.15s ease;
}
.nav-link:hover { color: var(--ink); background: #f1f5f9; }
.nav-link.is-active {
  color: var(--chase-blue);
  background: #e6f1fb;
}

.app-main {
  max-width: 1060px;
  margin: 0 auto;
  padding: 28px 24px 48px;
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(520px 220px at 92% -20%, rgba(255, 255, 255, 0.20), transparent 60%),
    radial-gradient(420px 260px at -8% 120%, rgba(255, 255, 255, 0.10), transparent 55%),
    linear-gradient(120deg, var(--chase-blue) 0%, var(--chase-blue-deep) 100%);
  color: #fff;
  border-radius: 18px;
  padding: 32px 36px;
  box-shadow: 0 16px 40px rgba(11, 93, 156, 0.28);
  margin-bottom: 28px;
}
.hero::after {
  content: "";
  position: absolute;
  right: -44px;
  bottom: -78px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  border: 26px solid rgba(255, 255, 255, 0.08);
  pointer-events: none;
}
.hero-label { font-size: 14px; font-weight: 500; opacity: 0.9; }
.hero-amount {
  font-size: 44px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 8px 0 4px;
  font-variant-numeric: tabular-nums;
}
.hero-note { font-size: 13px; opacity: 0.85; }

/* Sections */
.section { margin-bottom: 32px; }
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.section-head h2 { margin: 0; font-size: 19px; letter-spacing: -0.01em; }
.section-sub { margin: 2px 0 0; color: var(--ink-soft); font-size: 13px; }

.link-btn {
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--chase-blue);
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}
.link-btn:hover { text-decoration: underline; }

/* Accounts */
.accounts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}
.account-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px;
  box-shadow: var(--shadow);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.account-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(16, 24, 40, 0.10);
  border-color: #d3dce5;
}
.account-card-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.account-card-id { flex: 1; min-width: 0; }
.account-icon {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: #e8f2fb;
  color: var(--chase-blue);
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}
.account-icon svg { width: 21px; height: 21px; }
.account-name { font-size: 15px; font-weight: 700; margin: 0; }
.account-type {
  font-size: 11px;
  font-weight: 700;
  color: var(--chase-blue);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 2px 0 0;
}
.account-masked { font-size: 13px; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.account-number {
  display: flex;
  align-items: center;
  gap: 4px;
}
.acct-reveal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border: none;
  background: none;
  color: var(--ink-soft);
  cursor: pointer;
  border-radius: 6px;
  transition: background-color 0.12s ease, color 0.12s ease;
}
.acct-reveal:hover {
  background: #f1f5f9;
  color: var(--chase-blue);
}
.acct-reveal svg {
  width: 15px;
  height: 15px;
}
.account-balance {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
}
.account-available { font-size: 13px; color: var(--ink-soft); margin-top: 4px; }
.account-available strong { color: var(--positive); font-weight: 600; }

/* Columns */
.columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
}
@media (max-width: 820px) {
  .columns { grid-template-columns: 1fr; }
}

.transfer-section, .activity-section {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}
.transfer-section { max-width: 560px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 480px) { .row { grid-template-columns: 1fr; } }

/* Activity */
.activity-list { list-style: none; margin: 0; padding: 0; }
.activity-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.activity-item:last-child { border-bottom: none; }
.activity-desc { font-size: 14px; font-weight: 600; }
.activity-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 2px;
}
.activity-date { font-size: 12px; color: var(--ink-soft); }
.status-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-radius: 999px;
  padding: 2px 8px;
}
.status-badge.status-processing {
  background: #fff6e5;
  color: #9a6b16;
  border: 1px solid #f3d9a4;
}
.status-badge.status-completed {
  background: #eaf6ef;
  color: var(--positive);
  border: 1px solid #bfe6d0;
}

/* Clickable transfer rows */
.activity-item.clickable { cursor: pointer; }
.activity-item.clickable:hover .activity-desc {
  color: var(--chase-blue);
  text-decoration: underline;
}
.warn-icon {
  display: inline-block;
  width: 12px;
  height: 12px;
  margin-right: 5px;
  vertical-align: -1px;
}

/* Transfer loading bar */
.transfer-loading-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 41, 66, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 300;
}
.transfer-loading-card {
  background: #fff;
  border-radius: 16px;
  padding: 28px 32px;
  width: 100%;
  max-width: 360px;
  box-shadow: var(--shadow-lg);
  text-align: center;
}
.transfer-loading-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--ink);
}
.progress-track {
  height: 8px;
  background: var(--line);
  border-radius: 999px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--chase-blue), #2d95e8);
  border-radius: 999px;
  animation: progress-fill 2.5s ease-in-out forwards;
}
@keyframes progress-fill {
  0% { width: 0; }
  60% { width: 72%; }
  100% { width: 100%; }
}

/* Login loading */
.login-loading-overlay {
  position: fixed;
  inset: 0;
  background: linear-gradient(140deg, var(--chase-blue) 0%, var(--chase-blue-deep) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 400;
}
.login-loading-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
}
.login-loading-logo {
  height: 44px;
  width: auto;
  animation: logo-pulse 1.4s ease-in-out infinite;
}
@keyframes logo-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.07); opacity: 0.82; }
}
.spinner {
  width: 34px;
  height: 34px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
.login-loading-text {
  font-size: 15px;
  font-weight: 600;
  color: #fff;
}

/* Transfer detail */
.detail-status {
  margin: 12px 24px 0;
}
.detail-status .status-badge {
  font-size: 13px;
  padding: 5px 12px;
}
.stage-warning {
  margin: 16px 24px 0;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: #fff7e6;
  border: 1px solid #f3d9a4;
  border-left: 4px solid #e8a13c;
  border-radius: 12px;
  padding: 14px 16px;
}
.stage-warning-icon {
  font-size: 20px;
  line-height: 1;
  flex: 0 0 auto;
}
.stage-warning-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.stage-warning-title {
  font-size: 15px;
  font-weight: 700;
  color: #7a5410;
}
.stage-warning-note {
  font-size: 13px;
  color: #9a6b16;
}

/* Admin transfers table */
.btn-approve {
  padding: 6px 14px;
  font-size: 13px;
}
.users-sub {
  font-size: 12px;
  color: var(--ink-soft);
  margin-top: 2px;
}
.activity-amount { font-size: 15px; font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.activity-amount.credit { color: var(--positive); }
.activity-amount.debit { color: var(--ink); }
.activity-empty { color: var(--ink-soft); font-size: 14px; padding: 12px 0; }

/* Footer */
.app-footer {
  text-align: center;
  color: var(--ink-soft);
  font-size: 12px;
  padding: 24px;
  border-top: 1px solid var(--line);
  background: #fff;
}

/* ---------- Admin panel ---------- */
.admin-badge {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.45);
  color: #fff;
  border-radius: 999px;
  padding: 3px 10px;
  margin-left: 4px;
}

.panel-form {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  max-width: 720px;
}

.users-table-wrap {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow-x: auto;
}
.users-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.users-table th,
.users-table td {
  text-align: left;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.users-table thead th {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  background: #f8fafc;
}
.users-table tbody tr:last-child td { border-bottom: none; }
.role-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 999px;
  padding: 3px 10px;
}
.role-badge.admin { background: #eef5fb; color: var(--chase-blue); }
.role-badge.client { background: #eaf6ef; color: var(--positive); }
.users-empty {
  color: var(--ink-soft);
  text-align: center;
  padding: 20px;
}

/* Toast */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-left: 4px solid var(--positive);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  padding: 16px 18px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  max-width: 360px;
  transform: translateY(140%);
  opacity: 0;
  transition: transform 0.25s ease, opacity 0.25s ease;
  z-index: 100;
}
.toast.show { transform: translateY(0); opacity: 1; }
.toast-check {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--positive);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
  flex: 0 0 auto;
}
.toast-body { display: flex; flex-direction: column; gap: 2px; }
.toast-body strong { font-size: 14px; }
.toast-body span { font-size: 13px; color: var(--ink-soft); }

/* ==================================================================
   VOUCHER (transfer / withdrawal receipt)
   ================================================================== */
.voucher-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 41, 66, 0.55);
  backdrop-filter: blur(2px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 32px 16px;
  overflow-y: auto;
  z-index: 200;
}
.voucher-modal {
  width: 100%;
  max-width: 460px;
  margin: auto 0;
}
.voucher-card {
  background: #fff;
  border-radius: 18px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  animation: voucher-pop 0.18s ease;
}
@keyframes voucher-pop {
  from { transform: translateY(8px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.voucher-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 22px 24px 14px;
  background: linear-gradient(120deg, var(--chase-blue) 0%, var(--chase-blue-deep) 100%);
  color: #fff;
}
.voucher-title {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.voucher-head-sub {
  margin: 2px 0 0;
  font-size: 12px;
  opacity: 0.85;
  font-weight: 500;
}
.voucher-close {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  flex: 0 0 auto;
}
.voucher-close:hover { background: rgba(255, 255, 255, 0.28); }

.voucher-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 6px 24px 0;
  padding: 7px 12px;
  background: #fff6e5;
  border: 1px solid #f3d9a4;
  color: #9a6b16;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
}
.voucher-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #e8a13c;
  box-shadow: 0 0 0 3px rgba(232, 161, 60, 0.2);
  flex: 0 0 auto;
}

.voucher-date {
  margin: 10px 24px 0;
  font-size: 13px;
  color: var(--ink-soft);
}

.voucher-amount {
  margin: 16px 24px 0;
  padding: 18px 20px;
  background: #f6f9fc;
  border: 1px solid var(--line);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.voucher-amount-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.voucher-amount-value {
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
  word-break: break-word;
}

.voucher-fees {
  margin: 12px 24px 0;
  display: flex;
  flex-direction: column;
}
.voucher-fee-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  font-size: 14px;
  border-bottom: 1px dashed var(--line);
}
.voucher-fee-row:last-child { border-bottom: none; }
.voucher-fee-row span:first-child { color: var(--ink-soft); }
.voucher-fee-row span:last-child { font-weight: 600; }

.voucher-banks {
  margin: 16px 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.voucher-bank {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 88px;
  padding: 10px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.voucher-bank img {
  max-width: 100%;
  max-height: 76px;
  object-fit: contain;
}
.voucher-bank-text {
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.voucher-arrow {
  font-size: 22px;
  color: var(--chase-blue);
  font-weight: 700;
  flex: 0 0 auto;
}

.voucher-details {
  margin: 16px 24px 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.voucher-party {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 14px;
  background: #fafbfc;
  border: 1px solid var(--line);
  border-radius: 12px;
  min-width: 0;
}
.voucher-party-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-soft);
  margin-bottom: 2px;
}
.voucher-party-bank { font-size: 13px; font-weight: 700; color: var(--chase-blue); }
.voucher-party-name { font-size: 13px; font-weight: 600; color: var(--ink); word-break: break-word; }
.voucher-party-acct { font-size: 12px; color: var(--ink-soft); word-break: break-all; }

.voucher-info {
  margin: 16px 24px 0;
  display: flex;
  flex-direction: column;
}
.voucher-info-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding: 9px 0;
  font-size: 13.5px;
  border-bottom: 1px solid var(--line);
}
.voucher-info-row:last-child { border-bottom: none; }
.voucher-info-row span:first-child { color: var(--ink-soft); white-space: nowrap; }
.voucher-info-row span:last-child { font-weight: 600; text-align: right; word-break: break-word; }
.voucher-ref { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: 0.02em; }

.voucher-actions {
  display: flex;
  gap: 12px;
  padding: 20px 24px 24px;
  border-top: 1px solid var(--line);
  margin-top: 18px;
}
.voucher-actions .btn { flex: 1; }
.btn-ghost-voucher {
  background: #fff;
  color: var(--ink);
  border-color: #ccd4dc;
}
.btn-ghost-voucher:hover { background: #f4f6f9; }

@media (max-width: 480px) {
  .voucher-details { grid-template-columns: 1fr; }
  .voucher-actions { flex-direction: column-reverse; }
}

/* Print only the voucher */
@media print {
  body * { visibility: hidden; }
  .voucher-overlay, .voucher-overlay * { visibility: visible; }
  .voucher-overlay {
    position: absolute;
    inset: 0;
    background: #fff;
    padding: 0;
    backdrop-filter: none;
    align-items: flex-start;
  }
  .voucher-modal { max-width: 100%; margin: 0; }
  .voucher-card { box-shadow: none; border-radius: 0; }
  .voucher-actions, .voucher-close { display: none !important; }
}

/* ==================================================================
   UX polish additions (notifications, skeletons, empty states, etc.)
   ================================================================== */

/* Nav badge (pending transfers) */
.nav-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  background: #e07b00;
  border-radius: 999px;
}

/* Attention banner (pending transfer notification) */
.attention-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff7e6;
  border: 1px solid #f3d9a4;
  border-left: 4px solid #e8a13c;
  border-radius: 12px;
  padding: 12px 16px;
  margin-bottom: 20px;
}
.attention-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}
.attention-text {
  flex: 1;
  font-size: 14px;
  font-weight: 600;
  color: #7a5410;
}
.attention-link { white-space: nowrap; }

/* Hero greeting + balance toggle */
.hero-greeting {
  font-size: 14px;
  font-weight: 600;
  opacity: 0.95;
  margin-bottom: 14px;
}
.hero-balance-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.hero-eye {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: none;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  border-radius: 10px;
  cursor: pointer;
  transition: background-color 0.15s ease;
  flex: 0 0 auto;
}
.hero-eye:hover { background: rgba(255, 255, 255, 0.28); }
.hero-eye svg { width: 18px; height: 18px; }

/* Loading skeletons */
.skeleton {
  background: linear-gradient(90deg, #e8edf2 25%, #f4f7fa 50%, #e8edf2 75%);
  background-size: 200% 100%;
  animation: shimmer 1.3s infinite;
  border-radius: 10px;
}
@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.account-skeleton { height: 150px; }
.activity-skeleton { height: 48px; margin: 6px 0; list-style: none; }
.row-skeleton { height: 20px; margin: 10px 0; }

/* Forgot password modal */
.forgot-body { padding: 4px 24px 24px; }
.forgot-subtitle { margin: 0 0 18px; color: var(--ink-soft); font-size: 14px; line-height: 1.5; }
.forgot-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
  padding: 12px 0;
}
.forgot-success-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--positive);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 22px;
  font-weight: 800;
}
.forgot-success p { margin: 0; color: var(--ink); font-size: 14px; line-height: 1.5; }
.forgot-back { margin-top: 16px; }

/* Transaction type icons */
.activity-main { flex: 1; min-width: 0; }
.tx-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}
.tx-icon svg { width: 16px; height: 16px; }
.tx-icon.tx-credit { background: #eaf6ef; color: var(--positive); }
.tx-icon.tx-debit { background: #fdecec; color: var(--danger); }

/* Richer empty states */
.activity-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--ink-soft);
  font-size: 14px;
  padding: 32px 12px;
  text-align: center;
  list-style: none;
}
.empty-icon { width: 36px; height: 36px; color: #c3ccd5; }
.empty-icon svg { width: 100%; height: 100%; }
.users-empty, .activity-empty { text-align: center; }

/* Accessibility: visible focus */
a:focus-visible, button:focus-visible, select:focus-visible, input:focus-visible {
  outline: 2px solid var(--chase-blue);
  outline-offset: 2px;
}

/* Mobile: nav wraps, admin tables show a scroll hint */
@media (max-width: 640px) {
  .app-nav-inner { flex-wrap: wrap; }
  .users-table-wrap {
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }
  .users-table-wrap::after {
    content: "Scroll →";
    display: block;
    text-align: right;
    font-size: 11px;
    color: var(--ink-soft);
    padding: 6px 12px;
  }
}
