/* =====================================================================
   COINPAY · PAYMENT FORM (hosted widget)
   2 screens: select-asset, deposit-address
   Inherits all tokens from /css/style.css
   ===================================================================== */

/* ----- page chrome ------------------------------------------------ */
.pf-page {
  min-height: 100vh;
  padding: 120px 0 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 80px;
  position: relative;
  z-index: 2;
}

.pf-section-head {
  width: min(1180px, calc(100% - 48px));
  display: flex;
  align-items: end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: -32px;
}
.pf-section-head h2 {
  font-size: clamp(28px, 3.4vw, 42px);
  font-weight: 500;
  letter-spacing: -0.025em;
  margin: 12px 0 0;
}
.pf-section-head .pf-meta {
  color: var(--text-3);
  font-size: 14px;
  max-width: 36ch;
}
.pf-stage-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  width: min(1180px, calc(100% - 48px));
  align-items: start;
}
@media (max-width: 1080px) {
  .pf-stage-row { grid-template-columns: 1fr; max-width: 560px; }
}

/* 3-column variant for the full pay flow */
.pf-stage-row--three {
  width: min(1480px, calc(100% - 48px));
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 1280px) {
  .pf-stage-row--three { grid-template-columns: repeat(2, 1fr); max-width: 1080px; }
}
@media (max-width: 760px) {
  .pf-stage-row--three { grid-template-columns: 1fr; max-width: 560px; }
}

.pf-stage {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.pf-stage__cap {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-2);
}
.pf-stage__cap .num {
  width: 26px; height: 26px;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  font-size: 11px;
  color: var(--hilight-light);
  background: rgba(10,180,250,0.08);
}
.pf-stage__cap .num.pf-stage__cap--ok {
  color: var(--positive);
  background: rgba(60,200,140,0.10);
  border-color: rgba(60,200,140,0.35);
}

/* ----- the widget -------------------------------------------------- */
.pf-widget {
  position: relative;
  border-radius: var(--radius-xl);
  border: 1px solid var(--line);
  background: var(--surface-card-2);
  box-shadow:
    var(--glass-edge),
    0 60px 120px -40px rgba(10, 60, 110, 0.55),
    0 0 0 1px rgba(255,255,255,0.02),
    var(--glow-md);
  overflow: hidden;
  isolation: isolate;
}
.pf-widget::before {
  /* aurora wash */
  content:'';
  position: absolute;
  inset: -40%;
  background:
    radial-gradient(60% 40% at 50% 0%, rgba(10,180,250,0.20), transparent 60%),
    radial-gradient(40% 30% at 100% 100%, rgba(20,120,220,0.16), transparent 60%);
  filter: blur(30px);
  pointer-events: none;
  z-index: 0;
}

/* ----- header (deposit amount) ------------------------------------ */
.pf-head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
}
.pf-back {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 14px 9px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.04);
  font-size: 13px; font-weight: 500;
  color: var(--text);
  cursor: pointer;
  transition: background .25s, border-color .25s;
}
.pf-back:hover { background: rgba(255,255,255,0.08); border-color: var(--line-strong); }
.pf-back svg { width: 14px; height: 14px; }

.pf-brand {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 700; letter-spacing: -0.01em;
}
.pf-brand img { width: 20px; height: 20px; }

.pf-head__right {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text-3);
}
.pf-head__right .live {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--positive);
  box-shadow: 0 0 10px var(--positive);
  animation: pulse 2.4s ease-in-out infinite;
}

