:root {
  --ink: #17233b;
  --muted: #647087;
  --line: #dfe4ec;
  --navy: #182e58;
  --blue: #2f64c8;
  --pale: #f2f5fa;
}

* { box-sizing: border-box; }

html { min-height: 100%; font-size: 16px; }

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 85% 10%, rgba(47, 100, 200, .10), transparent 28rem),
    linear-gradient(180deg, #f9fbfe 0%, #eef2f7 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.site-header {
  height: 76px;
  display: flex;
  align-items: center;
  padding: 0 clamp(20px, 5vw, 72px);
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--navy); text-decoration: none; font-weight: 750; letter-spacing: -.02em; }
.brand small { display: block; margin-top: -2px; color: var(--muted); font-size: 9px; letter-spacing: .2em; }
.brand-mark { width: 38px; height: 38px; display: grid; place-items: center; color: #fff; background: var(--navy); border-radius: 11px; font-family: Georgia, serif; font-size: 23px; }

.access-shell, .content-page, .transaction-shell { min-height: calc(100vh - 142px); display: grid; place-items: center; padding: 48px 20px; }
.content-page { align-items: start; }

.access-card {
  width: min(100%, 510px);
  padding: clamp(28px, 5vw, 48px);
  background: rgba(255,255,255,.96);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 22px 60px rgba(25, 45, 79, .10);
}

.content-page .access-card { width: min(100%, 720px); }
.eyebrow { margin-bottom: 12px; color: var(--blue); font-size: 12px; font-weight: 800; letter-spacing: .14em; }
h1 { margin: 0 0 14px; color: var(--ink); font-size: clamp(30px, 5vw, 42px); font-weight: 760; letter-spacing: -.035em; }
.lead { margin-bottom: 30px; color: var(--muted); font-size: 17px; line-height: 1.65; }
.form-label { margin-bottom: 8px; font-size: 14px; font-weight: 700; }
.form-control { border-color: #cbd3df; border-radius: 10px; }
.form-control:focus { border-color: var(--blue); box-shadow: 0 0 0 .2rem rgba(47,100,200,.14); }
.field-validation, .validation-summary { display: block; margin-top: 7px; color: #b42318; font-size: 13px; }
.validation-summary ul { padding-left: 18px; }

.notice-check { display: grid; grid-template-columns: 18px 1fr; gap: 11px; margin: 22px 0 0; color: var(--muted); font-size: 13px; line-height: 1.5; cursor: pointer; }
.notice-check input { width: 17px; height: 17px; margin-top: 2px; accent-color: var(--blue); }

.continue-button { width: 100%; margin-top: 24px; padding: 14px 20px; color: #fff; background: var(--navy); border: 0; border-radius: 10px; font-weight: 750; transition: transform .15s, background .15s; }
.continue-button:hover { background: #23447d; transform: translateY(-1px); }
.continue-button:focus-visible { outline: 3px solid rgba(47,100,200,.35); outline-offset: 3px; }

.security-note { display: grid; grid-template-columns: 30px 1fr; gap: 12px; margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; line-height: 1.55; }
.security-note strong { color: var(--ink); }
.shield { width: 27px; height: 27px; display: grid; place-items: center; color: #237a52; background: #e7f6ee; border-radius: 50%; font-weight: 800; }
.confirmation-card { text-align: center; }
.status-icon { width: 58px; height: 58px; display: grid; place-items: center; margin: 0 auto 24px; color: #237a52; background: #e7f6ee; border-radius: 50%; font-size: 26px; font-weight: 800; }
.muted-copy, .content-page p { color: var(--muted); line-height: 1.7; }
.text-link { color: var(--blue); font-weight: 700; }

.transaction-card {
  width: min(100%, 790px);
  padding: clamp(28px, 5vw, 48px);
  background: rgba(255,255,255,.97);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 22px 60px rgba(25, 45, 79, .10);
}

.transaction-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 30px; }
.transaction-heading h1 { margin-bottom: 8px; }
.transaction-lead { margin-bottom: 0; }
.status-pill { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 8px; padding: 9px 13px; color: #7a4d00; background: #fff4d8; border: 1px solid #f2d594; border-radius: 999px; font-size: 12px; font-weight: 750; }
.status-pill span { width: 7px; height: 7px; background: #d68a00; border-radius: 50%; box-shadow: 0 0 0 4px rgba(214,138,0,.12); }

.amount-panel { margin: 32px 0 8px; padding: 25px 28px; color: #fff; background: linear-gradient(125deg, var(--navy), #294d8c); border-radius: 14px; }
.amount-panel span, .amount-panel small { display: block; color: rgba(255,255,255,.72); font-size: 12px; }
.amount-panel strong { display: block; margin: 4px 0 6px; font-size: clamp(30px, 6vw, 42px); letter-spacing: -.025em; }

.details-grid { display: grid; grid-template-columns: 1fr 1fr; margin-top: 22px; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.detail-row { min-width: 0; padding: 19px 22px; border-bottom: 1px solid var(--line); }
.detail-row:nth-child(odd) { border-right: 1px solid var(--line); }
.detail-row:nth-last-child(-n+2) { border-bottom: 0; }
.detail-row span, .detail-row strong { display: block; }
.detail-row span { margin-bottom: 5px; color: var(--muted); font-size: 12px; }
.detail-row strong { overflow-wrap: anywhere; font-size: 15px; }
.number-value { font-variant-numeric: tabular-nums; letter-spacing: .025em; }

.pending-notice { display: grid; grid-template-columns: 34px 1fr; gap: 14px; margin-top: 22px; padding: 18px 20px; color: #684a10; background: #fff9eb; border: 1px solid #f1dfb4; border-radius: 12px; }
.pending-notice p { margin: 3px 0 0; color: #7e6740; font-size: 13px; line-height: 1.55; }
.pending-icon { width: 30px; height: 30px; display: grid; place-items: center; color: #8b5c00; background: #ffe9b5; border-radius: 50%; font-family: Georgia, serif; font-weight: 800; }
.transaction-actions { display: flex; align-items: center; gap: 24px; margin-top: 26px; }
.secondary-button { display: inline-flex; padding: 11px 17px; color: var(--navy); background: #fff; border: 1px solid #bfc9d8; border-radius: 9px; text-decoration: none; font-size: 14px; font-weight: 750; }
.secondary-button:hover { color: #fff; background: var(--navy); border-color: var(--navy); }
.transaction-security { margin-top: 26px; }

.site-footer { min-height: 66px; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 18px clamp(20px, 5vw, 72px); color: var(--muted); background: #fff; border-top: 1px solid var(--line); font-size: 12px; }
.site-footer a { color: var(--muted); }

@media (max-width: 560px) {
  .site-header { height: 68px; }
  .access-shell { min-height: calc(100vh - 128px); padding: 24px 14px; }
  .access-card { padding: 28px 22px; border-radius: 14px; }
  .site-footer { flex-direction: column; align-items: flex-start; }
  .transaction-shell { padding: 24px 14px; }
  .transaction-card { padding: 27px 20px; border-radius: 14px; }
  .transaction-heading { display: block; }
  .status-pill { margin-top: 18px; }
  .details-grid { grid-template-columns: 1fr; }
  .detail-row, .detail-row:nth-child(odd), .detail-row:nth-last-child(-n+2) { border-right: 0; border-bottom: 1px solid var(--line); }
  .detail-row:last-child { border-bottom: 0; }
  .transaction-actions { align-items: flex-start; flex-direction: column; gap: 16px; }
}
