/* ============================================================
 * Enterprise Blue SaaS Theme — 前台兑换页
 * 设计令牌沿用旧变量名，确保所有 inline style="var(--xxx)" 仍生效
 * ============================================================ */
:root {
  /* 主色 */
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --primary-soft: #eff6ff;
  --primary-glow: rgba(37, 99, 235, 0.18);
  --accent: #2563eb;
  --accent-soft: #eff6ff;
  --accent-glow: rgba(37, 99, 235, 0.18);

  /* 中性色 */
  --bg-page: #f4f7fb;
  --bg-dark: #f4f7fb;
  --surface: #ffffff;
  --surface-soft: #f8fafc;
  --surface-hover: #f1f5f9;
  --glass: #ffffff;
  --glass-border: #e5e7eb;
  --border-strong: #cbd5e1;
  --divider: #eef2f7;

  /* 文本 */
  --text-main: #0f172a;
  --text-secondary: #334155;
  --text-dim: #64748b;
  --text-muted: #94a3b8;

  /* 状态色 */
  --success: #10b981;
  --success-soft: #ecfdf5;
  --error: #ef4444;
  --error-soft: #fef2f2;
  --warning: #f59e0b;
  --warning-soft: #fffbeb;
  --info: #0ea5e9;
  --info-soft: #f0f9ff;

  /* 阴影 */
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow: 0 4px 16px rgba(15, 23, 42, 0.08), 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-lg:
    0 12px 32px rgba(15, 23, 42, 0.12), 0 4px 12px rgba(15, 23, 42, 0.06);
  --shadow-focus: 0 0 0 4px rgba(37, 99, 235, 0.14);

  /* 圆角 */
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  font-family:
    "Outfit",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    "PingFang SC",
    "Hiragino Sans GB",
    "Microsoft YaHei",
    sans-serif;
  font-size: 14px;
  color: var(--text-main);
  background: var(--bg-page);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow-x: hidden;
}

/* ============ 全局滚动条 ============ */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 999px;
  border: 2px solid var(--bg-page);
  transition: background 0.2s;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

* {
  scrollbar-color: #cbd5e1 transparent;
  scrollbar-width: thin;
}

/* ============ 装饰背景（极淡蓝色光晕） ============ */
.background-blobs {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(at 12% 8%, rgba(37, 99, 235, 0.1) 0px, transparent 45%),
    radial-gradient(at 88% 6%, rgba(14, 165, 233, 0.08) 0px, transparent 45%),
    radial-gradient(at 90% 92%, rgba(37, 99, 235, 0.08) 0px, transparent 45%),
    radial-gradient(at 5% 95%, rgba(99, 102, 241, 0.06) 0px, transparent 50%),
    var(--bg-page);
  pointer-events: none;
}

.blob {
  display: none;
}

@keyframes rotate {
  from {
    transform: rotate(0deg) scale(1);
  }
  to {
    transform: rotate(360deg) scale(1.1);
  }
}

/* ============ 主容器（卡片） ============ */
.glass-container {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: 40px 36px;
  width: 100%;
  max-width: 480px;
  box-shadow: var(--shadow-lg);
  z-index: 1;
  animation: fadeIn 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.glass-container::before {
  display: none;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes shimmer {
  0% {
    background-position: 100% 0;
  }
  100% {
    background-position: -100% 0;
  }
}

header {
  text-align: center;
  margin-bottom: 32px;
}

.logo {
  width: 64px;
  height: 64px;
  background: var(--primary-soft);
  border: 1px solid #dbeafe;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  position: relative;
  overflow: hidden;
}

.logo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--primary), #3b82f6);
}

.logo svg {
  width: 30px;
  height: 30px;
  color: #ffffff;
  position: relative;
  z-index: 2;
}

h1 {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.3px;
  color: var(--text-main);
  margin-bottom: 6px;
  background: none;
  -webkit-text-fill-color: var(--text-main);
}

header p {
  color: var(--text-dim);
  font-size: 14px;
}

/* ============ 输入框 ============ */
.input-group {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

input,
textarea,
select {
  display: block;
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 12px 14px;
  color: var(--text-main);
  font-size: 14px;
  line-height: 1.5;
  font-family: inherit;
  transition:
    border-color 0.2s,
    box-shadow 0.2s,
    background 0.2s;
  outline: none;
  box-shadow: var(--shadow-sm);
}

input::placeholder,
textarea::placeholder {
  color: var(--text-muted);
}

input:hover,
textarea:hover,
select:hover {
  border-color: var(--border-strong);
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--primary);
  background: var(--surface);
  box-shadow: var(--shadow-focus);
}

#tokenInput,
#sessionInput {
  padding-bottom: 50px;
  min-height: 120px;
}

textarea {
  resize: vertical;
  min-height: 90px;
  line-height: 1.6;
}

textarea::-webkit-scrollbar {
  display: block;
  width: 8px;
}

/* ============ 主按钮 ============ */
button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  background: var(--primary);
  border: 1px solid transparent;
  border-radius: var(--radius);
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition:
    background 0.2s,
    box-shadow 0.2s,
    transform 0.1s;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(37, 99, 235, 0.12);
  gap: 8px;
}

button:hover {
  background: var(--primary-hover);
  box-shadow: 0 4px 12px var(--primary-glow);
  transform: none;
}

button:active {
  transform: scale(0.98);
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
  transform: none;
  box-shadow: none;
  background: var(--text-muted);
}

button:disabled::after {
  display: none;
}

button::after {
  display: none;
}

/* 次要按钮 */
.btn-secondary {
  background: var(--surface);
  color: var(--text-secondary);
  border: 1px solid var(--glass-border);
  box-shadow: none;
}

.btn-secondary:hover {
  background: var(--surface-hover);
  color: var(--text-main);
  box-shadow: none;
}

/* ============ 辅助卡片 ============ */
.helper-box {
  background: var(--primary-soft);
  border: 1px solid #dbeafe;
  padding: 14px 16px;
  border-radius: var(--radius);
  margin-bottom: 0;
  text-align: center;
  color: var(--text-secondary);
}

.get-token-btn:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.18);
}

.textarea-wrapper {
  position: relative;
  width: 100%;
  display: flex;
}

.get-token-btn-floating {
  position: absolute;
  bottom: 12px;
  right: 12px;
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  background: var(--primary);
  border: 1px solid var(--primary);
  border-radius: var(--radius-sm);
  color: #ffffff !important;
  text-decoration: none;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.5px;
  transition:
    background 0.2s,
    box-shadow 0.2s,
    transform 0.1s,
    color 0.15s;
  z-index: 10;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.18);
  -webkit-tap-highlight-color: transparent;
  -webkit-user-select: none;
  user-select: none;
}

.get-token-btn-floating::after {
  display: none;
}

.get-token-btn-floating:hover {
  background: var(--primary-hover);
  border-color: var(--primary-hover);
  color: #ffffff !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.24);
}

.get-token-btn-floating:active {
  background: #1e40af;
  border-color: #1e40af;
  color: #ffffff !important;
  transform: translateY(0);
  box-shadow: 0 1px 4px rgba(37, 99, 235, 0.35);
}

.get-token-btn-floating:focus-visible {
  outline: none;
  color: #ffffff !important;
  box-shadow:
    var(--shadow-focus),
    0 2px 6px rgba(37, 99, 235, 0.2);
}

.get-token-btn-floating svg {
  width: 14px;
  height: 14px;
}

