/* drop-crypto.css — MOONCAKE Crypto Checkout styles for Drop Page & Studio Order Modal */

.dc-display {
  font-family: 'Anton', 'Inter', system-ui, sans-serif;
  letter-spacing: 0.02em;
  line-height: 1;
}

.dc-mono {
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.dc-hidden {
  display: none !important;
}

/* Split-bold formatting rule: first 6 bold #111, middle muted #737373, last 6 bold #111 */
.dc-addr-bold {
  font-weight: 800;
  color: #111111;
}

.dc-addr-mid {
  color: #737373;
  font-weight: 500;
}

.dc-addr-stars {
  color: #a3a3a3;
  font-weight: 500;
}

/* Shared icon sizing */
.dc-ico-11 { width: 11px; height: 11px; flex-shrink: 0; display: inline-block; }
.dc-ico-12 { width: 12px; height: 12px; flex-shrink: 0; display: inline-block; }
.dc-ico-13 { width: 13px; height: 13px; flex-shrink: 0; display: inline-block; }
.dc-ico-14 { width: 14px; height: 14px; flex-shrink: 0; display: inline-block; }
.dc-ico-15 { width: 15px; height: 15px; flex-shrink: 0; display: inline-block; }
.dc-ico-16 { width: 16px; height: 16px; flex-shrink: 0; display: inline-block; }
.dc-ico-18 { width: 18px; height: 18px; flex-shrink: 0; display: inline-block; }

/* Animations */
@keyframes dcAppear {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Receipt (Step 5) — staged entrance + confirmation pop */
@keyframes dcReceiptRise {
  from { opacity: 0; transform: translateY(16px) scale(0.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes dcReceiptIconPop {
  0% { transform: scale(0.55); }
  55% { transform: scale(1.12); }
  78% { transform: scale(0.96); }
  100% { transform: scale(1); }
}

@keyframes dcReceiptCheckDraw {
  from { stroke-dashoffset: 26; opacity: 0.4; }
  to { stroke-dashoffset: 0; opacity: 1; }
}

@keyframes dcModalOpen {
  from { opacity: 0; transform: translateY(10px) scale(0.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes dcSheetSlideUp {
  from { transform: translateY(24px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

@keyframes dcShimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

@keyframes dcSpin {
  to { transform: rotate(360deg); }
}

@keyframes dcPulseDot {
  0%, 100% { transform: scale(1); opacity: 0.95; }
  50% { transform: scale(1.28); opacity: 0.55; }
}

.dc-appear {
  animation: dcAppear 0.22s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.dc-expand-grid {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition: grid-template-rows 0.3s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.24s ease;
}

.dc-expand-grid.is-open {
  grid-template-rows: 1fr;
  opacity: 1;
}

.dc-expand-inner {
  overflow: hidden;
  min-height: 0;
}

/* ── Step 3 Payment Card Addition inside existing .dp-pay-options ── */
.drop-page:not(.is-auction) .dp-os-body:has([data-os-payment-method="crypto"]) {
  flex: 1 1 auto;
  min-height: 0;
  gap: clamp(4px, 0.55vh, 8px);
}

.drop-page:not(.is-auction) .dp-os-body:has([data-os-payment-method="crypto"]) .dp-step-head {
  margin-bottom: clamp(2px, 0.4vh, 6px);
}

.drop-page:not(.is-auction) .dp-os-body:has([data-os-payment-method="crypto"]) .dp-section-card {
  padding: clamp(8px, 1vh, 13px) clamp(12px, 1.25vw, 17px);
  margin-bottom: clamp(4px, 0.6vh, 8px);
  flex: 0 0 auto;
}

.drop-page:not(.is-auction) .dp-os-body:has([data-os-payment-method="crypto"]) .dp-section-card:last-child {
  flex: 1 1 auto;
  min-height: 0;
  margin-bottom: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.drop-page:not(.is-auction) .dp-os-body:has([data-os-payment-method="crypto"]) .dp-pay-options {
  gap: clamp(6px, 0.85vh, 12px);
  flex: 1 1 auto;
  min-height: 0;
  display: grid;
  grid-auto-rows: minmax(min-content, 1fr);
  align-content: stretch;
}

.drop-page:not(.is-auction) .dp-os-body:has([data-os-payment-method="crypto"]) .dp-pay-option {
  min-height: 50px;
  padding: clamp(7px, 1vh, 14px) clamp(13px, 1.3vw, 18px);
  gap: clamp(4px, 0.7vh, 10px);
  border-radius: clamp(12px, 1.2vw, 16px);
}

.drop-page:not(.is-auction) .dp-os-body:has([data-os-payment-method="crypto"]) .dp-pay-option-sub {
  font-size: clamp(11px, 1.15vh, 12.5px);
  margin-top: 1px;
}

@media (min-width: 1121px) {
  .drop-page:not(.is-auction) .dp-os-body:has([data-os-payment-method="crypto"]) {
    flex: 1 1 auto;
    min-height: 0;
    padding: clamp(9px, 1.1vh, 16px) clamp(14px, 1.3vw, 20px);
  }

  .drop-page:not(.is-auction) .checkout-panel:has([data-os-payment-method="crypto"]) > .checkout-step-content > .dp-panel-nav:last-child {
    margin-top: auto;
    padding-top: clamp(10px, 1.1vh, 14px);
  }
}

/* Preserve Square screen (e.g. 1024x1024) taller Step 3 payment boxes */
@media (min-width: 881px) and (max-width: 1120px) and (min-height: 950px) {
  .drop-page:not(.is-auction) .dp-os-body:has([data-os-payment-method="crypto"]) {
    flex: 1 1 auto;
  }

  .drop-page:not(.is-auction) .dp-os-body:has([data-os-payment-method="crypto"]) .dp-section-card:last-child {
    flex: 1 1 auto;
    justify-content: space-between;
  }

  .drop-page:not(.is-auction) .dp-os-body:has([data-os-payment-method="crypto"]) .dp-pay-options {
    flex: 1 1 auto;
    grid-auto-rows: minmax(min-content, 1fr);
    align-content: stretch;
    gap: 8px;
  }

  .drop-page:not(.is-auction) .dp-os-body:has([data-os-payment-method="crypto"]) .dp-pay-option {
    min-height: 62px;
    padding: 10px 13px;
    gap: 6px;
  }
}

@media (min-width: 681px) and (max-height: 980px) {
  .drop-page:not(.is-auction) .dp-os-body:has([data-os-payment-method="crypto"]) {
    padding: 8px 14px;
    gap: 3px;
    flex: 1 1 auto;
    min-height: 0;
  }

  .drop-page:not(.is-auction) .dp-os-body:has([data-os-payment-method="crypto"]) .dp-step-head p.panel-sub {
    display: none;
  }

  .drop-page:not(.is-auction) .dp-os-body:has([data-os-payment-method="crypto"]) .dp-section-card {
    padding: 7px 12px;
    margin-bottom: 4px;
  }

  .drop-page:not(.is-auction) .dp-os-body:has([data-os-payment-method="crypto"]) .dp-section-card:last-child {
    flex: 1 1 auto;
    min-height: 0;
    justify-content: space-between;
  }

  .drop-page:not(.is-auction) .dp-os-body:has([data-os-payment-method="crypto"]) .dp-totals .totals-row {
    padding: 2px 0;
  }

  .drop-page:not(.is-auction) .dp-os-body:has([data-os-payment-method="crypto"]) .dp-totals .totals-row.grand {
    padding-top: 4px;
  }

  .drop-page:not(.is-auction) .dp-os-body:has([data-os-payment-method="crypto"]) .dp-discount-row input,
  .drop-page:not(.is-auction) .dp-os-body:has([data-os-payment-method="crypto"]) .dp-discount-row .dp-btn {
    min-height: 34px;
  }

  .drop-page:not(.is-auction) .dp-os-body:has([data-os-payment-method="crypto"]) .dp-pay-options {
    flex: 1 1 auto;
    min-height: 0;
    grid-auto-rows: minmax(min-content, 1fr);
    align-content: stretch;
    gap: 6px;
  }

  .drop-page:not(.is-auction) .dp-os-body:has([data-os-payment-method="crypto"]) .dp-pay-option {
    min-height: 46px;
    padding: 6px 12px;
    gap: 3px;
  }

  .drop-page:not(.is-auction) .dp-os-body:has([data-os-payment-method="crypto"]) .dp-panel-nav,
  .drop-page:not(.is-auction) .checkout-panel:has([data-os-payment-method="crypto"]) > .checkout-step-content > .dp-panel-nav:last-child {
    margin-top: auto;
    padding-top: 8px;
  }
}

@media (min-width: 1121px) and (min-height: 981px) and (max-height: 1119px) {
  .drop-page:not(.is-auction) .dp-os-body:has([data-os-payment-method="crypto"]) {
    padding: 10px 16px;
    gap: 4px;
  }

  .drop-page:not(.is-auction) .dp-os-body:has([data-os-payment-method="crypto"]) .dp-step-head {
    margin-bottom: 4px;
  }

  .drop-page:not(.is-auction) .dp-os-body:has([data-os-payment-method="crypto"]) .dp-section-card {
    padding: 9px 14px;
    margin-bottom: 5px;
  }

  .drop-page:not(.is-auction) .dp-os-body:has([data-os-payment-method="crypto"]) .dp-section-card:last-child {
    margin-bottom: 0;
  }

  .drop-page:not(.is-auction) .dp-os-body:has([data-os-payment-method="crypto"]) .dp-totals .totals-row {
    padding: 2.5px 0;
  }

  .drop-page:not(.is-auction) .dp-os-body:has([data-os-payment-method="crypto"]) .dp-totals .totals-row.grand {
    padding-top: 6px;
  }

  .drop-page:not(.is-auction) .dp-os-body:has([data-os-payment-method="crypto"]) .dp-discount-row input,
  .drop-page:not(.is-auction) .dp-os-body:has([data-os-payment-method="crypto"]) .dp-discount-row .dp-btn {
    min-height: 38px;
  }

  .drop-page:not(.is-auction) .dp-os-body:has([data-os-payment-method="crypto"]) .dp-pay-options {
    gap: 6px;
  }

  .drop-page:not(.is-auction) .dp-os-body:has([data-os-payment-method="crypto"]) .dp-pay-option {
    min-height: 46px;
    padding: 7px 14px;
    gap: 4px;
  }

  .drop-page:not(.is-auction) .checkout-panel:has([data-os-payment-method="crypto"]) > .checkout-step-content > .dp-panel-nav:last-child {
    padding-top: 8px;
  }

  .drop-page:not(.is-auction) .checkout-panel:has([data-os-payment-method="crypto"]) > .checkout-step-content > .dp-panel-nav:last-child .dp-btn {
    min-height: 44px;
  }
}

.dc-step3-card-badges {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.dc-step3-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 7px;
  border-radius: 7px;
  font-size: 10px;
  font-weight: 800;
  background: #ffffff;
  color: #111111;
  border: 1px solid rgba(17, 17, 17, 0.14);
  line-height: 1.2;
}

.dp-pay-option.is-selected .dc-step3-badge.is-chain-pill,
.dp-pay-option.is-selected .dc-step3-badge:not(.is-frameless) {
  background: rgba(255, 255, 255, 0.96);
  color: #111111;
  border-color: transparent;
}

.dc-step3-badge.is-frameless,
.dp-pay-option.is-selected .dc-step3-badge.is-frameless {
  background: transparent;
  border-color: transparent;
  padding: 2px 3px;
  color: inherit;
}

@media (min-width: 1280px) {
  .dc-step3-badge.is-frameless {
    display: none;
  }
}

.dc-fee-pill-free {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  border-radius: 999px;
  background: #f1f1f3;
  color: #5b5b66;
  border: 1px solid #e4e4e8;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.dp-pay-option.is-selected .dc-fee-pill-free {
  background: rgba(255, 255, 255, 0.16);
  color: #e4e4e8;
  border-color: rgba(255, 255, 255, 0.22);
}

/* Soft Ambient Glow — Digital Currency badge tones (black / grey). */
.dp-pay-option[data-os-payment-method="crypto"]:not(.is-selected) .dc-fee-pill-free {
  background: #F4F4F5;
  color: #52525B;
  border-color: #e4e4e8;
}
.dp-pay-option[data-os-payment-method="crypto"].is-selected .dc-fee-pill-free {
  background: #27272A;
  color: #E4E4E7;
  border-color: transparent;
}

/* ── Step 4 Inline Right-Side Box (#checkout-panel) ── */
.dc-panel-fill {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  height: 100%;
}

.checkout-panel > .dc-pay-root,
.checkout-step-content > .dc-pay-root,
.dc-panel-fill > .dc-pay-root {
  --dc-qr-size: clamp(144px, min(18.5vh, 14.2vw), 228px);
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 100%;
  height: auto;
  gap: clamp(9px, 1.3vh, 16px);
}

.dc-pay-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-shrink: 0;
}

.dc-pay-title-wrap {
  min-width: 0;
}

.dc-pay-title-row {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
}

.dc-pay-title-row .dp-step-number {
  margin-right: 0;
  vertical-align: middle;
}

.dc-pay-title {
  margin: 0;
  font-size: 28px;
  color: #111111;
  letter-spacing: 0.02em;
}

.dc-zero-pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 999px;
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.dc-zero-pill.is-dark {
  background: rgba(16, 185, 129, 0.18);
  color: #6ee7b7;
  border-color: rgba(110, 231, 183, 0.25);
}

.dc-order-tag {
  font-size: 10.5px;
  color: #737373;
  font-weight: 700;
  background: #f4f4f5;
  padding: 2px 7px;
  border-radius: 6px;
}

.dc-conn-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 9px;
  border-radius: 999px;
  background: #f4f4f5;
  border: 1px solid #e4e4e7;
  font-size: 11px;
  color: #111111;
}

.dc-dot-live {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #10b981;
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.18);
  flex-shrink: 0;
}

.dc-disconnect-mini {
  border: 0;
  background: transparent;
  color: #737373;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  padding: 0 2px;
  margin-left: 2px;
}

.dc-disconnect-mini:hover {
  color: #dc2626;
}

/* Inline Order Summary Card inside Step 4 */
.dc-summary-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: clamp(11px, 1.45vh, 18px) clamp(13px, 1.35vw, 18px);
  display: flex;
  flex-direction: column;
  gap: clamp(7px, 0.95vh, 12px);
  flex-shrink: 0;
  box-shadow: 0 1px 2px rgba(17, 17, 17, 0.03);
}

.dc-sum-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.dc-sum-kicker {
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #737373;
}

.dc-sum-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.dc-sum-item-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1;
}

.dc-sum-thumb {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #f4f4f5;
  border: 1px solid #e4e4e7;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dc-sum-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 9px;
  display: block;
}

.dc-sum-thumb-ph {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0.65;
}

.dc-sum-qty-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border-radius: 999px;
  background: #111111;
  color: #ffffff;
  font-size: 10px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.22);
}

.dc-sum-item-meta {
  min-width: 0;
}

.dc-sum-item-title {
  font-size: 13px;
  font-weight: 800;
  color: #111111;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dc-sum-item-sub {
  font-size: 11px;
  color: #737373;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dc-sum-item-price {
  font-size: 13px;
  font-weight: 800;
  color: #111111;
  flex-shrink: 0;
}

.dc-sum-more-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 10px;
  border: 1px solid #e4e4e7;
  background: #fafafa;
  color: #404040;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  text-align: left;
  transition: background 0.16s ease;
}

.dc-sum-more-btn:hover {
  background: #f4f4f5;
}

.dc-sum-more-dots {
  display: inline-flex;
  align-items: center;
}

.dc-sum-more-dot,
.dc-sum-more-dot-ph {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1.5px solid #ffffff;
  background: #e4e4e7;
  object-fit: cover;
  margin-left: -4px;
}

.dc-sum-more-dot:first-child,
.dc-sum-more-dot-ph:first-child {
  margin-left: 0;
}

.dc-sum-more-btn #dcSumMoreChev {
  margin-left: auto;
  display: inline-block;
  font-size: 14px;
  transition: transform 0.25s ease;
}

.dc-sum-more-btn #dcSumMoreChev.is-rotated {
  transform: rotate(90deg);
}

.dc-sum-extra-list {
  padding-top: 4px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.dc-sum-extra-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 11px;
  color: #525252;
  padding: 3px 2px;
}

.dc-sum-extra-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dc-sum-breakdown {
  border-top: 1px solid #f1f5f9;
  padding-top: clamp(7px, 0.9vh, 11px);
  display: flex;
  flex-direction: column;
  gap: clamp(3px, 0.55vh, 7px);
}

.dc-sum-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 11.5px;
  color: #525252;
}

.dc-sum-line.is-disc {
  color: #047857;
}

.dc-fee-free {
  color: #059669;
  font-weight: 800;
}

.dc-sum-total-row {
  border-top: 1px solid #e5e7eb;
  padding-top: clamp(7px, 0.9vh, 12px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.dc-sum-total-label {
  font-size: 13px;
  font-weight: 800;
  color: #111111;
}

.dc-sum-total-right {
  text-align: right;
}

.dc-sum-total-amt {
  font-size: 17px;
  font-weight: 800;
  color: #111111;
  line-height: 1.1;
}

.dc-sum-total-sub {
  font-size: 10px;
  color: #737373;
  margin-top: 1px;
}

/* Rail Switcher with smooth sliding black pill */
.dc-rail-switch {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 4px;
  background: #f4f4f5;
  border-radius: 14px;
  user-select: none;
  flex-shrink: 0;
}

.dc-slide-pill {
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 4px;
  width: calc(50% - 4px);
  background: #111111;
  border-radius: 11px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.14);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}

.dc-rail-btn {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: clamp(36px, 4.3vh, 45px);
  border: 0;
  background: transparent;
  color: #525252;
  font-size: 12.5px;
  font-weight: 700;
  border-radius: 10px;
  cursor: pointer;
  transition: color 0.22s ease;
}

.dc-rail-btn.is-active {
  color: #ffffff;
}

/* Inner Gray Card (#f6f6f7) fills remaining panel height smoothly once Step 4 blocks scale to viewport */
.dc-gray-card {
  container-type: inline-size;
  container-name: dcCard;
  background: #f6f6f7;
  border: 1px solid #e5e5e5;
  border-radius: 18px;
  padding: clamp(14px, 1.7vh, 24px) clamp(14px, 1.55vw, 24px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: clamp(11px, 1.55vh, 20px);
  flex: 1 1 auto;
  min-height: max-content;
}

.dc-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.dc-net-id {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.dc-net-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 999px;
  background: #111111;
  color: #ffffff;
  font-size: 11.5px;
  font-weight: 700;
  width: fit-content;
}

.dc-net-sub {
  font-size: 11px;
  font-weight: 600;
  color: #737373;
  padding-left: 2px;
}

/* Animated Collapsible EVM Chain Chips */
.dc-evm-chips {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  max-width: 100%;
  overflow: hidden;
}

.dc-chain-wrap {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  overflow: hidden;
  transition:
    max-width 0.36s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.28s ease,
    transform 0.36s cubic-bezier(0.22, 1, 0.36, 1),
    margin-right 0.36s cubic-bezier(0.22, 1, 0.36, 1);
}

.dc-chain-wrap.is-shown {
  max-width: 116px;
  opacity: 1;
  transform: scale(1);
  margin-right: 5px;
}

.dc-chain-wrap.is-collapsed {
  max-width: 0;
  opacity: 0;
  transform: scale(0.9);
  margin-right: 0;
  pointer-events: none;
}

.dc-chain-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid #e4e4e7;
  background: #ffffff;
  color: #404040;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.dc-chain-chip:hover {
  background: #fafafa;
  border-color: #d4d4d8;
}

.dc-chain-chip.is-active {
  background: #111111;
  color: #ffffff;
  border-color: #111111;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.14);
}

.dc-chain-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 28px;
  padding: 0 8px;
  border-radius: 999px;
  border: 1px solid #e4e4e7;
  background: rgba(255, 255, 255, 0.94);
  color: #525252;
  font-size: 10.5px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.24s cubic-bezier(0.22, 1, 0.36, 1);
}

.dc-chain-more.is-expanded {
  width: 28px;
  padding: 0;
  gap: 0;
}

.dc-chain-more:hover {
  background: #ffffff;
  color: #111111;
  border-color: #d4d4d8;
}

.dc-chev {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  line-height: 1;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.dc-chev svg {
  display: block;
}

.dc-chev.is-rotated {
  transform: rotate(180deg);
}

.dc-more-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  max-width: 72px;
  opacity: 1;
  overflow: hidden;
  transition: max-width 0.32s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.24s ease;
}

.dc-more-badge.is-hidden {
  max-width: 0;
  opacity: 0;
}

.dc-more-stack {
  display: inline-flex;
  align-items: center;
}

.dc-more-dot {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid #e4e4e7;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: -4px;
}

.dc-more-dot:first-child {
  margin-left: 0;
}

.dc-more-count {
  font-size: 10px;
  font-weight: 800;
  color: #525252;
}

/* Sliding Token Bar (USDT / USDC / SOL or ETH) */
.dc-tok-group {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: center;
  background: #ffffff;
  border: 1px solid #e5e5e5;
  border-radius: 999px;
  padding: 3px;
  flex-shrink: 0;
  min-width: 222px;
}

.dc-tok-group[data-count="2"] {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  min-width: 152px;
}

.dc-tok-slide-pill {
  position: absolute;
  top: 3px;
  bottom: 3px;
  left: 3px;
  background: #111111;
  border-radius: 999px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.16);
  transition:
    transform 0.32s cubic-bezier(0.22, 1, 0.36, 1),
    width 0.32s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}

.dc-tok-pill {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 5px 8px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #525252;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  width: 100%;
  transition: color 0.22s ease;
}

.dc-tok-pill.is-hidden {
  display: none;
}

.dc-tok-pill.is-selected {
  color: #ffffff;
}

/* QR + Amount / Address Split Grid */
.dc-qr-grid {
  display: grid;
  grid-template-columns: var(--dc-qr-size, 152px) minmax(0, 1fr);
  gap: clamp(11px, 1.35vw, 22px);
  align-items: stretch;
  margin: auto 0;
  flex: 0 0 auto;
}

.dc-qr-host {
  display: flex;
  align-items: center;
  justify-content: center;
}

.dc-qr-box {
  position: relative;
  width: var(--dc-qr-size, 152px);
  height: var(--dc-qr-size, 152px);
  background: #ffffff;
  border-radius: 16px;
  padding: 9px;
  border: 1px solid #e5e5e5;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.dc-qr-svg {
  width: 100%;
  height: 100%;
  display: block;
}

.dc-qr-center {
  position: absolute;
  width: 30px;
  height: 30px;
  background: #ffffff;
  border-radius: 9px;
  border: 1.5px solid #f4f4f5;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.dc-info-col {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: clamp(8px, 1.1vh, 13px);
  min-width: 0;
  min-height: var(--dc-qr-size, 152px);
  height: 100%;
}

.dc-white-field {
  background: #ffffff;
  border: 1px solid #e5e5e5;
  border-radius: 14px;
  padding: clamp(9px, 1.15vh, 14px) clamp(11px, 1.25vw, 15px);
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.dc-field-cap {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #737373;
  margin-bottom: 3px;
}

.dc-field-amt {
  font-size: clamp(16px, 1.9vh, 21px);
  font-weight: 800;
  color: #111111;
  word-break: break-word;
  line-height: 1.2;
}

.dc-field-sub {
  font-size: 10.5px;
  color: #737373;
  margin-top: 2px;
}

.dc-addr-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.dc-addr-wrap {
  min-width: 0;
  flex: 1;
}

.dc-addr-val {
  font-size: 11px;
  line-height: 1.38;
  word-break: break-all;
}

@container dcCard (max-width: 430px) {
  .dc-card-top {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .dc-tok-group {
    width: 100%;
    min-width: 0;
  }

  .dc-addr-val {
    font-size: 10px;
    line-height: 1.32;
  }
}

@container dcCard (max-width: 370px) {
  .dc-qr-grid {
    grid-template-columns: 122px minmax(0, 1fr);
    gap: 9px;
  }

  .dc-qr-box {
    width: 122px;
    height: 122px;
    padding: 7px;
  }

  .dc-info-col {
    min-height: 122px;
    gap: 7px;
  }

  .dc-white-field {
    padding: 7px 9px;
  }

  .dc-field-amt {
    font-size: 15px;
  }

  .dc-field-sub {
    font-size: 9.5px;
  }

  .dc-addr-val {
    font-size: 9.5px;
    line-height: 1.28;
  }

  .dc-copy-btn {
    padding: 5px 8px;
    font-size: 10.5px;
  }
}

/* Compact split desktop / small square fit (e.g. 900x900) */
@media (min-width: 881px) and (max-width: 1120px) and (max-height: 960px) {
  .checkout-panel > .dc-pay-root,
  .checkout-step-content > .dc-pay-root {
    gap: 7px;
  }

  .dc-pay-title {
    font-size: 24px;
  }

  .dc-summary-card {
    padding: 9px 12px;
    gap: 5px;
  }

  .dc-sum-thumb {
    width: 34px;
    height: 34px;
  }

  .dc-sum-breakdown {
    padding-top: 5px;
    gap: 2px;
  }

  .dc-sum-total-row {
    padding-top: 5px;
  }

  .dc-rail-btn {
    height: 34px;
  }

  .dc-gray-card {
    padding: 10px 12px;
    gap: 8px;
  }

  .dc-card-bottom {
    padding-top: 6px;
    gap: 4px;
  }

  .dc-back-btn,
  .dc-connect-cta {
    min-height: 42px;
  }
}

.dc-copy-btn {
  flex-shrink: 0;
  padding: 6px 11px;
  border-radius: 9px;
  border: 1px solid #e4e4e7;
  background: #ffffff;
  color: #111111;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.16s ease;
}

.dc-copy-btn:hover {
  background: #f4f4f5;
}

.dc-copy-btn.is-copied {
  background: #111111;
  color: #ffffff;
  border-color: #111111;
}

.dc-card-bottom {
  display: flex;
  flex-direction: column;
  gap: 5px;
  border-top: 1px solid #e5e7eb;
  padding-top: 9px;
}

.dc-net-notice {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  color: #525252;
}

.dc-info-dot {
  width: 15px;
  height: 15px;
  border-radius: 999px;
  background: #2563eb;
  color: #ffffff;
  font-size: 10px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.dc-await-row {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  color: #737373;
}

.dc-await-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #10b981;
  flex-shrink: 0;
  animation: dcPulseDot 2s ease-in-out infinite;
}

.dc-err-banner {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
  font-size: 11.5px;
  font-weight: 600;
  padding: 8px 11px;
  border-radius: 11px;
}

/* Side-by-Side Bottom Action Bar */
.dc-bottom-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 4px;
  flex-shrink: 0;
}

.dc-back-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 14px;
  border: 1px solid #d4d4d8;
  background: #ffffff;
  color: #111111;
  font-size: 13.5px;
  font-weight: 750;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background 0.16s ease, border-color 0.16s ease;
}

.dc-back-btn:hover {
  background: #f4f4f5;
  border-color: #a1a1aa;
}

.dc-connect-cta,
.dc-orders-cta {
  flex: 1 1 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 14px;
  border: 0;
  background: #111111;
  color: #ffffff;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(17, 17, 17, 0.14);
  transition: background 0.16s ease, transform 0.12s ease;
}

.dc-connect-cta:hover,
.dc-orders-cta:hover {
  background: #27272a;
}

.dc-connect-cta:disabled,
.dc-orders-cta:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.dc-connect-cta:active,
.dc-orders-cta:active {
  transform: scale(0.99);
}

/* ── Wallet Modal Popup (Desktop Centered / Mobile Bottom-Sheet) ── */
.dc-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(17, 17, 17, 0.56);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.dc-modal-card {
  width: 100%;
  max-width: 430px;
  background: #ffffff;
  border-radius: 26px;
  border: 1px solid #e5e5e5;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.28);
  overflow: hidden;
  animation: dcModalOpen 0.24s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.dc-modal-handle {
  display: none;
  width: 40px;
  height: 4px;
  border-radius: 999px;
  background: #d4d4d8;
  margin: 10px auto 2px;
}

.dc-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 18px 13px;
  border-bottom: 1px solid #f0f0f2;
  gap: 10px;
}

.dc-modal-head-left {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.dc-modal-title {
  margin: 0;
  font-size: 15.5px;
  font-weight: 800;
  color: #111111;
}

.dc-modal-net-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 999px;
  background: #f4f4f5;
  border: 1px solid #e4e4e7;
  font-size: 10.5px;
  font-weight: 700;
  color: #111111;
  flex-shrink: 0;
}

.dc-modal-close {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  border: 0;
  background: #f4f4f5;
  color: #525252;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  flex-shrink: 0;
}

.dc-modal-close:hover {
  background: #e4e4e7;
  color: #111111;
}

.dc-modal-body {
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 11px;
  max-height: 78vh;
  overflow-y: auto;
}

.dc-modal-sub {
  font-size: 12.5px;
  color: #525252;
}

.dc-w-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.dc-w-row {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 11px 13px;
  border: 1px solid #e5e5e5;
  border-radius: 16px;
  background: #ffffff;
  cursor: pointer;
  text-align: left;
  transition: all 0.16s ease;
}

.dc-w-row:hover {
  border-color: #111111;
  background: #fafafa;
}

.dc-w-row:disabled,
.dc-w-row.is-unavailable {
  opacity: 0.58;
  background: #fafafa;
  border-color: #ececf0;
  cursor: not-allowed;
}

.dc-w-row:disabled:hover,
.dc-w-row.is-unavailable:hover {
  border-color: #ececf0;
  background: #fafafa;
}

.dc-w-ico {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.dc-wallet-logo {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.dc-wallet-svg {
  width: 40px;
  height: 40px;
  display: block;
}

.dc-w-meta {
  flex: 1;
  min-width: 0;
}

.dc-w-name {
  font-size: 13.5px;
  font-weight: 700;
  color: #111111;
}

.dc-w-sub {
  font-size: 11px;
  color: #737373;
}

.dc-w-badge,
.dc-w-badge.is-detected {
  font-size: 11px;
  font-weight: 700;
  padding: 5px 11px;
  border-radius: 999px;
  background: #f4f4f5;
  color: #3f3f46;
  border: 1px solid #e4e4e7;
  transition: all 0.16s ease;
}

.dc-w-badge.is-unavailable {
  background: #e9e9ee;
  color: #71717a;
  border-color: #e4e4e7;
}

.dc-w-row:hover .dc-w-badge {
  background: #111111;
  color: #ffffff;
  border-color: #111111;
}

.dc-w-row:disabled:hover .dc-w-badge,
.dc-w-row.is-unavailable:hover .dc-w-badge {
  background: #e9e9ee;
  color: #71717a;
  border-color: #e4e4e7;
}

.dc-connecting-box,
.dc-broadcast-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  padding: 14px 4px;
}

.dc-conn-status,
.dc-broadcast-title {
  font-size: 14.5px;
  font-weight: 700;
  color: #111111;
}

.dc-broadcast-sub {
  font-size: 12.5px;
  color: #525252;
}

/* Wallet connect: animated ring + bouncing dots while the extension/wallet
   authorization is pending, then a smooth staged entrance for the confirm view. */
@keyframes dcWalletRingSpin { to { transform: rotate(360deg); } }
@keyframes dcWalletPulse {
  0%, 100% { transform: scale(1); opacity: .35; }
  50% { transform: scale(1.07); opacity: .7; }
}
@keyframes dcWalletDot {
  0%, 80%, 100% { transform: translateY(0); opacity: .25; }
  40% { transform: translateY(-3px); opacity: 1; }
}
@keyframes dcModalStageIn {
  from { opacity: 0; transform: translate3d(0, 12px, 0) scale(.985); }
  to { opacity: 1; transform: none; }
}
.dc-conn-orb {
  position: relative;
  width: 80px;
  height: 80px;
  display: grid;
  place-items: center;
}
.dc-conn-orb .dc-wallet-svg { width: 44px; height: 44px; position: relative; z-index: 1; }
.dc-conn-orb::before {
  content: "";
  position: absolute;
  inset: 12px;
  border-radius: 50%;
  background: rgba(17, 17, 17, .06);
  animation: dcWalletPulse 1.6s ease-in-out infinite;
}
.dc-conn-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2.5px solid rgba(17, 17, 17, .1);
  border-top-color: #111111;
  animation: dcWalletRingSpin .9s linear infinite;
}
.dc-conn-dots { display: inline-flex; gap: 3px; margin-left: 3px; vertical-align: middle; }
.dc-conn-dots i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
  animation: dcWalletDot 1.2s infinite;
}
.dc-conn-dots i:nth-child(2) { animation-delay: .16s; }
.dc-conn-dots i:nth-child(3) { animation-delay: .32s; }

