/* Trading Bite v2.1 — Futuristic glass crypto checkout */

@import url('/css/neon.css');

/* ── Page shell & ambient ── */
.pay-page {
  --pay-glass: rgba(12, 18, 32, 0.55);
  --pay-glass-border: rgba(255, 255, 255, 0.08);
  --pay-glass-highlight: rgba(255, 255, 255, 0.04);
  --pay-neon-cyan: #00f5ff;
  --pay-neon-purple: #a855f7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg-deep, #06080d);
  position: relative;
  overflow-x: hidden;
}

[data-theme="light"] .pay-page {
  --pay-glass: rgba(255, 255, 255, 0.72);
  --pay-glass-border: rgba(10, 14, 22, 0.1);
  --pay-glass-highlight: rgba(255, 255, 255, 0.9);
}

.pay-ambient {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.pay-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.45;
  animation: pay-orb-float 18s ease-in-out infinite;
}
.pay-orb-1 {
  width: 420px;
  height: 420px;
  top: -120px;
  left: -80px;
  background: radial-gradient(circle, var(--gold-glow), transparent 70%);
}
.pay-orb-2 {
  width: 360px;
  height: 360px;
  top: 40%;
  right: -100px;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.35), transparent 70%);
  animation-delay: -6s;
}
.pay-orb-3 {
  width: 300px;
  height: 300px;
  bottom: -60px;
  left: 30%;
  background: radial-gradient(circle, var(--teal-glow, rgba(45, 212, 191, 0.35)), transparent 70%);
  animation-delay: -12s;
}

@keyframes pay-orb-float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -20px) scale(1.05); }
  66% { transform: translate(-20px, 25px) scale(0.95); }
}

.pay-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, black 20%, transparent 75%);
}

.pay-scanline {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 245, 255, 0.015) 2px,
    rgba(0, 245, 255, 0.015) 4px
  );
  opacity: 0.5;
}

[data-theme="light"] .pay-orb { opacity: 0.25; }
[data-theme="light"] .pay-grid-bg { opacity: 0.4; }

/* ── Header ── */
.pay-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem clamp(1rem, 3vw, 2rem);
  background: var(--pay-glass);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border-bottom: 1px solid var(--pay-glass-border);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2), inset 0 1px 0 var(--pay-glass-highlight);
}

.pay-logo { height: 34px; width: auto; filter: drop-shadow(0 0 12px var(--gold-glow)); }
.pay-header-actions { display: flex; gap: 0.5rem; align-items: center; }

/* ── Main layout ── */
.pay-main {
  flex: 1;
  position: relative;
  z-index: 1;
  padding: clamp(1.25rem, 4vw, 2.5rem) 1rem 3rem;
}
.pay-container { max-width: 980px; margin: 0 auto; }

/* ── Glass card system ── */
.pay-glass-card {
  position: relative;
  background: var(--pay-glass);
  backdrop-filter: blur(24px) saturate(1.5);
  -webkit-backdrop-filter: blur(24px) saturate(1.5);
  border: 1px solid var(--pay-glass-border);
  border-radius: 20px;
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.25),
    inset 0 1px 0 var(--pay-glass-highlight),
    inset 0 -1px 0 rgba(0, 0, 0, 0.15);
}

.pay-glass-inline {
  background: var(--pay-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--pay-glass-border);
  border-radius: 14px;
}

/* ── Loading ── */
.pay-loading {
  text-align: center;
  padding: 3.5rem 2rem;
  color: var(--text-muted);
}
.pay-loading-sub {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.pay-spinner {
  width: 44px;
  height: 44px;
  border: 2px solid var(--border);
  border-top-color: var(--pay-neon-cyan);
  border-right-color: var(--gold);
  border-radius: 50%;
  margin: 0 auto 1.25rem;
  animation: pay-spin 0.9s linear infinite;
  box-shadow: 0 0 20px rgba(0, 245, 255, 0.2);
}
@keyframes pay-spin { to { transform: rotate(360deg); } }

/* ── Step progress nav ── */
.pay-steps-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 2rem;
  padding: 0.85rem 1.25rem;
  background: var(--pay-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--pay-glass-border);
  border-radius: 999px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2), inset 0 1px 0 var(--pay-glass-highlight);
}