.hint {
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.5;
}

.hint b {
  color: var(--primary);
}

.notice-box {
  margin: 12px 0;
  padding: 12px 14px;
  background: var(--warning-soft);
  border: 1px solid #fde68a;
  border-radius: var(--radius);
  text-align: left;
}

.notice-box p {
  color: #92400e !important;
  font-size: 13px !important;
  line-height: 1.55;
  margin: 0 !important;
}

.notice-box b {
  color: #b45309;
}

/* ============ 任务进度 ============ */
.task-progress {
  margin-top: 18px;
  padding: 16px 18px;
  border-radius: var(--radius);
  background: var(--surface-soft);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-sm);
  animation: slideUp 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.task-progress-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 10px;
}

.task-progress-header b {
  color: var(--primary);
  text-shadow: none;
  font-weight: 700;
}

.task-progress-track {
  height: 8px;
  border-radius: 999px;
  overflow: hidden;
  background: #e5e7eb;
  border: none;
}

.task-progress-bar {
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--primary), #60a5fa);
  box-shadow: none;
  transition: width 0.5s ease;
}

.task-progress-bar.error {
  background: linear-gradient(90deg, var(--error), #fb923c);
  box-shadow: none;
}

.status-message {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  text-align: center;
  display: none;
  animation: slideUp 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  line-height: 1.55;
}

@keyframes slideUp {
  from {
    transform: translateY(8px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.status-success {
  background: var(--success-soft);
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.status-error {
  background: var(--error-soft);
  color: #991b1b;
  border: 1px solid #fecaca;
}

.loader {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  display: none;
  margin: 0;
  flex: 0 0 auto;
}

.btn-secondary .loader {
  border-color: rgba(15, 23, 42, 0.18);
  border-top-color: var(--primary);
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ============ Tab 导航 ============ */
.main-title {
  font-size: 22px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 24px;
  letter-spacing: 1px;
  color: var(--primary);
  background: none;
  -webkit-text-fill-color: var(--primary);
  text-transform: uppercase;
}

/* ============ 公共运行时面板（右侧并发槽） ============ */
.public-runtime-panel {
  position: fixed;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  margin: 0;
  padding: 16px 18px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow);
  width: 220px;
  z-index: 5;
}

.public-runtime-layout {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  width: 100%;
}

.public-runtime-title {
  color: var(--text-dim);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.public-runtime-value {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 0;
  text-align: left;
  color: var(--text-main);
}

.public-runtime-meta {
  color: var(--text-dim);
  font-size: 12px;
  text-align: left;
  line-height: 1.45;
}

.public-slot-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  width: 100%;
  margin-top: 4px;
}

.public-slot-box {
  height: 12px;
  border-radius: 999px;
  border: 1px solid var(--glass-border);
  background: var(--surface-soft);
  transition: 0.2s ease;
}

.public-slot-box.idle {
  background: var(--surface-soft);
  border-color: var(--glass-border);
}

.public-runtime-panel.load-low .public-runtime-value {
  color: var(--success);
}

.public-runtime-panel.load-low .public-slot-box.occupied {
  background: var(--success);
  border-color: #6ee7b7;
}

.public-runtime-panel.load-mid .public-runtime-value {
  color: #d97706;
}

.public-runtime-panel.load-mid .public-slot-box.occupied {
  background: var(--warning);
  border-color: #fcd34d;
}

.public-runtime-panel.load-high .public-runtime-value {
  color: var(--error);
}

.public-runtime-panel.load-high .public-slot-box.occupied {
  background: var(--error);
  border-color: #fca5a5;
}

.tab-nav {
  display: flex;
  gap: 4px;
  background: var(--surface-soft);
  padding: 4px;
  border-radius: var(--radius);
  margin-bottom: 24px;
  border: 1px solid var(--glass-border);
  position: relative;
  z-index: 100;
}

.tab-btn {
  flex: 1;
  background: transparent;
  border: none;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  color: var(--text-dim);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: 0.2s;
  box-shadow: none;
}

.tab-btn:hover {
  background: rgba(37, 99, 235, 0.06);
  color: var(--primary);
  box-shadow: none;
  transform: none;
}

.tab-btn.active {
  background: var(--surface);
  color: var(--primary);
  box-shadow: var(--shadow-sm);
  font-weight: 600;
}

.jz-hero-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.jz-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
}

.jz-logo {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #111827;
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.4px;
}

.jz-hero h1 {
  font-family: "Playfair Display", "Times New Roman", serif;
  font-size: clamp(26px, 4vw, 34px);
}

.jz-hero-actions {
  display: flex;
  gap: 8px;
}

.jz-chip {
  border: 1px solid var(--glass-border);
  background: var(--surface);
  color: var(--text-secondary);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12px;
  cursor: pointer;
}

.queue-badge {
  display: inline-flex;
  margin: 8px auto 4px;
  padding: 6px 12px;
  border-radius: 999px;
  background: #111827;
  color: #fff;
  font-size: 12px;
}

.jz-tabs {
  flex-wrap: wrap;
}

.jz-tabs .tab-btn {
  flex: 1 1 18%;
  min-width: 88px;
}

.btn-row {
  display: flex;
  gap: 10px;
}

.confirm-summary,
.lookup-results {
  margin: 12px 0;
}

.lookup-results .query-result-card {
  margin-bottom: 8px;
}

body.theme-dark {
  --bg-page: #111827;
  --surface: #1f2937;
  --surface-soft: #111827;
  --text-main: #f8fafc;
  --text-secondary: #e2e8f0;
  --text-dim: #94a3b8;
  --glass-border: #334155;
}

body.theme-dark .queue-badge,
body.theme-dark .jz-logo {
  background: #0f172a;
}

body.lang-en .jz-tabs [data-tab="redeem"] { font-size: 12px; }
}

.tab-btn:disabled {
  background: transparent;
  color: var(--text-muted);
}

/* ============ 查询结果 ============ */
.query-result-box {
  margin-top: 20px;
  background: var(--surface-soft);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 18px;
  animation: slideUp 0.3s ease;
}

.result-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--divider);
}

.result-item:last-child {
  border-bottom: none;
}

.result-item span:first-child {
  color: var(--text-dim);
  font-size: 14px;
  white-space: nowrap;
}

.result-item b,
.result-item span:last-child {
  color: var(--text-main);
  font-size: 14px;
  font-family:
    "SF Mono", "JetBrains Mono", "Cascadia Mono", Consolas, monospace;
  font-variant-numeric: tabular-nums;
  text-align: right;
  word-break: break-all;
  margin-left: 12px;
}

.status-unused {
  color: var(--success) !important;
}

.status-used {
  color: var(--error) !important;
}

/* ============ 复制小按钮（结果页用） ============ */
.copy-btn-mini {
  background: var(--primary);
  border: 1px solid var(--primary);
  color: #ffffff;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition:
    background 0.2s,
    box-shadow 0.2s;
  box-shadow: none;
}

.copy-btn-mini:hover {
  background: var(--primary-hover);
  box-shadow: 0 2px 6px var(--primary-glow);
  transform: none;
}

/* ============ Inline-style 兼容兜底 ============
 * index.html 里有大量历史 inline `style="background: rgba(255, 255, 255, 0.03)"` 等暗色覆层。
 * 在亮色主题下这些会变成"白上加白"看不见，用属性选择器统一替换为浅灰底。
 */
[style*="background: rgba(255,255,255,0.03)"],
[style*="background: rgba(255, 255, 255, 0.03)"],
[style*="background: rgba(255,255,255,0.05)"],
[style*="background: rgba(255, 255, 255, 0.05)"],
[style*="background: rgba(255,255,255,0.02)"],
[style*="background: rgba(255, 255, 255, 0.02)"],
[style*="background:rgba(255,255,255,0.03)"],
[style*="background:rgba(255, 255, 255, 0.03)"] {
  background: var(--surface-soft) !important;
}

[style*="border: 1px solid rgba(255,255,255,0.05)"],
[style*="border: 1px solid rgba(255, 255, 255, 0.05)"],
[style*="border: 1px solid rgba(255,255,255,0.08)"],
[style*="border: 1px solid rgba(255, 255, 255, 0.08)"],
[style*="border: 1px solid rgba(255,255,255,0.1)"],
[style*="border: 1px solid rgba(255, 255, 255, 0.1)"] {
  border-color: var(--glass-border) !important;
}

/* code / 等宽 inline 文本：在亮底下变成深灰 + 蓝字 */
code {
  background: var(--primary-soft);
  color: var(--primary);
  padding: 2px 6px;
  border-radius: 4px;
  font-family:
    "SF Mono", "JetBrains Mono", "Cascadia Mono", Consolas, monospace;
  font-size: 0.92em;
}

/* index.html 里 `code` 直接 inline 颜色 #fff 的，强制覆盖回深色 */
code[style*="color: #fff"],
code[style*="color:#fff"],
code[style*="color: white"] {
  color: var(--primary) !important;
}

/* 链接默认企业蓝 */
a {
  color: var(--primary);
}

a:hover {
  color: var(--primary-hover);
}

/* 选择文本时的高亮 */
::selection {
  background: var(--primary);
  color: #ffffff;
}

/* index.html 内联色覆盖：浅紫 / 浅蓝 / 浅红在白底改成深一档同色系 */
[style*="color: #818cf8"] {
  color: var(--primary) !important;
}
[style*="color:#818cf8"] {
  color: var(--primary) !important;
}
[style*="color: #6ee7b7"] {
  color: #047857 !important;
}
[style*="color: #f87171"] {
  color: #b91c1c !important;
}
[style*="color: #fbbf24"] {
  color: #b45309 !important;
}
[style*="color: #fde68a"] {
  color: #b45309 !important;
}
[style*="color: #fff"]:not(.btn-primary):not(button):not(.copy-btn-mini):not(
    [style*="color: #fff5"]
  ) {
  color: var(--text-main) !important;
}
[style*="color:#fff"]:not(.btn-primary):not(button):not(.copy-btn-mini) {
  color: var(--text-main) !important;
}

/* 查询/结果卡片里 inline 的暗色边框 */
[style*="border: 1px solid rgba(255,255,255,0.05)"] {
  border-color: var(--divider) !important;
}
[style*="border: 1px solid rgba(255, 255, 255, 0.05)"] {
  border-color: var(--divider) !important;
}
[style*="border-bottom: 1px solid rgba(255, 255, 255, 0.05)"] {
  border-bottom-color: var(--divider) !important;
}
[style*="border-bottom: 1px solid rgba(255,255,255,0.05)"] {
  border-bottom-color: var(--divider) !important;
}
[style*="border-top: 1px solid rgba(255, 255, 255, 0.05)"] {
  border-top-color: var(--divider) !important;
}
[style*="border-top: 1px solid rgba(255,255,255,0.05)"] {
  border-top-color: var(--divider) !important;
}

/* ============ 自助充值中心（仿 cdk.98-xj.com 布局） ============ */
body.recharge-page {
  display: block;
  min-height: 100vh;
  background:
    radial-gradient(at 10% 0%, rgba(37, 99, 235, 0.12) 0, transparent 42%),
    radial-gradient(at 90% 8%, rgba(14, 165, 233, 0.1) 0, transparent 40%),
    linear-gradient(180deg, #eef4ff 0%, var(--bg-page) 38%, #f8fafc 100%);
}

.page-shell {
  width: min(720px, calc(100% - 32px));
  margin: 0 auto;
  padding: 40px 0 56px;
  animation: fadeIn 0.45s ease;
}

.site-hero {
  text-align: center;
  margin-bottom: 28px;
}

.hero-eyebrow {
  display: inline-block;
  margin-bottom: 12px;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.1);
  color: var(--primary);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.4px;
}

.site-hero h1 {
  font-size: clamp(28px, 5vw, 36px);
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 10px;
}

.hero-subtitle {
  max-width: 560px;
  margin: 0 auto 18px;
  color: var(--text-dim);
  font-size: 15px;
  line-height: 1.65;
}

.feature-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.feature-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--glass-border);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
  box-shadow: var(--shadow-sm);
}