.dc-modal-card.dc-stage-confirm { animation: dcModalStageIn .42s cubic-bezier(.22, 1, .36, 1) both; }
.dc-modal-card.dc-stage-confirm .dc-conf-connected { animation: dcModalStageIn .42s .04s cubic-bezier(.22, 1, .36, 1) both; }
.dc-modal-card.dc-stage-confirm .dc-conf-box { animation: dcModalStageIn .42s .10s cubic-bezier(.22, 1, .36, 1) both; }
.dc-modal-card.dc-stage-confirm .dc-total-pay-card { animation: dcModalStageIn .42s .16s cubic-bezier(.22, 1, .36, 1) both; }
.dc-modal-card.dc-stage-confirm .dc-final-dest { animation: dcModalStageIn .42s .22s cubic-bezier(.22, 1, .36, 1) both; }
.dc-modal-card.dc-stage-confirm .dc-gas-strip { animation: dcModalStageIn .42s .28s cubic-bezier(.22, 1, .36, 1) both; }
.dc-modal-card.dc-stage-confirm .dc-confirm-pay-btn { animation: dcModalStageIn .42s .34s cubic-bezier(.22, 1, .36, 1) both; }

.dc-conn-actions {
  display: flex;
  flex-direction: column;
  width: 100%;
  gap: 8px;
}