/* ----- amount card ------------------------------------------------- */
.pf-amount {
  position: relative;
  z-index: 1;
  margin: 22px;
  padding: 26px 28px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(10,180,250,0.10), rgba(10,180,250,0.02));
  text-align: center;
  overflow: hidden;
}
.pf-amount::after {
  content:''; position: absolute; inset: 0;
  background: radial-gradient(80% 60% at 50% 0%, rgba(10,180,250,0.18), transparent 70%);
  pointer-events: none;
}
.pf-amount__lbl {
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--text-2);
}
.pf-amount__val {
  position: relative;
  display: inline-flex; align-items: baseline; justify-content: center;
  gap: 6px;
  margin-top: 10px;
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(180deg, var(--text), rgba(255,255,255,0.6));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.pf-amount__val .sym {
  font-size: 0.7em;
  font-weight: 500;
  margin-right: 2px;
}
[data-theme="light"] .pf-amount__val {
  background: linear-gradient(180deg, #0a1c3a 0%, #1478dc 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.pf-amount__val small {
  font-size: 0.36em;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--text-3);
  -webkit-text-fill-color: var(--text-3);
}
.pf-amount__hint {
  margin-top: 10px;
  font-size: 12px; color: var(--text-3);
  max-width: 38ch; margin-inline: auto;
}
.pf-amount__hint b {
  color: var(--positive);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

/* ----- body card --------------------------------------------------- */
.pf-body {
  position: relative;
  z-index: 1;
  margin: 0 22px 22px;
  padding: 22px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--surface-card);
  box-shadow: var(--glass-edge);
}
.pf-body__head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}
.pf-body__head h3 {
  font-size: 17px; font-weight: 600;
  letter-spacing: -0.005em;
  margin: 0;
}
.pf-body__head .info {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; color: var(--text-3);
}
.pf-body__head .info svg { width: 14px; height: 14px; opacity: 0.7; }

/* multi-asset switch */
.pf-multi {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; color: var(--text-2);
  cursor: pointer;
}
.pf-multi input { position: absolute; opacity: 0; pointer-events: none; }
.pf-multi__track {
  position: relative;
  width: 36px; height: 20px;
  border-radius: 999px;
  background: var(--switch-bg);
  border: 1px solid var(--line);
  transition: background .25s var(--easeout), border-color .25s;
}
.pf-multi__track::before {
  content:''; position: absolute;
  top: 2px; left: 2px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--text-3);
  transition: transform .35s var(--spring), background .25s;
}
.pf-multi input:checked + .pf-multi__track {
  background: linear-gradient(135deg, var(--hilight-light), var(--hilight));
  border-color: rgba(10,180,250,0.4);
}
.pf-multi input:checked + .pf-multi__track::before {
  transform: translateX(16px);
  background: white;
}

/* ----- asset list -------------------------------------------------- */
.pf-assets {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0 -6px;
}
.pf-asset {
  position: relative;
  display: grid;
  grid-template-columns: 44px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid transparent;
  background: transparent;
  cursor: pointer;
  transition: background .2s, border-color .2s, transform .2s;
  width: 100%;
  text-align: left;
  color: inherit;
  font-family: inherit;
}
.pf-asset:hover { background: rgba(255,255,255,0.03); border-color: var(--line); }
.pf-asset.is-selected {
  background:
    linear-gradient(135deg, rgba(10,180,250,0.10), rgba(20,120,220,0.04));
  border-color: rgba(10,180,250,0.35);
  box-shadow: 0 0 0 1px rgba(10,180,250,0.12), var(--glow-sm);
}
.pf-asset__icon {
  width: 40px; height: 40px;
  border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid var(--line);
  flex-shrink: 0;
  position: relative;
}
.pf-asset__icon svg { width: 100%; height: 100%; border-radius: 50%; }
.pf-asset__icon img { width: 100%; height: 100%; border-radius: 50%; }

.pf-asset__name {
  display: flex; flex-direction: column; gap: 2px;
  min-width: 0;
}
.pf-asset__name b {
  font-size: 15px; font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
}
.pf-asset__name span {
  font-size: 12px; color: var(--text-3);
}

.pf-asset__chains {
  display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end;
}
.pf-chain {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--rail-chip-bg);
  font-size: 11px;
  font-weight: 500;
  color: var(--text-2);
  letter-spacing: -0.005em;
  white-space: nowrap;
}
.pf-chain b {
  font-size: 9px;
  letter-spacing: 0.08em;
  color: var(--text-3);
  font-weight: 600;
  text-transform: uppercase;
}
.pf-asset.is-selected .pf-chain {
  border-color: rgba(10,180,250,0.3);
  color: var(--text);
}