.feature-badge svg {
  width: 15px;
  height: 15px;
  color: var(--primary);
}

.recharge-card {
  background: var(--surface);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: 28px 28px 24px;
  box-shadow: var(--shadow-lg);
}

.card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}

.card-head h2 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 4px;
}

.card-head p {
  color: var(--text-dim);
  font-size: 13px;
}

.flow-badge {
  flex-shrink: 0;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  background: var(--surface-soft);
  color: var(--text-dim);
  border: 1px solid var(--glass-border);
}

.flow-badge.pending {
  background: #f1f5f9;
  color: #64748b;
}
.flow-badge.cdk_ok {
  background: var(--info-soft);
  color: #0369a1;
  border-color: #bae6fd;
}
.flow-badge.running {
  background: var(--primary-soft);
  color: var(--primary);
  border-color: #bfdbfe;
}
.flow-badge.success {
  background: var(--success-soft);
  color: #047857;
  border-color: #a7f3d0;
}
.flow-badge.failed,
.flow-badge.manual {
  background: var(--error-soft);
  color: #b91c1c;
  border-color: #fecaca;
}

.stepper {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 20px;
  padding: 14px 16px;
  border-radius: var(--radius);
  background: var(--surface-soft);
  border: 1px solid var(--divider);
}

.step-item {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 500;
}

.step-num {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #e2e8f0;
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}

.step-item.active .step-num {
  background: var(--primary);
  color: #fff;
}

.step-item.done .step-num {
  background: var(--success);
  color: #fff;
}

.step-item.active,
.step-item.done {
  color: var(--text-main);
}

.step-line {
  width: 36px;
  height: 2px;
  background: #e2e8f0;
  margin: 0 8px;
  flex-shrink: 0;
}

.notice-banner {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px 14px;
  margin-bottom: 20px;
  border-radius: var(--radius);
  background: var(--warning-soft);
  border: 1px solid #fde68a;
}

.notice-banner svg {
  width: 18px;
  height: 18px;
  color: #d97706;
  flex-shrink: 0;
  margin-top: 1px;
}

.notice-banner p {
  margin: 0;
  color: #92400e;
  font-size: 13px;
  line-height: 1.55;
}

.field-label {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
}

.field-hint {
  margin-top: -8px;
  font-size: 12px;
  color: var(--text-dim);
  line-height: 1.5;
}

.cdk-confirmed {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: var(--success-soft);
  border: 1px solid #a7f3d0;
  font-size: 13px;
  color: #065f46;
}