.dc-deeplink-btn,
.dc-uri-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 42px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.dc-uri-btn {
  background: #111111;
  color: #ffffff;
}

.dc-deeplink-btn {
  background: #ffffff;
  color: #111111;
  border: 1.5px solid #dcdce2;
}

.dc-link-subtle {
  border: 0;
  background: transparent;
  padding: 0;
  font-size: 11.5px;
  font-weight: 600;
  color: #525252;
  text-decoration: underline;
  cursor: pointer;
}

.dc-conf-connected {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f6f6f7;
  border: 1px solid #e5e5e5;
  border-radius: 12px;
  padding: 9px 12px;
}

.dc-conn-id {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 700;
  color: #111111;
}

.dc-conf-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.dc-disconnect-btn {
  border: 1px solid #e4e4e7;
  background: #ffffff;
  color: #dc2626;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 8px;
  cursor: pointer;
}

.dc-disconnect-btn.dc-change-wallet-btn {
  color: #111111;
}

.dc-conf-box {
  border: 1px solid #e5e5e5;
  border-radius: 14px;
  padding: 11px 13px;
}

.dc-mini-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.dc-mini-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.dc-mini-thumb {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid #e4e4e7;
  flex-shrink: 0;
}

.dc-mini-title {
  font-size: 13px;
  font-weight: 700;
  color: #111111;
}

