:root {
  --navy: #001b3d;
  --navy-2: #08264c;
  --gold: #c9a248;
  --gold-dark: #a97d22;
  --gold-soft: #f8f0da;
  --paper: #f4f6f9;
  --white: #ffffff;
  --text: #15213a;
  --muted: #647085;
  --line: #dde3eb;
  --success: #18794e;
  --danger: #a33b36;
  --shadow: 0 18px 48px rgba(0, 27, 61, 0.11);
  --shadow-soft: 0 10px 28px rgba(0, 27, 61, 0.075);
  --radius: 10px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--text);
  background:
    linear-gradient(180deg, rgba(201, 162, 72, 0.09), transparent 290px),
    var(--paper);
  font-family: "Segoe UI Variable", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.5;
  overflow-x: hidden;
}

button,
a {
  font: inherit;
}

img,
svg {
  display: block;
  max-width: 100%;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 9px 12px;
  color: var(--navy);
  background: var(--white);
  border-radius: 6px;
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.page-header {
  border-bottom: 1px solid rgba(201, 162, 72, 0.28);
  background: var(--navy);
}

.header-shell,
.page-shell {
  width: min(calc(100% - 32px), 1020px);
  margin-inline: auto;
}

.header-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 64px;
}

.header-shell img {
  width: 176px;
  height: auto;
}

.back-link {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 44px;
  padding: 8px 12px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(201, 162, 72, 0.48);
  border-radius: 8px;
  font-size: 0.76rem;
  font-weight: 800;
  line-height: 1.1;
  text-decoration: none;
  transition: background 0.18s ease, border-color 0.18s ease;
}

.back-link:hover {
  background: rgba(201, 162, 72, 0.14);
  border-color: var(--gold);
}

.back-link svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
}

.page-shell {
  padding: 32px 0 42px;
}

.intro {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
  align-items: center;
  gap: 24px;
  margin-bottom: 30px;
}

.intro-copy,
.recipient-card,
.account-card,
.card-top,
.card-bottom,
.bank-meta {
  min-width: 0;
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--gold-dark);
  font-size: 0.7rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1,
h2 {
  color: var(--navy);
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.08;
}

h1 {
  margin-bottom: 8px;
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 500;
}

.intro-copy > p:last-child {
  max-width: 600px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.96rem;
}