.cdk-confirmed code {
  background: rgba(255, 255, 255, 0.7);
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-lg {
  padding: 14px 20px;
  font-size: 15px;
}

button.is-loading .btn-text {
  opacity: 0.85;
}

.task-progress-text {
  margin-top: 10px;
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.5;
}

.query-result-card {
  text-align: left;
  background: var(--surface-soft);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  padding: 4px 14px;
}

.query-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--divider);
  font-size: 14px;
}

.query-row:last-child {
  border-bottom: none;
}

.query-row span {
  color: var(--text-dim);
}

.query-row strong {
  color: var(--text-main);
  font-weight: 600;
}

.status-processing {
  color: var(--warning) !important;
}

.faq-panel {
  margin-top: 20px;
  padding: 14px 16px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--glass-border);
  color: var(--text-secondary);
  box-shadow: var(--shadow-sm);
}

.faq-panel summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  color: var(--text-main);
  list-style: none;
}

.faq-panel summary::-webkit-details-marker {
  display: none;
}

.faq-panel ul {
  margin: 12px 0 0;
  padding-left: 18px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-dim);
}

.recharge-page .public-runtime-panel {
  position: static;
  transform: none;
  width: 100%;
  margin-top: 20px;
}

@media (max-width: 640px) {
  .page-shell {
    width: calc(100% - 20px);
    padding: 24px 0 40px;
  }

  .recharge-card {
    padding: 20px 16px;
  }

  .card-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .step-label {
    font-size: 12px;
  }

  .step-line {
    width: 20px;
  }
}

/* ============ 套餐说明 / 发票助手 ============ */
.plan-showcase {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 12px;
}

.plan-card {
  background: var(--surface);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 14px 16px;
  box-shadow: var(--shadow-sm);
}

.plan-card.highlight {
  border-color: #bfdbfe;
  background: linear-gradient(180deg, #eff6ff 0%, #ffffff 100%);
}

.plan-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.plan-card h3 {
  font-size: 15px;
  font-weight: 700;
}

.plan-card p {
  font-size: 12px;
  line-height: 1.6;
  color: var(--text-dim);
}

.plan-tag {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #64748b;
  font-weight: 600;
}

.plan-tag.pro {
  background: var(--primary-soft);
  color: var(--primary);
}

.region-hint {
  text-align: center;
  font-size: 12px;
  color: var(--text-dim);
  margin-bottom: 20px;
}

.feature-badge.feature-link {
  text-decoration: none;
  color: var(--text-secondary);
  transition:
    border-color 0.2s,
    color 0.2s;
}

.feature-badge.feature-link:hover {
  color: var(--primary);
  border-color: #bfdbfe;
}

.plan-confirmed {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: var(--primary-soft);
  border: 1px solid #bfdbfe;
  font-size: 13px;
  color: #1e3a8a;
}

.plan-confirmed strong {
  font-weight: 700;
}

.compact-hero {
  margin-bottom: 20px;
}

.back-home-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 14px;
  font-size: 13px;
  color: var(--text-dim);
  text-decoration: none;
}

.back-home-link:hover {
  color: var(--primary);
}

.subscription-card .guide-steps {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 20px 0;
}

.guide-step {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.guide-step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
}

.guide-step h3 {
  font-size: 15px;
  margin-bottom: 4px;
}

.guide-step p {
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-dim);
}

.subscription-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.subscription-query-section {
  margin-top: 4px;
}

.subscription-field-hint {
  margin-top: 10px;
  margin-bottom: 14px;
}

.subscription-query-actions {
  margin-top: 0;
}

.subscription-query-actions button {
  width: 100%;
}

.checkout-card .checkout-section {
  margin-bottom: 12px;
}

.checkout-block {
  margin: 0;
}

.checkout-block-title {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-main);
}

.checkout-page .checkout-icon-badge svg,
.checkout-page .checkout-back svg,
.checkout-page .checkout-ghost-btn svg,
.checkout-page .checkout-tips svg,
.checkout-page .checkout-tips-link svg,
.checkout-page .checkout-secure-hint svg,
.checkout-page .checkout-tips-secure svg,
.checkout-page .checkout-pay-btn svg,
.checkout-page .checkout-stop-btn svg,
.checkout-page .checkout-assurance-icon svg,
.checkout-page .checkout-footnote svg,
.checkout-page svg.lucide {
  width: 16px;
  height: 16px;
  display: inline-block;
  flex-shrink: 0;
  vertical-align: middle;
}

.checkout-page .checkout-icon-badge i,
.checkout-page .checkout-icon-badge svg {
  width: 18px;
  height: 18px;
}

.checkout-page .checkout-pay-btn i,
.checkout-page .checkout-pay-btn svg {
  width: 16px;
  height: 16px;
}

.checkout-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.checkout-span-2 {
  grid-column: 1 / -1;
}

.checkout-labeled-field {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
}

.checkout-labeled-field span {
  font-size: 12px;
  color: var(--text-dim);
}

.checkout-icon-badge {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: #eef4ff;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.checkout-ghost-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid #dbe3ee;
  background: #fff;
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.checkout-pay-btn {
  min-width: 132px;
  height: 36px;
  padding: 0 16px;
  border-radius: 10px;
  font-size: 13px;
}

body.checkout-page {
  display: block;
  align-items: stretch;
  justify-content: flex-start;
  background:
    radial-gradient(circle at 50% 0, rgba(37, 99, 235, 0.07), transparent 34%),
    #f8fbff;
}

.checkout-page .page-shell.checkout-shell,
.checkout-page .checkout-shell {
  width: min(1210px, calc(100% - 48px));
  margin: 0 auto;
  padding: 12px 0 18px;
  display: grid;
  gap: 12px;
  animation: none;
}

.checkout-page .checkout-hero,
.checkout-page .checkout-panel-head,
.checkout-page .checkout-card-box {
  margin: 0;
}

.checkout-page .checkout-hero {
  position: static;
  display: flex;
  align-items: center;
  min-height: 46px;
  padding: 0 20px;
  border: 1px solid #e7eefb;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 4px 14px rgba(30, 64, 175, 0.04);
  text-align: left;
}

.checkout-page .checkout-back {
  position: static;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  color: #2563eb;
  font-size: 14px;
  font-weight: 600;
}

.checkout-page .checkout-panel {
  padding: 14px 18px;
  border: 1px solid #e6eefb;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 5px 16px rgba(30, 64, 175, 0.045);
}

.checkout-page .checkout-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
  align-items: stretch;
}

.checkout-page .checkout-form-column {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 12px;
  align-content: start;
}

.checkout-page .checkout-session-panel,
.checkout-page .checkout-split {
  height: fit-content;
}

.checkout-page .checkout-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.checkout-page .checkout-session-main,
.checkout-page .checkout-split > .checkout-panel {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.checkout-page .checkout-panel-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.checkout-page .checkout-panel-head > .checkout-ghost-btn {
  margin-left: auto;
}

.checkout-page .checkout-panel-head h2,
.checkout-page .checkout-task-log-panel h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
}

.checkout-page .checkout-session-main .checkout-panel-head h2 {
  font-size: 16px;
  letter-spacing: 0;
}

.checkout-page .checkout-panel-head p {
  margin: 2px 0 0;
  font-size: 12px;
  color: #64748b;
}

.checkout-page .checkout-icon-badge {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #f3f7ff;
  color: #1f67ff;
}

.checkout-page .checkout-session-main {
  gap: 10px;
}