.dc-mini-sub {
  font-size: 11px;
  color: #737373;
}

.dc-mini-price {
  font-size: 13.5px;
  font-weight: 800;
  color: #111111;
}

.dc-expand-btn-wrap {
  margin-top: 8px;
}

.dc-expand-pill {
  border: 0;
  background: #f4f4f5;
  color: #111111;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 8px;
  cursor: pointer;
}

.dc-mini-item {
  display: flex;
  justify-content: space-between;
  font-size: 11.5px;
  color: #525252;
  padding-top: 6px;
}

.dc-total-pay-card {
  background: #111111;
  color: #ffffff;
  border-radius: 16px;
  padding: 13px 15px;
}

.dc-total-pay-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 2px;
}

.dc-total-pay-card .dc-field-cap {
  color: #a3a3a3;
  margin-bottom: 0;
}

.dc-total-amt {
  font-size: 22px;
  font-weight: 800;
  color: #ffffff;
}

.dc-total-sub {
  font-size: 11.5px;
  color: #d4d4d8;
  margin-top: 2px;
}

.dc-final-dest {
  background: #fafafa;
  border: 1px solid #e5e5e5;
  border-radius: 14px;
  padding: 10px 12px;
}

.dc-final-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.dc-final-masked {
  font-size: 12px;
}

