:root {
  --ink: #18221c;
  --muted: #66736b;
  --cream: #f4f1e8;
  --paper: #ffffff;
  --green: #214e3d;
  --green2: #173a2e;
  --line: #d8ddd9;
  --gold: #c7a65d;
  --danger: #a13a32;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: #f7f8f6;
}
.demo-banner {
  background: #2f2f2f;
  color: #fff;
  text-align: center;
  font-size: 12px;
  letter-spacing: .08em;
  padding: 8px 12px;
  font-weight: 700;
}
header {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5vw;
}
nav { display: flex; gap: 28px; }
nav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
}
nav a:hover, nav a.active { color: var(--green); }
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}
.brand-mark {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  display: grid;
  place-items: center;
  font-family: Georgia, serif;
  font-size: 27px;
  border: 3px solid var(--gold);
}
.brand h1 { font-size: 18px; margin: 0; }
.brand p { margin: 3px 0 0; color: var(--muted); font-size: 13px; }
.brand.small strong { display: block; }
.brand.small span { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }

.login-shell {
  min-height: calc(100vh - 34px);
  display: grid;
  place-items: center;
  padding: 24px;
  background: linear-gradient(135deg, #e8ece8, #f5f0e5);
}
.login-card, .transfer-card {
  width: min(480px, 100%);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 32px;
  box-shadow: 0 18px 50px rgba(22, 40, 30, .08);
}
.login-card h2 { margin-top: 30px; margin-bottom: 6px; font-size: 28px; }
label { display: block; font-weight: 650; font-size: 14px; margin: 18px 0 7px; }
input, select {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid #bcc7c0;
  border-radius: 10px;
  font-size: 16px;
  background: #fff;
}
input:focus, select:focus {
  outline: 2px solid rgba(33, 78, 61, .18);
  border-color: var(--green);
}
button {
  width: 100%;
  margin-top: 22px;
  padding: 13px 16px;
  border: 0;
  border-radius: 10px;
  background: var(--green);
  color: #fff;
  font-weight: 750;
  cursor: pointer;
  font-size: 15px;
}
button:hover { background: var(--green2); }
button.secondary {
  width: auto;
  margin: 0;
  background: #e9eee9;
  color: var(--green);
  padding: 10px 14px;
}
.muted { color: var(--muted); }
.notice {
  margin: 16px 0;
  background: #eef3ef;
  border: 1px solid #cad6cc;
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 14px;
}
.notice.error { background: #fbefee; border-color: #e6c5c1; color: var(--danger); }
.notice.success { background: #edf6ef; border-color: #bdd8c4; color: #245d32; }
.demo-credentials {
  margin-top: 18px;
  font-size: 13px;
  color: var(--muted);
  text-align: center;
}

.container {
  width: min(1100px, 90vw);
  margin: 38px auto 70px;
}
.container.narrow { width: min(640px, 90vw); }
.welcome-row, .section-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.eyebrow {
  color: var(--green);
  font-weight: 800;
  letter-spacing: .12em;
  font-size: 11px;
  margin-bottom: 4px;
}
.welcome-row h1 { margin: 0 0 30px; }
.account-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.account-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px;
}
.account-top {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}
.account-top strong, .account-top span { display: block; }
.account-top span { color: var(--muted); font-size: 13px; margin-top: 4px; }
.pill {
  background: #edf5ef;
  color: #2f6740 !important;
  border-radius: 999px;
  padding: 6px 10px;
  height: fit-content;
  font-size: 12px !important;
  margin: 0 !important;
}
.balance { font-size: 34px; font-weight: 760; margin-top: 28px; }
.balance-label { color: var(--muted); font-size: 12px; margin-top: 4px; }
.activity { margin-top: 40px; }
.section-title a, .back {
  color: var(--green);
  text-decoration: none;
  font-weight: 650;
}
.table-wrap {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}
table { border-collapse: collapse; width: 100%; }
th, td {
  padding: 15px 18px;
  border-bottom: 1px solid #edf0ed;
  text-align: left;
  font-size: 14px;
}
th { color: var(--muted); font-size: 12px; background: #fafbf9; }
td:last-child, th:last-child { text-align: right; }
.credit { color: #28723e; font-weight: 700; }
.debit { color: var(--ink); }
.money-input { position: relative; }
.money-input span {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
}
.money-input input { padding-left: 30px; }
.safety-note {
  margin-top: 18px;
  padding: 12px;
  border: 1px dashed #b7c0ba;
  border-radius: 10px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}
.back { display: inline-block; margin-bottom: 24px; }

@media (max-width: 700px) {
  .account-grid { grid-template-columns: 1fr; }
  header { padding: 14px 18px; align-items: flex-start; gap: 18px; }
  nav { gap: 14px; flex-wrap: wrap; justify-content: flex-end; }
  .welcome-row, .section-title { align-items: flex-start; }
}


.wire-heading h1 { margin-bottom: 8px; }
.wire-warning {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  background: #fff7e6;
  border: 1px solid #ead39b;
  border-radius: 12px;
  padding: 12px 14px;
  margin: 20px 0;
  font-size: 13px;
}
.wire-warning span { color: var(--muted); }
.wire-card { width: 100%; }
.form-section-title {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--green);
}
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.fee-summary {
  margin-top: 22px;
  background: #f6f8f6;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
}
.fee-summary div {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}
.fee-summary div + div { margin-top: 8px; }
.fee-summary span { color: var(--muted); font-size: 13px; }
.fee-summary strong { font-size: 13px; }
.wire-confirmation {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 18px 50px rgba(22, 40, 30, .06);
}
.confirmation-icon {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin: 0 auto 12px;
  background: #eaf5ed;
  color: #2f6740;
  font-size: 27px;
  font-weight: 800;
}
.wire-confirmation h2 { margin-bottom: 4px; }
.confirmation-grid {
  margin-top: 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}
.confirmation-grid div {
  padding: 14px;
  border-bottom: 1px solid var(--line);
}
.confirmation-grid div:nth-child(odd) { border-right: 1px solid var(--line); }
.confirmation-grid span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  margin-bottom: 4px;
}
.confirmation-grid strong { font-size: 14px; }
.confirmation-actions {
  display: flex;
  gap: 12px;
  margin-top: 22px;
}
.button-link {
  flex: 1;
  text-decoration: none;
  text-align: center;
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--green);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
}
.secondary-link {
  background: #e9eee9;
  color: var(--green);
}
@media (max-width: 700px) {
  .two-col, .confirmation-grid { grid-template-columns: 1fr; }
  .confirmation-grid div:nth-child(odd) { border-right: 0; }
  .confirmation-actions { flex-direction: column; }
  .wire-warning { flex-direction: column; }
}