/* ----- search input ---------------------------------------------- */
.pf-search {
  position: relative;
  margin-top: 12px;
}
.pf-search input {
  width: 100%;
  padding: 12px 14px 12px 40px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.02);
  color: var(--text);
  font-size: 14px;
  outline: none;
  transition: border-color .2s, background .2s;
}
[data-theme="light"] .pf-search input { background: rgba(255,255,255,0.7); }
.pf-search input::placeholder { color: var(--text-3); }
.pf-search input:focus {
  border-color: rgba(10,180,250,0.5);
  background: rgba(255,255,255,0.04);
  box-shadow: 0 0 0 4px rgba(10,180,250,0.10);
}
.pf-search svg {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  width: 16px; height: 16px; color: var(--text-3);
}

/* ----- footer / CTA ---------------------------------------------- */
.pf-foot {
  position: relative;
  z-index: 1;
  margin: 0 22px 22px;
}
.pf-foot .btn {
  width: 100%;
  padding: 14px 22px;
  font-size: 15px;
}
.pf-foot .btn svg {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
}
.pf-foot .btn[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
  filter: saturate(0.7);
}

/* session bar */
.pf-session {
  margin: 14px 22px 0;
  padding: 10px 14px 14px;
  border-top: 1px solid var(--line);
}
.pf-session__row {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px;
  color: var(--text-2);
  font-variant-numeric: tabular-nums;
  margin-bottom: 8px;
}
.pf-session__row b {
  color: var(--hilight-light);
  font-weight: 600;
  letter-spacing: -0.005em;
}
.pf-session__row .timer {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--text);
  font-weight: 600;
}
.pf-session__row .timer .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--hilight-light);
  box-shadow: 0 0 8px var(--hilight-light);
  animation: pulse 1.6s ease-in-out infinite;
}
.pf-session__bar {
  height: 3px;
  border-radius: 999px;
  background: var(--line);
  overflow: hidden;
}
.pf-session__bar > span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--hilight-light), var(--hilight));
  box-shadow: 0 0 10px rgba(10,180,250,0.6);
  transition: width 1s linear;
}

/* ----- screen 2: deposit address --------------------------------- */
.pf-asset-card {
  position: relative;
  z-index: 1;
  margin: 22px 22px 0;
  padding: 16px 18px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--surface-card);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  box-shadow: var(--glass-edge);
}
.pf-asset-card__l {
  display: flex; align-items: center; gap: 12px;
}
.pf-asset-card__icon {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid var(--line);
  overflow: hidden;
}
.pf-asset-card__icon svg { width: 100%; height: 100%; }
.pf-asset-card__name b {
  font-size: 15px; font-weight: 600; letter-spacing: -0.01em;
  display: block;
}
.pf-asset-card__name span {
  font-size: 12px; color: var(--text-3);
}
.pf-chain--lg {
  padding: 6px 12px;
  font-size: 12px;
  border-color: rgba(10,180,250,0.3);
  background: rgba(10,180,250,0.08);
  color: var(--hilight-light);
}

/* QR card */
.pf-qr-wrap {
  position: relative;
  z-index: 1;
  margin: 16px 22px 0;
  padding: 22px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background:
    radial-gradient(80% 60% at 50% 0%, rgba(10,180,250,0.08), transparent 60%),
    var(--surface-card);
  display: grid;
  place-items: center;
  box-shadow: var(--glass-edge);
}
.pf-qr {
  width: 220px; height: 220px;
  background: white;
  border-radius: var(--radius);
  display: grid; place-items: center;
  padding: 14px;
  box-shadow:
    0 0 0 1px var(--line-strong),
    0 24px 40px -16px rgba(0,0,0,0.4);
  position: relative;
}
.pf-qr svg { width: 100%; height: 100%; }
.pf-qr__brand {
  position: absolute;
  inset: 0;
  display: grid; place-items: center;
  pointer-events: none;
}
.pf-qr__brand div {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: white;
  border: 2px solid white;
  display: grid; place-items: center;
  box-shadow: 0 4px 14px rgba(0,0,0,0.15);
}
.pf-qr__brand img { width: 24px; height: 24px; }