.dc-reveal-btn {
  border: 1px solid #e4e4e7;
  background: #ffffff;
  color: #111111;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 9px;
  border-radius: 8px;
  cursor: pointer;
}

.dc-full-addr-box {
  margin-top: 8px;
  padding: 8px 10px;
  background: #ffffff;
  border: 1px solid #e4e4e7;
  border-radius: 10px;
  font-size: 11px;
  word-break: break-all;
}

.dc-gas-strip {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 11px;
  border-radius: 11px;
  background: #f4f4f5;
  font-size: 11px;
  font-weight: 600;
  color: #525252;
}

.dc-confirm-pay-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 46px;
  border-radius: 14px;
  border: 0;
  background: #111111;
  color: #ffffff;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  margin-top: 2px;
}

.dc-confirm-pay-btn:disabled {
  opacity: 0.58;
  cursor: wait;
}

.dc-spinner-lg {
  width: 40px;
  height: 40px;
  border: 3px solid #e5e5e5;
  border-top-color: #111111;
  border-radius: 50%;
  animation: dcSpin 0.8s linear infinite;
}

/* ── Step 5 Inline On-Chain Receipt (#checkout-panel) ── */
.checkout-panel > .dc-receipt-root,
.checkout-step-content > .dc-receipt-root {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 100%;
  height: 100%;
  justify-content: space-between;
  gap: clamp(10px, 1.45vh, 18px);
}

.dc-receipt-kicker {
  font-size: 14px;
  font-weight: 800;
  color: #111111;
}

/* Step 5 mount: staged rise. `.is-enter` is only on a fresh mount, so polling
   updates (1/3 → 2/3) never replay it. */
.dc-receipt-root.is-enter .dc-receipt-hero,
.dc-receipt-root.is-enter .dc-receipt-body > * {
  animation: dcReceiptRise 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.dc-receipt-root.is-enter .dc-receipt-hero { animation-delay: 0.04s; }
.dc-receipt-root.is-enter .dc-receipt-body > *:nth-child(1) { animation-delay: 0.10s; }
.dc-receipt-root.is-enter .dc-receipt-body > *:nth-child(2) { animation-delay: 0.16s; }
.dc-receipt-root.is-enter .dc-receipt-body > *:nth-child(3) { animation-delay: 0.22s; }
.dc-receipt-root.is-enter .dc-receipt-body > *:nth-child(4) { animation-delay: 0.28s; }
.dc-receipt-root.is-enter .dc-receipt-body > *:nth-child(5) { animation-delay: 0.34s; }

/* Confirmation: the tick pops in and the check draws itself. */
.dc-receipt-root.is-completing .dc-receipt-icon {
  animation: dcReceiptIconPop 0.62s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.dc-receipt-root.is-completing .dc-receipt-check-svg path {
  stroke-dasharray: 26;
  animation: dcReceiptCheckDraw 0.45s 0.14s ease-out both;
}

.dc-receipt-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: clamp(9px, 1.25vh, 14px);
  padding: clamp(10px, 2vh, 26px) 0;
  flex: 1 1 auto;
}

.dc-receipt-icon {
  width: clamp(60px, 6.6vh, 72px);
  height: clamp(60px, 6.6vh, 72px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.dc-receipt-icon.is-pending {
  background: #111111;
  color: #ffffff;
  box-shadow: 0 0 0 6px #f4f4f5, 0 8px 20px rgba(17, 17, 17, 0.14);
}

.dc-receipt-icon.is-confirmed {
  background: #10b981;
  color: #ffffff;
  box-shadow: 0 0 0 6px #d1fae5, 0 8px 20px rgba(16, 185, 129, 0.22);
}

.dc-receipt-icon.is-failed {
  background: #dc2626;
  color: #ffffff;
  box-shadow: 0 0 0 6px #fee2e2, 0 8px 20px rgba(220, 38, 38, 0.22);
}

.dc-receipt-check-svg {
  display: block;
}

.dc-spinner-sm {
  width: 26px;
  height: 26px;
  border: 2.5px solid rgba(255, 255, 255, 0.3);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: dcSpin 0.85s linear infinite;
}

.dc-receipt-hero .dc-receipt-title,
.dc-receipt-title {
  margin: 6px 0 0;
  font-size: clamp(26px, 3.1vh, 34px);
  line-height: 1.08;
  color: #111111;
}

.dc-receipt-sub {
  margin: 0;
  font-size: 13px;
  color: #737373;
  max-width: 390px;
  line-height: 1.45;
}

/* Desktop success mark: generous icon + slightly smaller "Thank you for your order" headline.
   Scoped to the desktop Drop layout; the phone block below sizes for mobile screens. */
@media (min-width: 881px) {
  .dc-receipt-icon {
    width: clamp(84px, 9.2vh, 104px);
    height: clamp(84px, 9.2vh, 104px);
  }

  .dc-receipt-check-svg {
    width: clamp(38px, 4.2vh, 46px);
    height: clamp(38px, 4.2vh, 46px);
  }

  .dc-receipt-hero {
    padding: clamp(44px, 6.8vh, 82px) 0 clamp(8px, 1.2vh, 14px);
  }

  .dc-receipt-hero .dc-receipt-title,
  .dc-receipt-title {
    margin-top: 8px;
    font-size: clamp(34px, 4.1vh, 46px);
    line-height: 1.06;
    letter-spacing: 0.015em;
  }

  .dc-receipt-sub {
    font-size: 14px;
    max-width: 430px;
  }
}

.dc-progress-card {
  width: 100%;
  background: #fafafa;
  border: 1px solid #e5e5e5;
  border-radius: 16px;
  padding: clamp(14px, 1.8vh, 21px) clamp(15px, 1.55vw, 20px);
  display: flex;
  flex-direction: column;
  gap: clamp(9px, 1.1vh, 12px);
  flex-shrink: 0;
}

.dc-progress-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.dc-status-pill {
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
}

.dc-status-pill.is-pending {
  background: #f4f4f5;
  color: #525252;
  border: 1px solid #e4e4e7;
}

.dc-status-pill.is-confirmed {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
}

.dc-status-pill.is-failed {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}

.dc-progress-meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  color: #525252;
}

.dc-recheck-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1px solid #e4e4e7;
  background: #ffffff;
  color: #111111;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.16s ease, border-color 0.16s ease;
}

.dc-recheck-btn:hover {
  background: #f4f4f5;
  border-color: #d4d4d8;
}

.dc-bar-track {
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: #e5e5e5;
  overflow: hidden;
}

.dc-bar-fill {
  height: 100%;
  border-radius: 999px;
  transition: width 0.45s cubic-bezier(0.22, 1, 0.36, 1), background-color 0.35s ease;
}

.dc-bar-shimmer {
  background: linear-gradient(90deg, #111111 0%, #525252 50%, #111111 100%);
  background-size: 200% 100%;
  animation: dcShimmer 1.6s linear infinite;
}

.dc-bar-fill.is-confirmed {
  background: #10b981;
}

.dc-bar-fill.is-failed {
  background: #dc2626;
}

.dc-receipt-body {
  display: flex;
  flex-direction: column;
  gap: clamp(10px, 1.4vh, 16px);
  flex: 0 0 auto;
}

.dc-receipt-grid {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(10px, 1.25vw, 14px);
}

.dc-r-cell {
  background: #ffffff;
  border: 1px solid #e5e5e5;
  border-radius: 15px;
  padding: clamp(14px, 1.8vh, 21px) clamp(15px, 1.55vw, 20px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  text-align: left;
}

.dc-r-val {
  font-size: clamp(14.5px, 1.55vh, 16.5px);
  font-weight: 800;
  color: #111111;
}

.dc-tx-card {
  width: 100%;
  background: #ffffff;
  border: 1px solid #e5e5e5;
  border-radius: 16px;
  padding: clamp(14px, 1.75vh, 19px) clamp(15px, 1.55vw, 20px);
  display: flex;
  flex-direction: column;
  gap: clamp(9px, 1.05vh, 12px);
  flex: 0 0 auto;
  text-align: left;
}

.dc-tx-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.dc-tx-hash-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #f6f6f7;
  border: 1px solid #ececee;
}

.dc-tx-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

.dc-tx-badge.is-pending {
  background: #f4f4f5;
  color: #525252;
}

.dc-tx-badge.is-confirmed {
  background: #ecfdf5;
  color: #047857;
}

.dc-tx-badge.is-failed {
  background: #fef2f2;
  color: #b91c1c;
}

.dc-dot-status {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}

.dc-tx-hash {
  flex: 1;
  min-width: 0;
  font-size: 11.5px;
  word-break: break-all;
  line-height: 1.45;
}

.dc-tx-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.dc-explorer-link {
  font-size: 11.5px;
  font-weight: 700;
  color: #111111;
  text-decoration: none;
  padding: 6px 10px;
  border-radius: 9px;
  border: 1px solid #e4e4e7;
  background: #fafafa;
}

.dc-explorer-link:hover {
  background: #f4f4f5;
}

.dc-r-order-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: clamp(13px, 1.75vh, 19px) clamp(15px, 1.55vw, 20px);
  border-radius: 15px;
  background: #f6f6f7;
  border: 1px solid #e5e5e5;
}

.dc-r-order-left {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
}

.dc-r-order-thumb {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid #e4e4e7;
  flex-shrink: 0;
}

.dc-r-order-name {
  font-size: 13.5px;
  font-weight: 700;
  color: #111111;
}

.dc-r-order-sub {
  font-size: 11.5px;
  color: #737373;
}

.dc-r-order-total {
  font-size: 15px;
  font-weight: 800;
  color: #111111;
  flex-shrink: 0;
}

.dc-receipt-root .dc-expand-grid {
  width: 100%;
  flex-shrink: 0;
}

.dc-receipt-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 4px;
}