.checkout-page .status-message {
  position: fixed;
  top: 20px;
  left: 50%;
  z-index: 1000;
  width: max-content;
  max-width: min(420px, calc(100vw - 32px));
  margin: 0;
  padding: 10px 16px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.16);
  transform: translateX(-50%);
  animation: checkout-toast-in 0.2s ease-out;
}

@keyframes checkout-toast-in {
  from {
    opacity: 0;
    transform: translate(-50%, -8px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

.checkout-page .checkout-session-entry {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas:
    "input"
    "actions";
  gap: 10px;
  align-items: stretch;
}

.checkout-page .checkout-session-entry.has-session-account {
  padding-top: 0;
}

.checkout-page .checkout-session-account {
  position: static;
  display: none;
  max-width: 100%;
  margin: 0;
  overflow: hidden;
  color: #2563eb;
  font-size: 12px;
  font-weight: 600;
  line-height: 16px;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.checkout-page .checkout-session-account.is-visible {
  display: block;
}

.checkout-page .checkout-session-entry textarea,
.checkout-page #sessionInput {
  grid-area: input;
  width: 100%;
  height: 58px;
  min-height: 58px;
  padding: 9px 11px;
  border: 1px solid #dfe7f5;
  border-radius: 6px;
  box-shadow: none;
  font-size: 12px;
  line-height: 18px;
  resize: vertical;
}

.checkout-page .checkout-secure-hint {
  grid-area: hint;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  min-width: 0;
  margin: 0;
  color: #71809c;
  font-size: 11px;
  line-height: 1.4;
}

.checkout-page .checkout-session-actions {
  grid-area: actions;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 9px;
}

.checkout-page .checkout-ghost-btn,
.checkout-page .checkout-pay-btn,
.checkout-page .checkout-stop-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 32px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  box-shadow: none;
}

.checkout-page .checkout-clear-session-btn,
.checkout-page .checkout-cancel-btn {
  width: auto;
  min-width: 0;
  padding: 0 12px;
  color: #475569;
  border-color: #dfe7f5;
  background: #fff;
}

.checkout-page .checkout-cancel-btn .btn-text,
.checkout-page .checkout-clear-session-btn .btn-text {
  display: inline;
}

.checkout-page .checkout-pay-btn {
  min-width: 102px;
  padding: 0 15px;
  background: linear-gradient(135deg, #2f75ff, #1c60ed);
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.2);
}

.checkout-page .checkout-pay-btn:hover {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
}

.checkout-page .checkout-stop-btn {
  min-width: 72px;
  padding: 0 13px;
  background: #fff;
  color: #b42318;
  border: 1px solid #fda29b;
}

.checkout-page .checkout-stop-btn:hover:not(:disabled) {
  background: #fef3f2;
}

.checkout-page .checkout-stop-btn[hidden] {
  display: none;
}

.checkout-page .checkout-grid {
  display: grid;
  gap: 8px 10px;
}

.checkout-page .checkout-plan-row {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 0;
}

.checkout-page .checkout-plan-row:has(#creditQuantityWrap:not([hidden])) {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.checkout-page .checkout-card-box {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
  padding: 10px 12px 12px;
  border: 1px solid #e4edfc;
  border-radius: 8px;
  background: #f7faff;
}

.checkout-page .checkout-card-box-title {
  font-size: 13px;
  font-weight: 700;
  color: #2563eb;
}

.checkout-page .field-label {
  margin: 0 0 4px;
  font-size: 11px;
  font-weight: 700;
  color: #34425d;
}

.checkout-page .checkout-panel input,
.checkout-page .checkout-panel select {
  height: 27px;
  margin: 0;
  padding: 0 10px;
  border: 1px solid #dfe7f5;
  border-radius: 5px;
  color: #253451;
  font-size: 12px;
  font-weight: 500;
  box-shadow: none;
}

.checkout-page .checkout-panel input:focus,
.checkout-page .checkout-panel select:focus,
.checkout-page #sessionInput:focus {
  border-color: #8eb7ff;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.08);
}

.checkout-page .field-hint,
.checkout-page .checkout-inline-hint {
  margin: 4px 0 0;
  font-size: 10px;
  color: #7d8ba5;
}

.checkout-page .checkout-labeled-field {
  grid-template-columns: 62px minmax(0, 1fr);
  gap: 8px;
}

.checkout-page .checkout-labeled-field span {
  font-size: 11px;
  font-weight: 600;
  color: #62718d;
}

.checkout-page .checkout-address-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #eef3fb;
}

.checkout-page .checkout-address-grid .checkout-span-2 {
  grid-column: 1 / -1;
}

.checkout-page .checkout-card-box .checkout-grid {
  grid-template-columns: 0.84fr 0.84fr 1.16fr;
}

.checkout-page .checkout-task-log-panel {
  display: flex;
  flex-direction: column;
  /* 不参与行高计算，高度跟左侧表单对齐，日志在内部滚动 */
  height: 0;
  min-height: 100%;
  padding: 14px 18px;
  box-sizing: border-box;
  overflow: hidden;
}

.checkout-page .checkout-task-log-head {
  display: flex;
  flex-shrink: 0;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.checkout-page .checkout-task-state {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: max-content;
  padding: 7px 11px;
  border-radius: 7px;
  background: #f1f5f9;
  color: #64748b;
  font-size: 11px;
  font-weight: 700;
}

.checkout-page .checkout-task-state-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}

.checkout-page .checkout-task-state.is-running {
  background: #eff6ff;
  color: #2563eb;
}

.checkout-page .checkout-task-state.is-success {
  background: #ecfdf5;
  color: #10b981;
}

.checkout-page .checkout-task-state.is-error {
  background: #fff1f2;
  color: #e11d48;
}

.checkout-page .checkout-task-log {
  position: relative;
  flex: 1 1 0;
  min-height: 0;
  margin-top: 12px;
  padding: 12px 14px;
  overflow: auto;
  overscroll-behavior: contain;
  border: 1px solid #e0e9f8;
  border-radius: 8px;
  background: #fbfdff;
}

.checkout-page .checkout-task-log-panel .task-progress {
  flex-shrink: 0;
  margin: 14px 0 0;
  padding: 12px 14px;
  border-radius: 8px;
}

.checkout-page .checkout-task-log-panel .task-progress-header {
  margin-bottom: 7px;
  font-size: 12px;
}

.checkout-page .checkout-task-log-panel .task-progress-track {
  height: 6px;
}

.checkout-page .checkout-task-log-panel .task-progress-text {
  margin: 7px 0 0;
  font-size: 11px;
}

.checkout-page .checkout-task-log-empty {
  display: grid;
  place-items: center;
  align-content: center;
  min-height: 100%;
  margin: 0;
  color: #94a3b8;
  font-size: 12px;
  line-height: 1.6;
  text-align: center;
}

.checkout-page .checkout-task-log-empty svg {
  width: 84px;
  height: 84px;
  margin-bottom: 12px;
  color: #bdd5ff;
  opacity: 0.9;
}

.checkout-page .checkout-task-log-empty strong {
  color: #64748b;
  font-size: 15px;
  font-weight: 700;
}

.checkout-page .checkout-task-log-empty span {
  margin-top: 2px;
  color: #94a3b8;
  font-size: 12px;
}

.checkout-page .checkout-task-log-entry {
  position: relative;
  display: grid;
  grid-template-columns: 14px 64px minmax(0, 1fr);
  gap: 8px;
  min-height: 38px;
  color: #26344f;
  font-size: 12px;
  line-height: 1.45;
}

