/* ==========================================================================
   Hh AI — Apple Style Checkout Page
   Clean, Minimal, Shortest Path, Soft Shadows & Clear Radios
   ========================================================================== */

.is-checkout {
  background-color: var(--apple-canvas, #f5f5f7);
  color: var(--apple-text-primary, #1d1d1f);
}

.is-checkout main {
  max-width: 1080px;
  margin: 0 auto;
  padding: 40px 24px 80px;
}

.is-checkout main > :not(#checkout-page):not(footer) {
  display: none !important;
}

.is-checkout .hero,
.is-checkout .trust-ribbon {
  display: none !important;
}

.checkout-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #f5f5f7;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 999px;
  padding: 8px 18px;
  color: var(--apple-text-primary, #1d1d1f);
  text-decoration: none;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 600;
  margin-bottom: 22px;
  cursor: pointer;
  transition: all 0.2s var(--apple-ease, ease);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.checkout-back:hover {
  background: #e8e8ed;
  color: var(--apple-link, #0071e3);
  text-decoration: none;
  transform: translateX(-3px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.checkout-back svg {
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.checkout-back:hover svg {
  transform: translateX(-2px);
}

.checkout-title {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  margin-bottom: 28px;
}

.checkout-eyebrow {
  font-size: 11px;
  letter-spacing: 1.5px;
  color: var(--apple-text-secondary, #86868b);
  font-weight: 700;
  display: block;
}

.checkout-title h1 {
  font-size: 38px;
  letter-spacing: -0.025em;
  margin: 6px 0 0;
  line-height: 1.15;
  color: var(--apple-text-primary, #1d1d1f);
  font-weight: 700;
}

.checkout-title > span {
  font-size: 14px;
  color: var(--apple-text-secondary, #86868b);
}

/* 结账步骤 */
.checkout-steps {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--apple-surface, #ffffff);
  border: 1px solid var(--apple-border, rgba(0, 0, 0, 0.08));
  border-radius: 16px;
  padding: 16px 24px;
  margin-bottom: 28px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.checkout-steps > span {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--apple-text-secondary, #86868b);
  font-size: 14px;
  font-weight: 500;
}

.checkout-steps b {
  width: 26px;
  height: 26px;
  border: 1px solid var(--apple-border, rgba(0, 0, 0, 0.12));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
}

.checkout-steps .current {
  color: var(--apple-text-primary, #1d1d1f);
  font-weight: 600;
}

.checkout-steps .current b {
  background: var(--apple-text-primary, #1d1d1f);
  color: #ffffff;
  border-color: var(--apple-text-primary, #1d1d1f);
}

.checkout-steps i {
  height: 1px;
  background: var(--apple-border, rgba(0, 0, 0, 0.08));
  flex: 1;
}

/* 结账双栏布局 */
.checkout-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(360px, 1fr);
  gap: 28px;
  align-items: start;
}

.checkout-main {
  display: grid;
  gap: 24px;
}

.checkout-panel {
  background: var(--apple-surface, #ffffff);
  border: 1px solid var(--apple-border, rgba(0, 0, 0, 0.08));
  border-radius: 20px;
  padding: 28px 30px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
}

.checkout-panel h2 {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin: 0 0 20px;
  color: var(--apple-text-primary, #1d1d1f);
}

.checkout-product {
  display: flex;
  gap: 20px;
  padding: 20px;
  background: var(--apple-surface-secondary, #fbfbfd);
  border: 1px solid var(--apple-border-light, rgba(0, 0, 0, 0.04));
  border-radius: 16px;
  align-items: center;
}

.checkout-logo {
  width: 60px;
  height: 60px;
  border-radius: 14px;
  background: var(--apple-text-primary, #1d1d1f);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.checkout-logo svg {
  width: 32px;
  height: 32px;
}

.checkout-product h3 {
  font-size: 20px;
  font-weight: 700;
  margin: 4px 0;
  color: var(--apple-text-primary, #1d1d1f);
  letter-spacing: -0.02em;
}

.checkout-product p {
  font-size: 13px;
  color: var(--apple-text-secondary, #86868b);
  margin: 0 0 8px;
}

.checkout-product strong {
  font-size: 22px;
  font-weight: 700;
  color: var(--apple-text-primary, #1d1d1f);
  font-variant-numeric: tabular-nums;
}

.checkout-product small {
  font-size: 12px;
  color: var(--apple-text-secondary, #86868b);
  font-weight: 400;
}

.checkout-quantity {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 20px;
  font-size: 14px;
  font-weight: 500;
  color: var(--apple-text-primary, #1d1d1f);
}

.checkout-quantity input {
  width: 80px;
  padding: 8px 12px;
  border: 1px solid var(--apple-border, rgba(0, 0, 0, 0.12));
  border-radius: 10px;
  font-family: inherit;
  font-size: 14px;
  text-align: center;
  outline: none;
}

.checkout-quantity input:focus {
  border-color: var(--apple-text-primary, #1d1d1f);
}

.checkout-email {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--apple-text-primary, #1d1d1f);
}

.checkout-email input {
  display: block;
  width: 100%;
  margin-top: 8px;
  padding: 14px 16px;
  font-family: inherit;
  font-size: 15px;
  border: 1px solid var(--apple-border, rgba(0, 0, 0, 0.12));
  border-radius: 12px;
  background: var(--apple-surface-secondary, #fbfbfd);
  color: var(--apple-text-primary, #1d1d1f);
  outline: none;
  transition: all 0.2s;
}

.checkout-email input:focus {
  background: #ffffff;
  border-color: var(--apple-text-primary, #1d1d1f);
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.05);
}

.checkout-info {
  margin-top: 20px;
  background: var(--apple-surface-secondary, #fbfbfd);
  border: 1px solid var(--apple-border-light, rgba(0, 0, 0, 0.04));
  padding: 16px 20px;
  border-radius: 14px;
  font-size: 13px;
  color: var(--apple-text-secondary, #86868b);
  line-height: 1.6;
}

.checkout-info strong {
  display: block;
  color: var(--apple-text-primary, #1d1d1f);
  font-weight: 600;
  margin-bottom: 4px;
}

.checkout-info p {
  margin: 0;
}

/* 结算汇总 (右侧浮动面板) */
.checkout-summary {
  position: sticky;
  top: 76px;
}

.receipt-line {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  color: var(--apple-text-secondary, #86868b);
  margin: 14px 0;
}

.receipt-line span:last-child {
  color: var(--apple-text-primary, #1d1d1f);
  font-weight: 500;
}

.guarantee-text {
  color: #10b981 !important;
  font-weight: 600 !important;
}

.checkout-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-top: 20px;
  margin-top: 20px;
  border-top: 1px solid var(--apple-border, rgba(0, 0, 0, 0.08));
}

.checkout-total > span {
  font-size: 15px;
  font-weight: 600;
  color: var(--apple-text-primary, #1d1d1f);
}

.checkout-total strong {
  font-size: 32px;
  font-weight: 700;
  color: var(--apple-text-primary, #1d1d1f);
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.checkout-payment-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--apple-text-primary, #1d1d1f);
  margin: 24px 0 12px;
}

/* 支付方式按钮网格 (简约卡片，参考 Image 2) */
.payment-options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 20px;
  width: 100%;
  box-sizing: border-box;
}

.payment-choice-simple {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 12px 14px;
  min-height: 44px;
  min-width: 0;
  box-sizing: border-box;
  border: 1.5px solid var(--apple-border, rgba(0, 0, 0, 0.12));
  border-radius: 8px;
  background: #ffffff;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
  user-select: none;
}

.payment-choice-simple:hover {
  border-color: rgba(0, 0, 0, 0.28);
  background: #fafafc;
  transform: translateY(-1px);
}

.payment-choice-simple:active {
  transform: scale(0.985);
}

.payment-choice-simple input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

.payment-choice-indicator {
  display: none !important;
}

.payment-badge-rec {
  display: none !important;
}

.payment-choice-simple:has(input:checked),
.payment-choice-simple.is-selected {
  border-color: #0071e3 !important;
  background: rgba(0, 113, 227, 0.05) !important;
  box-shadow: 0 1px 6px rgba(0, 113, 227, 0.12);
}

.payment-choice-text {
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

.payment-choice-text strong,
.payment-choice-title {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--apple-text-primary, #1d1d1f);
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
}

.payment-choice-simple:has(input:checked) .payment-choice-text strong,
.payment-choice-simple:has(input:checked) .payment-choice-title,
.payment-choice-simple.is-selected .payment-choice-text strong,
.payment-choice-simple.is-selected .payment-choice-title {
  color: #0071e3;
  font-weight: 700;
}

.payment-choice-text small,
.payment-choice-sub {
  display: none !important;
}

.payment-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 12.5px;
  color: var(--apple-text-secondary, #86868b);
  margin: 18px 0;
  line-height: 1.5;
  cursor: pointer;
}

.payment-check input {
  margin-top: 2px;
  accent-color: var(--apple-text-primary, #1d1d1f);
}

.checkout-panel .primary.wide {
  width: 100%;
  padding: 14px 24px;
  border-radius: var(--apple-radius-pill, 980px);
  font-size: 15px;
  font-weight: 600;
  background: var(--apple-text-primary, #1d1d1f);
  color: #ffffff;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
  transition: transform 0.22s var(--apple-ease, ease), background-color 0.22s, box-shadow 0.22s;
  will-change: transform;
}

.checkout-panel .primary.wide:hover {
  background: #000000;
  transform: translateY(-1.5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.checkout-panel .primary.wide:active {
  transform: scale(0.97);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
  transition: transform 0.08s cubic-bezier(0.25, 1, 0.5, 1);
}

.checkout-summary-note {
  font-size: 12px;
  color: var(--apple-text-secondary, #86868b);
  text-align: center;
  margin: 16px 0 0;
}

.payment-error {
  color: #e11d48;
  font-size: 13px;
  margin-bottom: 12px;
  min-height: 18px;
}

/* 响应式 */
@media (max-width: 860px) {
  .checkout-layout {
    grid-template-columns: 1fr;
  }
  .checkout-summary {
    position: static;
  }
  .checkout-title h1 {
    font-size: 30px;
  }
  .checkout-title > span {
    display: none;
  }
}

/* ==========================================================================
   等待支付与实时状态轮询卡片 (1步直达收银台与自动出密)
   ========================================================================== */
.status-pulse-dot {
  width: 10px;
  height: 10px;
  background-color: #f59e0b;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.7);
  animation: waiting-pulse 1.8s infinite;
  flex-shrink: 0;
}

@keyframes waiting-pulse {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 8px rgba(245, 158, 11, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(245, 158, 11, 0);
  }
}

.waiting-pay-action-box {
  background: var(--apple-surface-secondary, #fbfbfd);
  border: 1px solid var(--apple-border-light, rgba(0, 0, 0, 0.04));
  border-radius: 16px;
  padding: 22px;
  margin: 20px 0;
  text-align: center;
}

.btn-open-cashier-direct {
  display: block !important;
  text-align: center;
  text-decoration: none !important;
  font-size: 16px !important;
  padding: 15px 24px !important;
  box-sizing: border-box;
}

.waiting-pay-note {
  font-size: 12.5px;
  color: var(--apple-text-secondary, #86868b);
  margin-top: 10px;
}

.waiting-polling-status {
  margin: 20px 0;
}

.polling-status-indicator {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #166534;
  padding: 12px 18px;
  border-radius: 12px;
  font-size: 13.5px;
  font-weight: 500;
}

.polling-spin-icon {
  display: inline-block;
  font-size: 15px;
}

/* ==========================================================================
   参考发卡平台标准结算页风格 (购买方式选择、双列邮箱密码、填写说明)
   ========================================================================== */
.purchase-pills-row {
  display: flex;
  gap: 10px;
  margin: 14px 0 20px;
}

.purchase-pill-btn {
  border: 1.5px solid var(--apple-border, rgba(0, 0, 0, 0.1));
  background: #f5f5f7;
  color: #1d1d1f;
  border-radius: 980px;
  padding: 8px 18px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s var(--apple-ease, ease);
}

.purchase-pill-btn:hover {
  border-color: rgba(0, 0, 0, 0.2);
  background: #ebebed;
}

.purchase-pill-btn.active {
  background: #0071e3;
  color: #ffffff;
  border-color: #0071e3;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(0, 113, 227, 0.25);
}

.checkout-dual-inputs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 18px;
}

@media (max-width: 680px) {
  .checkout-dual-inputs {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}

.checkout-field-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--apple-text-primary, #1d1d1f);
  margin-bottom: 8px;
}

.checkout-field-input {
  display: block;
  width: 100%;
  padding: 13px 16px;
  font-family: inherit;
  font-size: 14.5px;
  border: 1px solid var(--apple-border, rgba(0, 0, 0, 0.12));
  border-radius: 12px;
  background: var(--apple-surface-secondary, #fbfbfd);
  color: var(--apple-text-primary, #1d1d1f);
  outline: none;
  box-sizing: border-box;
  transition: all 0.2s var(--apple-ease, ease);
}

.checkout-field-input:focus {
  background: #ffffff;
  border-color: #0071e3;
  box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.12);
}

.checkout-guide-note {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 14px;
  padding: 16px 20px;
  font-size: 13px;
  color: #166534;
  line-height: 1.7;
  margin-top: 18px;
}

.checkout-guide-note strong {
  display: block;
  color: #14532d;
  font-size: 13.5px;
  margin-bottom: 8px;
  font-weight: 700;
}

.checkout-guide-note ul {
  margin: 0;
  padding-left: 20px;
}

.checkout-guide-note li {
  margin-bottom: 6px;
}

.checkout-guide-note li:last-child {
  margin-bottom: 0;
}

.checkout-coupon-card {
  margin-top: 20px;
}

.summary-disclaimer {
  background: var(--apple-surface-secondary, #fbfbfd);
  border: 1px solid var(--apple-border-light, rgba(0, 0, 0, 0.04));
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 12px;
  color: var(--apple-text-secondary, #86868b);
  margin-bottom: 18px;
  line-height: 1.5;
}

/* ==========================================================================
   Hh AI In-Page Unified Apple Cashier (站内统一独立黑金/苹果收银台)
   ========================================================================== */
.cashier-main-panel {
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
}

.cashier-header {
  margin-bottom: 22px;
}

.cashier-brand-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 12px;
}

.cashier-brand-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f5f5f7;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 999px;
  padding: 5px 14px;
  font-size: 12.5px;
  font-weight: 600;
  color: #1d1d1f;
}

.cashier-countdown-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
  border-radius: 999px;
  padding: 5px 14px;
  font-size: 12.5px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  animation: timer-pulse 2s infinite;
}

@keyframes timer-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.82; }
}

.cashier-subtitle {
  font-size: 14px;
  color: var(--apple-text-secondary, #86868b);
  margin-top: 6px;
  line-height: 1.5;
}

/* 收银台双公链网络选择器 (并排排放，币安链置顶推荐) */
.cashier-network-selector-box {
  margin: 18px 0 20px;
}

.selector-header-title {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--apple-text-primary, #1d1d1f);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.cashier-chains-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.cashier-chain-tab {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 13px 15px;
  background: #ffffff;
  border: 1.5px solid var(--apple-border, rgba(0, 0, 0, 0.09));
  border-radius: 14px;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  transition: all 0.2s var(--apple-ease, ease);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.02);
}

.cashier-chain-tab:hover {
  border-color: rgba(0, 113, 227, 0.4);
  background: #fbfbfd;
  transform: translateY(-1px);
}

.cashier-chain-tab.active {
  border-color: #0071e3;
  background: rgba(0, 113, 227, 0.04);
  box-shadow: 0 3px 12px rgba(0, 113, 227, 0.12);
}

.tab-badge-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 9px;
}

.badge-rec-pill {
  font-size: 11px;
  font-weight: 700;
  color: #d9381e;
  background: rgba(255, 59, 48, 0.1);
  border: 1px solid rgba(255, 59, 48, 0.22);
  padding: 2.5px 8px;
  border-radius: 999px;
  letter-spacing: 0.2px;
}

.badge-normal-pill {
  font-size: 11px;
  font-weight: 600;
  color: #64748b;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  padding: 2.5px 8px;
  border-radius: 999px;
}

.chain-check-icon {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  border: 1.5px solid #d1d1d6;
  color: transparent;
  transition: all 0.2s;
}

.cashier-chain-tab.active .chain-check-icon {
  background: #0071e3;
  border-color: #0071e3;
  color: #ffffff;
}

.tab-main-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.tab-chain-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  flex-shrink: 0;
}

.tag-bnb {
  background: #fef08a;
  color: #854d0e;
  border: 1px solid #fde047;
}

.tag-trx {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.tab-text-wrap {
  flex: 1;
  min-width: 0;
}

.tab-text-wrap strong {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  color: #1d1d1f;
  margin-bottom: 2px;
}

.tab-text-wrap small {
  display: block;
  font-size: 11px;
  color: #86868b;
  line-height: 1.35;
}

@media (max-width: 640px) {
  .cashier-chains-grid {
    grid-template-columns: 1fr;
  }
}

/* 金额大卡片 */
.cashier-bill-card {
  background: linear-gradient(135deg, #0d1117 0%, #161b22 100%);
  border: 1px solid #30363d;
  border-radius: 18px;
  padding: 22px 24px;
  color: #ffffff;
  margin-bottom: 20px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.15);
}

.cashier-bill-amount-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 16px;
}

.crypto-currency-tag {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #8b949e;
  display: block;
  margin-bottom: 4px;
}

.crypto-val-wrap {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}

.crypto-number {
  font-size: 38px;
  font-weight: 800;
  color: #2ea043;
  letter-spacing: -0.5px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.crypto-unit {
  font-size: 18px;
  font-weight: 700;
  color: #56d364;
}

.btn-copy-mini {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #e6edf3;
  border-radius: 8px;
  font-size: 12px;
  padding: 4px 10px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-copy-mini:hover {
  background: rgba(255, 255, 255, 0.22);
}

.cashier-fiat-amount {
  text-align: right;
}

.fiat-label {
  font-size: 12px;
  color: #8b949e;
  display: block;
  margin-bottom: 4px;
}

.fiat-value {
  font-size: 20px;
  font-weight: 700;
  color: #f0f6fc;
}

.cashier-network-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 14px;
}

.network-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #e6edf3;
}

.network-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #388bfd;
  box-shadow: 0 0 8px #388bfd;
}

.network-warn-pill {
  background: rgba(210, 153, 34, 0.15);
  border: 1px solid rgba(210, 153, 34, 0.3);
  color: #e3b341;
  font-size: 12px;
  padding: 3px 10px;
  border-radius: 999px;
  font-weight: 600;
}

/* 核心扫码与地址并排布局 */
.cashier-qr-address-card {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 22px;
  background: var(--apple-surface-secondary, #fbfbfd);
  border: 1px solid var(--apple-border, rgba(0, 0, 0, 0.1));
  border-radius: 18px;
  padding: 22px;
  margin-bottom: 20px;
  align-items: center;
}

@media (max-width: 680px) {
  .cashier-qr-address-card {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

.cashier-qr-col {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cashier-qr-frame {
  position: relative;
  width: 180px;
  height: 180px;
  background: #ffffff;
  border-radius: 14px;
  padding: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
}

.cashier-qr-frame img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.qr-usdt-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 32px;
  height: 32px;
  background: #26a17b;
  color: #ffffff;
  border: 3px solid #ffffff;
  border-radius: 50%;
  font-weight: 900;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.cashier-qr-caption {
  font-size: 12px;
  color: var(--apple-text-secondary, #86868b);
  margin-top: 10px;
  font-weight: 500;
}

.cashier-address-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.address-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 600;
  color: var(--apple-text-primary, #1d1d1f);
}

.address-safe-tag {
  color: #166534;
  font-size: 12px;
  font-weight: 600;
}

.address-box-display {
  background: #ffffff;
  border: 1px solid var(--apple-border, rgba(0, 0, 0, 0.12));
  border-radius: 12px;
  padding: 13px 15px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 13px;
  font-weight: 700;
  color: #0f172a;
  word-break: break-all;
  line-height: 1.45;
  user-select: all;
  border-left: 4px solid #0071e3;
}

.btn-copy-address-prominent {
  font-size: 14.5px !important;
  font-weight: 600 !important;
  padding: 13px 18px !important;
  background: #0071e3 !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 12px !important;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px rgba(0, 113, 227, 0.22);
}

.btn-copy-address-prominent:hover {
  background: #0077ed !important;
  transform: translateY(-1px);
}

.copy-success-tip {
  font-size: 12.5px;
  font-weight: 600;
  color: #166534;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  padding: 7px 12px;
  border-radius: 8px;
  text-align: center;
  animation: tip-fade 0.3s ease;
}

@keyframes tip-fade {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* 转账注意事项 */
.cashier-notice-card {
  background: #fffbeb;
  border: 1px solid #fef3c7;
  border-radius: 14px;
  padding: 14px 18px;
  font-size: 12.5px;
  color: #92400e;
  line-height: 1.6;
  margin-bottom: 20px;
}

.cashier-notice-card .notice-title {
  font-weight: 700;
  color: #78350f;
  margin-bottom: 5px;
}

.cashier-notice-card ul {
  margin: 0;
  padding-left: 18px;
}

.cashier-notice-card li {
  margin-bottom: 3px;
}

.cashier-notice-card li:last-child {
  margin-bottom: 0;
}

/* 状态与模拟交互 */
.cashier-status-bar {
  background: var(--apple-surface-secondary, #fbfbfd);
  border: 1px solid var(--apple-border-light, rgba(0, 0, 0, 0.04));
  border-radius: 18px;
  padding: 20px;
  margin-bottom: 20px;
}

.polling-indicator-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 500;
  color: #0f5132;
  background: #d1e7dd;
  border: 1px solid #badbcc;
  padding: 9px 16px;
  border-radius: 10px;
  margin-bottom: 16px;
}

.status-pulse-dot-green {
  width: 9px;
  height: 9px;
  background: #198754;
  border-radius: 50%;
  animation: pulse-dot 1.5s infinite ease-in-out;
}

@keyframes pulse-dot {
  0%, 100% { transform: scale(0.9); opacity: 0.6; }
  50% { transform: scale(1.25); opacity: 1; }
}

.cashier-action-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.btn-simulate-success {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
  color: #ffffff !important;
  font-size: 15.5px !important;
  font-weight: 700 !important;
  padding: 15px 22px !important;
  border-radius: 14px !important;
  border: none !important;
  box-shadow: 0 4px 18px rgba(16, 185, 129, 0.35) !important;
  cursor: pointer;
  transition: all 0.2s ease !important;
  text-align: center;
}

.btn-simulate-success:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 22px rgba(16, 185, 129, 0.45) !important;
}

.cashier-sub-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.btn-refresh-check {
  flex: 1;
  min-width: 180px;
}

.btn-cashier-cancel {
  background: transparent;
  border: none;
  color: var(--apple-text-secondary, #86868b);
  font-size: 13px;
  cursor: pointer;
  padding: 8px 12px;
}

.btn-cashier-cancel:hover {
  color: #1d1d1f;
  text-decoration: underline;
}

@keyframes hh-spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}




.btn-confirm-payment {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
  color: #ffffff !important;
  font-size: 15.5px !important;
  font-weight: 700 !important;
  padding: 15px 22px !important;
  border-radius: 14px !important;
  border: none !important;
  box-shadow: 0 4px 18px rgba(16, 185, 129, 0.35) !important;
  cursor: pointer;
  transition: all 0.2s ease !important;
  text-align: center;
  width: 100%;
  display: block;
}

.btn-confirm-payment:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 22px rgba(16, 185, 129, 0.45) !important;
}

.btn-confirm-payment:disabled {
  opacity: 0.8 !important;
  cursor: wait !important;
  transform: none !important;
}

/* ==========================================================================
   Daitu AI 1:1 In-Site Alipay Cashier Layout (Image 2 Match)
   ========================================================================== */
.is-alipay-cashier .checkout-back,
.is-alipay-cashier .checkout-title,
.is-alipay-cashier .checkout-steps {
  display: none !important;
}

.is-alipay-cashier main {
  padding-top: 24px !important;
  padding-bottom: 48px !important;
}

.daitu-page {
  width: min(100% - 24px, 440px);
  margin: 28px auto 48px;
}

.daitu-card {
  overflow: hidden;
  border: 1px solid #e3e9ee;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 14px 36px rgba(31, 50, 65, 0.1);
  box-sizing: border-box;
}

.daitu-head {
  padding: 20px 22px;
  background: #1677ff;
  color: #ffffff;
  text-align: left;
}

.daitu-head-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.daitu-brand {
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.2;
}

.daitu-badge {
  padding: 5px 10px;
  border-radius: 999px;
  background: #ffb400;
  color: #ffffff;
  font-size: 12px;
  white-space: nowrap;
  font-weight: 600;
  line-height: 1;
}

.daitu-hint {
  margin: 9px 0 0;
  opacity: 0.9;
  font-size: 13px;
  color: #ffffff;
  line-height: 1.4;
}

.daitu-body {
  padding: 22px;
  text-align: center;
}

.daitu-amount-label {
  color: #7b8791;
  font-size: 14px;
  line-height: 1.2;
}

.daitu-amount {
  margin-top: 4px;
  color: #e83f3f;
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.5px;
  line-height: 1.2;
}

.daitu-qr-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 22px auto 14px;
  padding: 8px;
  border: 4px solid #16b866;
  border-radius: 12px;
  background: #ffffff;
  box-sizing: border-box;
}

.daitu-qr {
  display: block;
  width: 248px;
  height: 248px;
  max-width: 62vw;
  max-height: 62vw;
  object-fit: contain;
}

.daitu-tip {
  margin: 0 auto;
  color: #0878d1;
  font-size: 14px;
  line-height: 1.7;
  text-decoration: none;
  display: block;
  cursor: pointer;
  transition: opacity 0.2s;
}

.daitu-tip:hover {
  text-decoration: underline;
  opacity: 0.85;
}

.daitu-status {
  margin-top: 16px;
  color: #687782;
  font-size: 13px;
  line-height: 1.4;
}

.daitu-countdown {
  margin-top: 5px;
  color: #e83f3f;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.2;
}

.daitu-order {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid #edf0f2;
  color: #87939d;
  font-size: 12px;
  word-break: break-all;
  line-height: 1.4;
}

.daitu-order strong {
  color: #384550;
  font-weight: 600;
}

.daitu-link {
  display: inline-block;
  margin-top: 17px;
  color: #1677ff;
  font-size: 13px;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.2s;
}

.daitu-link:hover {
  text-decoration: underline;
  color: #0958d9;
}

.daitu-foot {
  padding: 14px 22px;
  border-top: 1px solid #edf0f2;
  background: #fafbfc;
  color: #98a3ac;
  font-size: 12px;
  text-align: center;
  line-height: 1.4;
}

/* ==========================================================================
   In-Site Seamless USDT Cashier (No external redirect)
   ========================================================================== */
.is-usdt-cashier .checkout-back,
.is-usdt-cashier .checkout-title,
.is-usdt-cashier .checkout-steps {
  display: none !important;
}

.is-usdt-cashier main {
  padding-top: 24px !important;
  padding-bottom: 48px !important;
}

.usdt-insite-container {
  width: min(100% - 24px, 480px);
  margin: 24px auto 48px;
}

.usdt-insite-card {
  overflow: hidden;
  border: 1px solid #e3e9ee;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 14px 36px rgba(31, 50, 65, 0.1);
  box-sizing: border-box;
}

.usdt-insite-head {
  padding: 18px 22px;
  background: #111827;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.usdt-insite-head-title {
  font-size: 16px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.usdt-insite-head-badge {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #10b981;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}

.usdt-iframe-wrap {
  width: 100%;
  height: 890px;
  position: relative;
  background: #f8fafc;
}

.usdt-iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

.usdt-insite-foot {
  padding: 14px 20px;
  border-top: 1px solid #edf0f2;
  background: #fafbfc;
  color: #98a3ac;
  font-size: 12px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.usdt-foot-link {
  color: #0071e3;
  text-decoration: none;
  font-size: 13px;
  cursor: pointer;
}

.usdt-foot-link:hover {
  text-decoration: underline;
}