/* ── Shared ON-CHAIN VERIFIED Payment Evidence Card (Order Modals: Drop & Studio) ── */
.dc-evidence-card {
  margin: 10px 0;
  padding: 12px 14px;
  border-radius: 14px;
  background: #f6f6f7;
  border: 1px solid #e5e5e5;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.dc-ev-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.dc-ev-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10.5px;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 999px;
  background: #ecfdf5;
  color: #047857;
  letter-spacing: 0.03em;
}

.dc-ev-explorer {
  font-size: 11.5px;
  font-weight: 700;
  color: #111111;
  text-decoration: none;
}

.dc-ev-explorer:hover {
  text-decoration: underline;
}

.dc-ev-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.dc-ev-val {
  font-size: 12px;
  font-weight: 700;
  color: #111111;
}

.dc-ev-wallet {
  background: #ffffff;
  border: 1px solid #e5e5e5;
  border-radius: 11px;
  padding: 9px 11px;
}

.dc-ev-wallet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.dc-ev-wallet-btns {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.dc-ev-tx {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.dc-ev-tx-val {
  font-size: 11px;
  word-break: break-all;
}

/* Studio Drop Editor Payment Badge */
.ds-drop-release-payment-badge.is-crypto {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
}

.od-crypto-verified-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 999px;
  background: #ecfdf5;
  color: #047857;
  font-size: 11px;
  font-weight: 800;
}

/* ── Large Screen & 27-inch Monitor Sizing (>= 1440px & wide cards) ── */
@container dcCard (min-width: 580px) {
  .dc-net-badge {
    padding: 6px 13px;
    font-size: 12.5px;
    gap: 6px;
  }

  .dc-net-badge svg {
    width: 16px;
    height: 16px;
  }

  .dc-chain-wrap.is-shown {
    max-width: 136px;
    margin-right: 6px;
  }

  .dc-chain-chip {
    padding: 6px 12px;
    font-size: 12px;
    gap: 6px;
  }

  .dc-chain-chip svg {
    width: 15px;
    height: 15px;
  }

  .dc-chain-more {
    height: 31px;
    padding: 0 10px;
    font-size: 11.5px;
    gap: 5px;
  }

  .dc-chain-more.is-expanded {
    width: 31px;
  }

  .dc-more-dot {
    width: 16px;
    height: 16px;
  }

  .dc-more-dot svg {
    width: 11px;
    height: 11px;
  }

  .dc-more-count {
    font-size: 11px;
  }

  .dc-net-sub {
    font-size: 12px;
  }

  .dc-tok-group {
    min-width: 256px;
  }

  .dc-tok-group[data-count="2"] {
    min-width: 176px;
  }

  .dc-tok-pill {
    padding: 6px 12px;
    font-size: 12px;
    gap: 6px;
  }

  .dc-tok-pill svg {
    width: 14px;
    height: 14px;
  }
}

@container dcCard (min-width: 680px) {
  .dc-card-top {
    gap: clamp(12px, 1.5cqw, 18px);
  }

  .dc-net-id {
    gap: clamp(5px, 0.7cqw, 8px);
  }

  .dc-net-badge {
    padding: clamp(9px, 1.25cqw, 14px) clamp(16px, 2.05cqw, 24px);
    font-size: clamp(13.5px, 1.68cqw, 17px);
    gap: clamp(7px, 0.9cqw, 11px);
  }

  .dc-net-badge svg {
    width: clamp(18px, 2.15cqw, 24px);
    height: clamp(18px, 2.15cqw, 24px);
  }

  .dc-chain-wrap.is-shown {
    max-width: clamp(156px, 22cqw, 225px);
    margin-right: clamp(7px, 0.85cqw, 11px);
  }

  .dc-chain-chip {
    padding: clamp(9px, 1.25cqw, 14px) clamp(15px, 1.95cqw, 23px);
    font-size: clamp(13.5px, 1.68cqw, 17px);
    gap: clamp(7px, 0.9cqw, 11px);
  }

  .dc-chain-chip svg {
    width: clamp(17px, 2.05cqw, 23px);
    height: clamp(17px, 2.05cqw, 23px);
  }

  .dc-chain-more {
    height: clamp(36px, 4.75cqw, 49px);
    padding: 0 clamp(13px, 1.7cqw, 20px);
    font-size: clamp(12.5px, 1.55cqw, 16px);
    gap: clamp(6px, 0.85cqw, 10px);
  }

  .dc-chain-more.is-expanded {
    width: clamp(36px, 4.75cqw, 49px);
  }

  .dc-chev {
    width: clamp(15px, 1.85cqw, 20px);
    height: clamp(15px, 1.85cqw, 20px);
  }

  .dc-chev svg {
    width: clamp(14px, 1.75cqw, 19px);
    height: clamp(14px, 1.75cqw, 19px);
  }

  .dc-more-badge {
    max-width: clamp(102px, 14cqw, 150px);
    gap: clamp(6px, 0.75cqw, 9px);
  }

  .dc-more-dot {
    width: clamp(20px, 2.55cqw, 27px);
    height: clamp(20px, 2.55cqw, 27px);
  }

  .dc-more-dot svg {
    width: clamp(13px, 1.55cqw, 17px);
    height: clamp(13px, 1.55cqw, 17px);
  }

  .dc-more-count {
    font-size: clamp(12px, 1.48cqw, 15.5px);
  }

  .dc-net-sub {
    font-size: clamp(13px, 1.55cqw, 16px);
    padding-left: 4px;
  }

  .dc-tok-group {
    min-width: clamp(304px, 39.5cqw, 415px);
  }

  .dc-tok-group[data-count="2"] {
    min-width: clamp(210px, 27cqw, 286px);
  }

  .dc-tok-pill {
    padding: clamp(9px, 1.25cqw, 14px) clamp(15px, 1.95cqw, 24px);
    font-size: clamp(13.5px, 1.68cqw, 17px);
    gap: clamp(6px, 0.9cqw, 11px);
  }

  .dc-tok-pill svg {
    width: clamp(16px, 2cqw, 22px);
    height: clamp(16px, 2cqw, 22px);
  }

  .dc-qr-center {
    width: clamp(36px, 4.2cqw, 46px);
    height: clamp(36px, 4.2cqw, 46px);
    border-radius: 13px;
  }

  /* Bigger chain mark (SOL / ETH / L2s) inside the centre cut-out — desktop only;
     the phone card keeps the base 30px chip + 18px glyph. */
  .dc-qr-center svg {
    width: clamp(22px, 2.5cqw, 28px);
    height: clamp(22px, 2.5cqw, 28px);
  }

  .dc-white-field {
    padding: clamp(14px, 1.65vh, 22px) clamp(17px, 2cqw, 22px);
    border-radius: 16px;
  }

  .dc-field-cap {
    font-size: clamp(10.5px, 1.2cqw, 12px);
    margin-bottom: 5px;
  }

  .dc-field-amt {
    font-size: clamp(20px, 2.25vh, 28px);
  }

  .dc-field-sub {
    font-size: clamp(11.5px, 1.3cqw, 13.5px);
    margin-top: 3px;
  }

  .dc-addr-val {
    font-size: clamp(12.5px, 1.4cqw, 14.5px);
    line-height: 1.45;
  }

  .dc-copy-btn {
    padding: clamp(7px, 0.9cqw, 10px) clamp(14px, 1.65cqw, 18px);
    font-size: clamp(12px, 1.35cqw, 13.5px);
    border-radius: 10px;
  }

  .dc-card-bottom {
    padding-top: clamp(11px, 1.35vh, 16px);
    gap: clamp(6px, 0.8vh, 9px);
  }

  .dc-net-notice,
  .dc-await-row {
    font-size: clamp(12px, 1.35cqw, 13.5px);
    gap: 8px;
  }

  .dc-info-dot {
    width: clamp(16px, 1.8cqw, 19px);
    height: clamp(16px, 1.8cqw, 19px);
    font-size: clamp(10.5px, 1.15cqw, 12px);
  }
}

@media (min-width: 1440px) and (min-height: 981px) {
  .drop-page:not(.is-auction) .dp-os-body:has([data-os-payment-method="crypto"]) .dp-pay-option {
    min-height: 52px;
    padding: clamp(9px, 1.1vh, 15px) 17px;
  }

  .drop-page:not(.is-auction) .dp-os-body:has([data-os-payment-method="crypto"]) .dp-totals .totals-row {
    padding: clamp(2px, 0.4vh, 6px) 0;
  }
}

@media (min-width: 1440px) {
  .dc-pay-title {
    font-size: 32px;
  }

  .dc-back-btn,
  .dc-connect-cta,
  .dc-orders-cta {
    min-height: 46px;
  }
}

@media (min-width: 1600px) and (min-height: 1120px) {
  .drop-page:not(.is-auction) .dp-os-body:has([data-os-payment-method="crypto"]) {
    padding: clamp(14px, 1.65vh, 22px) clamp(18px, 1.5vw, 24px);
    gap: clamp(8px, 1vh, 14px);
  }

  .drop-page:not(.is-auction) .dp-os-body:has([data-os-payment-method="crypto"]) .dp-section-card {
    padding: clamp(14px, 1.6vh, 20px) clamp(16px, 1.45vw, 22px);
  }

  .drop-page:not(.is-auction) .dp-os-body:has([data-os-payment-method="crypto"]) .dp-totals .totals-row {
    padding: 5.5px 0;
    font-size: 15px;
  }

  .drop-page:not(.is-auction) .dp-os-body:has([data-os-payment-method="crypto"]) .dp-totals .totals-row.grand {
    padding-top: 10px;
    font-size: 23px;
  }

  .drop-page:not(.is-auction) .dp-os-body:has([data-os-payment-method="crypto"]) .dp-discount-row input,
  .drop-page:not(.is-auction) .dp-os-body:has([data-os-payment-method="crypto"]) .dp-discount-row .dp-btn {
    min-height: 46px;
    font-size: 15px;
  }

  .drop-page:not(.is-auction) .dp-os-body:has([data-os-payment-method="crypto"]) .dp-pay-option-name {
    font-size: 18px;
  }

  .drop-page:not(.is-auction) .dp-os-body:has([data-os-payment-method="crypto"]) .dp-pay-option-sub {
    font-size: 13.5px;
  }

  .drop-page:not(.is-auction) .dp-os-body:has([data-os-payment-method="crypto"]) .dp-pay-note {
    font-size: 13px;
    margin-top: 10px;
  }

  .drop-page:not(.is-auction) .checkout-panel:has([data-os-payment-method="crypto"]) > .checkout-step-content > .dp-panel-nav:last-child .dp-btn {
    min-height: 52px;
    font-size: 15px;
  }

  .checkout-panel > .dc-pay-root,
  .checkout-step-content > .dc-pay-root,
  .dc-panel-fill > .dc-pay-root {
    --dc-qr-size: clamp(215px, min(21.5vh, 15.5vw), 292px);
    gap: clamp(13px, 1.55vh, 20px);
  }

  .dc-pay-title {
    font-size: 36px;
  }

  .dc-pay-title-row .dp-step-number {
    width: 34px;
    height: 34px;
    font-size: 15px;
  }

  .dc-summary-card {
    padding: clamp(18px, 1.95vh, 24px) clamp(18px, 1.6vw, 24px);
    gap: clamp(11px, 1.3vh, 16px);
  }

  .dc-sum-kicker {
    font-size: 12px;
  }

  .dc-sum-thumb {
    width: 50px;
    height: 50px;
  }

  .dc-sum-item-title,
  .dc-sum-item-price {
    font-size: 15.5px;
  }

  .dc-sum-item-sub {
    font-size: 12.5px;
  }

  .dc-sum-line {
    font-size: 13.5px;
  }

  .dc-sum-total-label {
    font-size: 15.5px;
  }

  .dc-sum-total-amt {
    font-size: 22px;
  }

  .dc-sum-total-sub {
    font-size: 11.5px;
  }

  .dc-rail-btn {
    height: clamp(46px, 4.6vh, 52px);
    font-size: 14.5px;
  }

  .dc-back-btn,
  .dc-connect-cta,
  .dc-orders-cta {
    min-height: 54px;
    font-size: 15px;
  }
}

/* ── Phone Responsive Layout (<= 680px) ── */
@media (max-width: 680px) {
  .drop-page.phone-checkout .dc-bottom-nav,
  .drop-page.phone-checkout .dc-receipt-actions {
    display: none;
  }

  .drop-page.phone-checkout .dp-os-body:has([data-os-payment-method="crypto"]) .dp-section-card:last-child {
    flex: 0 0 auto;
  }

  .drop-page.phone-checkout .dp-os-body:has([data-os-payment-method="crypto"]) .dp-pay-options {
    flex: 0 0 auto;
    grid-auto-rows: auto;
    gap: 10px;
  }

  .drop-page.phone-checkout .dp-os-body:has([data-os-payment-method="crypto"]) .dp-pay-option {
    min-height: 98px;
    padding: 14px 16px;
    gap: 12px;
    border-radius: 18px;
  }

  .drop-page.phone-checkout .dp-pay-option-sub {
    flex: 0 0 auto;
    width: 100%;
  }

  .drop-page.phone-checkout .dc-pay-root {
    height: auto;
    min-height: 0;
    justify-content: flex-start;
  }

  /* Fill tall phones (e.g. iPhone Pro Max) evenly above the fixed bottom bar
     so there is no large empty void below the product card. */
  .drop-page.phone-checkout .dc-receipt-root {
    height: auto;
    min-height: calc(100vh - 55px - var(--dp-phone-action-clearance, 134px) - 24px);
    min-height: calc(100dvh - 55px - var(--dp-phone-action-clearance, 134px) - 24px);
    justify-content: space-between;
    gap: clamp(10px, 1.7vh, 18px);
    padding-bottom: 4px;
  }

  .drop-page.phone-checkout .dc-gray-card {
    flex: 0 0 auto;
  }

  .dc-pay-head {
    align-items: center;
  }

  .dc-card-top {
    flex-direction: column;
    align-items: stretch;
  }

  .dc-tok-group {
    width: 100%;
  }

  .dc-qr-grid {
    grid-template-columns: 1fr;
    gap: 10px;
    margin: 0;
  }

  .dc-qr-host {
    justify-content: center;
  }

  .dc-qr-box {
    width: 156px;
    height: 156px;
    margin: 0 auto;
    padding: 8px;
  }

  .dc-info-col {
    min-height: 0;
    height: auto;
    grid-template-rows: auto auto;
  }

  .dc-white-field {
    padding: 10px 12px;
  }

  .dc-addr-val {
    font-size: 11px;
  }

  .dc-receipt-hero {
    padding: clamp(10px, 2.4vh, 26px) 0 clamp(6px, 1.4vh, 14px);
    gap: clamp(8px, 1.3vh, 13px);
    flex: 1 1 auto;
    justify-content: center;
  }

  .dc-receipt-icon {
    width: clamp(58px, 7.6vh, 72px);
    height: clamp(58px, 7.6vh, 72px);
  }

  .dc-receipt-check-svg {
    width: clamp(26px, 3.4vh, 32px);
    height: clamp(26px, 3.4vh, 32px);
  }

  .dc-receipt-hero .dc-receipt-title,
  .dc-receipt-title {
    margin-top: 6px;
    font-size: clamp(23px, 6vw, 28px);
    line-height: 1.08;
    letter-spacing: 0.015em;
  }

  .dc-receipt-body {
    gap: clamp(10px, 1.65vh, 16px);
  }

  .dc-progress-card,
  .dc-tx-card,
  .dc-r-order-strip {
    padding: clamp(11px, 1.6vh, 16px) 14px;
  }

  .dc-r-cell {
    padding: clamp(10px, 1.5vh, 15px) 13px;
  }

  .dc-receipt-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(8px, 1.2vh, 12px);
  }

  .dc-tx-hash-row {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .dc-tx-actions {
    justify-content: flex-start;
  }

  .dc-ev-grid {
    grid-template-columns: 1fr;
  }

  .dc-modal-backdrop {
    align-items: flex-end;
    padding: 0;
  }

  .dc-modal-card {
    max-width: 100%;
    border-radius: 26px 26px 0 0;
    animation: dcSheetSlideUp 0.25s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  }

  .dc-modal-handle {
    display: block;
  }

  .dc-modal-body {
    padding: 14px 16px max(18px, env(safe-area-inset-bottom));
    max-height: 85vh;
  }
}

@media (max-width: 350px) {
  .dc-receipt-grid {
    grid-template-columns: 1fr;
  }
}

/* Wide desktops with limited height (27-inch scaling): keep Step 3 payment
   options and Step 4 crypto card slightly tighter so Back / Continue stay inside
   the shell instead of sitting below the fold. */
@media (min-width: 1600px) and (min-height: 1100px) and (max-height: 1300px) {
  .drop-page:not(.is-auction) .dp-os-body:has([data-os-payment-method="crypto"]) {
    padding: clamp(8px, 1vh, 12px) clamp(13px, 1.2vw, 18px);
    gap: 4px;
  }

  .drop-page:not(.is-auction) .dp-os-body:has([data-os-payment-method="crypto"]) .dp-step-head {
    margin-bottom: 4px;
  }

  .drop-page:not(.is-auction) .dp-os-body:has([data-os-payment-method="crypto"]) .dp-section-card {
    padding: clamp(8px, 0.9vh, 12px) clamp(12px, 1.15vw, 16px);
    margin-bottom: 6px;
  }

  .drop-page:not(.is-auction) .dp-os-body:has([data-os-payment-method="crypto"]) .dp-pay-options {
    gap: 7px;
  }

  .drop-page:not(.is-auction) .dp-os-body:has([data-os-payment-method="crypto"]) .dp-pay-option {
    min-height: 46px;
    padding: clamp(6px, 0.75vh, 10px) clamp(12px, 1.2vw, 16px);
  }

  .drop-page:not(.is-auction) .dp-os-body:has([data-os-payment-method="crypto"]) .dp-pay-option-name {
    font-size: 16px;
  }

  .drop-page:not(.is-auction) .dp-os-body:has([data-os-payment-method="crypto"]) .dp-pay-option-sub {
    font-size: 12px;
  }

  .drop-page:not(.is-auction) .dp-os-body:has([data-os-payment-method="crypto"]) .dp-totals .totals-row {
    padding: 2px 0;
  }

  .drop-page:not(.is-auction) .checkout-panel:has([data-os-payment-method="crypto"]) > .checkout-step-content > .dp-panel-nav:last-child {
    padding-top: 8px;
  }

  .checkout-panel > .dc-pay-root,
  .checkout-step-content > .dc-pay-root,
  .dc-panel-fill > .dc-pay-root {
    gap: 10px;
  }

  .dc-summary-card {
    padding: clamp(10px, 1.2vh, 14px) clamp(12px, 1.2vw, 16px);
    gap: clamp(6px, 0.8vh, 9px);
  }

  .dc-gray-card {
    padding: clamp(11px, 1.35vh, 17px) clamp(12px, 1.35vw, 18px);
    gap: clamp(9px, 1.2vh, 14px);
  }

  .dc-bottom-nav {
    padding-top: 2px;
  }
}

/* Centered, on-brand crypto initialization state. */
.dp-crypto-loading {
  flex: 1 1 auto;
  min-height: 420px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 14px;
  padding: 40px 24px;
  animation: dcAppear 260ms cubic-bezier(.22, 1, .36, 1) both;
}

.dp-crypto-loading-orbit {
  position: relative;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  border: 2px solid #e8e8ec;
  border-top-color: #111111;
  border-right-color: #111111;
  animation: dcSpin 900ms linear infinite;
  display: grid;
  place-items: center;
}

.dp-crypto-loading-core {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #111111;
  animation: dcPulseDot 1.4s ease-in-out infinite;
}

.dp-crypto-loading-title {
  margin-top: 4px;
  font: 800 19px/1.25 var(--dp-font-body, system-ui, sans-serif);
  color: #111111;
  letter-spacing: -.01em;
}

.dp-crypto-loading-text {
  margin: 0;
  max-width: 320px;
  font: 500 13.5px/1.5 var(--dp-font-body, system-ui, sans-serif);
  color: #737373;
}

.dp-crypto-loading-track {
  width: 260px;
  max-width: 70%;
  height: 4px;
  margin-top: 2px;
  border-radius: 999px;
  background: #ededf0;
  overflow: hidden;
}

.dp-crypto-loading-track > span {
  display: block;
  width: 42%;
  height: 100%;
  border-radius: 999px;
  background: #111111;
  animation: dcLoadingSweep 1.4s cubic-bezier(.6, 0, .4, 1) infinite;
}

.dp-crypto-loading-foot {
  font: 600 11px/1.3 var(--dp-font-body, system-ui, sans-serif);
  color: #9a9aa2;
  letter-spacing: .01em;
}

@keyframes dcLoadingSweep {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(340%); }
}

