#payoverlay { position: fixed; inset: 0; z-index: 1200; overflow: auto; display: flex; flex-direction: column; align-items: center; padding: 24px 16px; background: var(--brand-tint); color: var(--ink); text-align: center; animation: po-in .25s ease-out; }
#payoverlay[hidden] { display: none; }
#po-confetti { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.po-card { position: relative; z-index: 1; flex: none; width: 100%; max-width: 520px; margin: auto 0; padding: 34px 32px 26px; border: 1px solid var(--brand-border); border-radius: 22px; background: #fff; box-shadow: 0 16px 50px rgba(60,40,140,.09); }
.po-brand { display: inline-flex; align-items: center; gap: 8px; }
#payoverlay .po-brand-card { --wordmark-size: 25px; justify-content: center; margin-bottom: 26px; }
#payoverlay .po-brand-card .brand { font-size: var(--wordmark-size); }
#payoverlay h2 { margin: 0 0 10px; font-size: 27px; font-weight: var(--fw-heading); line-height: var(--lh-heading); letter-spacing: var(--heading-tracking); color: var(--ink); }
#payoverlay p { margin: 0; font-size: 15px; color: var(--text-copy); line-height: 1.65; }
.po-steps { list-style: none; display: grid; grid-template-columns: minmax(0, 1fr) 24px minmax(0, 1fr) 24px minmax(0, 1fr); align-items: start; margin: 28px 0; padding: 0; }
.po-steps li[data-step] { display: flex; flex-direction: column; align-items: center; gap: 10px; min-width: 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.po-num { flex: none; width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 14px; background: #f0edf7; color: var(--text-copy); }
.po-line { height: 1px; margin-top: 16px; background: var(--brand-border); }
.po-steps li.active { color: var(--ink); font-weight: 600; }
.po-steps li.active .po-num { color: #fff; background: var(--brand-primary); }
.po-steps li.done .po-num { color: var(--brand-hover); background: var(--brand-soft); }
.po-steps li.done .po-num::before { content: '✓'; }
#payoverlay .po-note { max-width: 340px; margin: 0 auto; font-size: 14px; }
.po-trust { display: flex; align-items: center; justify-content: center; gap: 7px; margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.po-trust svg { flex: none; color: var(--brand-primary); }
#payoverlay.fail .po-steps, #payoverlay.fail .po-note, #payoverlay.fail .po-trust { display: none; }
.po-btn { margin-top: 16px; padding: 12px 18px; min-height: 46px; border: 0; border-radius: 10px; background: var(--brand-fill); color: #fff; font-weight: 600; font-size: 15px; cursor: pointer; box-shadow: none; }
@keyframes po-in { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { #payoverlay { animation: none; } }
@media (max-width: 420px) {
  .po-card { padding: 28px 22px 22px; border-radius: 18px; }
  #payoverlay h2 { font-size: 24px; }
  .po-steps { display: flex; flex-direction: column; gap: 14px; margin: 24px 0; }
  .po-steps li[data-step] { flex-direction: row; gap: 12px; font-size: 14px; text-align: left; }
  .po-line { display: none; }
}
