/* ═══════════════════════════════════════════════════════════
   提链控制台 · Dark Premium Fintech Theme
   ═══════════════════════════════════════════════════════════ */
:root {
  --bg: #05070e;
  --bg-soft: #0a0f1d;
  --card: rgba(13, 19, 34, 0.78);
  --card-solid: #0d1322;
  --card-border: rgba(148, 163, 184, 0.11);
  --card-border-hi: rgba(148, 163, 184, 0.22);
  --text: #e7ecf6;
  --text-dim: #93a0b8;
  --text-faint: #5c6880;
  --accent: #3b82f6;
  --accent-2: #22d3ee;
  --violet: #8b5cf6;
  --ok: #10b981;
  --warn: #f59e0b;
  --err: #f43f5e;
  --mono: "Cascadia Code", "JetBrains Mono", Consolas, "Courier New", monospace;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 12px 34px rgba(0, 0, 0, 0.42);
  --grad: linear-gradient(135deg, #3b82f6 0%, #22d3ee 100%);
  --grad-soft: linear-gradient(135deg, rgba(59, 130, 246, 0.16), rgba(34, 211, 238, 0.10));
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { color-scheme: dark; }

body {
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ── 背景氛围 ── */
.bg-fx { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.bg-glow { position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.5; }
.bg-glow-1 { width: 640px; height: 640px; top: -220px; left: -140px; background: radial-gradient(circle, rgba(59, 130, 246, 0.28), transparent 65%); }
.bg-glow-2 { width: 560px; height: 560px; top: 8%; right: -180px; background: radial-gradient(circle, rgba(34, 211, 238, 0.16), transparent 65%); }
.bg-glow-3 { width: 640px; height: 640px; bottom: -300px; left: 32%; background: radial-gradient(circle, rgba(139, 92, 246, 0.13), transparent 65%); }
.bg-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.045) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, black 30%, transparent 78%);
}

/* ── 顶部导航 ── */
.topbar {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  gap: 18px; padding: 12px 30px;
  background: rgba(5, 7, 14, 0.78);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--card-border);
}
.brand { display: flex; align-items: center; gap: 14px; min-width: 0; }
.brand-mark {
  width: 42px; height: 42px; flex: none;
  display: grid; place-items: center;
  border-radius: 13px;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.22), rgba(34, 211, 238, 0.12));
  border: 1px solid rgba(96, 165, 250, 0.35);
  box-shadow: 0 0 22px rgba(59, 130, 246, 0.28), inset 0 0 14px rgba(59, 130, 246, 0.12);
}
.brand-mark svg { width: 24px; height: 24px; }
.brand-text h1 {
  font-size: 19px; font-weight: 700; letter-spacing: 0.5px;
  background: linear-gradient(90deg, #f1f5fb, #9fc0ff);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.brand-text span { display: block; font-size: 10.5px; letter-spacing: 1.4px; color: var(--text-faint); text-transform: uppercase; margin-top: 1px; }
.ver-tag {
  font-size: 10.5px; padding: 3px 9px; border-radius: 999px;
  color: #9fc0ff; background: rgba(59, 130, 246, 0.13);
  border: 1px solid rgba(96, 165, 250, 0.3); font-family: var(--mono);
}
.sim-badge {
  font-size: 10.5px; padding: 3px 10px; border-radius: 999px;
  color: #fbbf24; background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.35); letter-spacing: 0.5px;
}
.topbar-right { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.status-badge {
  display: flex; align-items: center; gap: 7px;
  font-size: 12px; color: var(--text-dim);
  padding: 6px 13px; border-radius: 999px;
  background: rgba(148, 163, 184, 0.07); border: 1px solid var(--card-border);
}
.status-badge b { color: var(--text); font-variant-numeric: tabular-nums; }
.status-badge.gold { color: #fbbf24; border-color: rgba(245, 158, 11, 0.28); background: rgba(245, 158, 11, 0.07); }
.status-badge.gold b { color: #fcd34d; }
.status-badge svg { width: 14px; height: 14px; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: #475569; flex: none; }
.dot.pulse-green { background: var(--ok); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.55); animation: pulse 2s infinite; }
.dot.pulse-blue { background: var(--accent); box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.55); animation: pulse 2.4s infinite; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.5); }
  70% { box-shadow: 0 0 0 7px rgba(59, 130, 246, 0); }
  100% { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0); }
}
.clock { font-family: var(--mono); font-size: 13px; color: #b9c6de; letter-spacing: 1px; padding: 6px 12px; border-radius: 999px; border: 1px dashed var(--card-border-hi); }

/* ── 主布局 ── */
.shell {
  display: grid; grid-template-columns: 468px minmax(0, 1fr);
  gap: 22px; max-width: 1580px; margin: 0 auto;
  padding: 26px 30px 60px;
}
@media (max-width: 1290px) { .shell { grid-template-columns: 1fr; } }
.config-col, .monitor-col { display: flex; flex-direction: column; gap: 18px; min-width: 0; }

/* ── 卡片 ── */
.card {
  position: relative;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.012)), var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  padding: 20px;
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s;
}
.card:hover { border-color: var(--card-border-hi); }
.card-head {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 12px; margin-bottom: 16px;
}
.eyebrow {
  font-size: 9.5px; font-weight: 700; letter-spacing: 2.2px;
  color: #5d9bff; text-transform: uppercase; margin-bottom: 5px;
}
.card-head h2 { font-size: 15.5px; font-weight: 650; letter-spacing: 0.3px; color: var(--text); }
.head-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.hint-chip {
  font-size: 11px; color: var(--text-dim); padding: 4px 11px;
  border-radius: 999px; background: rgba(148, 163, 184, 0.08); border: 1px solid var(--card-border);
  white-space: nowrap;
}