@media (prefers-reduced-motion: reduce) {
  .dp-crypto-loading-orbit,
  .dp-crypto-loading-core,
  .dp-crypto-loading-track > span {
    animation: none !important;
  }

  .dc-receipt-root .dc-receipt-hero,
  .dc-receipt-root .dc-receipt-body > *,
  .dc-receipt-root .dc-receipt-icon,
  .dc-receipt-root .dc-receipt-check-svg path {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
    stroke-dasharray: none !important;
  }

  .dc-conn-ring,
  .dc-conn-orb::before,
  .dc-conn-dots i,
  .dc-modal-card.dc-stage-confirm,
  .dc-modal-card.dc-stage-confirm .dc-conf-connected,
  .dc-modal-card.dc-stage-confirm .dc-conf-box,
  .dc-modal-card.dc-stage-confirm .dc-total-pay-card,
  .dc-modal-card.dc-stage-confirm .dc-final-dest,
  .dc-modal-card.dc-stage-confirm .dc-gas-strip,
  .dc-modal-card.dc-stage-confirm .dc-confirm-pay-btn {
    animation: none !important;
    transform: none !important;
    opacity: 1 !important;
  }
}

/* Step 4 open animation — same staggered entrance language as the other
   checkout steps (header down, summary up, rail left, payment card up, nav up). */