.pay-step-pill {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-dim);
  transition: color 0.3s;
}
.pay-step-ring {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  background: rgba(6, 8, 13, 0.4);
  transition: all 0.35s ease;
}
.pay-step-ring span {
  font-size: 0.75rem;
  font-weight: 700;
}
.pay-step-connector {
  width: 2.5rem;
  height: 2px;
  margin: 0 0.35rem;
  background: linear-gradient(90deg, var(--border), transparent);
  position: relative;
}
.pay-step-connector::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--teal), var(--gold));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.pay-step-pill.active { color: var(--gold-light, var(--gold)); }
.pay-step-pill.active .pay-step-ring {
  border-color: transparent;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  box-shadow: 0 0 20px var(--gold-glow), 0 0 40px rgba(201, 145, 124, 0.2);
  color: #06080d;
}
.pay-step-pill.done { color: var(--teal); }
.pay-step-pill.done .pay-step-ring {
  border-color: var(--teal);
  box-shadow: 0 0 12px var(--teal-glow, rgba(45, 212, 191, 0.35));
  color: var(--teal);
}
.pay-step-pill.done + .pay-step-connector::after { transform: scaleX(1); }

/* ── Hero cards ── */
.pay-hero-card {
  text-align: center;
  padding: clamp(1.75rem, 4vw, 2.5rem) clamp(1.25rem, 3vw, 2rem);
  margin-bottom: 1.75rem;
  overflow: hidden;
}
.pay-hero-card.compact {
  padding: clamp(1.25rem, 3vw, 1.75rem) clamp(1rem, 2vw, 1.5rem);
  margin-bottom: 1.25rem;
}
.pay-hero-glow {
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 100%;
  background: radial-gradient(ellipse, rgba(201, 145, 124, 0.15), transparent 65%);
  pointer-events: none;
}
.pay-hero-glow-teal {
  background: radial-gradient(ellipse, rgba(45, 212, 191, 0.12), transparent 65%);
}
.pay-hero-glow-purple {
  background: radial-gradient(ellipse, rgba(168, 85, 247, 0.12), transparent 65%);
}

.pay-hero-icon {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
  opacity: 0.7;
}

.pay-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--pay-neon-cyan);
  margin-bottom: 0.85rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(0, 245, 255, 0.25);
  background: rgba(0, 245, 255, 0.06);
}
.pay-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--pay-neon-cyan);
  box-shadow: 0 0 8px var(--pay-neon-cyan);
  animation: pay-pulse 2s ease-in-out infinite;
}
@keyframes pay-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}

.pay-hero-card h1 {
  font-size: clamp(1.6rem, 4.5vw, 2.35rem);
  margin-bottom: 0.55rem;
  line-height: 1.15;
  background: linear-gradient(135deg, var(--text) 0%, var(--gold-light, var(--gold)) 50%, var(--teal) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.pay-hero-card p {
  color: var(--text-muted);
  max-width: 540px;
  margin: 0 auto;
  font-size: 0.9rem;
  line-height: 1.55;
}

.pay-hero-stats {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.25rem;
}
.pay-hero-stats span {
  font-size: 0.7rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--pay-glass-border);
  background: rgba(6, 8, 13, 0.35);
  color: var(--text-muted);
}
.pay-hero-stats strong { color: var(--gold); font-weight: 700; }

/* ── Flow step cards ── */
.pay-flow-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  margin-bottom: 2rem;
}
@media (max-width: 800px) {
  .pay-flow-cards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .pay-flow-cards { grid-template-columns: 1fr; }
}

.pay-flow-card {
  position: relative;
  padding: 1.1rem 1rem 1rem 3.25rem;
  border-radius: 16px;
  text-align: left;
  overflow: hidden;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}
.pay-flow-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 245, 255, 0.04), transparent 50%, rgba(168, 85, 247, 0.04));
  pointer-events: none;
}
.pay-flow-card:hover {
  transform: translateY(-3px);
  border-color: rgba(201, 145, 124, 0.35);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2), 0 0 24px rgba(201, 145, 124, 0.08);
}
.pay-flow-num {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-size: 0.72rem;
  font-weight: 800;
  background: linear-gradient(135deg, rgba(0, 245, 255, 0.15), rgba(168, 85, 247, 0.15));
  border: 1px solid rgba(0, 245, 255, 0.2);
  color: var(--pay-neon-cyan);
}
.pay-flow-card strong {
  display: block;
  font-size: 0.82rem;
  color: var(--text);
  margin-bottom: 0.2rem;
}
.pay-flow-card span { font-size: 0.75rem; color: var(--text-muted); line-height: 1.4; }