/* ── 按钮 ── */
.btn-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: none; cursor: pointer; color: #fff;
  font-size: 14.5px; font-weight: 650; letter-spacing: 1px;
  padding: 13px 26px; border-radius: 13px;
  background: linear-gradient(135deg, #2563eb 0%, #0ea5e9 55%, #22d3ee 100%);
  box-shadow: 0 6px 22px rgba(37, 99, 235, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  transition: transform 0.15s, box-shadow 0.2s, filter 0.2s;
}
.btn-primary svg { width: 15px; height: 15px; }
.btn-primary:hover:not(:disabled) { filter: brightness(1.12); box-shadow: 0 8px 30px rgba(37, 99, 235, 0.6); transform: translateY(-1px); }
.btn-primary:active:not(:disabled) { transform: translateY(0) scale(0.985); }
.btn-primary:disabled { opacity: 0.45; cursor: not-allowed; }
.btn-ghost {
  padding: 11px 22px; border-radius: 13px; cursor: pointer;
  color: var(--text-dim); font-size: 13.5px;
  background: rgba(148, 163, 184, 0.06); border: 1px solid var(--card-border-hi);
  transition: all 0.18s;
}
.btn-ghost:hover { color: var(--text); border-color: rgba(148, 163, 184, 0.4); background: rgba(148, 163, 184, 0.1); }
.ghost-btn {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; color: var(--text-dim); cursor: pointer;
  padding: 6px 12px; border-radius: 9px;
  background: rgba(148, 163, 184, 0.06); border: 1px solid var(--card-border);
  transition: all 0.18s;
}
.ghost-btn svg { width: 13px; height: 13px; }
.ghost-btn:hover:not(:disabled) { color: #cfe0ff; border-color: rgba(96, 165, 250, 0.45); background: rgba(59, 130, 246, 0.1); }
.ghost-btn:disabled { opacity: 0.35; cursor: not-allowed; }
.ghost-btn.danger:hover:not(:disabled) { color: #fda4af; border-color: rgba(244, 63, 94, 0.5); background: rgba(244, 63, 94, 0.1); }

/* ── 模式选择 ── */
.mode-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 10px; }
.mode-card {
  position: relative; cursor: pointer; user-select: none;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 14px 8px 12px; border-radius: 14px;
  background: rgba(148, 163, 184, 0.05);
  border: 1px solid var(--card-border);
  transition: all 0.2s;
}
.mode-card:hover { background: rgba(148, 163, 184, 0.09); transform: translateY(-1px); }
.mode-card .mode-logo {
  width: 44px; height: 44px; border-radius: 11px;
  display: grid; place-items: center;
  font-weight: 800; font-size: 13px; letter-spacing: 0.4px; color: #fff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}
.mode-card .mode-name { font-size: 12.5px; font-weight: 600; color: var(--text); }
.mode-card .mode-desc { font-size: 9.5px; color: var(--text-faint); text-align: center; line-height: 1.35; min-height: 26px; }
.mode-card .mode-check {
  position: absolute; top: 7px; right: 7px; width: 15px; height: 15px;
  border-radius: 50%; display: none; place-items: center;
  background: var(--grad); box-shadow: 0 2px 8px rgba(34, 211, 238, 0.5);
}
.mode-card .mode-check svg { width: 9px; height: 9px; stroke: #fff; stroke-width: 3.2; fill: none; }
.mode-card.active {
  border-color: color-mix(in srgb, var(--mc) 65%, transparent);
  background: linear-gradient(180deg, color-mix(in srgb, var(--mc) 14%, transparent), rgba(148, 163, 184, 0.03));
  box-shadow: 0 0 24px color-mix(in srgb, var(--mc) 22%, transparent), inset 0 0 18px color-mix(in srgb, var(--mc) 8%, transparent);
}
.mode-card.active .mode-check { display: grid; }
.mode-card.active .mode-name { color: #fff; }

/* ── 建单国家选择 ── */
.country-picker { position: relative; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--card-border); }
.country-picker-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 9px; }
.country-picker-label { font-size: 12px; font-weight: 650; color: var(--text); }
.country-picker-note { display: block; margin-top: 4px; font-size: 10.5px; line-height: 1.45; color: var(--text-faint); }
.currency-badge { flex: none; padding: 4px 9px; border: 1px solid rgba(34, 211, 238, 0.28); border-radius: 7px; color: #a5f3fc; background: rgba(34, 211, 238, 0.09); font: 700 10.5px var(--mono); }
.country-picker-trigger { width: 100%; min-height: 54px; display: flex; align-items: center; gap: 11px; padding: 9px 12px; color: var(--text); text-align: left; cursor: pointer; background: rgba(4, 8, 16, 0.6); border: 1px solid var(--card-border-hi); border-radius: 10px; transition: border-color .2s, box-shadow .2s, background .2s; }
.country-picker-trigger:hover, .country-picker-trigger[aria-expanded="true"] { border-color: rgba(96, 165, 250, .6); background: rgba(59, 130, 246, .07); box-shadow: 0 0 0 3px rgba(59, 130, 246, .10); }
.country-trigger-code { flex: none; min-width: 35px; color: #7dd3fc; font: 800 14px var(--mono); letter-spacing: .4px; }
.country-trigger-names { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.country-trigger-names strong { font-size: 12.5px; font-weight: 650; color: var(--text); }
.country-trigger-names span { overflow: hidden; color: var(--text-dim); font-size: 10.5px; text-overflow: ellipsis; white-space: nowrap; }
.country-trigger-chevron { width: 16px; height: 16px; margin-left: auto; flex: none; color: var(--text-faint); transition: transform .2s; }
.country-picker-trigger[aria-expanded="true"] .country-trigger-chevron { transform: rotate(180deg); color: #7dd3fc; }
.country-picker-menu { position: absolute; z-index: 12; top: calc(100% - 1px); left: 0; right: 0; padding: 8px; background: #0b1120; border: 1px solid var(--card-border-hi); border-radius: 11px; box-shadow: 0 18px 42px rgba(0,0,0,.55); }
.country-search-wrap { position: relative; display: flex; align-items: center; }
.country-search-wrap svg { position: absolute; left: 11px; width: 15px; height: 15px; color: var(--text-faint); pointer-events: none; }
.country-search-wrap input { height: 38px; padding: 7px 10px 7px 33px; border-radius: 8px; font-size: 12px; }
.country-options { max-height: 276px; margin-top: 7px; overflow-y: auto; }
.country-option { width: 100%; min-height: 48px; display: flex; align-items: center; gap: 10px; padding: 7px 9px; border: 1px solid transparent; border-radius: 8px; color: var(--text); background: transparent; cursor: pointer; text-align: left; }
.country-option:hover, .country-option.selected { background: rgba(59, 130, 246, .12); border-color: rgba(96, 165, 250, .28); }
.country-option-code { flex: none; width: 30px; color: #7dd3fc; font: 800 11.5px var(--mono); }
.country-option-main { min-width: 0; display: flex; align-items: baseline; gap: 7px; flex: 1; }
.country-option-main strong { overflow: hidden; font-size: 12px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.country-option-main span { overflow: hidden; color: var(--text-dim); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.country-option-meta { flex: none; color: var(--text-faint); font: 10px var(--mono); }
.country-options-empty { padding: 18px 10px; color: var(--text-faint); font-size: 11px; text-align: center; }

/* ── 文本域 ── */
textarea, input[type="text"] {
  width: 100%; color: var(--text); font-size: 13px;
  background: rgba(4, 8, 16, 0.6);
  border: 1px solid var(--card-border-hi); border-radius: var(--radius-sm);
  padding: 12px 14px; outline: none; resize: vertical;
  font-family: var(--mono); line-height: 1.65;
  transition: border-color 0.2s, box-shadow 0.2s;
}
textarea:focus, input[type="text"]:focus {
  border-color: rgba(96, 165, 250, 0.6);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}
textarea::placeholder, input::placeholder { color: #4a5468; }
input[type="text"] { font-family: inherit; resize: none; }

/* ── AT 预览条 ── */
.ats-strip {
  display: flex; gap: 7px; flex-wrap: wrap; margin-top: 12px;
  max-height: 92px; overflow-y: auto;
}
.strip-empty { font-size: 11.5px; color: var(--text-faint); padding: 6px 4px; }
.at-chip {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--mono); font-size: 10.5px;
  padding: 5px 10px; border-radius: 999px;
  background: rgba(148, 163, 184, 0.07); border: 1px solid var(--card-border);
  color: var(--text-dim);
}
.at-chip .at-kind { font-weight: 700; color: #7dd3fc; }
.at-chip .at-bad { color: #fda4af; }
.at-chip .at-exp { color: #fbbf24; }

/* ── 分段开关 ── */
.seg { display: flex; background: rgba(4, 8, 16, 0.6); border: 1px solid var(--card-border); border-radius: 10px; padding: 3px; }
.seg button {
  border: none; background: none; cursor: pointer;
  font-size: 12px; color: var(--text-dim); padding: 5px 14px; border-radius: 8px;
  transition: all 0.18s;
}
.seg button.on { color: #fff; background: linear-gradient(135deg, rgba(59, 130, 246, 0.85), rgba(14, 165, 233, 0.85)); box-shadow: 0 2px 10px rgba(59, 130, 246, 0.35); }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; }
.mini-note { font-size: 11.5px; color: var(--text-faint); }
#proxyResult { margin-top: 10px; }
.proxy-check-item {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  font-size: 12px; padding: 9px 13px; border-radius: 10px;
  background: rgba(148, 163, 184, 0.06); border: 1px solid var(--card-border); margin-bottom: 7px;
}
.proxy-check-item .pc-ip { font-family: var(--mono); color: var(--text-dim); }
.proxy-check-item .pc-ok { color: var(--ok); font-weight: 600; }
.proxy-check-item .pc-fail { color: var(--err); font-weight: 600; }

/* ── 参数区 ── */
.param-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
.param { min-width: 0; }
.param.wide { grid-column: 1 / -1; }
.param label { display: flex; justify-content: space-between; align-items: baseline; font-size: 12px; color: var(--text-dim); margin-bottom: 8px; }
.param label b { color: #7dd3fc; font-family: var(--mono); font-size: 13px; }
.param .faint { color: var(--text-faint); font-size: 10.5px; }
input[type="range"] {
  -webkit-appearance: none; appearance: none; width: 100%; height: 5px;
  border-radius: 999px; background: linear-gradient(90deg, #2563eb, #22d3ee);
  outline: none; cursor: pointer;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 16px; height: 16px; border-radius: 50%;
  background: #fff; border: 3px solid #2563eb;
  box-shadow: 0 0 12px rgba(59, 130, 246, 0.7);
  cursor: grab; transition: transform 0.12s;
}
input[type="range"]::-webkit-slider-thumb:hover { transform: scale(1.15); }
input[type="range"]::-moz-range-thumb {
  width: 15px; height: 15px; border-radius: 50%;
  background: #fff; border: 3px solid #2563eb;
  box-shadow: 0 0 12px rgba(59, 130, 246, 0.7); cursor: grab;
}
.slider-labels { display: flex; justify-content: space-between; font-size: 9.5px; color: var(--text-faint); margin-top: 4px; }
.launch-row { display: flex; gap: 12px; margin-top: 20px; }
.launch-row .btn-primary { flex: 1; }
.launch-msg { margin-top: 12px; font-size: 12px; color: var(--text-dim); min-height: 16px; }
.launch-msg.err { color: var(--err); }
.launch-msg.ok { color: var(--ok); }

/* ── 统计卡 ── */
.stat-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
@media (max-width: 900px) { .stat-grid { grid-template-columns: repeat(2, 1fr); } }
.stat-card {
  position: relative; overflow: hidden;
  padding: 16px 18px 14px; border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.012)), var(--card);
  border: 1px solid var(--card-border);
}
.stat-card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 2px;
  background: linear-gradient(90deg, transparent, #64748b, transparent); opacity: 0.5;
}
.stat-card p { font-size: 10.5px; letter-spacing: 1px; color: var(--text-faint); margin-bottom: 6px; }
.stat-card b { font-size: 24px; font-weight: 750; font-variant-numeric: tabular-nums; color: var(--text); }
.stat-card.ok::before { background: linear-gradient(90deg, transparent, var(--ok), transparent); }
.stat-card.ok b { color: #34d399; }
.stat-card.fail::before { background: linear-gradient(90deg, transparent, var(--err), transparent); }
.stat-card.fail b { color: #fb7185; }
.stat-card.accent::before { background: linear-gradient(90deg, transparent, #22d3ee, transparent); }
.stat-card.accent b { background: linear-gradient(90deg, #7dd3fc, #a5f3fc); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.free-cdk-btn {
  min-height: 84px; display: flex; align-items: center; justify-content: center;
  padding: 16px 18px; border-radius: 16px; border: 1px solid rgba(34, 211, 238, 0.42);
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.18), rgba(34, 211, 238, 0.08));
  color: #a5f3fc; font-size: 15px; font-weight: 700; text-decoration: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 8px 24px rgba(8, 145, 178, 0.12);
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}
.free-cdk-btn:hover { border-color: rgba(103, 232, 249, 0.8); background: linear-gradient(135deg, rgba(14, 165, 233, 0.3), rgba(34, 211, 238, 0.14)); transform: translateY(-1px); }
.free-cdk-btn:focus-visible { outline: 2px solid #67e8f9; outline-offset: 3px; }

/* ── 进度 ── */
.task-toolbar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.conc-chip, .status-chip {
  font-size: 11px; padding: 5px 12px; border-radius: 999px; white-space: nowrap;
  border: 1px solid var(--card-border); color: var(--text-dim); background: rgba(148, 163, 184, 0.06);
  font-family: var(--mono);
}
.status-chip.idle { color: var(--text-faint); }
.status-chip.running { color: #7dd3fc; border-color: rgba(59, 130, 246, 0.45); background: rgba(59, 130, 246, 0.1); animation: chipPulse 1.6s infinite; }
.status-chip.success { color: #34d399; border-color: rgba(16, 185, 129, 0.45); background: rgba(16, 185, 129, 0.1); }
.status-chip.failed { color: #fb7185; border-color: rgba(244, 63, 94, 0.45); background: rgba(244, 63, 94, 0.1); }
@keyframes chipPulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.55; } }
.progress-bar-wrap {
  height: 10px; border-radius: 999px; overflow: hidden;
  background: rgba(4, 8, 16, 0.75); border: 1px solid var(--card-border);
  margin: 14px 0 10px;
}
.progress-bar {
  height: 100%; width: 0%; border-radius: 999px;
  background: linear-gradient(90deg, #2563eb, #0ea5e9, #22d3ee);
  background-size: 200% 100%;
  box-shadow: 0 0 16px rgba(34, 211, 238, 0.55);
  transition: width 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  animation: shimmer 2.4s linear infinite;
}
.progress-bar.done-ok { background: linear-gradient(90deg, #059669, #10b981, #34d399); animation: none; }
.progress-bar.done-fail { background: linear-gradient(90deg, #be123c, #f43f5e, #fb7185); animation: none; }
@keyframes shimmer { 0% { background-position: 0% 0; } 100% { background-position: 200% 0; } }
.progress-meta { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.progress-meta span:first-child { font-size: 12.5px; color: var(--text-dim); }
.progress-percent { font-family: var(--mono); font-size: 15px; font-weight: 700; color: #7dd3fc; font-variant-numeric: tabular-nums; }

/* ── 并发工作槽 ── */
.worker-slots { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 14px; align-items: center; }
.worker-slots .slot-lbl { font-size: 10px; color: var(--text-faint); margin-right: 4px; letter-spacing: 1px; }
.wslot {
  width: 22px; height: 22px; border-radius: 7px;
  border: 1px solid var(--card-border);
  background: rgba(148, 163, 184, 0.05);
  transition: all 0.25s;
}
.wslot.run { background: linear-gradient(135deg, #2563eb, #22d3ee); border-color: transparent; box-shadow: 0 0 12px rgba(34, 211, 238, 0.6); animation: slotPulse 1.1s infinite; }
.wslot.ok { background: rgba(16, 185, 129, 0.35); border-color: rgba(16, 185, 129, 0.6); }
.wslot.fail { background: rgba(244, 63, 94, 0.35); border-color: rgba(244, 63, 94, 0.6); }
@keyframes slotPulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.12); } }

/* ── 表格 ── */
.table-wrap { max-height: 400px; overflow-y: auto; border: 1px solid var(--card-border); border-radius: var(--radius-sm); }
table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
thead th {
  position: sticky; top: 0; z-index: 2;
  text-align: left; font-size: 10.5px; font-weight: 650; letter-spacing: 1.2px;
  color: var(--text-faint); text-transform: uppercase;
  padding: 11px 13px; background: #0b1120;
  border-bottom: 1px solid var(--card-border-hi);
  white-space: nowrap;
}
tbody td { padding: 10px 13px; border-bottom: 1px solid rgba(148, 163, 184, 0.06); vertical-align: middle; }
tbody tr { transition: background 0.15s; }
tbody tr:hover { background: rgba(59, 130, 246, 0.06); }
tbody tr:last-child td { border-bottom: none; }
.th-idx { width: 40px; } .th-type { width: 64px; } .th-proxy { width: 130px; } .th-status { width: 96px; } .th-dur { width: 70px; } .th-op { width: 66px; }
.cell-idx { color: var(--text-faint); font-family: var(--mono); }
.cell-at { font-family: var(--mono); font-size: 11px; color: #b9c6de; max-width: 190px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cell-type { font-size: 10px; padding: 3px 8px; border-radius: 6px; font-family: var(--mono); }
.cell-type.jwt { color: #7dd3fc; background: rgba(59, 130, 246, 0.12); border: 1px solid rgba(59, 130, 246, 0.3); }
.cell-type.plain { color: #a5b4fc; background: rgba(139, 92, 246, 0.12); border: 1px solid rgba(139, 92, 246, 0.3); }
.cell-proxy { font-family: var(--mono); font-size: 10.5px; color: var(--text-faint); }
.cell-proxy.direct { color: #64748b; font-style: italic; }
.link-cell { display: flex; align-items: center; gap: 8px; min-width: 0; }
.link-cell .link-text {
  font-family: var(--mono); font-size: 11px; color: #7dd3fc;
  max-width: 300px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  text-decoration: none; border-bottom: 1px dashed rgba(125, 211, 252, 0.3);
  cursor: pointer;
}
.link-cell .link-text:hover { color: #bae6fd; }
.link-cell .no-link { color: #4a5468; font-size: 11px; }
.link-copy {
  flex: none; width: 26px; height: 26px; border-radius: 7px; cursor: pointer;
  display: none; place-items: center;
  background: rgba(59, 130, 246, 0.12); border: 1px solid rgba(96, 165, 250, 0.35);
  transition: all 0.15s;
}
.link-copy svg { width: 12px; height: 12px; stroke: #93c5fd; }
tr:hover .link-copy { display: grid; }
.link-copy:hover { background: rgba(59, 130, 246, 0.3); }
.status-pill { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; padding: 4px 10px; border-radius: 999px; font-weight: 600; white-space: nowrap; }
.status-pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status-pill.queued { color: #64748b; background: rgba(100, 116, 139, 0.1); }
.status-pill.running { color: #7dd3fc; background: rgba(59, 130, 246, 0.12); }
.status-pill.running::before { animation: blink 1s infinite; }
.status-pill.success { color: #34d399; background: rgba(16, 185, 129, 0.12); }
.status-pill.failed { color: #fb7185; background: rgba(244, 63, 94, 0.12); }
.status-pill.canceled { color: #94a3b8; background: rgba(148, 163, 184, 0.1); }
@keyframes blink { 50% { opacity: 0.25; } }
.cell-dur { font-family: var(--mono); font-size: 11px; color: var(--text-dim); }
.cell-err { font-size: 11px; color: #fb7185; max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.empty-row td { text-align: center; color: var(--text-faint); padding: 34px 10px; font-size: 12.5px; letter-spacing: 0.5px; }
/* ── 日志 ── */
.log-view {
  max-height: 250px; overflow-y: auto;
  background: rgba(3, 6, 12, 0.72); border: 1px solid var(--card-border);
  border-radius: var(--radius-sm); padding: 12px 14px;
  font-family: var(--mono); font-size: 11.5px; line-height: 1.85;
}
.log-line { display: flex; gap: 10px; align-items: baseline; }
.log-line .lt { color: #3d4a63; flex: none; }
.log-line .lv { flex: none; width: 34px; font-weight: 700; font-size: 10px; letter-spacing: 0.5px; }
.log-line.info .lv { color: #64748b; }
.log-line.run .lv { color: #38bdf8; }
.log-line.ok .lv { color: #34d399; }
.log-line.warn .lv { color: #fbbf24; }
.log-line.err .lv { color: #fb7185; }
.log-line .lm { color: #94a3b8; word-break: break-all; }
.log-line.ok .lm { color: #86efac; }
.log-line.err .lm { color: #fca5a5; }
.log-line.warn .lm { color: #fde68a; }
.log-empty { color: #3d4a63; font-size: 11.5px; text-align: center; padding: 14px 0; }

/* ── 页脚 ── */
.footer {
  max-width: 1580px; margin: 0 auto; padding: 0 30px 34px;
  display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  color: var(--text-faint); font-size: 11px;
}
.footer-links { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.footer-links .sep { opacity: 0.4; }
.footer-links code { font-family: var(--mono); color: #64748b; background: rgba(148, 163, 184, 0.07); padding: 2px 6px; border-radius: 5px; }
.footer-badges { display: flex; gap: 8px; flex-wrap: wrap; }
.footer-badges span {
  font-size: 10px; color: var(--text-faint); padding: 3px 9px;
  border: 1px solid var(--card-border); border-radius: 999px;
}

/* ── Toast ── */
#toasts { position: fixed; top: 74px; right: 22px; z-index: 100; display: flex; flex-direction: column; gap: 10px; }
.toast {
  display: flex; align-items: center; gap: 10px;
  min-width: 240px; max-width: 380px;
  padding: 12px 16px; border-radius: 13px;
  background: rgba(13, 19, 34, 0.95); border: 1px solid var(--card-border-hi);
  box-shadow: var(--shadow); backdrop-filter: blur(12px);
  font-size: 12.5px; color: var(--text);
  animation: toastIn 0.28s cubic-bezier(0.21, 1.02, 0.73, 1);
}
.toast.out { animation: toastOut 0.25s ease forwards; }
.toast .t-icon { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; flex: none; font-size: 12px; font-weight: 800; }
.toast.ok .t-icon { background: rgba(16, 185, 129, 0.18); color: #34d399; }
.toast.err .t-icon { background: rgba(244, 63, 94, 0.18); color: #fb7185; }
.toast.info .t-icon { background: rgba(59, 130, 246, 0.18); color: #7dd3fc; }
@keyframes toastIn { from { opacity: 0; transform: translateX(30px); } to { opacity: 1; transform: none; } }
@keyframes toastOut { to { opacity: 0; transform: translateX(30px); } }

/* ── 滚动条 ── */
::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(148, 163, 184, 0.18); border-radius: 999px; border: 2px solid transparent; background-clip: content-box; }
::-webkit-scrollbar-thumb:hover { background: rgba(148, 163, 184, 0.32); border: 2px solid transparent; background-clip: content-box; }

/* ── 其他 ── */
.hidden { display: none !important; }
code.kbd { font-family: var(--mono); }

/* 内置代理池不可用标注 */
.seg button.builtin-disabled {
  color: #fda4af; opacity: 0.75; cursor: not-allowed;
}
.seg button.builtin-disabled:hover { color: #fda4af; background: rgba(244, 63, 94, 0.1); }
.seg button.builtin-disabled.on {
  background: rgba(244, 63, 94, 0.2); box-shadow: none; color: #fda4af;
}
/* 超时说明 */
.timeout-note {
  font-size: 11px; color: var(--text-faint); padding: 8px 12px;
  background: rgba(148, 163, 184, 0.06); border: 1px dashed var(--card-border);
  border-radius: 9px; line-height: 1.6;
}


/* BA 链接复制按钮 */
.res-copy {
  display: inline-flex; align-items: center;
  font-size: 10px; padding: 3px 9px; border-radius: 7px; cursor: pointer;
  color: #a5f3fc; background: rgba(34, 211, 238, 0.08);
  border: 1px solid rgba(34, 211, 238, 0.35);
  transition: all 0.15s; margin-left: 4px; vertical-align: middle;
}
.res-copy:hover { background: rgba(34, 211, 238, 0.18); transform: translateY(-1px); }
.res-copy:active { transform: scale(0.96); }


.modal-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
@media (max-width: 420px) { .modal-grid { grid-template-columns: 1fr; } }


/* ── 用户区 / 兑换弹窗 / 管理入口 ── */
.user-chip {
  display: flex; align-items: center; gap: 9px; cursor: pointer;
  padding: 5px 14px 5px 6px; border-radius: 999px;
  background: rgba(148, 163, 184, 0.07); border: 1px solid var(--card-border);
  transition: all 0.18s;
}
.user-chip:hover { border-color: rgba(96, 165, 250, 0.4); background: rgba(59, 130, 246, 0.08); }
.user-avatar {
  width: 30px; height: 30px; border-radius: 50%; flex: none;
  display: grid; place-items: center;
  font-size: 12.5px; font-weight: 750; color: #fff; letter-spacing: 0.5px;
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  box-shadow: 0 2px 10px rgba(37, 99, 235, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.user-meta { display: flex; flex-direction: column; line-height: 1.25; }
.user-meta b { font-size: 12px; color: var(--text); max-width: 130px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-meta i { font-style: normal; font-size: 10px; color: #fbbf24; font-family: var(--mono); }
.admin-link { text-decoration: none; }
.rebind-link {
  color: #a5f3fc;
  text-decoration: none;
  border-color: rgba(34, 211, 238, 0.46);
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.22), rgba(34, 211, 238, 0.13));
  box-shadow: 0 0 18px rgba(34, 211, 238, 0.09);
}
.rebind-link:hover {
  color: #ecfeff !important;
  border-color: rgba(103, 232, 249, 0.72) !important;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.34), rgba(34, 211, 238, 0.22)) !important;
  box-shadow: 0 0 22px rgba(34, 211, 238, 0.2);
}

/* 弹窗 */
.modal-mask {
  position: fixed; inset: 0; z-index: 90;
  display: flex; align-items: center; justify-content: center;
  background: rgba(2, 4, 10, 0.72);
  backdrop-filter: blur(8px);
  animation: fadeIn 0.2s ease;
}
.modal-mask[hidden] { display: none !important; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal {
  width: min(440px, calc(100vw - 40px));
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015)), var(--card-solid);
  border: 1px solid var(--card-border-hi);
  border-radius: 20px; padding: 24px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.6), 0 0 40px rgba(59, 130, 246, 0.12);
  animation: modalIn 0.26s cubic-bezier(0.21, 1.02, 0.73, 1);
}
@keyframes modalIn { from { opacity: 0; transform: translateY(16px) scale(0.97); } to { opacity: 1; transform: none; } }
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 14px; }
.modal-head h2 { font-size: 17px; font-weight: 700; }
.modal-close {
  width: 30px; height: 30px; border-radius: 9px; cursor: pointer;
  display: grid; place-items: center; color: var(--text-faint);
  background: rgba(148, 163, 184, 0.07); border: 1px solid var(--card-border);
  transition: all 0.15s;
}
.modal-close svg { width: 14px; height: 14px; }
.modal-close:hover { color: #fda4af; border-color: rgba(244, 63, 94, 0.4); background: rgba(244, 63, 94, 0.1); }
.modal-hint { font-size: 12px; color: var(--text-dim); line-height: 1.7; margin-bottom: 16px; }
.redeem-input {
  width: 100%; padding: 13px 15px;
  font-family: var(--mono); font-size: 13.5px; letter-spacing: 0.6px; text-transform: uppercase;
  background: rgba(4, 8, 16, 0.7); border: 1px solid var(--card-border-hi);
  border-radius: 12px; color: var(--text); outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.redeem-input:focus { border-color: rgba(96, 165, 250, 0.6); box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15); }
.redeem-input::placeholder { color: #4a5468; text-transform: none; letter-spacing: 0; }
.modal-actions { display: flex; gap: 10px; margin-top: 16px; }
.modal-actions .modal-btn { flex: 1; }
.modal-actions .btn-ghost { flex: none; }
.redeem-msg { margin-top: 12px; font-size: 12.5px; min-height: 16px; }
.redeem-msg.ok { color: #34d399; }
.redeem-msg.err { color: #fb7185; }


/* ── 账号列表 ── */
.accounts-card .accounts-toolbar { margin-bottom: 12px; }
.accounts-toolbar code {
  font-family: var(--mono); color: #7dd3fc;
  background: rgba(59, 130, 246, 0.08); border: 1px solid rgba(96, 165, 250, 0.22);
  padding: 1px 6px; border-radius: 5px; font-size: 10.5px;
}
.accounts-wrap {
  max-height: 320px; overflow-y: auto;
  border: 1px solid var(--card-border); border-radius: var(--radius-sm);
  background: rgba(3, 6, 12, 0.45);
}
.accounts-empty {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 34px 16px; color: var(--text-faint);
}
.accounts-empty svg { width: 34px; height: 34px; opacity: 0.45; }
.accounts-empty p { font-size: 13px; font-weight: 600; color: var(--text-dim); margin-top: 4px; }
.accounts-empty span { font-size: 11px; color: var(--text-faint); }
.acct-row {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px; border-bottom: 1px solid rgba(148, 163, 184, 0.06);
  transition: background 0.15s;
}
.acct-row:last-child { border-bottom: none; }
.acct-row:hover { background: rgba(59, 130, 246, 0.06); }
.acct-row .acct-idx {
  flex: none; width: 22px; text-align: right;
  font-family: var(--mono); font-size: 10.5px; color: var(--text-faint);
}
.acct-avatar {
  flex: none; width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center;
  font-size: 12.5px; font-weight: 750; color: #fff; letter-spacing: 0.5px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  text-transform: uppercase;
}
.acct-email {
  flex: 1; min-width: 0;
  font-family: var(--mono); font-size: 12px; color: #c9d6ec;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.acct-email .acct-domain { color: #64748b; }
.acct-actions { display: flex; align-items: center; gap: 6px; flex: none; }
.acct-badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 10.5px; font-weight: 700; letter-spacing: 0.6px;
  padding: 4px 12px; border-radius: 999px; cursor: pointer; user-select: none;
  transition: all 0.18s; white-space: nowrap;
  border: 1px solid transparent;
}
.acct-badge::after { content: "⇄"; font-size: 9px; opacity: 0.65; }
.acct-badge:hover { transform: scale(1.05); }
.acct-badge.oa {
  color: #c7d9ff; border-color: rgba(59, 130, 246, 0.5);
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.35), rgba(59, 130, 246, 0.18));
  box-shadow: 0 0 12px rgba(59, 130, 246, 0.22);
}
.acct-badge.oa:hover { box-shadow: 0 0 18px rgba(59, 130, 246, 0.45); }
.acct-badge.cs {
  color: #a7f3d0; border-color: rgba(16, 185, 129, 0.5);
  background: linear-gradient(135deg, rgba(5, 150, 105, 0.35), rgba(16, 185, 129, 0.16));
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.2);
}
.acct-badge.cs:hover { box-shadow: 0 0 18px rgba(16, 185, 129, 0.42); }
.acct-badge.unset {
  color: #64748b; border-color: rgba(148, 163, 184, 0.3);
  background: rgba(148, 163, 184, 0.06); border-style: dashed;
}
.acct-badge.unset:hover { color: #94a3b8; border-color: rgba(148, 163, 184, 0.5); }
.acct-icon-btn {
  width: 24px; height: 24px; border-radius: 7px; cursor: pointer;
  display: grid; place-items: center;
  background: rgba(148, 163, 184, 0.06); border: 1px solid transparent;
  color: var(--text-faint); transition: all 0.15s;
}
.acct-icon-btn svg { width: 12px; height: 12px; }
.acct-icon-btn:hover { color: #93c5fd; background: rgba(59, 130, 246, 0.12); border-color: rgba(96, 165, 250, 0.3); }
.acct-icon-btn.del:hover { color: #fda4af; background: rgba(244, 63, 94, 0.12); border-color: rgba(244, 63, 94, 0.35); }
.ghost-btn.accent {
  color: #a5f3fc; border-color: rgba(34, 211, 238, 0.4);
  background: rgba(34, 211, 238, 0.08);
}
.ghost-btn.accent:hover:not(:disabled) {
  color: #cffafe; border-color: rgba(34, 211, 238, 0.65);
  background: rgba(34, 211, 238, 0.16);
}


/* ── 订单金额 / 订单类型 ── */
.cell-amount { text-align: center; white-space: nowrap; }
.amount-zero { color: #22c55e; font-weight: 700; }
.cell-order { text-align: center; white-space: nowrap; }
.order-type { display: inline-block; padding: 2px 8px; border-radius: 10px; font-size: 12px; font-weight: 600; }
.order-type.oaics { background: rgba(14, 232, 174, 0.15); color: #0ee8ae; }
.order-type.cs { background: rgba(14, 136, 232, 0.15); color: #0e8fe8; }
.order-type.unknown { background: rgba(148, 163, 184, 0.15); color: #94a3b8; }

/* ── 失败原因展示 ── */
.cell-err { display: flex; flex-direction: column; gap: 3px; margin-top: 4px; }
.err-reason { color: #ef4444; font-weight: 600; font-size: 12px; }
.err-code { color: #64748b; font-size: 11px; word-break: break-all; }

/* ── 双代理池并排 ── */
.dual-pool-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: stretch; width: 100%; box-sizing: border-box; }
.dual-pool-row .pool-card { min-width: 0; width: auto; flex: 1 1 0; }
.dual-pool-row .pool-card textarea { width: 100%; box-sizing: border-box; }
.monitor-col .dual-pool-row { display: grid !important; grid-template-columns: 1fr 1fr !important; }
@media (max-width: 900px) { .dual-pool-row { grid-template-columns: 1fr !important; } }

.acct-atmark { display: inline-block; padding: 1px 6px; border-radius: 8px; font-size: 10px; font-weight: 700; margin-left: 4px; background: rgba(148,163,184,.15); color: #94a3b8; }
.acct-atmark.ok { background: rgba(34,197,94,.15); color: #22c55e; }

/* ── 双代理池卡片对齐 ── */
.dual-pool-row .pool-card { display: flex; flex-direction: column; }
.dual-pool-row .pool-card textarea { flex: 1; min-height: 120px; resize: vertical; }

.dual-pool-row .pool-card { height: 100%; }

.brand-text h1 { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.brand-text h1 .ver-tag { font-size: 10px; padding: 2px 8px; border-radius: 999px; display: inline-block; flex: none; }

/* ── 账号行内任务结果 ── */
.acct-result {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px;
  margin-top: 6px; padding: 6px 10px;
  background: rgba(148, 163, 184, 0.07);
  border-radius: 8px; font-size: 11px;
}
.res-status { font-weight: 700; padding: 1px 8px; border-radius: 8px; }
.res-status.ok { color: #22c55e; background: rgba(34, 197, 94, 0.13); }
.res-status.fail { color: #ef4444; background: rgba(239, 68, 68, 0.13); }
.res-status.run { color: #f59e0b; background: rgba(245, 158, 11, 0.13); }
.res-amount { color: #e2e8f0; font-weight: 600; }
.res-amount.zero { color: #22c55e; font-weight: 700; }
.res-type { color: #93c5fd; padding: 1px 6px; border-radius: 6px; background: rgba(59, 130, 246, 0.13); font-weight: 600; }
.res-dur { color: #64748b; }
.res-link { color: #38bdf8; text-decoration: none; }
.res-link:hover { text-decoration: underline; }
.res-err { color: #fda4af; word-break: break-all; }

/* 账号行内任务结果 + 进度条 */
.acct-result { display: flex; flex-direction: column; gap: 4px; margin-top: 6px; padding: 6px 10px; background: rgba(148,163,184,.07); border-radius: 8px; font-size: 11px; }
.res-line1 { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.res-line2 { color: #93c5fd; font-size: 11px; }
.res-line3 { margin-top: 2px; }
.res-status { font-weight: 700; padding: 1px 8px; border-radius: 8px; }
.res-status.ok { color: #22c55e; background: rgba(34,197,94,.13); }
.res-status.fail { color: #ef4444; background: rgba(239,68,68,.13); }
.res-status.run { color: #f59e0b; background: rgba(245,158,11,.13); }
.res-amount { color: #e2e8f0; font-weight: 600; }
.res-amount.zero { color: #22c55e; font-weight: 700; }
.res-type { color: #93c5fd; padding: 1px 6px; border-radius: 6px; background: rgba(59,130,246,.13); font-weight: 600; }
.res-dur { color: #64748b; }
.res-link { color: #38bdf8; text-decoration: none; }
.res-link:hover { text-decoration: underline; }
.res-err { color: #fda4af; word-break: break-all; }
.res-stage { color: #93c5fd; }
.res-fp { color: #a5b4fc; display: inline-flex; align-items: center; gap: 2px; font-family: ui-monospace, Consolas, monospace; }
.res-fp::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #818cf8; margin-right: 3px; }
.res-progress { display: flex; align-items: center; gap: 8px; height: 6px; background: rgba(148,163,184,.15); border-radius: 4px; overflow: hidden; }
.res-progress-bar { height: 100%; background: linear-gradient(90deg,#3b82f6,#22d3ee); border-radius: 4px; transition: width .3s; }
.res-pct { font-size: 10px; color: #64748b; min-width: 30px; text-align: right; }

/* ── 卡密输入 ── */
.card-input-wrap { display: flex; align-items: center; gap: 8px; }
.card-input { background: rgba(15,23,42,.6); border: 1px solid rgba(148,163,184,.25); border-radius: 8px; padding: 6px 10px; color: #e2e8f0; font-family: var(--mono); font-size: 12px; width: 220px; outline: none; }
.card-input:focus { border-color: rgba(96,165,250,.5); }
.card-remain { font-size: 12px; color: #64748b; white-space: nowrap; }
.card-remain.ok { color: #22c55e; }


/* ── GCash 二维码回调预览 ── */
.qr-modal-mask { z-index: 120; }
.qr-modal { width: min(430px, calc(100vw - 32px)); text-align: center; }
.qr-modal .modal-head { text-align: left; }
.qr-preview-wrap {
  display: grid; place-items: center; min-height: 260px; padding: 16px;
  border-radius: 16px; background: #fff; border: 1px solid rgba(148,163,184,.3);
}
.qr-preview { display: block; width: min(350px, 78vw); height: auto; image-rendering: pixelated; }
.qr-modal-open { overflow: hidden; }
.res-qr {
  border: 1px solid rgba(34,211,238,.42); border-radius: 6px; padding: 2px 8px;
  color: #a5f3fc; background: rgba(34,211,238,.08); cursor: pointer; font-size: 11px;
}
.res-qr:hover { color: #cffafe; border-color: rgba(34,211,238,.75); background: rgba(34,211,238,.16); }