@keyframes dcOpenDown {
  from { opacity: 0; transform: translate3d(0, -14px, 0); }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}

@keyframes dcOpenUp {
  from { opacity: 0; transform: translate3d(0, 16px, 0); }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}

@keyframes dcOpenLeft {
  from { opacity: 0; transform: translate3d(-18px, 0, 0); }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}

#dc-step4-root.dc-open-scene .dc-pay-head {
  animation: dcOpenDown 420ms cubic-bezier(.2, .75, .2, 1) 80ms both;
}

#dc-step4-root.dc-open-scene .dc-summary-card {
  animation: dcOpenUp 460ms cubic-bezier(.2, .75, .2, 1) 150ms both;
}

#dc-step4-root.dc-open-scene .dc-rail-switch {
  animation: dcOpenLeft 420ms cubic-bezier(.2, .75, .2, 1) 240ms both;
}

#dc-step4-root.dc-open-scene .dc-gray-card {
  animation: dcOpenUp 460ms cubic-bezier(.2, .75, .2, 1) 320ms both;
}

#dc-step4-root.dc-open-scene .dc-bottom-nav {
  animation: dcOpenUp 420ms cubic-bezier(.2, .75, .2, 1) 460ms both;
}

@media (prefers-reduced-motion: reduce) {
  #dc-step4-root.dc-open-scene .dc-pay-head,
  #dc-step4-root.dc-open-scene .dc-summary-card,
  #dc-step4-root.dc-open-scene .dc-rail-switch,
  #dc-step4-root.dc-open-scene .dc-gray-card,
  #dc-step4-root.dc-open-scene .dc-bottom-nav {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }

  .dc-party-confetti {
    display: none !important;
  }
}

.dc-party-confetti {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100dvh;
  max-width: none;
  max-height: none;
  pointer-events: none;
  z-index: 95;
}

.dc-manual-link {
  margin-left: auto;
  border: 0;
  background: transparent;
  padding: 0;
  color: #525252;
  font-size: 11px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
  white-space: nowrap;
}

.dc-manual-link:hover {
  color: #111111;
}

.dc-manual-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
}

.dc-manual-input {
  flex: 1 1 auto;
  min-width: 0;
  height: 36px;
  padding: 0 11px;
  border: 1px solid #d4d4d8;
  border-radius: 10px;
  background: #ffffff;
  color: #111111;
  font-size: 11.5px;
}

.dc-manual-input:focus {
  outline: 2px solid rgba(17, 17, 17, 0.14);
  border-color: #111111;
}

.dc-manual-btn {
  flex: 0 0 auto;
  height: 36px;
  padding: 0 13px;
  border: 0;
  border-radius: 10px;
  background: #111111;
  color: #ffffff;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.dc-manual-btn:disabled {
  opacity: 0.6;
  cursor: wait;
}