.checkout-page .checkout-task-log-entry:not(:last-child)::before {
  position: absolute;
  top: 16px;
  bottom: -3px;
  left: 6px;
  width: 1px;
  background: #d9e7ff;
  content: "";
}

.checkout-page .checkout-task-log-dot {
  width: 6px;
  height: 6px;
  margin-top: 5px;
  margin-left: 3px;
  border-radius: 50%;
  background: #2f75ff;
  box-shadow: 0 0 0 3px #f4f8ff;
}

.checkout-page .checkout-task-log-time {
  color: #71809c;
  font-variant-numeric: tabular-nums;
}

.checkout-page .checkout-task-log-text {
  color: #2c3955;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.checkout-page .checkout-assurance-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.checkout-page .checkout-assurance-card {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 54px;
  padding: 10px 16px;
  border: 1px solid #e6eefb;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 4px 14px rgba(30, 64, 175, 0.04);
}

.checkout-page .checkout-assurance-icon {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 0;
  background: transparent;
  color: #1f67ff;
}

.checkout-page .checkout-assurance-card h3,
.checkout-page .checkout-assurance-card p {
  margin: 0;
}

.checkout-page .checkout-assurance-card h3 {
  color: #26344f;
  font-size: 13px;
  font-weight: 700;
}

.checkout-page .checkout-assurance-card p {
  margin-top: 4px;
  color: #7a879f;
  font-size: 11px;
  line-height: 1.35;
}

@media (max-width: 1060px) {
  .checkout-page .checkout-workspace {
    grid-template-columns: 1fr;
  }

  .checkout-page .checkout-task-log-panel {
    height: auto;
    max-height: min(52vh, 520px);
    min-height: 280px;
  }
}

@media (max-width: 760px) {
  .checkout-page .page-shell.checkout-shell,
  .checkout-page .checkout-shell {
    width: min(100% - 24px, 640px);
    padding-top: 12px;
  }

  .checkout-page .checkout-session-entry {
    grid-template-columns: 1fr;
    grid-template-areas:
      "input"
      "actions";
  }

  .checkout-page .checkout-session-actions {
    justify-content: stretch;
  }

  .checkout-page .checkout-session-actions .checkout-ghost-btn,
  .checkout-page .checkout-session-actions .checkout-pay-btn,
  .checkout-page .checkout-session-actions .checkout-stop-btn {
    flex: 1 1 auto;
  }

  .checkout-page .checkout-plan-row,
  .checkout-page .checkout-plan-row:has(#creditQuantityWrap:not([hidden])) {
    grid-template-columns: 1fr;
  }

  .checkout-page .checkout-assurance-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .checkout-page .checkout-grid,
  .checkout-page .checkout-plan-row,
  .checkout-page .checkout-address-grid,
  .checkout-page .checkout-labeled-field {
    grid-template-columns: 1fr;
  }

  .checkout-page .checkout-labeled-field span {
    margin-bottom: -4px;
  }

  .checkout-page .checkout-task-log-panel {
    min-height: 240px;
    max-height: min(48vh, 420px);
  }

  .checkout-page .checkout-assurance-grid {
    grid-template-columns: 1fr;
  }
}

button.is-loading {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

button.is-loading .loader {
  display: block;
}

.subscription-result {
  margin-top: 18px;
}

.subscription-result-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.subscription-result-head h2 {
  font-size: 16px;
  margin: 0;
}

.subscription-billing-actions {
  margin-top: 14px;
}

.subscription-guide-panel {
  margin-top: 22px;
  padding: 14px 16px;
  border-radius: var(--radius);
  background: var(--surface-soft);
  border: 1px solid var(--glass-border);
}

.subscription-guide-panel summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  color: var(--text-main);
  margin-bottom: 0;
}

.subscription-guide-panel[open] summary {
  margin-bottom: 12px;
}

.action-link-btn {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

@media (max-width: 768px) {
  .plan-showcase {
    grid-template-columns: 1fr;
  }
}

/* ============ jzplus 一比一兑换站 ============ */
body.jzplus-theme.recharge-page {
  display: block;
  min-height: 100vh;
  background-color: #f8fafc;
  background-image:
    linear-gradient(rgba(248, 250, 252, 0.98), rgba(240, 253, 250, 0.72) 48%, rgba(248, 250, 252, 0.98)),
    linear-gradient(#e2e8f0 1px, transparent 1px),
    linear-gradient(90deg, #e2e8f0 1px, transparent 1px);
  background-size: auto, 48px 48px, 48px 48px;
  color: #0f172a;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

body.jzplus-theme.recharge-page button {
  background: transparent;
  border: 0;
  box-shadow: none;
  color: inherit;
  padding: 0;
  font-weight: inherit;
}

body.jzplus-theme.recharge-page button:hover,
body.jzplus-theme.recharge-page button:active {
  background: transparent;
  transform: none;
  box-shadow: none;
}

.exchange-container {
  width: min(1040px, calc(100% - 32px));
  max-width: 1040px;
  margin: 28px auto 48px;
  color: #101828;
}

.exchange-shell {
  background: rgba(255, 255, 255, 0.82);
  border: 0.8px solid rgba(219, 227, 239, 0.9);
  border-radius: 8px;
  padding: 24px;
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.08);
}

.exchange-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.exchange-title-block {
  display: flex;
  align-items: center;
  gap: 14px;
}

.exchange-brand-mark {
  width: 46px;
  height: 46px;
  border-radius: 8px;
  background: #1d4ed8;
  color: #fff;
  font-size: 15px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 22px rgba(37, 99, 235, 0.2);
}

.exchange-eyebrow {
  display: block;
  color: #0f766e;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.72px;
  text-transform: uppercase;
}

.exchange-title-copy h1 {
  margin: 4px 0 6px;
  font-family: "Noto Serif SC", "Songti SC", "SimSun", serif;
  font-size: 38px;
  font-weight: 900;
  line-height: 1.1;
  color: #101828;
  letter-spacing: 0;
}

.exchange-title-copy p {
  margin: 0;
  color: #475467;
  font-size: 14px;
  font-weight: 600;
}

.exchange-tools {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  min-height: 40px;
  padding: 10px 10px !important;
  border-radius: 8px;
  border: 0.8px solid #dbe3ef !important;
  background: #fff !important;
  color: #475467;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
}

#langToggle {
  min-width: 46px;
  font-size: 13px;
  font-weight: 700;
}

.btn-ghost:hover {
  background: #f8fafc !important;
}

.theme-icon {
  width: 20px;
  height: 20px;
}

.exchange-switchboard {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
}

.exchange-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  width: fit-content;
  max-width: 100%;
  padding: 4px;
  border-radius: 8px;
  background: #f1f5f9;
  border: 0.8px solid #e2e8f0;
}

.exchange-tab {
  height: 40px;
  padding: 8px 12px !important;
  border-radius: 6px;
  border: 0.8px solid transparent !important;
  background: transparent !important;
  color: #475467;
  font-size: 14px;
  font-weight: 800;
  box-shadow: none !important;
}

.exchange-tab:hover {
  color: #1d4ed8;
  background: rgba(255, 255, 255, 0.55) !important;
}

.exchange-tab.active {
  background: #fff !important;
  color: #1d4ed8;
  border-color: #dbeafe !important;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08) !important;
}

.exchange-queue-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 8px 12px;
  border-radius: 8px;
  background: #fff;
  border: 0.8px solid #e4eaf3;
  color: #475467;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.exchange-queue-main {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.exchange-queue-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.16);
}