/* address row */
.pf-row {
  position: relative;
  z-index: 1;
  margin: 12px 22px 0;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.02);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  align-items: center;
}
[data-theme="light"] .pf-row { background: rgba(255,255,255,0.6); }
.pf-row__lbl {
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--hilight-light);
  margin-bottom: 4px;
}
.pf-row__val {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 13px;
  word-break: break-all;
  color: var(--text);
  line-height: 1.5;
}
.pf-row__val--big {
  font-family: "Alan Sans", system-ui, sans-serif;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.pf-row__val--big small {
  font-size: 0.6em; color: var(--text-3); font-weight: 500; margin-left: 4px;
}
.pf-row__val--big .approx { color: var(--text-3); margin-right: 4px; }
.pf-row__hint {
  grid-column: 1 / -1;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed var(--line);
  font-size: 11px;
  color: var(--text-3);
  line-height: 1.5;
}
.pf-row__hint b {
  color: var(--positive);
  font-weight: 600;
}

.pf-copy {
  width: 36px; height: 36px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.04);
  display: grid; place-items: center;
  cursor: pointer;
  transition: background .2s, transform .2s, border-color .2s;
  color: var(--text-2);
}
.pf-copy:hover {
  background: rgba(10,180,250,0.10);
  color: var(--hilight-light);
  border-color: rgba(10,180,250,0.4);
  transform: scale(1.05);
}
.pf-copy.is-copied {
  background: rgba(60,200,140,0.15);
  color: var(--positive);
  border-color: rgba(60,200,140,0.4);
}
.pf-copy svg { width: 16px; height: 16px; }

/* waiting strip */
.pf-status {
  margin: 14px 22px 0;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.02);
  display: flex; align-items: center; gap: 10px;
  font-size: 13px;
  color: var(--text-2);
}
[data-theme="light"] .pf-status { background: rgba(255,255,255,0.5); }
.pf-status .ring {
  width: 16px; height: 16px;
  border-radius: 50%;
  border: 2px solid var(--line);
  border-top-color: var(--hilight-light);
  animation: spin 1.2s linear infinite;
  flex-shrink: 0;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ----- description column ---------------------------------------- */
.pf-aside {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 4px 4px 0;
}
.pf-aside h4 {
  font-size: 18px; font-weight: 600; letter-spacing: -0.01em;
  margin: 0;
}
.pf-aside p {
  font-size: 14px; color: var(--text-2);
  margin: 0; line-height: 1.55;
  max-width: 42ch;
}
.pf-aside ul {
  margin: 0; padding: 0; list-style: none;
  display: flex; flex-direction: column; gap: 8px;
}
.pf-aside ul li {
  position: relative;
  padding-left: 22px;
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.5;
}
.pf-aside ul li::before {
  content: ''; position: absolute;
  left: 0; top: 7px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--hilight-light), var(--hilight));
  box-shadow: 0 0 8px rgba(10,180,250,0.5);
}
.pf-aside ul li b { color: var(--text); font-weight: 600; }