/* ── Section head ── */
.pay-section-head {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}
.pay-section-title {
  font-size: 0.95rem;
  font-weight: 700;
  margin: 0;
  white-space: nowrap;
  color: var(--text);
}
.pay-section-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--border), transparent);
}

/* ── Plan cards ── */
.pay-plan-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 1.1rem;
  margin-bottom: 1.5rem;
}

.pay-plan-card {
  position: relative;
  padding: 1.35rem;
  border-radius: 20px;
  cursor: pointer;
  text-align: left;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}
.pay-plan-card::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 21px;
  padding: 1px;
  background: linear-gradient(135deg, transparent, rgba(201, 145, 124, 0.3), transparent);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}
.pay-plan-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3), 0 0 30px rgba(201, 145, 124, 0.1);
}
.pay-plan-card:hover::after { opacity: 1; }
.pay-plan-card.selected {
  border-color: rgba(201, 145, 124, 0.5);
  box-shadow: 0 0 0 1px var(--gold-glow), 0 16px 48px rgba(201, 145, 124, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.pay-plan-card.selected::after { opacity: 1; }

.pay-plan-card .plan-tag {
  font-size: 0.62rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold);
  margin-bottom: 0.6rem;
  display: inline-block;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  background: rgba(201, 145, 124, 0.12);
  border: 1px solid rgba(201, 145, 124, 0.25);
}
.pay-plan-card .plan-tag.accent {
  color: var(--teal);
  background: rgba(45, 212, 191, 0.1);
  border-color: rgba(45, 212, 191, 0.25);
}
.pay-plan-card h3 { font-size: 1.1rem; margin-bottom: 0.4rem; }
.pay-plan-card p {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  min-height: 2.6em;
  line-height: 1.45;
}
.pay-plan-card .plan-price {
  font-size: 1.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--gold-light, var(--gold)), var(--gold-dark, var(--gold)));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.pay-plan-card .plan-select { margin-top: 1.1rem; width: 100%; }

.pay-footnote {
  font-size: 0.74rem;
  color: var(--text-dim);
  text-align: center;
  line-height: 1.65;
  padding: 1rem 1.25rem;
}

/* ── Step 2 gate ── */
.pay-gate-grid {
  display: grid;
  grid-template-columns: minmax(220px, 0.9fr) 1.5fr;
  gap: 1.25rem;
  align-items: start;
}
@media (max-width: 768px) {
  .pay-gate-grid { grid-template-columns: 1fr; }
}

.pay-summary-card {
  padding: 1.35rem;
  position: sticky;
  top: 5.5rem;
}
.pay-summary-card h3 {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  margin-bottom: 0.5rem;
}
.pay-summary-card .sum-name {
  display: block;
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}
.pay-summary-card .sum-price {
  font-size: 1.75rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--gold), var(--teal));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin: 0.35rem 0 0.75rem;
}
.pay-summary-card p { font-size: 0.8rem; color: var(--text-muted); line-height: 1.45; }
.pay-summary-card .sum-note {
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border);
  font-size: 0.72rem;
  color: var(--text-dim);
}

.pay-gate-stack { display: flex; flex-direction: column; gap: 1rem; }

.pay-gate-form {
  padding: 1.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.pay-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}
@media (max-width: 560px) {
  .pay-form-row { grid-template-columns: 1fr; }
}

