/* 开好啦 Phase 3 UX & Beginner Payment Guide Upgrade */

/* 1. Grouped Payment Tabs on Step 2 */
.pay-groups {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 12px 0 14px;
}
.pay-group-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-3, #94a3b8);
  margin-bottom: 6px;
}
.pay-group-badge {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 999px;
  font-weight: 600;
}
.pay-group-badge.is-usdt {
  background: rgba(16, 185, 129, 0.16);
  color: #34d399;
}
[data-theme="light"] .pay-group-badge.is-usdt {
  background: rgba(16, 185, 129, 0.12);
  color: #047857;
}
.pay-group-badge.is-fiat {
  background: rgba(245, 158, 11, 0.14);
  color: #fbbf24;
}
[data-theme="light"] .pay-group-badge.is-fiat {
  background: rgba(245, 158, 11, 0.12);
  color: #b45309;
}
.pay-groups .pay-tabs {
  margin: 0 !important;
}

/* 2. USDT Beginner 3-Piece Checklist Card */
.usdt-checklist {
  margin: 12px 0;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid rgba(45, 212, 191, 0.28);
  background: rgba(15, 23, 42, 0.65);
  text-align: left;
}
[data-theme="light"] .usdt-checklist {
  background: rgba(240, 253, 250, 0.85);
  border-color: rgba(13, 148, 136, 0.25);
}
.usdt-checklist-title {
  font-size: 13px;
  font-weight: 700;
  color: #2dd4bf;
  margin-bottom: 10px;
}
[data-theme="light"] .usdt-checklist-title {
  color: #0f766e;
}
.usdt-step-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 0;
  border-top: 1px solid rgba(148, 163, 184, 0.14);
}
.usdt-step-row:first-of-type {
  border-top: 0;
  padding-top: 0;
}
.usdt-step-left {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.usdt-step-k {
  font-size: 12px;
  color: var(--text-3, #94a3b8);
}
.usdt-step-v {
  font-size: 14.5px;
  font-weight: 700;
  word-break: break-word;
}
.usdt-step-warn {
  font-size: 12px;
  color: #fbbf24;
  line-height: 1.45;
  margin-top: 2px;
}
[data-theme="light"] .usdt-step-warn {
  color: #b45309;
}

/* 3. Inline Beginner 3-Step Drawer */
.usdt-beginner-guide {
  margin-top: 12px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: rgba(255, 255, 255, 0.03);
  text-align: left;
  overflow: hidden;
}
[data-theme="light"] .usdt-beginner-guide {
  background: rgba(15, 23, 42, 0.025);
  border-color: rgba(15, 23, 42, 0.12);
}
.usdt-beginner-guide summary {
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.usdt-beginner-guide summary::after {
  content: "展开";
  font-size: 11.5px;
  color: #2dd4bf;
  font-weight: 600;
}
.usdt-beginner-guide[open] summary::after {
  content: "收起";
}
.usdt-beginner-body {
  padding: 0 14px 12px;
  font-size: 12.5px;
  line-height: 1.65;
  color: var(--text-2, #cbd5e1);
}
[data-theme="light"] .usdt-beginner-body {
  color: #334155;
}
.usdt-beginner-body ol {
  margin: 6px 0 0;
  padding-left: 18px;
}
.usdt-beginner-body li {
  margin-bottom: 4px;
}

/* 4. USDT Auto-Listen Banner & Collapsible TxID */
.usdt-autolisten {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(16, 185, 129, 0.3);
  background: rgba(16, 185, 129, 0.08);
  margin-bottom: 10px;
}
.usdt-pulse-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #10b981;
  margin-top: 5px;
  flex-shrink: 0;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.6);
  animation: khPulseDot 1.8s infinite;
}
@keyframes khPulseDot {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.6); }
  70% { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}
.usdt-autolisten-title {
  font-size: 13.5px;
  font-weight: 700;
  color: #34d399;
}
[data-theme="light"] .usdt-autolisten-title {
  color: #047857;
}
.usdt-autolisten-desc {
  font-size: 12.5px;
  color: var(--text-2, #cbd5e1);
  margin-top: 2px;
  line-height: 1.5;
}
[data-theme="light"] .usdt-autolisten-desc {
  color: #334155;
}
.txid-fallback {
  margin-top: 6px;
  border-radius: 10px;
  border: 1px dashed rgba(148, 163, 184, 0.28);
  padding: 8px 12px;
}
.txid-fallback summary {
  font-size: 12.5px;
  color: var(--text-3, #94a3b8);
  cursor: pointer;
}
.txid-fallback[open] summary {
  margin-bottom: 10px;
}

/* 5. Manual QR Memo Order-No Copy Box & Credential Save Box */
.manual-memo-box,
.cred-save-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(56, 189, 248, 0.28);
  background: rgba(56, 189, 248, 0.08);
  margin-top: 10px;
  text-align: left;
}
.manual-memo-label {
  font-size: 12px;
  color: var(--text-3, #94a3b8);
}
.manual-memo-val {
  font-family: var(--mono, monospace);
  font-size: 14px;
  font-weight: 700;
  word-break: break-all;
}
.cred-save-box {
  border-color: rgba(148, 163, 184, 0.22);
  background: rgba(255, 255, 255, 0.03);
}
[data-theme="light"] .cred-save-box {
  background: rgba(15, 23, 42, 0.03);
}

/* 6. Catalog In-Stock Filter Toggle */
.catalog-filter-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.instock-toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.28) !important;
  background: rgba(15, 23, 42, 0.72) !important;
  color: #cbd5e1 !important;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.18s ease;
}
.instock-toggle.is-on {
  border-color: #2dd4bf !important;
  background: rgba(45, 212, 191, 0.14) !important;
  color: #2dd4bf !important;
}
[data-theme="light"] .instock-toggle {
  background: rgba(15, 23, 42, 0.04) !important;
  color: #334155 !important;
}
[data-theme="light"] .instock-toggle.is-on {
  border-color: #0d9488 !important;
  background: rgba(13, 148, 136, 0.1) !important;
  color: #0f766e !important;
}

/* 7. Pre-Purchase Notice Modal (First-Visit Announcement) */
.kh-notice-backdrop {
  position: fixed;
  inset: 0;
  z-index: 130;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(5, 7, 14, 0.78);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  animation: khFadeUp 0.18s ease-out both;
}
[data-theme="light"] .kh-notice-backdrop {
  background: rgba(15, 23, 42, 0.48);
}
.kh-notice-modal {
  width: min(600px, 100%);
  max-height: min(86vh, 680px);
  display: flex;
  flex-direction: column;
  border-radius: 20px;
  border: 1px solid rgba(45, 212, 191, 0.28);
  background: rgba(13, 16, 28, 0.98);
  box-shadow: 0 24px 68px rgba(0, 0, 0, 0.65);
  overflow: hidden;
}
[data-theme="light"] .kh-notice-modal {
  background: #ffffff;
  border-color: rgba(13, 148, 136, 0.28);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.2);
}
.kh-notice-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
}
.kh-notice-head h2 {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}
.kh-notice-pill {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.18);
  color: #fbbf24;
  font-weight: 700;
}
[data-theme="light"] .kh-notice-pill {
  background: rgba(245, 158, 11, 0.14);
  color: #b45309;
}
.kh-notice-body {
  overflow-y: auto;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 13.5px;
  line-height: 1.6;
}
.kh-notice-item {
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(255, 255, 255, 0.03);
}
[data-theme="light"] .kh-notice-item {
  background: rgba(15, 23, 42, 0.025);
  border-color: rgba(15, 23, 42, 0.08);
}
.kh-notice-item.is-warn {
  border-color: rgba(245, 158, 11, 0.36);
  background: rgba(245, 158, 11, 0.08);
}
.kh-notice-item strong {
  color: #f8fafc;
}
[data-theme="light"] .kh-notice-item strong {
  color: #0f172a;
}
.kh-notice-item.is-warn strong {
  color: #fbbf24;
}
[data-theme="light"] .kh-notice-item.is-warn strong {
  color: #b45309;
}
.kh-notice-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding: 14px 20px;
  border-top: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(255, 255, 255, 0.02);
}
.kh-notice-check {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: var(--text-3, #94a3b8);
  cursor: pointer;
}
.kh-notice-reopen {
  margin-left: 8px;
}

