/* PASSID Pay — product chrome aligned with home-v3. */

:root {
  --pay-ink: #111111;
  --pay-muted: #3f3f46;
  --pay-dim: #6b7280;
  --pay-dark: #070b14;
  --pay-panel: #0c1220;
  --pay-cream: #f4f1ea;
  --pay-green: #00c27a;
  --pay-green-dk: #04150e;
  --pay-green-deep: #047857;
  --pay-sky: #389cf6;
  --pay-sky-2: #bae0ff;
  --pay-off: #f5f5f7;
  --pay-line: rgba(255,255,255,.08);
  --pay-sans: "IBM Plex Sans", Inter, system-ui, sans-serif;
  --pay-serif: Newsreader, "Times New Roman", serif;
  --pay-mono: "JetBrains Mono", ui-monospace, monospace;
}

body.v3.pay-page {
  background: #ffffff !important;
  font-family: var(--pay-sans) !important;
  cursor: auto;
}
body.pay-page .ambient-bg,
body.pay-page .orb-container,
body.pay-page #particles-bg,
body.pay-page .scroll-text,
body.pay-page .cur-dot,
body.pay-page .cur-ring,
body.pay-page .scroll-progress,
body.pay-page .progress { display: none !important; }
body.pay-page .pay-hero .reveal {
  opacity: 1 !important;
  transform: none !important;
}

body.v3 header.page-hero.pay-hero {
  position: relative;
  overflow: visible;
  padding: 100px 0 56px !important;
  background: linear-gradient(180deg, rgb(186, 224, 255) 0%, #ffffff 38%) !important;
}
body.v3.pay-page:has(#passid-consent[style*="display: block"]) header.page-hero.pay-hero,
body.v3.pay-page:has(#passid-consent[style*="display:block"]) header.page-hero.pay-hero {
  padding-bottom: 108px !important;
}
.pay-hero .page-hero-glow { display: none !important; }
body.v3 header.page-hero.pay-hero .prod-hero-title {
  max-width: 920px;
  font-size: 42px !important;
  line-height: 1.08 !important;
  color: #111111 !important;
  -webkit-text-fill-color: #111111 !important;
  text-align: center;
  margin: 0 auto 12px !important;
}
body.v3 header.page-hero.pay-hero .prod-accent {
  display: block;
  margin-top: 4px;
  font-family: var(--pay-serif) !important;
  font-style: italic !important;
  font-weight: 400 !important;
  color: #00c27a !important;
  -webkit-text-fill-color: #00c27a !important;
}
body.v3 header.page-hero.pay-hero .prod-hero-copy {
  max-width: 580px;
  margin: 0 auto 20px !important;
  text-align: center;
  color: #3f3f46 !important;
  -webkit-text-fill-color: #3f3f46 !important;
  font-size: 16.5px !important;
  line-height: 1.55 !important;
}
body.v3 header.page-hero.pay-hero .ig-layered { text-align: center; }

.pay-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--pay-green-dk);
  background: rgba(255,255,255,.72);
  border: 0;
  border-radius: 999px;
  padding: 7px 12px 7px 10px;
  margin-bottom: 16px;
  backdrop-filter: blur(10px);
}
.pay-kicker-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--pay-green);
  box-shadow: 0 0 0 4px rgba(0,194,122,.18);
}