.pay-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.75rem;
  color: var(--text-muted);
}
.pay-field input {
  padding: 0.7rem 0.9rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(6, 8, 13, 0.5);
  color: var(--text);
  font-family: inherit;
  font-size: 0.9rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
[data-theme="light"] .pay-field input { background: rgba(255, 255, 255, 0.9); }
.pay-field input:focus {
  outline: none;
  border-color: rgba(0, 245, 255, 0.45);
  box-shadow: 0 0 0 3px rgba(0, 245, 255, 0.1), 0 0 20px rgba(0, 245, 255, 0.08);
}

.pay-checks { display: flex; flex-direction: column; gap: 0.55rem; }
.pay-check {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  font-size: 0.78rem;
  color: var(--text-muted);
  cursor: pointer;
  line-height: 1.45;
  padding: 0.5rem 0.65rem;
  border-radius: 10px;
  transition: background 0.2s;
}
.pay-check:hover { background: rgba(255, 255, 255, 0.03); }
.pay-check input { margin-top: 0.15rem; accent-color: var(--gold); flex-shrink: 0; }
.pay-check a { color: var(--gold); text-decoration: underline; }

.pay-honeypot {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  width: 0;
  pointer-events: none;
}

.pay-terms-intro { font-size: 0.78rem; color: var(--text-muted); }

.pay-security-note {
  display: flex;
  gap: 0.85rem;
  padding: 1rem;
  font-size: 0.78rem;
}
.pay-security-icon { font-size: 1.35rem; flex-shrink: 0; }
.pay-security-note strong {
  display: block;
  font-size: 0.82rem;
  margin-bottom: 0.2rem;
  color: var(--teal);
}
.pay-security-note p { color: var(--text-muted); margin: 0; line-height: 1.45; }

.pay-form-actions {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
  margin-top: 0.35rem;
}
.pay-form-actions.center { justify-content: center; margin-top: 1.75rem; }

/* ── OTP panel ── */
.pay-otp-panel {
  padding: 2rem 1.5rem;
  text-align: center;
}
.pay-otp-ring {
  width: 72px;
  height: 72px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(0, 245, 255, 0.12), rgba(168, 85, 247, 0.12));
  border: 1px solid rgba(0, 245, 255, 0.25);
  box-shadow: 0 0 30px rgba(0, 245, 255, 0.15);
  animation: pay-otp-glow 3s ease-in-out infinite;
}
@keyframes pay-otp-glow {
  0%, 100% { box-shadow: 0 0 30px rgba(0, 245, 255, 0.15); }
  50% { box-shadow: 0 0 40px rgba(168, 85, 247, 0.2); }
}
.pay-otp-icon { font-size: 1.75rem; }
.pay-otp-panel h2 { font-size: 1.2rem; margin-bottom: 0.35rem; }
.pay-otp-panel > p { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 1rem; }
.pay-otp-dev {
  font-size: 0.75rem;
  color: var(--teal);
  background: rgba(45, 212, 191, 0.08);
  border: 1px solid rgba(45, 212, 191, 0.25);
  padding: 0.65rem 0.9rem;
  border-radius: 10px;
  margin-bottom: 1rem;
  font-family: ui-monospace, Consolas, monospace;
}
.pay-otp-form { text-align: left; max-width: 340px; margin: 0 auto; }
.pay-field-otp input {
  font-size: 1.6rem !important;
  letter-spacing: 0.4em;
  text-align: center;
  font-family: ui-monospace, Consolas, monospace;
}

/* ── Step 3 wallets ── */
.pay-ref-badge {
  display: inline-block;
  font-size: 0.72rem;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  background: rgba(201, 145, 124, 0.1);
  border: 1px solid rgba(201, 145, 124, 0.3);
  margin-bottom: 0.75rem;
  font-family: ui-monospace, Consolas, monospace;
  letter-spacing: 0.05em;
}
.pay-ref-badge strong { color: var(--gold); }

.pay-amount-reminder {
  text-align: center;
  padding: 1.15rem 1.5rem;
  margin-bottom: 1.25rem;
  font-size: 0.92rem;
  border-color: rgba(201, 145, 124, 0.3);
  box-shadow: 0 0 24px rgba(201, 145, 124, 0.08);
}
.pay-amount-reminder strong { color: var(--gold); }

.pay-wallet-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.1rem;
  margin-bottom: 1.25rem;
}