.recipient-card {
  position: relative;
  padding: 18px;
  color: var(--white);
  background: var(--navy);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.recipient-card::after {
  position: absolute;
  right: -34px;
  bottom: -54px;
  width: 150px;
  height: 150px;
  border: 22px solid rgba(201, 162, 72, 0.12);
  border-radius: 50%;
  content: "";
}

.recipient-card span,
.recipient-card strong,
.recipient-card p {
  position: relative;
  z-index: 1;
}

.recipient-card span {
  display: block;
  margin-bottom: 5px;
  color: rgba(255, 255, 255, 0.63);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.recipient-card strong {
  display: block;
  color: var(--gold);
  font-size: 1.15rem;
}

.recipient-card p {
  margin: 3px 0 0;
  color: rgba(255, 255, 255, 0.78);
}

.account-group + .account-group {
  margin-top: 30px;
}

.group-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(0, 27, 61, 0.13);
}

.group-heading .eyebrow {
  margin-bottom: 5px;
}

.group-heading h2 {
  margin-bottom: 0;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
}

.currency-badge {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  min-width: 50px;
  height: 34px;
  padding-inline: 10px;
  color: var(--navy);
  background: var(--gold-soft);
  border: 1px solid rgba(201, 162, 72, 0.42);
  border-radius: 999px;
  font-weight: 900;
}

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

.account-grid-short {
  max-width: none;
}

.account-card {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr);
  grid-template-areas:
    "logo meta"
    "logo bottom";
  column-gap: 12px;
  row-gap: 4px;
  width: 100%;
  padding: 12px;
  color: var(--text);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  text-align: left;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.account-card:hover {
  border-color: rgba(201, 162, 72, 0.72);
  box-shadow: var(--shadow);
}

.copy-pill:focus-visible,
.back-link:focus-visible,
.receipt-callout a:focus-visible {
  outline: 3px solid rgba(201, 162, 72, 0.72);
  outline-offset: 3px;
}

.card-top {
  display: contents;
}

.logo-box {
  grid-area: logo;
  display: grid;
  align-self: center;
  place-items: center;
  width: 90px;
  height: 52px;
  padding: 7px;
  background: #ffffff;
  border: 1px solid #e4e7ec;
  border-radius: 8px;
  overflow: hidden;
}

.logo-box img {
  width: 100%;
  max-height: 38px;
  object-fit: contain;
}

.bank-meta {
  grid-area: meta;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 8px;
}

.bank-meta strong {
  color: var(--navy);
  font-size: 0.95rem;
}

.bank-meta small,
.account-holder {
  color: var(--muted);
  font-size: 0.73rem;
}

.card-divider {
  display: none;
}

.card-bottom {
  grid-area: bottom;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
}

.card-bottom > span:first-child {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.account-number {
  color: var(--navy);
  font-size: clamp(1.05rem, 2vw, 1.24rem);
  line-height: 1.1;
  overflow-wrap: anywhere;
}

.account-holder {
  display: block;
}

.copy-pill {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  padding: 8px 10px;
  color: var(--navy-2);
  background: #f6f7f9;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 800;
}

.copy-pill svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.copy-pill.is-copied {
  color: var(--success);
  background: #effaf4;
  border-color: rgba(24, 121, 78, 0.28);
}

.receipt-callout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 30px;
  padding: 18px;
  color: var(--white);
  background: var(--navy);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.receipt-callout strong {
  color: var(--gold);
  font-size: 1.02rem;
}

.receipt-callout p {
  margin: 4px 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.88rem;
}

.receipt-callout a {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  padding: 11px 16px;
  color: #ffffff;
  background: #188b4b;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  font-weight: 800;
  text-decoration: none;
}

.receipt-callout a:hover {
  background: #11753e;
}

.receipt-callout svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.page-footer {
  padding: 18px 16px;
  color: rgba(255, 255, 255, 0.68);
  background: var(--navy);
  border-top: 1px solid rgba(201, 162, 72, 0.25);
  text-align: center;
}

.page-footer p {
  margin: 0;
  font-size: 0.84rem;
}

.page-footer p + p {
  margin-top: 5px;
}

.copy-toast {
  position: fixed;
  left: 50%;
  bottom: 22px;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: min(calc(100% - 28px), 520px);
  padding: 11px 16px;
  color: #ffffff;
  background: var(--success);
  border-radius: 999px;
  box-shadow: 0 16px 36px rgba(0, 27, 61, 0.25);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 130%);
  transition: opacity 0.2s ease, transform 0.24s ease;
}

.copy-toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.copy-toast.is-error {
  background: var(--danger);
}

.copy-toast svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.2;
}

@media (max-width: 820px) {
  .intro {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .recipient-card {
    max-width: 540px;
  }

  .account-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .header-shell,
  .page-shell {
    width: min(calc(100% - 24px), 1020px);
  }

  .header-shell {
    min-height: 58px;
  }

  .header-shell img {
    width: 118px;
  }

  .back-link {
    gap: 5px;
    padding-inline: 9px;
    font-size: 0.68rem;
  }

  .page-shell {
    padding: 24px 0 32px;
  }

  .intro {
    gap: 14px;
    margin-bottom: 24px;
  }

  h1 {
    font-size: 2rem;
  }

  .intro-copy > p:last-child {
    font-size: 0.9rem;
  }

  .recipient-card,
  .receipt-callout {
    padding: 14px;
  }

  .group-heading {
    align-items: center;
  }

  .group-heading h2 {
    font-size: 1.4rem;
  }

  .currency-badge {
    min-width: 50px;
    height: 34px;
  }

  .card-top {
    display: contents;
  }

  .account-card {
    grid-template-columns: 74px minmax(0, 1fr);
    column-gap: 10px;
    padding: 10px;
  }

  .logo-box {
    width: 74px;
    height: 46px;
    padding: 6px;
  }

  .logo-box img {
    max-height: 34px;
  }

  .card-bottom {
    gap: 7px;
  }

  .account-number {
    font-size: 1.02rem;
  }

  .copy-pill {
    width: auto;
    min-height: 44px;
  }

  .receipt-callout {
    align-items: stretch;
    flex-direction: column;
    gap: 12px;
  }

  .receipt-callout a {
    width: 100%;
  }

  .copy-toast {
    bottom: 14px;
    justify-content: center;
    width: calc(100% - 24px);
    border-radius: 8px;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