/* ----- asset icon backgrounds ----------------------------------- */
.pf-i-btc  { background: #F7931A; }
.pf-i-btc  .st0 { fill: white; } .pf-i-btc .st1 { fill: transparent; }
.pf-i-eth  { background: #627EEA; }
.pf-i-eth  .st0 { fill: white; } .pf-i-eth .st1 { fill: rgba(255,255,255,0.6); } .pf-i-eth .st2 { fill: transparent; } .pf-i-eth .st3 { fill: rgba(255,255,255,0.8); }
.pf-i-sol  { background: #000; }
.pf-i-sol  .st2 { fill: transparent; }
.pf-i-usdc { background: #2775CA; }
.pf-i-usdc .st0 { fill: white; } .pf-i-usdc .st1 { fill: transparent; }
.pf-i-usdt { background: #26A17B; }
.pf-i-usdt .st0 { fill: white; } .pf-i-usdt .st1 { fill: transparent; }
.pf-i-tron { background: #C8102E; }
.pf-i-tron .st0 { fill: white; } .pf-i-tron .st1 { fill: transparent; }

/* =====================================================================
   SUCCESS SCREEN (screen 3 — payment received)
   ===================================================================== */

/* re-tint the widget when it's in success state */
.pf-widget--success::before {
  background:
    radial-gradient(60% 40% at 50% 0%, rgba(60,200,140,0.22), transparent 60%),
    radial-gradient(40% 30% at 100% 100%, rgba(10,180,250,0.14), transparent 60%);
}
.pf-widget--success {
  box-shadow:
    var(--glass-edge),
    0 60px 120px -40px rgba(20, 110, 70, 0.55),
    0 0 0 1px rgba(255,255,255,0.02),
    0 0 40px -8px rgba(60,200,140,0.45),
    0 0 90px -30px rgba(60,200,140,0.30);
}

/* success header — green check, no back */
.pf-head--success { padding: 18px 22px; }
.pf-head__right--ok { color: var(--positive); }
.pf-head__right--ok svg {
  width: 14px; height: 14px;
  background: rgba(60,200,140,0.18);
  border: 1px solid rgba(60,200,140,0.5);
  border-radius: 50%;
  padding: 2px;
  box-sizing: content-box;
}

/* the big check moment */
.pf-success {
  position: relative; z-index: 1;
  margin: 22px;
  padding: 32px 24px 26px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(60,200,140,0.30);
  background: linear-gradient(180deg, rgba(60,200,140,0.10), rgba(60,200,140,0.02));
  text-align: center;
  overflow: hidden;
}
.pf-success::after {
  content:''; position: absolute; inset: 0;
  background: radial-gradient(80% 60% at 50% 0%, rgba(60,200,140,0.25), transparent 70%);
  pointer-events: none;
}
.pf-success > * { position: relative; z-index: 1; }

.pf-success__ring {
  position: relative;
  width: 72px; height: 72px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--positive), #14a868);
  display: grid; place-items: center;
  color: white;
  box-shadow:
    0 0 0 6px rgba(60,200,140,0.18),
    0 0 0 12px rgba(60,200,140,0.10),
    0 16px 40px -8px rgba(60,200,140,0.55);
  animation: pfPop .55s var(--spring) both;
}
.pf-success__ring svg {
  width: 36px; height: 36px;
  stroke-width: 3;
  animation: pfDraw .6s var(--easeout) .15s both;
}
.pf-success__ring-inner {
  position: absolute; inset: -6px;
  border-radius: 50%;
  border: 2px solid rgba(60,200,140,0.45);
  animation: pfRing 1.8s ease-out infinite;
  pointer-events: none;
}
@keyframes pfPop {
  0%   { transform: scale(0.4); opacity: 0; }
  60%  { transform: scale(1.08); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}
@keyframes pfRing {
  0%   { transform: scale(1);   opacity: 0.55; }
  100% { transform: scale(1.6); opacity: 0; }
}
@keyframes pfDraw {
  0%   { stroke-dasharray: 0 24; }
  100% { stroke-dasharray: 24 0; }
}

.pf-success__title {
  font-size: 22px; font-weight: 600; letter-spacing: -0.015em;
  margin: 0 0 6px;
  color: var(--text);
}
.pf-success__sub {
  margin: 0 0 14px;
  font-size: 13px; color: var(--text-2);
}
.pf-success__sub b {
  color: var(--text); font-weight: 600;
}

.pf-success__amount {
  display: inline-flex; align-items: baseline; justify-content: center;
  gap: 4px;
  font-size: clamp(34px, 4.4vw, 52px);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(180deg, var(--text), rgba(255,255,255,0.6));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
[data-theme="light"] .pf-success__amount {
  background: linear-gradient(180deg, #0a3a1c 0%, #14a868 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.pf-success__amount .sym { font-size: 0.7em; font-weight: 500; margin-right: 2px; }
.pf-success__amount small {
  font-size: 0.34em; font-weight: 500;
  color: var(--text-3); margin-left: 6px;
  -webkit-text-fill-color: var(--text-3);
}

/* confirmations row */
.pf-confirms {
  position: relative; z-index: 1;
  margin: 0 22px 14px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.02);
}
[data-theme="light"] .pf-confirms { background: rgba(255,255,255,0.7); }
.pf-confirms__row {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px; color: var(--text-2);
  margin-bottom: 10px;
}
.pf-confirms__row .lbl { letter-spacing: 0.06em; }
.pf-confirms__row .val { font-variant-numeric: tabular-nums; }
.pf-confirms__row .val b {
  color: var(--positive); font-weight: 700; font-size: 14px;
  margin-right: 2px;
}
.pf-confirms__pips {
  display: flex; gap: 6px;
}
.pf-pip {
  flex: 1; height: 6px; border-radius: 3px;
  background: rgba(255,255,255,0.08);
  transition: background .35s var(--easeout), box-shadow .35s var(--easeout);
}
[data-theme="light"] .pf-pip { background: rgba(10,30,60,0.08); }
.pf-pip.is-on {
  background: linear-gradient(90deg, var(--positive), #14a868);
  box-shadow: 0 0 8px rgba(60,200,140,0.55);
}

/* row variants used on success screen */
.pf-row__val--mono {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 12px;
  color: var(--text);
  word-break: break-all;
}
.pf-row__actions {
  display: flex; gap: 6px; align-items: center;
}
.pf-row__actions .pf-copy { text-decoration: none; }

/* settlement summary */
.pf-settle {
  position: relative; z-index: 1;
  margin: 14px 22px 0;
  padding: 16px 18px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface-card);
  box-shadow: var(--glass-edge);
}
.pf-settle__head {
  display: flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 12px;
}
.pf-settle__head svg { width: 14px; height: 14px; }
.pf-settle__row {
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: 13px;
  padding: 6px 0;
  color: var(--text-2);
  font-variant-numeric: tabular-nums;
}
.pf-settle__row .lbl em {
  font-style: normal; opacity: 0.6;
  margin-left: 4px; font-size: 11px;
}
.pf-settle__row .val { color: var(--text); font-weight: 600; }
.pf-settle__row--total {
  margin-top: 4px;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
  font-size: 14px;
}
.pf-settle__row--total .lbl { color: var(--text); font-weight: 600; }
.pf-settle__row--total .val { font-size: 17px; font-weight: 700; }
.pf-settle__row--total .val small {
  font-size: 11px; font-weight: 500; color: var(--text-3);
  margin-left: 4px;
}
.pf-settle__eta {
  display: flex; align-items: center; gap: 8px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
  font-size: 12px;
  color: var(--text-2);
}
.pf-settle__eta .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--positive);
  box-shadow: 0 0 8px var(--positive);
  animation: pulse 2.4s ease-in-out infinite;
}

/* session bar in done state */
.pf-session.is-done .pf-session__bar span {
  background: linear-gradient(90deg, var(--positive), #14a868);
}
.pf-session.is-done .timer { color: var(--positive); }
.pf-session.is-done .timer .dot { background: var(--positive); box-shadow: 0 0 8px var(--positive); }

/* ----- responsive ------------------------------------------------ */
@media (max-width: 560px) {
  .pf-amount, .pf-body, .pf-asset-card, .pf-qr-wrap, .pf-row, .pf-status, .pf-foot, .pf-session,
  .pf-success, .pf-confirms, .pf-settle { margin-left: 14px; margin-right: 14px; }
  .pf-amount { padding: 18px 16px; }
  .pf-body { padding: 16px; }
  .pf-asset { grid-template-columns: 36px 1fr auto; gap: 10px; }
  .pf-asset__icon { width: 36px; height: 36px; }
  .pf-asset__chains { gap: 4px; }
  .pf-chain { padding: 4px 8px; font-size: 10px; }
  .pf-qr { width: 180px; height: 180px; }
  .pf-success { padding: 24px 16px 20px; }
  .pf-success__ring { width: 60px; height: 60px; }
  .pf-success__ring svg { width: 28px; height: 28px; }
}