.pay-wallet-card {
  padding: 1.35rem;
  border-radius: 20px;
  position: relative;
  overflow: hidden;
}
.pay-wallet-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  border-radius: 20px 20px 0 0;
}
.pay-wallet-card.btc::before {
  background: linear-gradient(90deg, #f7931a, #ffcd6b);
  box-shadow: 0 0 16px rgba(247, 147, 26, 0.5);
}
.pay-wallet-card.eth::before {
  background: linear-gradient(90deg, #627eea, #8fa8f0);
  box-shadow: 0 0 16px rgba(98, 126, 234, 0.5);
}

.pay-wallet-head {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.25rem;
}
.pay-wallet-icon {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  font-weight: 800;
}
.pay-wallet-card.btc .pay-wallet-icon {
  background: rgba(247, 147, 26, 0.15);
  border: 1px solid rgba(247, 147, 26, 0.35);
  color: #f7931a;
}
.pay-wallet-card.eth .pay-wallet-icon {
  background: rgba(98, 126, 234, 0.15);
  border: 1px solid rgba(98, 126, 234, 0.35);
  color: #627eea;
}
.pay-wallet-card h3 { font-size: 1.05rem; margin: 0; flex: 1; }
.pay-wallet-card .net-label {
  font-size: 0.72rem;
  color: var(--teal);
  margin-bottom: 1.1rem;
  padding-left: 2.9rem;
}

.pay-wallet-qr {
  display: grid;
  place-items: center;
  padding: 1rem;
  background: #fff;
  border-radius: 14px;
  margin-bottom: 1rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15), inset 0 0 0 1px rgba(0, 0, 0, 0.05);
}
.pay-wallet-qr img { width: 148px; height: 148px; border-radius: 4px; }

.pay-address-box {
  display: flex;
  gap: 0.5rem;
  align-items: stretch;
}
.pay-address-box code {
  flex: 1;
  font-size: 0.68rem;
  word-break: break-all;
  padding: 0.7rem;
  border-radius: 10px;
  background: rgba(6, 8, 13, 0.6);
  border: 1px solid var(--border);
  color: var(--text);
  font-family: ui-monospace, Consolas, monospace;
  line-height: 1.45;
}
[data-theme="light"] .pay-address-box code { background: #f4f4f8; }

.pay-warn-box {
  padding: 1.1rem 1.25rem;
  margin-bottom: 1.25rem;
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.6;
  border-color: rgba(248, 113, 113, 0.25);
  background: rgba(248, 113, 113, 0.05);
}
.pay-warn-box strong { color: #f87171; }
.pay-warn-box ul { margin: 0.5rem 0 0 1.1rem; }

.pay-cta-glow {
  box-shadow: 0 4px 24px var(--gold-glow), 0 0 40px rgba(201, 145, 124, 0.15);
}

/* ── Step 4 proof ── */
.pay-proof-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.1rem;
  margin-bottom: 1.25rem;
}

.pay-proof-card {
  padding: 1.5rem 1.35rem;
  border-radius: 20px;
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
}
.pay-proof-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25), 0 0 30px rgba(45, 212, 191, 0.1);
}
.pay-proof-card .proof-icon-wrap {
  width: 56px;
  height: 56px;
  margin: 0 auto 0.85rem;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  background: linear-gradient(135deg, rgba(45, 212, 191, 0.15), rgba(168, 85, 247, 0.15));
  border: 1px solid rgba(45, 212, 191, 0.25);
  box-shadow: 0 0 20px rgba(45, 212, 191, 0.12);
}
.pay-proof-card h3 { font-size: 1.05rem; margin-bottom: 0.4rem; }
.pay-proof-card p { font-size: 0.78rem; color: var(--text-muted); margin-bottom: 1.1rem; line-height: 1.45; }

.pay-dual-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 0.5rem;
}
@media (max-width: 640px) {
  .pay-dual-cards { grid-template-columns: 1fr; }
}

.pay-proof-checklist,
.pay-after-steps {
  padding: 1.25rem;
}
.pay-proof-checklist h3,
.pay-after-steps h3 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
  margin-bottom: 0.85rem;
  color: var(--gold);
}
.pay-card-icon { font-size: 1rem; }
.pay-proof-checklist ul,
.pay-after-steps ol {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin-left: 1.1rem;
}
.pay-proof-checklist li { margin-bottom: 0.35rem; }
.pay-after-steps a { color: var(--teal); }

/* ── Footer ── */
.pay-footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 1.5rem;
  font-size: 0.72rem;
  color: var(--text-dim);
  border-top: 1px solid var(--pay-glass-border);
  background: var(--pay-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.pay-footer a { color: var(--gold); }

.status-msg { font-size: 0.82rem; min-height: 1.2em; }
.status-msg.error { color: var(--danger); }

.hidden { display: none !important; }

/* ── Mobile step nav ── */
@media (max-width: 600px) {
  .pay-steps-nav { padding: 0.65rem 0.85rem; border-radius: 16px; }
  .pay-step-label { display: none; }
  .pay-step-connector { width: 1rem; }
  .pay-step-ring { width: 1.65rem; height: 1.65rem; }
}

/* ── Step enter animation ── */
.pay-panel:not(.hidden) {
  animation: pay-fade-up 0.45s ease-out;
}
@keyframes pay-fade-up {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ── Legacy class aliases (pay.js) ── */
.pay-step-dot { display: none; }
.pay-step-line { display: none; }