#sandbox { scroll-margin-top: 92px; }
.pay-app {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  text-align: left;
  overflow: visible;
}
.pay-app-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 2px 12px;
  color: var(--pay-ink);
}
.pay-traffic { display: none; }
.pay-app-bar .pay-brand { color: var(--pay-ink); font-size: 15px; }
.pay-app-bar .pay-brand img { width: 28px; height: 28px; border-radius: 8px; }
.pay-app-env {
  display: inline-flex;
  margin-left: 8px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--pay-green-deep);
  background: rgba(0,194,122,.12);
  vertical-align: middle;
}
.pay-app-meta {
  margin-left: auto;
  font-size: 13px;
  color: var(--pay-dim);
  white-space: nowrap;
}
.pay-status {
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  padding: 6px 10px;
  border-radius: 999px;
  background: #e8faf2;
  color: var(--pay-green-deep);
}
.pay-status[data-status="wait"] { background: #e8f0ff; color: #1d4ed8; }
.pay-status[data-status="busy"] { background: #fff4d6; color: #92400e; }
.pay-status[data-status="done"] { background: #e8faf2; color: #047857; }
.pay-status[data-status="error"] { background: #fde8e8; color: #b91c1c; }

.pay-view { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.pay-view[hidden] { display: none !important; }
.pay-amount-sm { font-size: 28px !important; }

.pay-empty {
  text-align: center;
  padding: 48px 28px 32px;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.pay-skel {
  width: 100%;
  max-width: 300px;
  padding: 16px 16px 14px;
  border-radius: 16px;
  background: #ffffff;
  text-align: left;
  margin-bottom: 12px;
  box-shadow: 0 8px 24px rgba(7,11,20,.06);
}
.pay-skel-h {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #a1a1aa;
  margin-bottom: 10px;
}
.pay-skel-amt {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -.04em;
  color: #d4d4d8;
  margin-bottom: 12px;
}
.pay-skel-line {
  height: 10px;
  border-radius: 6px;
  background: #ececef;
  margin-bottom: 8px;
}
.pay-skel-line.short { width: 62%; }
.pay-skel-btns { display: flex; gap: 8px; margin-top: 12px; }
.pay-skel-btns span {
  height: 32px;
  border-radius: 999px;
  background: #ececef;
  flex: 1;
}
.pay-avatar,
.pay-empty-orb {
  width: 52px; height: 52px; margin: 0 auto 14px; border-radius: 50%;
  background: radial-gradient(circle at 38% 32%, #5dffb4, #00c27a 42%, #0b3d2c);
  box-shadow: 0 12px 28px rgba(0,194,122,.28);
  color: #04150e;
  font: 700 15px/52px var(--pay-sans);
  letter-spacing: -.03em;
}
.pay-avatar.sm {
  width: 36px; height: 36px; margin: 0; font-size: 11px; line-height: 36px;
  box-shadow: none; flex-shrink: 0;
}
.pay-empty-orb-warn { background: radial-gradient(circle at 38% 32%, #fecaca, #ef4444 55%, #7f1d1d); box-shadow: none; color: #fff; }
.pay-empty h3 { margin: 0 0 10px; font-size: 20px; letter-spacing: -.03em; color: var(--pay-ink); }
.pay-empty p { margin: 0 auto; max-width: 360px; color: var(--pay-muted); font-size: 14.5px; line-height: 1.55; }
.pay-empty .pay-label { text-align: center; }
.pay-empty .pay-actions { justify-content: center; margin-top: 18px; }
.pay-empty-card {
  margin-top: 16px;
  width: 100%;
  max-width: 280px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px dashed #d4d4d8;
  color: var(--pay-dim);
  font-size: 12.5px;
  background: rgba(255,255,255,.55);
}

.pay-who {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 8px;
  text-align: left;
}
.pay-who strong { display: block; font-size: 14px; letter-spacing: -.02em; }
.pay-who span { display: block; font-size: 12px; color: var(--pay-dim); }

.pay-check { list-style: none; margin: 0 0 12px; padding: 0; }
.pay-check li {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 9px 12px; margin-bottom: 6px;
  background: #f5f5f7; border-radius: 12px; text-align: left;
}
.pay-check i {
  position: relative; width: 18px; height: 18px; margin-top: 2px; flex-shrink: 0;
  border-radius: 50%; background: var(--pay-green);
}
.pay-check i::after {
  content: ""; position: absolute; left: 5px; top: 3px;
  width: 5px; height: 9px; border: 2px solid #04150e; border-top: 0; border-left: 0;
  transform: rotate(45deg);
}
.pay-check strong { display: block; font-size: 13.5px; text-transform: capitalize; letter-spacing: -.02em; }
.pay-check em { display: block; font-style: normal; font-size: 11.5px; color: var(--pay-dim); font-family: var(--pay-mono); }

.pay-json { margin: 0 0 12px; text-align: left; }
.pay-json summary {
  cursor: pointer; font-size: 11px; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; color: var(--pay-dim);
}
.pay-json .pay-cred { display: block; margin-top: 8px; max-height: 120px; }

.pay-progress {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin: 0 auto 28px;
  max-width: 760px;
  padding: 0 8px;
  border: 0;
}
.pay-progress-step {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  padding: 0;
  background: transparent;
  color: var(--pay-dim);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: -.02em;
  text-transform: none;
  text-align: left;
}
.pay-progress-step::after {
  content: "";
  flex: 1;
  height: 1px;
  margin: 0 12px 0 10px;
  background: #e4e4e7;
}
.pay-progress-step:last-child { flex: 0 0 auto; }
.pay-progress-step:last-child::after { display: none; }
.pay-progress-step span {
  display: inline-flex;
  width: 24px; height: 24px;
  align-items: center; justify-content: center;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid #d4d4d8;
  color: var(--pay-ink);
  font-size: 11px;
  font-weight: 700;
  position: relative;
  z-index: 1;
  flex-shrink: 0;
}
.pay-progress-step small { display: none; }
.pay-progress-step.is-on { color: var(--pay-green-dk); }
.pay-progress-step.is-on span {
  background: var(--pay-green);
  border-color: var(--pay-green);
  color: #04150e;
}
.pay-progress-step.is-on::after { background: rgba(0,194,122,.45); }
.pay-progress-step.is-done { color: var(--pay-ink); }
.pay-progress-step.is-done span {
  background: var(--pay-green);
  border-color: var(--pay-green);
  color: #04150e;
}
.pay-progress-step.is-done::after { background: var(--pay-green); }

.pay-stage {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: stretch;
  padding: 0;
  background: transparent;
  overflow: visible;
}

.pay-panel {
  position: relative;
  background: var(--pay-dark);
  color: var(--pay-cream);
  border-radius: 28px;
  padding: 26px 28px 24px;
  min-height: 0;
  display: flex;
  flex-direction: column;
  box-shadow: 0 28px 70px rgba(7,11,20,.16);
  overflow: hidden;
  text-align: left;
}
.pay-panel .pay-amount,
.pay-panel .pay-sub,
.pay-panel .pay-label,
.pay-panel .pay-deny { text-align: left !important; }
.pay-row span:last-child,
.pay-state { white-space: nowrap; }
.pay-panel::after {
  content: "";
  position: absolute;
  inset: auto -20% -40% auto;
  width: 240px; height: 240px;
  background: radial-gradient(circle, rgba(0,194,122,.18), transparent 68%);
  pointer-events: none;
}
.pay-panel.light {
  background: #ffffff;
  color: var(--pay-ink);
  border: 1px solid rgba(7,11,20,.08);
  box-shadow: 0 28px 70px rgba(7,11,20,.1);
}
.pay-panel.light::after { background: radial-gradient(circle, rgba(56,156,246,.12), transparent 68%); }

.pay-panel-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 22px;
  position: relative;
  z-index: 1;
}
.pay-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  letter-spacing: -.03em;
  font-size: 15px;
}
.pay-brand img { width: 30px; height: 30px; border-radius: 9px; }
.pay-chip {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(0,194,122,.16);
  color: var(--pay-green);
}
.pay-panel.light .pay-chip {
  background: rgba(0,194,122,.12);
  color: var(--pay-green-deep);
}

.pay-label {
  position: relative;
  z-index: 1;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--pay-green);
  margin: 0 0 10px;
}
.pay-panel.light .pay-label { color: var(--pay-green-deep); }

.pay-amount {
  position: relative;
  z-index: 1;
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -.05em;
  line-height: .95;
  margin: 0 0 8px;
  font-variant-numeric: tabular-nums;
}
.pay-sub {
  position: relative;
  z-index: 1;
  font-size: 14.5px;
  line-height: 1.5;
  color: rgba(244,241,234,.62);
  margin: 0 0 16px;
}
.pay-panel.light .pay-sub { color: var(--pay-muted); }

.pay-rows {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
}
.pay-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255,255,255,.045);
  font-size: 13.5px;
}
.pay-panel.light .pay-row { background: #ffffff; }
.pay-row span:first-child { color: rgba(244,241,234,.5); }
.pay-panel.light .pay-row span:first-child { color: var(--pay-dim); }
.pay-row span:last-child {
  font-weight: 600;
  font-family: var(--pay-mono);
  font-size: 12px;
  letter-spacing: -.02em;
  text-align: right;
}

.pay-log-wrap {
  position: relative;
  z-index: 1;
  margin: 20px 0 0;
  padding: 16px 20px 12px;
  border-radius: 18px;
  background: #f5f5f7;
  text-align: left;
}
.pay-log-h {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--pay-dim);
  margin-bottom: 8px;
}
.pay-log {
  list-style: none;
  margin: 0;
  padding: 0;
}
.pay-log li {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  padding: 5px 0;
  font-size: 13px;
  color: var(--pay-muted);
  line-height: 1.45;
}
.pay-log i {
  width: 6px; height: 6px; margin-top: 7px; border-radius: 50%;
  background: var(--pay-green); flex-shrink: 0;
}

.pay-done-mark {
  width: 36px; height: 36px; margin: 0 0 12px;
  border-radius: 50%;
  background: var(--pay-green);
  position: relative;
}
.pay-done-mark::after {
  content: "";
  position: absolute;
  left: 13px; top: 8px;
  width: 7px; height: 12px;
  border: 2.5px solid #04150e;
  border-top: 0; border-left: 0;
  transform: rotate(45deg);
}

.pay-panel .pay-json summary { color: rgba(244,241,234,.55); }
.pay-actions {
  position: relative;
  z-index: 1;
  margin-top: auto;
  padding-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.pay-panel.light .pay-actions { margin-top: 16px; padding-top: 4px; }
.pay-text-link {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  margin-top: 14px;
  font-size: 13.5px;
  font-weight: 600;
  color: #86efac;
  text-decoration: none;
  letter-spacing: -.01em;
}
.pay-text-link[hidden] { display: none !important; }
.pay-text-link:hover { color: #bbf7d0; }
.pay-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  font: 700 14px/1 var(--pay-sans);
  cursor: pointer;
  text-decoration: none;
  transition: background .15s ease, transform .15s ease, box-shadow .15s ease, color .15s ease;
}
.pay-btn:disabled { opacity: .38; cursor: not-allowed; }
.pay-btn[hidden],
[hidden] { display: none !important; }
.pay-btn-green {
  background: var(--pay-green);
  color: var(--pay-green-dk);
  box-shadow: 0 10px 24px rgba(0,194,122,.28);
}
.pay-btn-green:hover:not(:disabled) { background: #00d488; }
.pay-btn-white { background: #ffffff; color: var(--pay-ink); }
.pay-btn-ghost {
  background: transparent;
  color: var(--pay-cream);
  border: 1px solid rgba(255,255,255,.16);
}
.pay-panel.light .pay-btn-ghost {
  color: var(--pay-ink);
  border-color: #d4d4d8;
}
.pay-btn-ghost:hover:not(:disabled) { background: rgba(255,255,255,.08); }
.pay-panel.light .pay-btn-ghost:hover:not(:disabled) { background: #ececef; }
.pay-btn:active:not(:disabled) { transform: translateY(1px); }
.pay-btn.is-busy { pointer-events: none; opacity: .7; }

.pay-claims {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 4px 0 14px;
  min-height: 34px;
}
.pay-claim {
  font-size: 12px;
  font-weight: 600;
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(0,194,122,.14);
  color: #86efac;
}
.pay-panel.light .pay-claim {
  background: rgba(0,194,122,.1);
  color: var(--pay-green-deep);
}
.pay-deny {
  position: relative;
  z-index: 1;
  font-size: 13px;
  color: rgba(244,241,234,.5);
  margin: 4px 0 0;
  line-height: 1.5;
}
.pay-panel.light .pay-deny { color: var(--pay-dim); }

.pay-state {
  font-family: var(--pay-sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: lowercase;
  color: var(--pay-green) !important;
}

.pay-ledger {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  position: relative;
  z-index: 1;
}
.pay-ledger li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 8px 0;
  font-size: 13px;
  color: var(--pay-dim);
  opacity: .35;
  transform: translateY(4px);
  transition: opacity .25s ease, transform .25s ease;
}
.pay-ledger li.is-on {
  opacity: 1;
  transform: none;
  color: var(--pay-ink);
  font-weight: 500;
}
.pay-ledger i {
  width: 8px; height: 8px; margin-top: 6px; border-radius: 50%;
  background: #d4d4d8; flex-shrink: 0;
}
.pay-ledger li.is-on i { background: var(--pay-green); box-shadow: 0 0 0 4px rgba(0,194,122,.16); }

.pay-receipt {
  position: relative;
  z-index: 1;
  margin: 8px 0 12px;
  padding: 14px 16px 12px;
  border-radius: 16px;
  background: #f5f5f7;
  display: none;
}
.pay-receipt.is-open { display: block; }
.pay-receipt-h {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--pay-green-deep);
}
.pay-receipt dl {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 7px 10px;
  margin: 0;
  font-size: 13px;
}
.pay-receipt dt { color: var(--pay-dim); font-weight: 500; }
.pay-receipt dd {
  margin: 0;
  font-family: var(--pay-mono);
  font-size: 11.5px;
  word-break: break-all;
  color: var(--pay-ink);
}

.pay-cred {
  margin: 0 0 12px;
  padding: 14px;
  border-radius: 16px;
  background: #121826;
  font-family: var(--pay-mono);
  font-size: 11px;
  line-height: 1.55;
  color: #d7e3f0;
  overflow: auto;
  max-height: 150px;
  white-space: pre-wrap;
  word-break: break-word;
  position: relative;
  z-index: 1;
}

.pay-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.pay-step {
  background: var(--pay-off);
  border-radius: 26px;
  padding: 24px 22px;
  min-height: 180px;
}
.pay-step-n {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--pay-green);
  margin-bottom: 10px;
}
.pay-step h3 {
  margin: 0 0 8px;
  font-size: 20px;
  letter-spacing: -.03em;
  color: var(--pay-ink) !important;
}
.pay-step p { margin: 0; color: var(--pay-muted); font-size: 14.5px; line-height: 1.55; }

.pay-boundary { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.pay-bound { border-radius: 26px; padding: 24px; }
.pay-bound h3 { margin: 0 0 8px; font-size: 17px; letter-spacing: -.02em; }
.pay-bound p { margin: 0; font-size: 14.5px; line-height: 1.55; color: var(--pay-muted); }
.pay-bound.yes { background: #e8faf2; }
.pay-bound.no { background: var(--pay-off); }

.pay-code-wrap { position: relative; margin-top: 22px; }
.pay-code-copy {
  position: absolute; top: 14px; right: 14px; z-index: 2;
  padding: 7px 12px; border-radius: 8px;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(12,18,32,.72);
  color: #e8faf2; font: 700 12px var(--pay-sans); cursor: pointer;
}
.pay-code-copy:hover { background: rgba(0,194,122,.18); color: #86efac; }
.pay-code {
  background: var(--pay-dark);
  color: var(--pay-cream);
  border-radius: 26px;
  padding: 24px;
  font-family: var(--pay-mono);
  font-size: 12.5px;
  line-height: 1.7;
  overflow: auto;
}
.pay-code .k { color: #7dd3fc; }
.pay-code .s { color: #86efac; }
.pay-code .c { color: #a8b6c9; }

.pay-form { display: flex; flex-direction: column; gap: 16px; margin-top: 28px; max-width: 560px; }
.pay-field label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--pay-dim);
  margin-bottom: 7px;
}
.pay-field input,
.pay-field textarea {
  width: 100%;
  padding: 13px 14px;
  border-radius: 14px;
  border: 1px solid #e4e4e7;
  background: #ffffff;
  font: 400 15px/1.4 var(--pay-sans);
  color: var(--pay-ink);
  box-sizing: border-box;
}
.pay-field input:focus,
.pay-field textarea:focus {
  outline: 2px solid var(--pay-green);
  outline-offset: 2px;
  border-color: transparent;
}
.pay-form-note { font-size: 12.5px; color: var(--pay-dim); margin: 0; }
.pay-form-error { display: none; color: #b91c1c; font-size: 13px; }

.pay-auth-shell {
  min-height: 100svh;
  background: linear-gradient(180deg, #2b8eef 0%, #8ecfff 28%, #e8f4ff 58%, #ffffff 82%);
  padding: 0 18px 48px;
}
.pay-auth-nav {
  display: flex;
  justify-content: center;
}
.pay-auth-nav .pay-brand {
  background: var(--pay-dark);
  color: var(--pay-cream);
  border-radius: 0 0 16px 16px;
  padding: 11px 16px 10px;
}
.pay-auth-nav .pay-brand span.pay {
  color: var(--pay-green);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  margin-left: 6px;
}
.pay-auth-inner { max-width: 480px; margin: 56px auto 0; }
.pay-auth-card {
  background: #ffffff;
  border-radius: 30px;
  padding: 30px 26px 24px;
  box-shadow: 0 30px 80px rgba(15,23,42,.16);
}
.pay-auth-card .pay-amount { font-size: 40px; }
.pay-auth-card .pay-actions { margin-top: 8px; }
.pay-auth-card .pay-deny { color: var(--pay-dim); }
.pay-auth-card .pay-who { margin-top: 8px; }

body.pay-auth { margin: 0; font-family: var(--pay-sans); }
body.pay-auth #nav,
body.pay-auth footer,
body.pay-auth .passid-consent { display: none !important; }

@media (max-width: 980px) {
  .pay-stage,
  .pay-steps,
  .pay-boundary { grid-template-columns: 1fr; }
  body.v3 header.page-hero.pay-hero { padding: 96px 0 32px !important; }
  body.v3 header.page-hero.pay-hero .prod-hero-title { font-size: 30px !important; }
  .pay-amount { font-size: 32px; }
  .pay-panel { min-height: 0; padding: 20px 18px 18px; border-radius: 24px; }
  .pay-app-meta { display: none; }
  .pay-app-env { display: none; }
  .pay-app-bar .pay-brand { white-space: nowrap; }
  .pay-log-wrap { display: none; }
  .pay-progress { max-width: none; margin-bottom: 18px; }
  .pay-progress-step { font-size: 12px; gap: 6px; }
  .pay-progress-step::after { margin: 0 6px; }
  .pay-empty { padding: 28px 14px 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .pay-btn, .pay-ledger li { transition: none; }
}

.pay-hero-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 auto 14px;
}
.pay-btn-ghost-hero {
  color: #111 !important;
  border-color: rgba(17,17,17,.16) !important;
  background: #fff !important;
}
.pay-hero-note {
  max-width: 640px;
  margin: 0 auto 28px;
  font-size: 13.5px;
  line-height: 1.55;
  color: #52525b;
}
.pay-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 18px;
}
.pay-scenario {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  color: #111;
}
.pay-scenario select {
  min-height: 40px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid #d4d4d8;
  background: #fff;
  font: 500 13px/1 var(--pay-sans);
}
.pay-flow-rail {
  list-style: none;
  margin: 0 0 16px;
  padding: 12px 14px;
  border-radius: 14px;
  background: #f5f5f7;
  display: grid;
  gap: 6px;
  font-size: 13px;
  color: #3f3f46;
}
.pay-flow-rail li { padding-left: 18px; position: relative; }
.pay-flow-rail li::before {
  content: "";
  position: absolute;
  left: 0; top: 7px;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--pay-green);
}
.pay-consent-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 8px 0 12px;
}
.pay-deny-list {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 13px;
  color: var(--pay-dim);
}
.pay-deny-list li { padding: 4px 0 4px 14px; position: relative; }
.pay-deny-list li::before { content: "✕"; position: absolute; left: 0; color: #b45309; font-size: 11px; }
.pay-receipt-note {
  margin: 12px 0 0;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--pay-dim);
}
.pay-reuse {
  margin-top: 18px;
  padding-top: 8px;
  border-top: 1px solid #ececef;
}
.pay-usecases {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}
.pay-usecases li {
  padding: 14px 16px;
  border-radius: 14px;
  background: #f5f5f7;
  font-size: 14.5px;
  font-weight: 600;
}
.pay-value-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 28px;
}
.pay-value-grid article {
  padding: 20px 18px;
  border-radius: 18px;
  background: #f5f5f7;
}
.pay-value-grid h3 { margin: 0 0 8px; font-size: 16px; }
.pay-value-grid p { margin: 0; font-size: 14px; line-height: 1.5; color: #3f3f46; }
.pay-field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.pay-checkline {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  font-size: 13.5px;
  line-height: 1.45;
  color: #3f3f46;
  margin: 4px 0;
}
.pay-boundary { grid-template-columns: 1fr 1fr; }
@media (max-width: 980px) {
  .pay-consent-grid,
  .pay-value-grid,
  .pay-field-grid { grid-template-columns: 1fr; }
}

/* Hero proof strip */
.pay-proof-strip {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0;
  max-width: 880px;
  margin: 0 auto 40px;
  padding: 18px 8px;
  border-radius: 20px;
  background: rgba(255,255,255,.6);
  backdrop-filter: blur(10px);
}
.pay-proof-stat {
  flex: 1;
  min-width: 140px;
  padding: 0 18px;
  text-align: center;
  border-left: 1px solid rgba(17,17,17,.08);
}
.pay-proof-stat:first-child { border-left: 0; }
.pay-proof-stat strong {
  display: block;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -.03em;
  color: var(--pay-ink);
  font-family: var(--pay-mono);
}
.pay-proof-stat span {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  line-height: 1.4;
  color: var(--pay-dim);
}
@media (max-width: 720px) {
  .pay-proof-stat { border-left: 0; border-top: 1px solid rgba(17,17,17,.08); padding: 12px 10px 0; margin-top: 12px; }
  .pay-proof-stat:first-child { border-top: 0; margin-top: 0; padding-top: 0; }
}

/* Operating model diagram */
.pay-diagram {
  display: flex;
  align-items: stretch;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}
.pay-diagram-node {
  flex: 1;
  min-width: 130px;
  padding: 16px 14px;
  border-radius: 16px;
  background: var(--pay-off);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--pay-ink);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.pay-diagram-node em { font-style: normal; font-weight: 400; font-size: 12px; color: var(--pay-dim); }
.pay-diagram-n {
  display: inline-flex;
  width: 20px; height: 20px;
  align-items: center; justify-content: center;
  border-radius: 50%;
  background: #e4e4e7;
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 4px;
}
.pay-diagram-node.is-core { background: var(--pay-dark); color: var(--pay-cream); }
.pay-diagram-node.is-core em { color: #9aa7bb; }
.pay-diagram-node.is-core .pay-diagram-n { background: var(--pay-green); color: #04150e; }
.pay-diagram-node.is-proof { background: #e8faf2; }
.pay-diagram-node.is-proof .pay-diagram-n { background: var(--pay-green); color: #04150e; }
.pay-diagram-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--pay-dim);
  font-size: 16px;
  flex: 0 0 auto;
  width: 18px;
}
@media (max-width: 900px) {
  .pay-diagram { flex-direction: column; }
  .pay-diagram-arrow { transform: rotate(90deg); width: auto; padding: 2px 0; }
}

/* Featured use case */
.pay-usecase-featured {
  margin-top: 24px;
  padding: 22px 24px;
  border-radius: 20px;
  background: linear-gradient(135deg, #e8faf2 0%, #f5f5f7 100%);
  border: 1px solid rgba(0,194,122,.22);
}
.pay-usecase-tag {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--pay-green-deep);
  margin-bottom: 8px;
}
.pay-usecase-featured h3 { margin: 0 0 6px; font-size: 19px; letter-spacing: -.02em; }
.pay-usecase-featured p { margin: 0; font-size: 14.5px; line-height: 1.5; color: var(--pay-muted); }

/* Credential receipt seal */
.pay-receipt-seal {
  display: inline-flex;
  width: 16px; height: 16px;
  align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--pay-green);
  color: #04150e;
  font-size: 10px;
  font-weight: 700;
  margin-right: 4px;
}

/* Progressive-disclosure form details */
.pay-form-more { border-top: 1px solid #ececef; padding-top: 12px; }
.pay-form-more summary {
  cursor: pointer;
  list-style: none;
  font-size: 13px;
  font-weight: 700;
  color: var(--pay-ink);
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.pay-form-more summary::-webkit-details-marker { display: none; }
.pay-form-more summary::before { content: "+"; font-size: 15px; color: var(--pay-green-deep); }
.pay-form-more[open] summary::before { content: "–"; }
.pay-form-more summary span {
  font-weight: 400;
  font-size: 12.5px;
  color: var(--pay-dim);
}

/* Hosted Pay authorization — stateful recipient experience */
.pay-auth-nav { position: relative; max-width: 920px; margin: 0 auto; align-items: flex-start; justify-content: center; }
.pay-auth-nav .pay-brand { display: flex; align-items: center; gap: 8px; }
.pay-auth-nav .pay-brand img { border-radius: 8px; }
.pay-hosted-secure { position: absolute; right: 0; top: 15px; display: flex; align-items: center; gap: 7px; color: #103d64; font-size: 12px; font-weight: 600; }
.pay-hosted-secure span { width: 7px; height: 7px; border-radius: 50%; background: #00a86b; box-shadow: 0 0 0 4px rgba(0,168,107,.12); }
.pay-auth-inner.pay-auth-inner-wide { max-width: 720px; margin-top: 34px; }
.pay-hosted-card { padding: 28px; }
.pay-hosted-topline { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pay-no-funds { padding: 5px 9px; border: 1px solid #f2cc8f; border-radius: 999px; background: #fff8e8; color: #8a5700; font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.pay-hosted-progress { list-style: none; display: grid; grid-template-columns: repeat(3,1fr); gap: 0; margin: 22px 0; padding: 0; }
.pay-hosted-progress li { position: relative; display: flex; align-items: center; gap: 7px; color: #9ca3af; font-size: 11px; font-weight: 600; }
.pay-hosted-progress li:not(:last-child)::after { content: ""; height: 1px; flex: 1; margin: 0 10px; background: #e4e4e7; }
.pay-hosted-progress b { width: 22px; height: 22px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid #d4d4d8; border-radius: 50%; font-size: 10px; }
.pay-hosted-progress .is-on { color: #111827; }
.pay-hosted-progress .is-on b { background: #111827; border-color: #111827; color: #fff; }
.pay-hosted-progress .is-done { color: #008656; }
.pay-hosted-progress .is-done b { background: #e8faf2; border-color: #83ddb8; font-size: 0; }
.pay-hosted-progress .is-done b::after { content: "✓"; font-size: 11px; }
.pay-hosted-progress .is-done::after { background: #83ddb8 !important; }
.pay-hosted-status { display: flex; align-items: flex-start; gap: 11px; margin-bottom: 18px; padding: 13px 15px; border-radius: 14px; border: 1px solid #dbeafe; background: #eff6ff; }
.pay-hosted-status::before { content: "i"; width: 20px; height: 20px; flex: 0 0 20px; display: grid; place-items: center; border-radius: 50%; background: #2563eb; color: #fff; font-size: 11px; font-weight: 700; }
.pay-hosted-status[data-kind="loading"]::before,.pay-hosted-status[data-kind="processing"]::before { content: ""; border: 2px solid #93c5fd; border-top-color: #2563eb; background: transparent; animation: pay-spin .8s linear infinite; box-sizing: border-box; }
.pay-hosted-status[data-kind="success"] { background: #ecfdf5; border-color: #a7f3d0; }
.pay-hosted-status[data-kind="success"]::before { content: "✓"; background: #059669; }
.pay-hosted-status[data-kind="error"] { background: #fff1f2; border-color: #fecdd3; }
.pay-hosted-status[data-kind="error"]::before { content: "!"; background: #e11d48; }
.pay-hosted-status[data-kind="neutral"] { background: #f4f4f5; border-color: #e4e4e7; }
.pay-hosted-status[data-kind="neutral"]::before { content: "—"; background: #71717a; }
.pay-hosted-status strong,.pay-hosted-status span { display: block; }
.pay-hosted-status strong { color: #111827; font-size: 13px; }
.pay-hosted-status span { margin-top: 2px; color: #64748b; font-size: 11.5px; line-height: 1.45; }
@keyframes pay-spin { to { transform: rotate(360deg); } }
.pay-hosted-who { padding-bottom: 16px; border-bottom: 1px solid #ececef; }
.pay-hosted-who > div:nth-child(2) { flex: 1; }
.pay-hosted-who span { display: block; margin-bottom: 2px; font-size: 10px; color: #71717a; text-transform: uppercase; letter-spacing: .08em; }
.pay-merchant-check { color: #047857; font-size: 10px; font-weight: 700; }
.pay-hosted-amount-wrap { padding: 24px 0 18px; text-align: center; }
.pay-hosted-amount-wrap > span { color: #71717a; font-size: 12px; }
.pay-hosted-amount-wrap .pay-amount { margin: 6px 0 4px; color: #111827; }
.pay-hosted-amount-wrap p { margin: 0; color: #52525b; font-size: 13px; }
.pay-hosted-facts { display: grid; grid-template-columns: repeat(2,1fr); margin: 0 0 18px; border: 1px solid #e4e4e7; border-radius: 14px; overflow: hidden; }
.pay-hosted-facts div { padding: 11px 13px; border-bottom: 1px solid #ececef; }
.pay-hosted-facts div:nth-child(odd) { border-right: 1px solid #ececef; }
.pay-hosted-facts div:nth-last-child(-n+2) { border-bottom: 0; }
.pay-hosted-facts dt { color: #71717a; font-size: 10px; }
.pay-hosted-facts dd { margin: 3px 0 0; color: #18181b; font-size: 12px; font-weight: 600; }
.pay-hosted-section { margin-top: 14px; padding: 17px; border: 1px solid #e4e4e7; border-radius: 18px; }
.pay-hosted-section-title { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.pay-hosted-section-title span { color: #047857; font-size: 9px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.pay-hosted-section-title h2 { margin: 2px 0 0; color: #111827; font-size: 16px; letter-spacing: -.02em; }
.pay-hosted-section > p { margin: 8px 0 12px; color: #64748b; font-size: 11.5px; line-height: 1.55; }
.pay-section-state { padding: 4px 7px; border-radius: 999px; background: #f4f4f5; color: #71717a !important; letter-spacing: .04em !important; white-space: nowrap; }
.pay-section-state.is-current { background: #fff7ed; color: #c2410c !important; }
.pay-section-state.is-complete { background: #ecfdf5; color: #047857 !important; }
.pay-hosted-claims { display: grid; grid-template-columns: repeat(3,1fr); gap: 7px; }
.pay-hosted-claims > div { padding: 9px; border-radius: 10px; background: #f0fdf4; border: 1px solid #bbf7d0; }
.pay-hosted-claims strong,.pay-hosted-claims span { display: block; }
.pay-hosted-claims strong { color: #166534; font-size: 10.5px; }
.pay-hosted-claims span { margin-top: 3px; color: #64748b; font-size: 9px; text-transform: capitalize; }
.pay-hosted-details { margin-top: 10px; padding: 9px 11px; border-radius: 10px; background: #fafafa; color: #52525b; font-size: 10.5px; }
.pay-hosted-details summary { cursor: pointer; font-weight: 600; }
.pay-hosted-details ul { columns: 2; margin: 8px 0 0; padding-left: 18px; line-height: 1.7; }
.pay-hosted-check { display: flex; gap: 10px; align-items: flex-start; margin-top: 12px; padding: 11px; border-radius: 12px; background: #f8fafc; border: 1px solid #e2e8f0; color: #475569; font-size: 11px; line-height: 1.45; cursor: pointer; }
.pay-hosted-check input { width: 17px; height: 17px; flex: 0 0 17px; margin: 1px 0 0; accent-color: #059669; }
.pay-hosted-check b { color: #111827; }
.pay-destination-card { display: flex; align-items: center; gap: 11px; padding: 12px; border-radius: 12px; background: #f8fafc; border: 1px solid #e2e8f0; }
.pay-bank-icon { width: 34px; height: 34px; flex: 0 0 34px; display: grid; place-items: center; border-radius: 10px; background: #111827; color: #fff; font-weight: 700; }
.pay-destination-card > div:nth-child(2) { flex: 1; min-width: 0; }
.pay-destination-card strong,.pay-destination-card span,.pay-destination-card small { display: block; }
.pay-destination-card strong { color: #111827; font-size: 12px; }
.pay-destination-card span,.pay-destination-card small { margin-top: 3px; color: #64748b; font-size: 9.5px; }
.pay-owned { color: #047857; font-size: 9px; font-weight: 700; white-space: nowrap; }
.pay-text-button { margin-top: 9px; padding: 0; border: 0; background: none; color: #b91c1c; font: 600 10.5px/1.4 var(--pay-sans); cursor: pointer; }
.pay-hosted-error { display: flex; flex-direction: column; gap: 3px; margin-top: 12px; padding: 11px 13px; border-radius: 12px; background: #fff1f2; border: 1px solid #fecdd3; color: #9f1239; font-size: 11px; line-height: 1.45; }
.pay-hosted-error[hidden] { display: none; }
.pay-hosted-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 16px !important; }
.pay-hosted-actions .pay-btn { width: 100%; }
.pay-hosted-card .pay-btn-ghost { color: #52525b; border-color: #d4d4d8; background: #fff; }
.pay-hosted-timeline { margin-top: 18px; }
.pay-hosted-timeline .pay-ledger { display: grid; margin-top: 10px; }
.pay-hosted-timeline .pay-ledger span,.pay-hosted-timeline .pay-ledger b,.pay-hosted-timeline .pay-ledger small { display: block; }
.pay-hosted-timeline .pay-ledger b { font-size: 11px; }
.pay-hosted-timeline .pay-ledger small { margin-top: 2px; color: #71717a; font-size: 9px; font-weight: 400; }
.pay-hosted-receipt { margin-top: 16px; }
.pay-hosted-footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 18px; padding-top: 14px; border-top: 1px solid #ececef; color: #71717a; font-size: 9.5px; }
.pay-hosted-footer code { color: #52525b; font-family: var(--pay-mono); font-size: 9px; }
@media (max-width: 620px) {
  .pay-auth-shell { padding: 0 10px 24px; }
  .pay-hosted-secure { display: none; }
  .pay-auth-inner.pay-auth-inner-wide { margin-top: 18px; }
  .pay-hosted-card { padding: 21px 15px; border-radius: 22px; }
  .pay-hosted-progress li { font-size: 10px; }
  .pay-hosted-progress li:not(:last-child)::after { margin: 0 5px; }
  .pay-hosted-facts,.pay-hosted-actions { grid-template-columns: 1fr; }
  .pay-hosted-facts div { border-right: 0 !important; border-bottom: 1px solid #ececef !important; }
  .pay-hosted-facts div:last-child { border-bottom: 0 !important; }
  .pay-hosted-claims { grid-template-columns: 1fr; }
  .pay-hosted-details ul { columns: 1; }
  .pay-merchant-check,.pay-owned { display: none; }
  .pay-hosted-footer { align-items: flex-start; flex-direction: column; }
}