.exchange-queue-count {
  color: #1d4ed8;
  font-size: 18px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}

.exchange-queue-state {
  color: #667085;
}

.exchange-section {
  margin-top: 16px;
}

.exchange-steps {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  margin-bottom: 16px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.68);
  border: 0.8px solid rgba(219, 227, 239, 0.9);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

.exchange-step {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #98a2b3;
  white-space: nowrap;
}

.exchange-step-number {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #e4eaf3;
  color: #667085;
  font-size: 13px;
  font-weight: 800;
}

.exchange-step.active .exchange-step-number,
.exchange-step.done .exchange-step-number {
  background: #1d4ed8;
  color: #fff;
}

.exchange-step.active .exchange-step-label,
.exchange-step.done .exchange-step-label {
  color: #101828;
  font-weight: 800;
}

.exchange-step-label {
  font-size: 14px;
  font-weight: 700;
}

.exchange-step-line {
  flex: 1;
  height: 2px;
  background: #e5eaf3;
  border-radius: 999px;
}

.exchange-card {
  background: rgba(255, 255, 255, 0.94);
  border: 0.8px solid rgba(219, 227, 239, 0.95);
  border-radius: 8px;
  padding: 30px;
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.08);
}

.exchange-form-group {
  margin-bottom: 20px;
}

.exchange-form-group label {
  display: block;
  margin-bottom: 8px;
  color: #1f2937;
  font-size: 14px;
  font-weight: 900;
}

.exchange-input {
  width: 100%;
  padding: 13px 14px !important;
  border: 0.8px solid #cfd8e7 !important;
  border-radius: 8px !important;
  background: #fff !important;
  color: #101828 !important;
  font-size: 15px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.exchange-input.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.exchange-hint {
  margin-top: 8px;
  color: #667085;
  font-size: 13px;
  line-height: 1.6;
}

.exchange-hint a {
  color: #1d4ed8;
  font-weight: 700;
}

.exchange-buttons {
  display: flex;
  gap: 12px;
}

.exchange-buttons.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.exchange-btn {
  width: 100%;
  min-height: 50px;
  padding: 12px 18px !important;
  border-radius: 8px !important;
  font-size: 15px;
  font-weight: 800;
}

.exchange-btn.primary {
  background: #1d4ed8 !important;
  border: 0.8px solid #1d4ed8 !important;
  color: #fff !important;
  box-shadow: 0 14px 24px rgba(37, 99, 235, 0.22) !important;
}

.exchange-btn.primary:hover {
  background: #1e40af !important;
}

.exchange-btn.ghost {
  background: #fff !important;
  border: 0.8px solid #d0d5dd !important;
  color: #344054 !important;
  box-shadow: none !important;
}

.exchange-valid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
  padding: 12px 14px;
  border-radius: 8px;
  background: #ecfdf3;
  border: 0.8px solid #abefc6;
  color: #067647;
  font-weight: 800;
}

.exchange-plan-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #344054;
  font-size: 13px;
  font-weight: 700;
}

.plan-pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: #eff6ff;
  color: #1d4ed8;
  font-weight: 800;
}

body.jzplus-theme.theme-dark.recharge-page {
  background-color: #0b1220;
  background-image:
    linear-gradient(
      rgba(11, 18, 32, 0.94),
      rgba(15, 23, 42, 0.9) 46%,
      rgba(11, 18, 32, 0.96)
    ),
    linear-gradient(rgba(71, 85, 105, 0.22) 1px, transparent 1px),
    linear-gradient(90deg, rgba(71, 85, 105, 0.22) 1px, transparent 1px);
  background-size: auto, 48px 48px, 48px 48px;
  color: #e2e8f0;
}

body.jzplus-theme.theme-dark .exchange-shell,
body.jzplus-theme.theme-dark .exchange-card,
body.jzplus-theme.theme-dark .exchange-steps {
  background: rgba(30, 41, 59, 0.78);
  border-color: rgba(148, 163, 184, 0.18);
  box-shadow: 0 18px 40px rgba(2, 6, 23, 0.35);
  color: #e2e8f0;
}

body.jzplus-theme.theme-dark .exchange-queue-bar {
  background: rgba(15, 23, 42, 0.72);
  border-color: rgba(148, 163, 184, 0.16);
  color: #cbd5e1;
}

body.jzplus-theme.theme-dark .exchange-tabs {
  background: rgba(15, 23, 42, 0.7);
  border-color: rgba(148, 163, 184, 0.16);
}

body.jzplus-theme.theme-dark .exchange-tab {
  color: #94a3b8;
  background: transparent !important;
  border-color: transparent !important;
}

body.jzplus-theme.theme-dark .exchange-tab:hover {
  color: #bfdbfe;
  background: rgba(51, 65, 85, 0.55) !important;
}

body.jzplus-theme.theme-dark .exchange-tab.active {
  background: rgba(51, 65, 85, 0.95) !important;
  color: #93c5fd;
  border-color: rgba(147, 197, 253, 0.28) !important;
  box-shadow: 0 1px 3px rgba(2, 6, 23, 0.35) !important;
}

body.jzplus-theme.theme-dark .exchange-title-copy h1,
body.jzplus-theme.theme-dark .exchange-form-group label,
body.jzplus-theme.theme-dark .exchange-step.active .exchange-step-label,
body.jzplus-theme.theme-dark .exchange-step.done .exchange-step-label {
  color: #f8fafc;
}

body.jzplus-theme.theme-dark .exchange-eyebrow {
  color: #5eead4;
}

body.jzplus-theme.theme-dark .exchange-title-copy p,
body.jzplus-theme.theme-dark .exchange-hint,
body.jzplus-theme.theme-dark .exchange-queue-state,
body.jzplus-theme.theme-dark .exchange-step-label {
  color: #94a3b8;
}

body.jzplus-theme.theme-dark .exchange-step-number {
  background: #334155;
  color: #cbd5e1;
}

body.jzplus-theme.theme-dark .exchange-step-line {
  background: #334155;
}

body.jzplus-theme.theme-dark .exchange-input {
  background: #0f172a !important;
  border-color: #475569 !important;
  color: #e2e8f0 !important;
}

body.jzplus-theme.theme-dark .exchange-input::placeholder {
  color: #64748b;
}

body.jzplus-theme.theme-dark .btn-ghost {
  background: #1e293b !important;
  border-color: #475569 !important;
  color: #e2e8f0;
}

body.jzplus-theme.theme-dark .btn-ghost:hover {
  background: #334155 !important;
}

body.jzplus-theme.theme-dark .exchange-btn.ghost {
  background: #1e293b !important;
  border-color: #475569 !important;
  color: #e2e8f0 !important;
}

body.jzplus-theme.theme-dark .exchange-btn.primary {
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.32) !important;
}

body.jzplus-theme.theme-dark .exchange-hint a,
body.jzplus-theme.theme-dark .exchange-queue-count {
  color: #93c5fd;
}

.exchange-query-count {
  margin-top: 8px;
  color: #1d4ed8;
  font-size: 13px;
  font-weight: 800;
}

.exchange-results-layout {
  margin-top: 16px;
}

