/* ═══ Design System: Midnight Blue Glassmorphism · Dashboard Layout ═══ */
:root {
  --bg: #10121f;
  --bg-grad-1: rgba(108, 92, 231, 0.09);
  --bg-grad-2: rgba(47, 230, 200, 0.045);
  --surface: rgba(32, 38, 64, 0.55);
  --surface-solid: rgba(26, 30, 50, 0.92);
  --surface-solid-strong: rgba(23, 27, 46, 0.97);
  --border: rgba(255, 255, 255, 0.08);
  --border-light: rgba(255, 255, 255, 0.05);
  --text: #edf0fa;
  --text-secondary: #a6adc6;
  --text-muted: #6b7390;
  --accent: #7c6cff;
  --accent-light: rgba(124, 108, 255, 0.12);
  --accent-dark: #6355e8;
  --accent-glow: rgba(124, 108, 255, 0.25);
  --purple: #8b7cff;
  --purple-light: rgba(139, 124, 255, 0.10);
  --purple-border: rgba(139, 124, 255, 0.30);
  --warn: #f5b04d;
  --warn-light: rgba(245, 176, 77, 0.10);
  --danger: #ff6b6b;
  --danger-light: rgba(255, 107, 107, 0.10);
  --success: #2fd28b;
  --success-light: rgba(47, 210, 139, 0.10);
  --shadow-xs: 0 1px 3px rgba(0, 0, 0, 0.25);
  --shadow-sm: 0 4px 16px rgba(0, 0, 0, 0.28);
  --shadow-md: 0 8px 28px rgba(0, 0, 0, 0.36);
  --shadow-lg: 0 18px 50px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 30px rgba(124, 108, 255, 0.14);
  --radius: 16px;
  --radius-sm: 12px;
  --radius-xs: 8px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

/* Midnight background with soft aurora glows */
html {
  background: #10121f;
  background-image:
    radial-gradient(ellipse 80% 55% at 18% 8%, rgba(108, 92, 231, 0.13) 0%, transparent 52%),
    radial-gradient(ellipse 70% 50% at 85% 92%, rgba(47, 230, 200, 0.07) 0%, transparent 50%),
    radial-gradient(ellipse 60% 45% at 55% 45%, rgba(90, 120, 255, 0.06) 0%, transparent 60%);
  background-attachment: fixed;
  min-height: 100vh;
}

body {
  margin: 0;
  font: 15px/1.6 var(--font);
  color: var(--text);
  background: transparent;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

button, input, select, textarea { font: inherit; color: inherit; }
button, select { cursor: pointer; }
button:disabled { opacity: 0.35; cursor: not-allowed; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Scrollbar */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(139, 124, 255, 0.28); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(139, 124, 255, 0.5); }

/* ═══ App Shell: sidebar + stage ═══ */
.app {
  width: 100%;
  height: 100vh;
  display: flex;
  flex-direction: row;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

/* ═══ Sidebar ═══ */
.side {
  width: 248px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 18px 14px 16px;
  overflow-y: auto;
  background: rgba(12, 14, 28, 0.62);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  border-right: 1px solid rgba(255, 255, 255, 0.05);
}
.side-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 2px 6px 12px;
}
.brand-glyph {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  border-radius: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: linear-gradient(135deg, #6c5ce7, #8b7cff);
  box-shadow: 0 6px 18px rgba(108, 92, 231, 0.45);
}
.logo {
  margin: 0;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.4px;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.side-status {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 4px 8px 12px;
}
.srow {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-secondary);
}
.sdot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}
.sdot.ok { background: #2fd28b; box-shadow: 0 0 8px rgba(47, 210, 139, 0.6); }
.side-sec {
  padding: 12px 8px 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-muted);
}
.snav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.snav .tab {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  height: 42px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  color: var(--text-secondary);
  font-size: 13.5px;
  font-weight: 700;
  text-align: left;
  transition: all 0.25s;
  cursor: pointer;
  position: relative;
}
.snav .tab .ticon {
  width: 24px;
  text-align: center;
  font-size: 15px;
  color: var(--text-muted);
  transition: color 0.25s;
}
.snav .tab:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
}
.snav .tab:hover .ticon { color: #b9b0ff; }
.snav .tab.active {
  background: linear-gradient(135deg, rgba(108, 92, 231, 0.9), rgba(139, 124, 255, 0.85));
  border-color: rgba(139, 124, 255, 0.55);
  color: #ffffff;
  box-shadow: 0 6px 20px rgba(108, 92, 231, 0.4);
}
.snav .tab.active .ticon { color: #ffffff; }
.snav .tab.flag-off { opacity: 0.45; }

/* Method rows (提链方式) */
.snav.modes { gap: 3px; }
.snav .method-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  height: 44px;
  padding: 0 10px;
  border: 1px solid transparent;
  border-radius: 13px;
  background: transparent;
  color: var(--text-secondary);
  font: inherit;
  font-size: 13.5px;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  transition: all 0.25s;
}
.snav .method-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
}
.snav .method-btn.active {
  background: rgba(124, 108, 255, 0.14);
  border-color: rgba(139, 124, 255, 0.42);
  color: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(124, 108, 255, 0.12), 0 4px 16px rgba(108, 92, 231, 0.18);
}
.snav .method-btn .method-icon {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 900;
  color: #fff;
  letter-spacing: 0.3px;
}
.mi-pp { background: linear-gradient(135deg, #6c5ce7, #a29bfe); }
.mi-gc { background: linear-gradient(135deg, #0d8ddb, #4bc0f8); }
.mi-upi { background: linear-gradient(135deg, #f59e0b, #fbbf24); }
.mi-momo { background: linear-gradient(135deg, #ec4899, #f78fb3); }
.mi-blik { background: linear-gradient(135deg, #0ea5a4, #2fe6c8); }
.snav .method-btn .mlabel { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.snav .method-btn .mdot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
  background: #2fd28b;
  box-shadow: 0 0 6px rgba(47, 210, 139, 0.55);
}
.snav .method-btn.flag-off { opacity: 0.42; filter: grayscale(0.7); cursor: not-allowed; }
.snav .method-btn.flag-off .mdot { background: var(--text-muted); box-shadow: none; }
.snav .method-btn.flag-off.active {
  background: rgba(255, 255, 255, 0.05);
  border-color: transparent;
  box-shadow: none;
  color: var(--text-muted);
}

.side-spacer { flex: 1 1 auto; min-height: 14px; }
.side-widget {
  margin-top: 10px;
  padding: 10px;
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

/* CDK widget inside sidebar */
.side-widget .cdk-btn {
  width: 100%;
  height: auto;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
  padding: 10px 12px;
  border: none;
  border-radius: 11px;
  background: linear-gradient(160deg, rgba(108, 92, 231, 0.22), rgba(47, 230, 200, 0.08));
  text-align: left;
}
.side-widget .cdk-btn:hover { border: none; background: linear-gradient(160deg, rgba(108, 92, 231, 0.3), rgba(47, 230, 200, 0.12)); }
.side-widget .cdk-btn svg { color: #b9b0ff; }
.side-widget .cdk-label { font-size: 12px; color: var(--text-secondary); }
.side-widget .cdk-divider { display: none; }
.side-widget .cdk-count { font-size: 26px; color: #ffffff; text-align: left; }
.side-widget .cdk-unit { font-size: 11px; }
.cdk-widget { position: relative; }

/* ═══ Stage: topbar + main ═══ */
.stage {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.topbar {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 62px;
  flex-shrink: 0;
  padding: 0 22px;
  background: rgba(14, 16, 31, 0.7);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.topbar-title {
  flex: 1;
  text-align: center;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.4px;
  color: var(--text-secondary);
  pointer-events: none;
}
.topbar .status-chip { flex-shrink: 0; }

/* ═══ Hero banner ═══ */
.hero {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  padding: 26px 28px;
  margin-bottom: 18px;
  border: 1px solid rgba(139, 124, 255, 0.22);
  background:
    radial-gradient(ellipse 60% 130% at 85% 20%, rgba(108, 92, 231, 0.35) 0%, transparent 55%),
    radial-gradient(ellipse 45% 110% at 70% 110%, rgba(47, 230, 200, 0.16) 0%, transparent 55%),
    linear-gradient(160deg, rgba(38, 44, 74, 0.66), rgba(23, 27, 47, 0.6));
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.hero-main { position: relative; z-index: 1; max-width: 640px; }
.hero-main h2 {
  margin: 0 0 6px;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: #ffffff;
}
.hero-main p {
  margin: 0 0 16px;
  font-size: 13.5px;
  color: var(--text-secondary);
}
.hero-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.hchip {
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 12px;
  border-radius: 13px;
  font-size: 12px;
  font-weight: 700;
  color: #cfd4ff;
  background: rgba(124, 108, 255, 0.14);
  border: 1px solid rgba(139, 124, 255, 0.3);
}
.hchip:nth-child(2) { color: #b9f4ea; background: rgba(47, 230, 200, 0.1); border-color: rgba(47, 230, 200, 0.28); }
.hero-orb {
  position: absolute;
  right: -60px;
  top: 50%;
  transform: translateY(-50%);
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 30%, rgba(255, 255, 255, 0.28) 0%, transparent 32%),
    radial-gradient(circle at 68% 62%, rgba(47, 230, 200, 0.35) 0%, transparent 45%),
    linear-gradient(140deg, #6c5ce7 8%, #2b2f55 70%);
  box-shadow: 0 0 90px rgba(108, 92, 231, 0.45), inset -18px -14px 50px rgba(0, 0, 0, 0.4);
  opacity: 0.9;
  pointer-events: none;
}
.hero-orb::after {
  content: '';
  position: absolute;
  inset: -22px;
  border-radius: 50%;
  border: 1px solid rgba(139, 124, 255, 0.25);
  transform: rotateX(68deg);
}

/* Status Chip */
.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  padding: 5px 13px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  transition: all var(--transition);
}
.status-chip[data-status="running"] { color: var(--warn); background: var(--warn-light); border-color: rgba(245, 176, 77, 0.3); }
.status-chip[data-status="success"] { color: var(--success); background: var(--success-light); border-color: rgba(47, 210, 139, 0.3); }
.status-chip[data-status="failed"] { color: var(--danger); background: var(--danger-light); border-color: rgba(255, 107, 107, 0.3); }

/* ═══ Main ═══ */
.main {
  flex: 1;
  overflow-y: auto;
  padding: 20px 24px 26px;
  min-width: 0;
}

/* ═══ Log Section ═══ */
.log-section {
  margin-top: 16px;
  width: 100%;
}

/* Status indicator */
.status-indicator {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
}
.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-muted);
  transition: all var(--transition);
}
.status-dot.running { background: var(--warn); box-shadow: 0 0 8px rgba(245, 176, 77, 0.55); animation: pulse 1.5s ease infinite; }
.status-dot.success { background: var(--success); box-shadow: 0 0 8px rgba(47, 210, 139, 0.55); }
.status-dot.error { background: var(--danger); box-shadow: 0 0 8px rgba(255, 107, 107, 0.55); }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.4; } }

/* ═══ Cards (Glassmorphism) ═══ */
.card {
  position: relative;
  z-index: 1;
  background: linear-gradient(165deg, rgba(38, 44, 74, 0.60), rgba(23, 27, 47, 0.55));
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 18px;
  padding: 20px 24px;
  box-shadow: 0 10px 34px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  margin-bottom: 16px;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.card.dropdown-open { z-index: 50; }
.card:hover {
  border-color: rgba(139, 124, 255, 0.28);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.42), 0 0 24px rgba(124, 108, 255, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  gap: 12px;
  flex-wrap: wrap;
}
.card-header h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}
.card-hint {
  font-size: 12px;
  color: var(--accent);
  font-weight: 500;
  white-space: nowrap;
}

/* Step numbers */
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background: var(--accent-light);
  color: #b9b0ff;
  font-size: 11px;
  font-weight: 700;
  border: 1px solid rgba(139, 124, 255, 0.3);
}

/* ═══ Badges ═══ */
.badge {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
}
.badge-muted { background: rgba(255, 255, 255, 0.06); color: var(--text-muted); }
.badge-success { background: var(--success-light); color: var(--success); }
.badge-danger { background: var(--danger-light); color: var(--danger); }
.badge-warn { background: var(--warn-light); color: var(--warn); }
.badge-blue { background: var(--accent-light); color: #b9b0ff; }
.badge-running { background: var(--warn-light); color: var(--warn); }

/* ═══ Inputs ═══ */
.input {
  width: 100%;
  height: 44px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--radius-xs);
  background: rgba(13, 16, 32, 0.55);
  color: var(--text);
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
}
.input::placeholder { color: var(--text-muted); }
.input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(124, 108, 255, 0.18);
  background: rgba(13, 16, 32, 0.8);
}
.input-lg { height: 48px; font-size: 16px; }
.input-sm { height: 38px; font-size: 14px; }
.input-mini { width: auto; min-width: 100px; }
.textarea {
  height: auto;
  padding: 10px 12px;
  resize: vertical;
  min-height: 80px;
  line-height: 1.5;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}
.mono { font-family: var(--mono); font-size: 14px; }
select.input { padding-right: 32px; }
select.input option { background: #1e2340; color: var(--text); }

/* AT textarea - large */
.at-textarea {
  min-height: 120px !important;
  font-size: 12px !important;
  line-height: 1.6 !important;
  border-radius: var(--radius-sm) !important;
}
.at-input-wrap { display: flex; gap: 8px; }
.at-input-wrap .input { flex: 1; }
.at-profile {
  margin-top: 8px;
  padding: 8px 12px;
  border-radius: var(--radius-xs);
  background: var(--accent-light);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  border: 1px solid var(--purple-border);
}
.at-email { font-weight: 600; color: #b9b0ff; }
.at-name { color: var(--text-secondary); }

/* Fields */
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field label { font-size: 13px; font-weight: 600; color: var(--text-secondary); }
.field-row { display: flex; gap: 12px; margin-bottom: 14px; }
/* MoMo 行: 压价/双代理池 checkbox 防挤压 */
#momoConcRow { flex-wrap: wrap; row-gap: 2px; }
#momoConcRow .field[style] { flex: 0 0 auto; }
#momoConcRow .field[style] label { white-space: nowrap; }
#momoConcRow .upi-conc-hint { flex: 1 1 170px; }
.flex-1 { flex: 1; min-width: 0; }
.w-140 { width: 140px; flex-shrink: 0; }
.field-meta { margin-top: 6px; font-size: 13px; color: var(--text-muted); }
.field-hint { font-weight: 400; color: var(--text-muted); margin-left: 6px; }

/* ═══ Buttons ═══ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 18px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: var(--radius-xs);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  font-weight: 500;
  font-size: 14px;
  transition: all var(--transition);
  white-space: nowrap;
  text-decoration: none;
}
.btn:hover:not(:disabled) {
  background: rgba(124, 108, 255, 0.12);
  border-color: rgba(139, 124, 255, 0.4);
}
.btn-primary {
  background: linear-gradient(135deg, #6c5ce7, #8b7cff);
  border-color: rgba(139, 124, 255, 0.6);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 4px 16px rgba(108, 92, 231, 0.35);
}
.btn-primary:hover:not(:disabled) {
  background: linear-gradient(135deg, #5b4ddb, #7c6cff);
  box-shadow: 0 8px 24px rgba(108, 92, 231, 0.5);
}
.btn-danger { background: var(--danger-light); border-color: rgba(255, 107, 107, 0.35); color: var(--danger); }
.btn-danger:hover:not(:disabled) { background: rgba(255, 107, 107, 0.18); border-color: var(--danger); }
.btn-danger-outline { border-color: rgba(255, 107, 107, 0.35); color: var(--danger); background: transparent; }
.btn-danger-outline:hover:not(:disabled) { background: var(--danger-light); }
.btn-sm { height: 34px; padding: 0 12px; font-size: 13px; }
.btn-lg { height: 46px; font-size: 15px; }
.btn-icon { width: 40px; height: 40px; padding: 0; border-radius: var(--radius-xs); }
.btn-copy { font-size: 11px; font-weight: 600; }
.btn-copy.copied { border-color: var(--accent); color: #b9b0ff; }
.btn-copy.highlight {
  background: linear-gradient(135deg, #6c5ce7, #8b7cff);
  border-color: rgba(139, 124, 255, 0.6);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(108, 92, 231, 0.4);
}
.btn-copy.highlight:hover { box-shadow: 0 8px 22px rgba(108, 92, 231, 0.55); }
.action-row { display: flex; gap: 10px; margin-top: 16px; }
.action-row .btn-primary { flex: 1; }

.form-error {
  margin: 12px 0 0;
  padding: 10px 14px;
  border-radius: var(--radius-xs);
  background: var(--danger-light);
  border: 1px solid rgba(255, 107, 107, 0.25);
  color: var(--danger);
  font-size: 13px;
}
.form-hint {
  font-size: 12px;
  color: var(--text-muted);
  margin: 10px 0 0;
}

/* ═══ Country Picker ═══ */
.country-picker { position: relative; }
.picker-btn {
  width: 100%;
  height: 44px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--radius-xs);
  background: rgba(13, 16, 32, 0.55);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
  color: var(--text);
  transition: all var(--transition);
}
.picker-btn:hover { border-color: rgba(139, 124, 255, 0.4); }
.picker-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.picker-dropdown {
  position: absolute;
  z-index: 200;
  top: calc(100% + 6px);
  left: 0;
  width: 320px;
  max-height: 340px;
  background: var(--surface-solid-strong);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.picker-search {
  width: 100%;
  height: 44px;
  padding: 0 14px;
  border: none;
  border-bottom: 1px solid var(--border);
  background: rgba(13, 16, 32, 0.4);
  font-size: 13px;
  outline: none;
  color: var(--text);
}
.picker-search::placeholder { color: var(--text-muted); }
.picker-list { overflow-y: auto; flex: 1; padding: 4px; }
.picker-group-title {
  padding: 8px 12px 4px;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.picker-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  border-radius: var(--radius-xs);
  cursor: pointer;
  font-size: 13px;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  color: var(--text);
  transition: background var(--transition);
}
.picker-item:hover { background: rgba(124, 108, 255, 0.1); }
.picker-item.selected { background: var(--accent-light); color: #b9b0ff; }
.picker-item-right { font-size: 11px; color: var(--text-muted); font-family: var(--mono); }

.country-detail {
  margin: -8px 0 12px;
  padding: 6px 10px;
  border-left: 3px solid var(--accent);
  font-size: 12px;
  color: var(--text-secondary);
  background: rgba(124, 108, 255, 0.07);
  border-radius: 0 var(--radius-xs) var(--radius-xs) 0;
}

/* ═══ Proxy Preview ═══ */
.proxy-preview {
  margin-top: 10px;
  max-height: 170px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xs);
  overflow: auto;
}
.proxy-table { width: 100%; table-layout: fixed; border-collapse: collapse; font-size: 12px; }
.proxy-table th {
  background: rgba(255, 255, 255, 0.035);
  padding: 6px 10px;
  text-align: left;
  font-weight: 600;
  color: var(--text-muted);
  font-size: 11px;
}
.proxy-table th:first-child { width: 42px; }
.proxy-table th:last-child { width: 126px; }
.proxy-table td {
  padding: 5px 10px;
  border-top: 1px solid var(--border-light);
  font-family: var(--mono);
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.proxy-table tr.proxy-invalid { background: var(--danger-light); }
.proxy-table .proxy-status-ok { color: var(--success); font-weight: 600; }
.proxy-table .proxy-status-err { color: var(--danger); font-weight: 600; }
.proxy-table .proxy-overflow td { color: var(--text-muted); text-align: center; font-family: var(--font); white-space: normal; }

/* ═══ Single Layout ═══ */
.single-layout {
  display: grid;
  grid-template-columns: minmax(380px, 1fr) minmax(0, 1.2fr);
  gap: 18px;
  align-items: start;
}
.config-section { position: sticky; top: 8px; }
.output-section { min-width: 0; }
.proxy-output-section { min-width: 0; display: flex; flex-direction: column; gap: 0; }

/* Mode notices stack */
.mode-notices { display: flex; flex-direction: column; gap: 2px; }

/* ═══ Result Card ═══ */
.result-card {
  border-color: rgba(139, 124, 255, 0.35);
  border-width: 1px;
  box-shadow: var(--shadow-glow), 0 10px 34px rgba(0, 0, 0, 0.35);
}
.result-main { margin-bottom: 16px; }
.result-main label { font-size: 12px; font-weight: 600; color: var(--text-muted); margin-bottom: 6px; display: block; }
.result-url-row { display: flex; align-items: center; gap: 8px; min-width: 0; }
.result-url { font: 13px/1.4 var(--mono); word-break: break-all; min-width: 0; color: var(--text); }
.result-url.primary { font-size: 14px; font-weight: 600; color: #b9b0ff; }
.result-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.result-item label { font-size: 11px; font-weight: 600; color: var(--text-muted); margin-bottom: 4px; display: block; }
.result-meta-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; padding-top: 14px; border-top: 1px solid var(--border-light); }
.result-meta-row label { font-size: 11px; color: var(--text-muted); display: block; margin-bottom: 2px; }
.result-meta-row code { font: 12px var(--mono); color: var(--text); word-break: break-all; }

/* ═══ Log Card ═══ */
.log-card { padding: 0; }
.log-card > .card-header { padding: 14px 20px; margin: 0; border-bottom: 1px solid var(--border-light); }
.log-controls { display: flex; align-items: center; gap: 8px; }
.log-filters { display: flex; gap: 2px; }
.filter-btn {
  padding: 4px 10px;
  border: none;
  background: none;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition);
}
.filter-btn:hover { background: rgba(255, 255, 255, 0.05); color: var(--text); }
.filter-btn.active { background: var(--accent-light); color: #b9b0ff; }
.log-container {
  height: 320px;
  overflow-y: auto;
  overflow-x: hidden;
  position: relative;
  background: rgba(8, 10, 22, 0.45);
  scrollbar-width: thin;
}
.batch-log { height: 200px; }
.log-empty {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 13px;
}
/* Fixed-height single-line rows: keeps virtual scroll math exact (LINE_H = 26) */
.log-line {
  display: grid;
  grid-template-columns: 58px 64px minmax(0,1fr);
  gap: 8px;
  height: 26px;
  padding: 0 16px;
  font: 12.5px/26px var(--mono);
  white-space: nowrap;
  align-items: center;
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.04);
}
.log-line > span { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.log-time { color: var(--text-muted); }
.log-stage { color: var(--text-muted); font-weight: 500; }
.log-msg { color: var(--text); }
.log-line[data-level="success"] .log-msg { color: var(--success); font-weight: 500; }
.log-line[data-level="warn"] .log-msg { color: var(--warn); }
.log-line[data-level="error"] .log-msg { color: var(--danger); font-weight: 500; }
.log-line.log-highlight { background: rgba(124, 108, 255, 0.08); }

/* ═══ Batch Layout ═══ */
.batch-layout {
  display: grid;
  grid-template-columns: minmax(380px, 1fr) minmax(0, 1.2fr);
  gap: 20px;
  align-items: start;
}
.batch-config { position: sticky; top: 84px; }
.batch-dashboard { min-width: 0; display: flex; flex-direction: column; gap: 16px; }

/* ═══ Batch Hint ═══ */
.batch-hint {
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 700;
  color: #b9b0ff;
  background: linear-gradient(135deg, rgba(124, 108, 255, 0.14), rgba(139, 124, 255, 0.08));
  border-bottom: 1px solid rgba(139, 124, 255, 0.22);
  margin: 0;
  text-align: center;
}

/* ═══ Non-OAICS Orange ═══ */
.non-oaics-red { color: #ffa94d; font-weight: 600; }

.batch-selector-card { padding: 16px 20px; }
.batch-selector-card > .card-header { margin-bottom: 12px; }
.batch-actions { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.batch-actions select { width: 180px; }

.batch-progress { margin-bottom: 14px; display: flex; align-items: center; gap: 12px; }
.progress-bar { flex: 1; height: 8px; background: rgba(255, 255, 255, 0.06); border-radius: 4px; overflow: hidden; }
.progress-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.3s ease;
  width: 0;
  background: linear-gradient(90deg, #6c5ce7, #8b7cff, #2fe6c8);
  box-shadow: 0 0 10px rgba(124, 108, 255, 0.35);
}
.progress-text { font-size: 13px; font-weight: 600; color: var(--text-secondary); font-variant-numeric: tabular-nums; }

.batch-stats { display: flex; gap: 0; border-top: 1px solid var(--border-light); padding-top: 12px; }
.stat { flex: 1; text-align: center; }
.stat-value { display: block; font-size: 24px; font-weight: 700; font-variant-numeric: tabular-nums; }
.stat-label { font-size: 12px; color: var(--text-muted); font-weight: 600; }
.stat-success { color: var(--success); }
.stat-failed { color: var(--danger); }
.stat-running { color: var(--warn); }

.batch-jobs-card { padding: 0; }
.batch-jobs-card > .card-header { padding: 14px 20px; margin: 0; border-bottom: 1px solid var(--border-light); }
.batch-job-list { max-height: 420px; overflow-y: auto; }
.batch-job-item {
  display: grid;
  grid-template-columns: minmax(180px,0.8fr) 70px 60px minmax(260px,1.4fr);
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  border-bottom: 1px solid var(--border-light);
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition), box-shadow var(--transition);
}
.batch-job-item:hover { background: rgba(124, 108, 255, 0.07); }
.batch-job-item.active {
  background: rgba(139, 124, 255, 0.12);
  border-left: 3px solid #7c6cff;
  box-shadow: 0 0 10px rgba(124, 108, 255, 0.12);
}
.batch-job-item:last-child { border-bottom: none; }
.job-account { font-size: 13px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.job-status { font-size: 12px; font-weight: 600; }
.job-status[data-s="success"] { color: var(--success); }
.job-status[data-s="failed"], .job-status[data-s="cancelled"] { color: var(--danger); }
.job-status[data-s="running"], .job-status[data-s="queued"] { color: var(--warn); }
.job-attempt { font-size: 11px; color: var(--text-muted); text-align: center; }
.job-result { min-width: 0; font-size: 11px; }
.job-result a { font-family: var(--mono); }
.job-reason { display: block; color: var(--text-muted); line-height: 1.4; overflow-wrap: anywhere; }

.batch-log-card { padding: 0; }
.batch-log-card > .card-header { padding: 12px 20px; margin: 0; border-bottom: 1px solid var(--border-light); }

.at-batch-preview { margin-top: 10px; max-height: 160px; overflow-y: auto; border: 1px solid var(--border-light); border-radius: var(--radius-xs); }
.at-batch-list { padding: 4px 0; }
.at-batch-item { display: flex; align-items: center; gap: 8px; padding: 4px 12px; font-size: 12px; }
.at-batch-item.invalid { color: var(--danger); }
.at-batch-item .at-line-num { color: var(--text-muted); width: 24px; text-align: right; font-family: var(--mono); }
.at-batch-item .at-line-email { font-weight: 500; }
.at-batch-item .at-line-name { color: #b9b0ff; font-size: 11px; }

/* ═══ History ═══ */
.history-controls { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.history-controls .input { width: 200px; }
.history-list { max-height: 600px; overflow-y: auto; }
.history-item {
  display: grid;
  grid-template-columns: 140px minmax(0,1fr) 80px auto;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-light);
}
.history-item:last-child { border-bottom: none; }
.history-time { font-size: 12px; color: var(--text-muted); font-family: var(--mono); }
.history-account { font-size: 13px; font-weight: 500; }
.history-account .history-ba { font-size: 11px; color: var(--text-muted); font-family: var(--mono); display: block; margin-top: 2px; }
.history-status { font-size: 12px; font-weight: 600; }
.history-mode { display: inline-block; font-size: 10px; font-weight: 700; letter-spacing: .5px; padding: 1px 6px; border-radius: 4px; background: var(--border-light); color: var(--text-muted); margin-right: 6px; vertical-align: 1px; }
.history-actions { display: flex; gap: 6px; }
.empty-state { padding: 40px 20px; text-align: center; color: var(--text-muted); font-size: 13px; }

.history-detail-overlay {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(5, 7, 16, 0.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.history-detail-panel {
  background: var(--surface-solid-strong);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 700px;
  max-height: 80vh;
  overflow-y: auto;
}
.detail-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  border-bottom: 1px solid var(--border-light);
  position: sticky;
  top: 0;
  background: var(--surface-solid-strong);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 1;
}
.detail-header h3 { margin: 0; }
.detail-body { padding: 20px 24px; }
.detail-section { margin-bottom: 16px; }
.detail-section h4 { font-size: 12px; font-weight: 700; color: var(--text-muted); margin: 0 0 8px; text-transform: uppercase; }
.detail-kv { display: grid; grid-template-columns: 120px 1fr; gap: 6px 12px; font-size: 13px; }
.detail-kv dt { color: var(--text-muted); font-weight: 500; }
.detail-kv dd { margin: 0; word-break: break-all; font-family: var(--mono); font-size: 12px; color: var(--text); }

/* ═══ Toast ═══ */
.toast-container {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}
.toast {
  pointer-events: auto;
  padding: 12px 16px;
  border-radius: var(--radius-xs);
  background: var(--surface-solid-strong);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow-md);
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  max-width: 360px;
  animation: toastIn 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.toast-success { border-left: 3px solid var(--success); }
.toast-error { border-left: 3px solid var(--danger); }
.toast-info { border-left: 3px solid var(--accent); }
@keyframes toastIn { from { opacity:0; transform:translateY(-8px) scale(0.97); } to { opacity:1; transform:none; } }

/* ═══ Responsive ═══ */
@media (max-width: 1100px) {
  .hero-orb { opacity: 0.4; }
}
@media (max-width: 960px) {
  .app { flex-direction: column; }
  .side {
    width: 100%;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    overflow-y: visible;
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }
  .side-brand { padding: 0 6px 0 0; }
  .side-status { flex-direction: row; gap: 12px; padding: 0; }
  .side-sec { display: none; }
  .snav { flex-direction: row; flex-wrap: wrap; }
  .snav .tab, .snav .method-btn { width: auto; height: 38px; padding: 0 12px; border-radius: 10px; }
  .snav .method-btn .mlabel { display: none; }
  .side-spacer { display: none; }
  .side-widget { margin-top: 0; padding: 4px; }
  .side-widget .cdk-btn { flex-direction: row; align-items: center; gap: 8px; padding: 6px 12px; }
  .side-widget .cdk-count { font-size: 18px; }
  .topbar { height: 56px; padding: 0 14px; }
  .single-layout { grid-template-columns: 1fr; }
  .config-section { position: static; }
  .result-grid { grid-template-columns: 1fr; }
  .result-meta-row { grid-template-columns: 1fr; }
  .picker-dropdown { width: 100%; }
  .hero-main h2 { font-size: 21px; }
}
@media (max-width: 600px) {
  .main { padding: 14px 12px; }
  .field-row { flex-direction: column; }
  .w-140 { width: auto; }
  .history-item { grid-template-columns: 1fr auto; }
  .history-time { display: none; }
  .log-line { grid-template-columns: 50px minmax(0,1fr); }
  .log-stage { display: none; }
  .topbar-title { display: none; }
}

/* ═══ Sync Checkbox (legacy - kept for compatibility) ═══ */
.sync-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-muted);
  cursor: pointer;
  user-select: none;
}
.sync-checkbox input[type="checkbox"] {
  width: 16px;
  height: 16px;
  cursor: pointer;
  accent-color: var(--accent);
}

/* ═══ Progress Bar ═══ */
.progress-card { padding: 16px 20px; }
.progress-steps { display: flex; align-items: center; gap: 0; margin-bottom: 14px; }
.progress-step { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.step-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 2px solid var(--border);
  transition: all 0.3s ease;
  flex-shrink: 0;
}
.step-label { font-size: 13px; color: var(--text-muted); transition: color 0.3s ease; white-space: nowrap; }
.step-connector { flex: 1; height: 2px; min-width: 16px; background: var(--border); margin: 0 8px; transition: background 0.3s ease; }
.progress-step.active .step-dot {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(124, 108, 255, 0.18), 0 0 10px rgba(124, 108, 255, 0.4);
}
.progress-step.active .step-label { color: #b9b0ff; font-weight: 600; }
.progress-step.done .step-dot { background: var(--success); border-color: var(--success); box-shadow: 0 0 8px rgba(47, 210, 139, 0.35); }
.progress-step.done .step-label { color: var(--success); }
.progress-step.done + .step-connector { background: var(--success); }
.progress-step.error .step-dot { background: var(--danger); border-color: var(--danger); box-shadow: 0 0 8px rgba(255, 107, 107, 0.35); }
.progress-step.error .step-label { color: var(--danger); }
.progress-bar-wrap {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 8px;
}
.progress-bar-wrap.sm { height: 6px; margin-bottom: 6px; }
.progress-bar-fill {
  height: 100%;
  width: 0%;
  border-radius: 4px;
  background: linear-gradient(90deg, #6c5ce7, #8b7cff, #2fe6c8);
  box-shadow: 0 0 10px rgba(124, 108, 255, 0.35);
  transition: none;
}
.progress-info-row { display: flex; justify-content: space-between; align-items: center; }
.progress-step-text { font-size: 14px; color: var(--text-muted); }
.progress-percent { font-size: 16px; font-weight: 600; color: var(--text); font-variant-numeric: tabular-nums; }
.batch-job-progress { padding: 0 16px 8px; }

/* ═══ OAICS Toggle Switch ═══ */
.oaics-toggle-field { margin-bottom: 14px; }
.oaics-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  user-select: none;
  padding: 10px 14px;
  border-radius: var(--radius-xs);
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--border-light);
  transition: all var(--transition);
}
.oaics-toggle:hover { border-color: rgba(139, 124, 255, 0.3); background: rgba(124, 108, 255, 0.08); }
.oaics-toggle input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.toggle-track {
  width: 44px;
  height: 24px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border);
  position: relative;
  transition: all var(--transition);
  flex-shrink: 0;
}
.toggle-thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--text-muted);
  transition: all var(--transition);
}
.oaics-toggle input:checked ~ .toggle-track {
  background: linear-gradient(135deg, #6c5ce7, #8b7cff);
  border-color: var(--accent);
  box-shadow: 0 0 10px rgba(124, 108, 255, 0.35);
}
.oaics-toggle input:checked ~ .toggle-track .toggle-thumb {
  left: 22px;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}
.oaics-toggle-text { display: flex; flex-direction: column; gap: 2px; }
.oaics-toggle-label { font-size: 14px; font-weight: 600; color: var(--text); }
.oaics-toggle-hint { font-size: 12px; color: var(--text-muted); }

/* ====== PayPal 支付面板 ====== */
.tab-pay { color: #8fd4ff; }
.snav .tab.tab-pay.active {
  background: linear-gradient(135deg, #0d8ddb, #38b6f0);
  border-color: rgba(56, 182, 240, 0.55);
  box-shadow: 0 6px 20px rgba(13, 141, 219, 0.4);
}
.snav .tab.tab-pay.active .ticon { color: #ffffff; }
.pay-embed-wrapper {
  display: flex;
  flex-direction: column;
  height: calc(100vh - 120px);
  min-height: 600px;
  margin: 0;
  padding: 0;
}
.pay-embed-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: rgba(13, 16, 32, 0.6);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  flex-shrink: 0;
}
.pay-embed-title {
  font-weight: 600;
  font-size: 14px;
  color: var(--text);
}
.pay-embed-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}
.pay-embed-wrap {
  flex: 1;
  width: 100%;
  border: 0;
  overflow: hidden;
  background: #0b0b0b;
}
.pay-embed-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* ═══ v4: 三列工作区 / 统一参数网格 / 统一提链面板 ═══ */
.cfg-grid {
  display: grid;
  grid-template-columns: 1.3fr 1.05fr 0.9fr;
  gap: 16px;
  align-items: start;
}
.cfg-card { margin-bottom: 0; }
@media (max-width: 1180px) { .cfg-grid { grid-template-columns: 1fr 1fr; } .exec-card { grid-column: 1 / -1; } }
@media (max-width: 800px) { .cfg-grid { grid-template-columns: 1fr; } }

/* 统一参数网格 */
.pgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.pfield { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.pfield label { font-size: 12px; font-weight: 600; color: var(--text-secondary); }
.pfield .input { height: 40px; }
.pfield.pfull { grid-column: 1 / -1; }
.phint { font-size: 12px; color: var(--text-muted); line-height: 1.55; }
.pfield.ptoggle input[type="checkbox"] { width: 20px; height: 20px; accent-color: #7c6cff; cursor: pointer; margin: 4px 0 0; }

/* 代理块 */
.proxy-block { padding: 12px; border: 1px solid var(--border-light); border-radius: 12px; background: rgba(13, 16, 32, 0.35); }
.proxy-block + .proxy-block { margin-top: 12px; }
.pblock-label { display: flex; align-items: center; font-size: 11px; font-weight: 700; color: var(--text-muted); letter-spacing: .8px; margin-bottom: 8px; text-transform: uppercase; }

/* 执行卡 */
.exec-card { display: flex; flex-direction: column; }
.exec-queue-line { margin-top: auto; display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 10px; background: rgba(47, 230, 200, 0.07); border: 1px solid rgba(47, 230, 200, 0.2); font-size: 12.5px; font-weight: 600; color: #9fe8db; }
.exec-queue-line b { color: #fff; font-size: 14px; }
.exec-actions { margin-top: 12px; }
.exec-actions .btn-primary { flex: 1; }

/* 统一提链面板 */
.board-zone { margin-top: 16px; }
.board-card { border-color: rgba(139, 124, 255, 0.22); }
.board-ico {
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; border-radius: 8px;
  background: linear-gradient(135deg, #6c5ce7, #8b7cff);
  color: #fff; font-size: 13px;
  box-shadow: 0 4px 12px rgba(108, 92, 231, 0.35);
}
.live-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 10px; border-radius: 12px;
  font-size: 11px; font-weight: 700; color: #9fe8db;
  background: rgba(47, 230, 200, 0.08); border: 1px solid rgba(47, 230, 200, 0.22);
}
.live-dot {
  width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0;
  background: #2fe6c8; box-shadow: 0 0 8px rgba(47, 230, 200, 0.7);
  animation: livePulse 1.6s ease-in-out infinite;
}
.hq .live-dot { background: #2fd28b; box-shadow: 0 0 8px rgba(47, 210, 139, 0.7); }
@keyframes livePulse { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: .45; transform: scale(.8); } }
.upi-summary .ur b { color: #9aa4ff; animation: livePulse 1.6s ease-in-out infinite; }

/* 卡片头图标（配置卡） */
.cfg-ico {
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; border-radius: 8px;
  font-size: 12px; font-weight: 900; color: #fff;
}
.ci-at { background: linear-gradient(135deg, #6c5ce7, #a29bfe); }
.ci-net { background: linear-gradient(135deg, #0ea5a4, #2fe6c8); }
.ci-run { background: linear-gradient(135deg, #f59e0b, #fbbf24); font-size: 10px; }

/* ═══ v5: 开关 / CDK 条 / 面板去线 / 实时进度行 ═══ */
.pswitch { display: inline-flex; align-items: center; cursor: pointer; }
.pswitch input { position: absolute; opacity: 0; width: 0; height: 0; }
.pswitch .sw-track {
  width: 42px; height: 23px; border-radius: 12px;
  background: rgba(255, 255, 255, 0.09); border: 1px solid var(--border);
  position: relative; transition: all .2s; flex-shrink: 0;
}
.pswitch .sw-thumb {
  position: absolute; top: 2px; left: 2px; width: 17px; height: 17px; border-radius: 50%;
  background: var(--text-muted); transition: all .2s;
}
.pswitch input:checked + .sw-track {
  background: linear-gradient(135deg, #6c5ce7, #8b7cff);
  border-color: var(--accent); box-shadow: 0 0 8px rgba(124, 108, 255, 0.35);
}
.pswitch input:checked + .sw-track .sw-thumb { left: 22px; background: #fff; box-shadow: 0 2px 5px rgba(0,0,0,.3); }

.cdk-strip {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  margin-bottom: 16px; padding: 10px 16px;
  border-radius: 14px; background: rgba(32, 38, 64, 0.5);
  border: 1px solid var(--border);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
}
.cdk-strip .cdk-btn { flex-direction: row; height: 40px; gap: 8px; padding: 0 14px; background: rgba(124, 108, 255, 0.12); border-color: rgba(139, 124, 255, 0.3); }
.cdk-strip .cdk-btn:hover { background: rgba(124, 108, 255, 0.2); }
.cdk-strip-hint { font-size: 12px; color: var(--text-muted); }

/* 面板账号行: 去分隔线/边框 */
.upi-item { border: none !important; background: transparent !important; padding: 10px 8px; border-radius: 12px; }
.upi-item.done-ok { border: none !important; }
.upi-item:hover { background: rgba(124, 108, 255, 0.05); }
.upi-step { margin-top: 6px; font-size: 12px; color: #9aa4ff; line-height: 1.5; word-break: break-all; padding-left: 2px; }

/* 代理输入框放大 */
.proxy-block textarea.input { min-height: 150px !important; }

/* ══════════════════════════════════════════════════════════════
   CDK 额度条（顶部常驻 · 重做）
   ══════════════════════════════════════════════════════════════ */
.cdk-strip {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  margin: 0 0 16px; padding: 12px 16px; border-radius: 16px;
  background: linear-gradient(135deg, rgba(108, 92, 231, 0.20), rgba(47, 230, 200, 0.07)), rgba(26, 30, 50, 0.78);
  border: 1px solid rgba(139, 124, 255, 0.30);
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
}
.cdk-strip.cdk-flash { animation: cdkFlash 1.1s ease-out 2; }
@keyframes cdkFlash {
  0%, 100% { box-shadow: 0 8px 26px rgba(0, 0, 0, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.06); }
  50% { box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.45), 0 8px 26px rgba(0, 0, 0, 0.32); }
}
.cdk-ico {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; flex: none; border-radius: 12px;
  background: linear-gradient(135deg, #6c5ce7, #8b7cff); color: #fff;
  box-shadow: 0 4px 14px rgba(108, 92, 231, 0.45);
}
.cdk-ico svg { display: block; }
.cdk-quota { display: flex; flex-direction: column; gap: 2px; flex: none; min-width: 76px; }
.cdk-quota-label { font-size: 11.5px; font-weight: 600; letter-spacing: 0.4px; color: var(--text-muted); }
.cdk-quota-value { display: flex; align-items: baseline; gap: 4px; }
.cdk-quota-value b { font: 800 24px/1.05 var(--font); color: #fff; letter-spacing: -0.5px; }
.cdk-quota-value i { font-style: normal; font-size: 11.5px; color: var(--text-secondary); }
.cdk-sep { width: 1px; height: 30px; flex: none; background: linear-gradient(180deg, transparent, rgba(255,255,255,0.14), transparent); }
.cdk-bound { display: flex; align-items: center; gap: 8px; flex: none; min-width: 0; }
.cdk-bound-label { font-size: 12px; color: var(--text-muted); white-space: nowrap; }
.cdk-bound-code {
  font: 600 12.5px/1 var(--mono); color: #c9b8ff;
  background: rgba(124, 108, 255, 0.14); border: 1px solid rgba(139, 124, 255, 0.28);
  border-radius: 8px; padding: 7px 10px; max-width: 190px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.cdk-bound-code.is-empty { color: var(--text-muted); background: rgba(255,255,255,0.04); border-color: rgba(255,255,255,0.09); }
.cdk-unbind-btn {
  flex: none; height: 30px; padding: 0 12px; border-radius: 9px; cursor: pointer;
  border: 1px solid rgba(255, 107, 107, 0.42); background: rgba(255, 107, 107, 0.13);
  color: #ff9b9b; font: 700 12.5px/1 inherit; white-space: nowrap; transition: all 0.18s;
}
.cdk-unbind-btn:hover { background: rgba(255, 107, 107, 0.26); color: #fff; border-color: rgba(255, 107, 107, 0.7); }
.cdk-input-row { display: flex; align-items: center; gap: 8px; flex: 1 1 300px; min-width: 240px; }
.cdk-input {
  flex: 1 1 auto; min-width: 0; height: 38px; padding: 0 14px; border-radius: 10px;
  background: rgba(13, 16, 32, 0.72); border: 1px solid rgba(255, 255, 255, 0.10);
  color: var(--text); font: 500 13.5px/1 var(--mono); letter-spacing: 0.3px;
  outline: none; transition: all 0.18s;
}
.cdk-input::placeholder { color: #5c6480; font-family: var(--font); letter-spacing: 0.2px; }
.cdk-input:hover { border-color: rgba(139, 124, 255, 0.34); }
.cdk-input:focus { border-color: #8b7cff; background: rgba(13, 16, 32, 0.9); box-shadow: 0 0 0 3px rgba(124, 108, 255, 0.2); }
.cdk-redeem-btn {
  flex: none; height: 38px; padding: 0 20px; border: 0; border-radius: 10px; cursor: pointer;
  background: linear-gradient(135deg, #6c5ce7, #8b7cff); color: #fff;
  font: 800 13px/1 inherit; letter-spacing: 0.4px;
  box-shadow: 0 4px 14px rgba(108, 92, 231, 0.42); transition: all 0.18s;
}
.cdk-redeem-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(108, 92, 231, 0.6); }
.cdk-redeem-btn:active { transform: translateY(0); }
.cdk-summary { display: flex; align-items: center; gap: 14px; flex: none; font-size: 12px; color: var(--text-muted); }
.cdk-summary b { color: #e7e9f5; font-weight: 700; margin-left: 3px; }
.cdk-strip-hint { font-size: 11.5px; color: var(--text-muted); flex: none; }

/* ═══ 唯一共用提链面板 ═══ */
.board-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.board-seg { animation: boardSegIn 0.18s ease-out; }
@keyframes boardSegIn { from { opacity: 0; transform: translateY(-3px); } to { opacity: 1; transform: none; } }
.legacy-actions { display: none !important; }

@media (max-width: 920px) {
  .cdk-strip { gap: 10px; padding: 12px; }
  .cdk-sep { display: none; }
  .cdk-input-row { flex-basis: 100%; }
  .cdk-strip-hint { display: none; }
}

/* ── 共用提链面板: 按当前链路只显示本链路内容区（切换链路不清空数据） ── */
#boardCard > .board-seg[data-for],
#boardCard > .blik-qr-block[data-for],
#boardCard > .blik-code-block[data-for] { display: none; }
#boardCard[data-seg="upi"]  > [data-for="upi"]:not([hidden]),
#boardCard[data-seg="blik"] > [data-for="blik"]:not([hidden]),
#boardCard[data-seg="gc"]   > [data-for="blik"]:not([hidden]),
#boardCard[data-seg="momo"] > [data-for="momo"]:not([hidden]) { display: block; }