.exchange-results-layout.with-list {
  display: grid;
  grid-template-columns: 390px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.batch-result-card {
  display: grid;
  gap: 14px;
  align-content: start;
}

.exchange-batch-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.exchange-result-kicker {
  display: block;
  color: #667085;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.4px;
}

.exchange-batch-headline h2,
.exchange-detail-banner h2 {
  margin: 4px 0 6px;
  font-size: 22px;
  font-weight: 900;
  color: #101828;
}

.exchange-batch-headline p,
.exchange-detail-banner p {
  margin: 0;
  color: #475467;
  font-size: 13px;
  font-weight: 600;
}

.exchange-reuse-btn,
.exchange-mini-btn,
.exchange-batch-copy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 6px 12px !important;
  border-radius: 999px !important;
  border: 0.8px solid #d0d5dd !important;
  background: #fff !important;
  color: #344054 !important;
  font-size: 12px;
  font-weight: 800;
  box-shadow: none !important;
  white-space: nowrap;
}

.exchange-reuse-btn:hover,
.exchange-mini-btn:hover,
.exchange-batch-copy:hover {
  background: #f8fafc !important;
}

.exchange-batch-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.exchange-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 8px;
  background: #f8fafc;
  border: 0.8px solid #e5eaf3;
  color: #667085;
  font-size: 12px;
  font-weight: 900;
}

.exchange-chip strong {
  font-variant-numeric: tabular-nums;
}

.exchange-chip.found strong { color: #067647; }
.exchange-chip.processing strong { color: #1d4ed8; }
.exchange-chip.failed strong { color: #b42318; }
.exchange-chip.unused strong { color: #b54708; }

.exchange-batch-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
  max-height: 560px;
  overflow: auto;
  padding-right: 4px;
}

.exchange-batch-item {
  display: grid;
  gap: 7px;
  width: 100%;
  padding: 12px 13px;
  border-radius: 8px;
  background: #fff;
  border: 0.8px solid #e5eaf3;
  text-align: left;
  color: #101828;
}

.exchange-batch-item.completed {
  border-color: #abefc6;
  background: #f6fef9;
  box-shadow: inset 3px 0 0 #12b76a;
}

.exchange-batch-item.unused {
  box-shadow: inset 3px 0 0 #f79009;
}

.exchange-batch-item.processing,
.exchange-batch-item.queued {
  box-shadow: inset 3px 0 0 #2e90fa;
}

.exchange-batch-item.failed,
.exchange-batch-item.missing {
  box-shadow: inset 3px 0 0 #f04438;
}

.exchange-batch-item.active {
  border-color: #12b76a;
}

.exchange-batch-item.clickable {
  cursor: pointer;
}

.exchange-batch-codeline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.exchange-batch-code {
  font-size: 13px;
  font-weight: 800;
  color: #101828;
  overflow: hidden;
  text-overflow: ellipsis;
}

.exchange-batch-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  color: #667085;
  font-size: 12px;
}

.exchange-batch-meta strong {
  font-size: 12px;
  font-weight: 900;
}

.exchange-batch-meta.completed strong { color: #067647; }
.exchange-batch-meta.unused strong { color: #b54708; }
.exchange-batch-meta.processing strong,
.exchange-batch-meta.queued strong { color: #175cd3; }
.exchange-batch-meta.failed strong,
.exchange-batch-meta.missing strong { color: #b42318; }

.exchange-batch-sub {
  color: #475467;
}

.exchange-plan-mini {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 999px;
  background: #ecfdf3;
  color: #067647;
  font-size: 12px;
  font-weight: 800;
}

.exchange-plan-mini::before {
  content: "+";
  font-weight: 900;
}

.exchange-detail-card {
  min-height: 360px;
}

.exchange-detail-banner {
  position: relative;
  margin: -6px 0 18px;
  padding: 16px 18px;
  border-radius: 8px;
  background: #ecfdf3;
  border: 0.8px solid #abefc6;
}

.exchange-detail-banner.unused {
  background: #fff7ed;
  border-color: #fdc674;
}

.exchange-detail-banner.processing,
.exchange-detail-banner.queued {
  background: #eff8ff;
  border-color: #b2ddff;
}

.exchange-detail-banner.failed,
.exchange-detail-banner.missing {
  background: #fef3f2;
  border-color: #fecdca;
}

.exchange-detail-status {
  position: absolute;
  top: 16px;
  right: 18px;
  color: #067647;
  font-size: 13px;
  font-weight: 800;
}

.exchange-detail-banner.unused .exchange-detail-status { color: #b54708; }
.exchange-detail-banner.processing .exchange-detail-status,
.exchange-detail-banner.queued .exchange-detail-status { color: #175cd3; }
.exchange-detail-banner.failed .exchange-detail-status,
.exchange-detail-banner.missing .exchange-detail-status { color: #b42318; }

.exchange-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 24px;
  padding: 4px 4px 18px;
}

.exchange-detail-grid span {
  display: block;
  margin-bottom: 6px;
  color: #667085;
  font-size: 12px;
  font-weight: 800;
}

.exchange-detail-grid strong {
  color: #101828;
  font-size: 15px;
  font-weight: 800;
  word-break: break-all;
}

.exchange-detail-grid .span-2 {
  grid-column: 1 / -1;
}

.exchange-detail-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 14px;
  border-top: 0.8px solid #e5eaf3;
}

.exchange-job-id {
  margin-left: auto;
  color: #98a2b3;
  font-size: 12px;
}

@media (max-width: 860px) {
  .exchange-container {
    width: calc(100% - 20px);
    margin: 12px auto 28px;
  }

  .exchange-header {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .exchange-tools {
    align-self: flex-end;
  }

  .exchange-switchboard {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .exchange-tabs {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    width: 100%;
    gap: 4px;
  }

  .exchange-tab {
    flex: none;
    box-sizing: border-box;
    width: calc(2.2em + 20px);
    max-width: 100%;
    height: auto;
    min-height: 48px;
    margin: 0 auto;
    padding: 8px 10px !important;
    font-size: 13px;
    line-height: 1.3;
    white-space: normal;
    word-break: break-all;
    overflow-wrap: anywhere;
    text-align: center;
  }

  .exchange-tab.active {
    padding: 8px 10px !important;
  }

  .exchange-queue-bar {
    white-space: normal;
    flex-wrap: wrap;
    width: 100%;
  }

  .exchange-buttons.split {
    grid-template-columns: 1fr;
  }

  .exchange-title-copy h1 {
    font-size: 26px;
  }

  .exchange-results-layout.with-list {
    grid-template-columns: 1fr;
  }

  .exchange-shell,
  .exchange-card {
    padding: 18px 16px;
  }

  .exchange-steps {
    gap: 8px;
    padding: 12px;
    overflow-x: auto;
  }

  .exchange-step-label {
    font-size: 13px;
  }
}

@media (max-width: 640px) {
  .exchange-title-block {
    gap: 10px;
  }

  .exchange-brand-mark {
    width: 40px;
    height: 40px;
    font-size: 13px;
  }

  .exchange-title-copy h1 {
    font-size: 22px;
    line-height: 1.2;
  }

  .exchange-title-copy p {
    font-size: 13px;
  }

  .exchange-tab {
    min-height: 48px;
    font-size: 12px;
    padding: 8px 10px !important;
  }

  .exchange-steps {
    flex-wrap: wrap;
  }

  .exchange-step-line {
    min-width: 12px;
  }

  .exchange-card {
    padding: 16px 14px;
  }

  .exchange-btn {
    min-height: 46px;
  }
}
