/* ─── Design Tokens ──────────────────────────────────────────────────── */
:root {
  --bg-deep:       #050812;
  --bg-surface:    #0d1117;
  --glass-bg:      rgba(255,255,255,0.04);
  --glass-border:  rgba(255,255,255,0.09);
  --glass-hover:   rgba(255,255,255,0.07);

  --indigo:        #6366f1;
  --indigo-light:  #818cf8;
  --cyan:          #06b6d4;
  --cyan-light:    #22d3ee;
  --emerald:       #10b981;
  --amber:         #f59e0b;
  --rose:          #f43f5e;

  --text-primary:  #f1f5f9;
  --text-secondary:#94a3b8;
  --text-muted:    #475569;

  --radius-sm:  8px;
  --radius-md:  14px;
  --radius-lg:  20px;
  --radius-xl:  28px;

  --shadow-glass: 0 8px 32px rgba(0,0,0,.45), 0 2px 8px rgba(0,0,0,.3);
  --shadow-glow-indigo: 0 0 40px rgba(99,102,241,.25);
  --shadow-glow-cyan:   0 0 40px rgba(6,182,212,.2);

  --transition: .22s cubic-bezier(.4,0,.2,1);
  --font: 'Inter', system-ui, sans-serif;
  --mono: 'JetBrains Mono', 'Fira Code', monospace;
}

/* ─── Reset & Base ───────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg-deep);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ─── Animated Background ────────────────────────────────────────────── */
.bg-orbs {
  position: fixed; inset: 0;
  pointer-events: none; z-index: 0;
  overflow: hidden;
}
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: .4;
  animation: drift 20s ease-in-out infinite alternate;
}
.orb-1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(99,102,241,.55) 0%, transparent 70%);
  top: -200px; left: -150px;
  animation-delay: 0s;
}
.orb-2 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(6,182,212,.45) 0%, transparent 70%);
  bottom: -150px; right: -100px;
  animation-delay: -8s;
}
.orb-3 {
  width: 350px; height: 350px;
  background: radial-gradient(circle, rgba(16,185,129,.3) 0%, transparent 70%);
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  animation-delay: -14s;
}
@keyframes drift {
  0%   { transform: translate(0,0) scale(1); }
  50%  { transform: translate(40px,-30px) scale(1.08); }
  100% { transform: translate(-20px,50px) scale(.95); }
}

/* ─── Header ─────────────────────────────────────────────────────────── */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(5,8,18,.75);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--glass-border);
}
.header-inner {
  max-width: 1200px; margin: 0 auto;
  padding: 0 2rem;
  height: 64px;
  display: flex; align-items: center; justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-icon svg { width: 36px; height: 36px; }
.brand-title {
  font-size: 1.1rem; font-weight: 700;
  background: linear-gradient(135deg, var(--indigo-light), var(--cyan-light));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -.02em;
}
.brand-sub { font-size: .7rem; color: var(--text-muted); letter-spacing: .05em; margin-top: 1px; }

/* Status badge */
.status-badge {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 5px 12px; border-radius: 100px;
  font-size: .75rem; font-weight: 500;
  border: 1px solid transparent;
}
.status-dot {
  width: 7px; height: 7px; border-radius: 50%;
}
.status-checking .status-dot { background: var(--text-muted); }
.status-ok {
  background: rgba(16,185,129,.12);
  border-color: rgba(16,185,129,.3);
  color: #34d399;
}
.status-ok .status-dot { background: var(--emerald); box-shadow: 0 0 6px var(--emerald); animation: pulse-dot 2s infinite; }
.status-error {
  background: rgba(244,63,94,.12);
  border-color: rgba(244,63,94,.3);
  color: #fb7185;
}
.status-error .status-dot { background: var(--rose); }
@keyframes pulse-dot {
  0%,100% { opacity:1; } 50% { opacity:.4; }
}

/* ─── Main Container ──────────────────────────────────────────────────── */
.main {
  position: relative; z-index: 1;
  max-width: 1200px; margin: 0 auto;
  padding: 2.5rem 2rem 4rem;
}

/* ─── Steps Bar ───────────────────────────────────────────────────────── */
.steps-bar {
  display: flex; align-items: center; justify-content: center;
  gap: 0; margin-bottom: 2.5rem;
}
.step {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 20px; border-radius: 100px;
  font-size: .85rem; font-weight: 500; color: var(--text-muted);
  transition: var(--transition);
}
.step.active {
  background: rgba(99,102,241,.15);
  border: 1px solid rgba(99,102,241,.4);
  color: var(--indigo-light);
}
.step.done {
  color: var(--emerald);
}
.step-num {
  width: 24px; height: 24px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .75rem; font-weight: 700;
  background: rgba(255,255,255,.08);
  border: 1px solid var(--glass-border);
}
.step.active .step-num {
  background: linear-gradient(135deg, var(--indigo), var(--cyan));
  border-color: transparent;
  color: #fff;
}
.step.done .step-num {
  background: rgba(16,185,129,.2);
  border-color: rgba(16,185,129,.4);
  color: var(--emerald);
}
.step-connector {
  width: 60px; height: 1px;
  background: linear-gradient(90deg, var(--glass-border), transparent);
}

/* ─── Section Steps ───────────────────────────────────────────────────── */
.section-step { display: none; }
.section-step.active { display: block; }

/* ─── Glass Panel ─────────────────────────────────────────────────────── */
.glass-panel {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: 2rem;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-glass);
  transition: var(--transition);
}
.glass-panel:hover {
  border-color: rgba(255,255,255,.14);
}

/* ─── Panels Grid ─────────────────────────────────────────────────────── */
.panels-grid {
  display: grid;
  grid-template-columns: 1fr 60px 1fr;
  gap: 1.5rem;
  align-items: start;
}

/* Panel header */
.panel-header {
  display: flex; align-items: flex-start; gap: 12px;
  margin-bottom: 1.5rem;
}
.panel-icon {
  width: 40px; height: 40px; border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.panel-icon svg { width: 20px; height: 20px; }
.panel-icon-source {
  background: rgba(99,102,241,.15);
  color: var(--indigo-light);
  border: 1px solid rgba(99,102,241,.3);
}
.panel-icon-dest {
  background: rgba(6,182,212,.15);
  color: var(--cyan-light);
  border: 1px solid rgba(6,182,212,.3);
}
.panel-title { font-size: 1.05rem; font-weight: 600; }
.panel-subtitle { font-size: .78rem; color: var(--text-muted); margin-top: 2px; }

/* Connection badge */
.conn-badge {
  margin-left: auto; flex-shrink: 0;
  background: rgba(16,185,129,.15);
  border: 1px solid rgba(16,185,129,.35);
  color: #34d399;
  font-size: .7rem; font-weight: 600;
  padding: 3px 10px; border-radius: 100px;
  letter-spacing: .04em;
}
.conn-badge.hidden { display: none; }

/* Arrow divider */
.panels-arrow {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 8px; padding-top: 80px;
}
.panels-arrow.vertical { padding-top: 0; }
.arrow-line {
  width: 1px; height: 30px;
  background: linear-gradient(to bottom, transparent, rgba(99,102,241,.4), transparent);
}
.arrow-icon { width: 48px; height: 48px; }

/* ─── Form Styles ────────────────────────────────────────────────────── */
.form-group {
  margin-bottom: 1.1rem;
}
.form-group label {
  display: block;
  font-size: .78rem; font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
  letter-spacing: .02em;
  text-transform: uppercase;
}
input[type="text"],
input[type="password"],
input[type="number"],
select {
  width: 100%;
  background: rgba(255,255,255,.05);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: var(--font);
  font-size: .88rem;
  padding: 10px 14px;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}
input[type="text"]:focus,
input[type="password"]:focus,
input[type="number"]:focus,
select:focus {
  border-color: var(--indigo);
  box-shadow: 0 0 0 3px rgba(99,102,241,.2);
}
input[type="text"]::placeholder,
input[type="password"]::placeholder { color: var(--text-muted); }
select { appearance: none; cursor: pointer; }
select option { background: #1a1f2e; color: var(--text-primary); }

.select-wrap { position: relative; }
.select-wrap::after {
  content: '▾';
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  color: var(--text-muted); pointer-events: none; font-size: .8rem;
}

.number-input-wrap input { max-width: 120px; }

.field-hint {
  font-size: .72rem; color: var(--text-muted); margin-top: 5px;
}
.field-hint.warn { color: var(--amber); }

.dynamic-fields { animation: fadeSlideIn .3s ease; }
@keyframes fadeSlideIn {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.form-actions { margin-top: 1.5rem; }

/* Password toggle */
.input-wrap {
  position: relative;
}
.input-wrap input {
  padding-right: 42px;
}
.toggle-eye {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  background: none; border: none; cursor: pointer;
  color: var(--text-muted); padding: 2px;
  display: flex; align-items: center;
  transition: color var(--transition);
}
.toggle-eye:hover { color: var(--text-secondary); }

/* ─── Buttons ────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 20px; border-radius: var(--radius-sm);
  font-family: var(--font); font-size: .88rem; font-weight: 600;
  cursor: pointer; border: none; transition: var(--transition);
  white-space: nowrap;
}
.btn:disabled { opacity: .45; cursor: not-allowed; }

.btn-primary {
  background: linear-gradient(135deg, var(--indigo), #4f46e5);
  color: #fff;
  box-shadow: 0 4px 16px rgba(99,102,241,.4);
}
.btn-primary:hover:not(:disabled) {
  background: linear-gradient(135deg, var(--indigo-light), var(--indigo));
  box-shadow: 0 6px 24px rgba(99,102,241,.55);
  transform: translateY(-1px);
}
.btn-next {
  background: linear-gradient(135deg, var(--indigo), var(--cyan));
  color: #fff; padding: 12px 28px; font-size: .95rem;
  box-shadow: 0 4px 20px rgba(99,102,241,.35);
}
.btn-next:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(99,102,241,.5);
}
.btn-danger {
  background: linear-gradient(135deg, #e11d48, #be123c);
  color: #fff;
  box-shadow: 0 4px 16px rgba(244,63,94,.35);
  padding: 12px 28px; font-size: .95rem;
}
.btn-danger:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(244,63,94,.5);
}
.btn-ghost {
  background: rgba(255,255,255,.06);
  border: 1px solid var(--glass-border);
  color: var(--text-secondary);
}
.btn-ghost:hover:not(:disabled) {
  background: rgba(255,255,255,.1);
  color: var(--text-primary);
}
.btn-ghost-danger {
  background: rgba(244,63,94,.08);
  border: 1px solid rgba(244,63,94,.25);
  color: #fb7185;
}
.btn-ghost-danger:hover:not(:disabled) {
  background: rgba(244,63,94,.15);
}

/* Spinner */
.btn-spinner {
  width: 15px; height: 15px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,.3);
  border-top-color: #fff;
  animation: spin .6s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.spin-icon { animation: spin 1.2s linear infinite; }

.hidden { display: none !important; }

/* ─── Section Nav ────────────────────────────────────────────────────── */
.section-nav {
  display: flex; align-items: center; justify-content: flex-end;
  gap: 12px; margin-top: 2rem;
}

/* ─── Bucket Selection ───────────────────────────────────────────────── */
.bucket-selection-grid {
  display: grid;
  grid-template-columns: 1fr 60px 1fr;
  gap: 1.5rem;
  align-items: start;
  margin-bottom: 1.5rem;
}
.bucket-list {
  max-height: 300px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,.1) transparent;
}
.bucket-loading {
  color: var(--text-muted); font-size: .85rem;
  padding: 1.5rem 0; text-align: center;
}
.bucket-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: var(--radius-sm);
  cursor: pointer; font-size: .88rem;
  border: 1px solid transparent;
  transition: var(--transition); margin-bottom: 4px;
}
.bucket-item:hover {
  background: var(--glass-hover);
  border-color: var(--glass-border);
}
.bucket-item.selected {
  background: rgba(99,102,241,.12);
  border-color: rgba(99,102,241,.35);
  color: var(--indigo-light);
}
.bucket-item-icon {
  font-size: 1rem; width: 24px; text-align: center; flex-shrink: 0;
}
.bucket-item-name { font-weight: 500; flex: 1; }
.bucket-item-empty {
  padding: 1.5rem; text-align: center;
  font-size: .85rem; color: var(--text-muted);
}

.bucket-info {
  margin-top: 1rem;
  padding: 10px 14px;
  background: rgba(99,102,241,.08);
  border: 1px solid rgba(99,102,241,.2);
  border-radius: var(--radius-sm);
  font-size: .82rem; color: var(--indigo-light);
  display: flex; gap: 12px;
}
.bucket-info-name { font-weight: 600; }
.bucket-info-size { color: var(--text-muted); }

/* ─── Options Panel ──────────────────────────────────────────────────── */
.options-panel { margin-bottom: 1.5rem; }
.options-title {
  display: flex; align-items: center; gap: 8px;
  font-size: .9rem; font-weight: 600;
  margin-bottom: 1.2rem;
  color: var(--text-secondary);
}
.options-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  align-items: start;
}
.options-toggles { display: flex; flex-direction: column; gap: 12px; padding-top: 4px; }

/* Toggle switch */
.toggle-row {
  display: flex; align-items: center; gap: 10px;
  cursor: pointer; font-size: .85rem; color: var(--text-secondary);
  user-select: none;
}
.toggle-row input[type="checkbox"] { display: none; }
.toggle-knob {
  width: 38px; height: 21px; border-radius: 100px;
  background: rgba(255,255,255,.1);
  border: 1px solid var(--glass-border);
  position: relative; flex-shrink: 0;
  transition: var(--transition);
}
.toggle-knob::after {
  content: '';
  position: absolute; left: 3px; top: 3px;
  width: 13px; height: 13px; border-radius: 50%;
  background: var(--text-muted);
  transition: var(--transition);
}
.toggle-row input:checked + .toggle-knob {
  background: rgba(99,102,241,.4);
  border-color: var(--indigo);
}
.toggle-row input:checked + .toggle-knob::after {
  transform: translateX(17px);
  background: var(--indigo-light);
}
.toggle-label { font-weight: 500; }

/* ─── Progress Section ───────────────────────────────────────────────── */
.progress-hero { margin-bottom: 1.5rem; }

.progress-header {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 1.5rem;
}
.progress-status-icon {
  width: 46px; height: 46px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.progress-status-icon.running {
  background: rgba(99,102,241,.15);
  border: 1px solid rgba(99,102,241,.35);
  color: var(--indigo-light);
}
.progress-status-icon.done {
  background: rgba(16,185,129,.15);
  border: 1px solid rgba(16,185,129,.35);
  color: var(--emerald);
}
.progress-status-icon.error {
  background: rgba(244,63,94,.15);
  border: 1px solid rgba(244,63,94,.35);
  color: var(--rose);
}
.progress-status-icon svg { width: 22px; height: 22px; }
.progress-title { font-size: 1.2rem; font-weight: 700; }
.progress-subtitle { font-size: .82rem; color: var(--text-muted); margin-top: 2px; }

/* Route display */
.route-display {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}
.route-badge {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 14px; border-radius: 100px;
  font-family: var(--mono); font-size: .8rem; font-weight: 500;
}
.route-badge.source {
  background: rgba(99,102,241,.12);
  border: 1px solid rgba(99,102,241,.3);
  color: var(--indigo-light);
}
.route-badge.dest {
  background: rgba(6,182,212,.12);
  border: 1px solid rgba(6,182,212,.3);
  color: var(--cyan-light);
}
.route-arrow-small { color: var(--text-muted); font-size: 1.1rem; }

/* Progress bar */
.progress-track {
  height: 10px; border-radius: 100px;
  background: rgba(255,255,255,.06);
  border: 1px solid var(--glass-border);
  overflow: hidden; position: relative;
  margin-bottom: 6px;
}
.progress-fill {
  height: 100%; border-radius: 100px;
  background: linear-gradient(90deg, var(--indigo), var(--cyan));
  width: 0%; transition: width .8s cubic-bezier(.4,0,.2,1);
  position: relative; z-index: 1;
}
.progress-glow {
  position: absolute; right: 0; top: -4px;
  width: 20px; height: 18px;
  background: var(--cyan-light);
  border-radius: 50%;
  filter: blur(8px);
  opacity: 0; transition: opacity .4s;
}
.progress-pct {
  text-align: right; font-size: .8rem;
  font-family: var(--mono); color: var(--text-muted); margin-bottom: 1.5rem;
}

/* Stats grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 1rem;
}
.stat-card {
  background: rgba(255,255,255,.04);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  transition: var(--transition);
}
.stat-card:hover { background: var(--glass-hover); }
.stat-value {
  font-size: 1.3rem; font-weight: 700;
  font-family: var(--mono);
  background: linear-gradient(135deg, var(--text-primary), var(--text-secondary));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-label {
  font-size: .72rem; color: var(--text-muted);
  margin-top: 4px; letter-spacing: .03em; text-transform: uppercase;
}

/* Active Transfers */
.active-transfers-panel { }
.active-transfers-list {
  max-height: 240px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,.1) transparent;
}
.empty-state {
  color: var(--text-muted); font-size: .85rem;
  padding: .5rem 0; text-align: center;
}
.transfer-item {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,.04);
  font-size: .82rem;
  animation: fadeSlideIn .25s ease;
}
.transfer-item:last-child { border-bottom: none; }
.transfer-name {
  flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-family: var(--mono); color: var(--text-secondary);
}
.transfer-pct {
  font-family: var(--mono); font-size: .78rem;
  color: var(--cyan-light); min-width: 40px; text-align: right;
}
.transfer-bar-track {
  width: 80px; height: 4px; border-radius: 100px;
  background: rgba(255,255,255,.08); flex-shrink: 0; overflow: hidden;
}
.transfer-bar-fill {
  height: 100%; border-radius: 100px;
  background: linear-gradient(90deg, var(--indigo), var(--cyan));
  transition: width .5s ease;
}

/* ─── Toast ──────────────────────────────────────────────────────────── */
.toast-container {
  position: fixed; bottom: 1.5rem; right: 1.5rem;
  z-index: 9999; display: flex; flex-direction: column;
  gap: 10px; max-width: 360px;
}
.toast {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 14px 16px; border-radius: var(--radius-md);
  font-size: .85rem; font-weight: 500;
  backdrop-filter: blur(16px);
  border: 1px solid transparent;
  box-shadow: 0 8px 24px rgba(0,0,0,.4);
  animation: toastIn .3s cubic-bezier(.34,1.56,.64,1);
}
@keyframes toastIn {
  from { opacity: 0; transform: translateX(24px) scale(.96); }
  to   { opacity: 1; transform: translateX(0) scale(1); }
}
.toast.out {
  animation: toastOut .25s ease forwards;
}
@keyframes toastOut {
  to { opacity: 0; transform: translateX(24px) scale(.96); }
}
.toast-icon { font-size: 1rem; flex-shrink: 0; margin-top: 1px; }
.toast-body { flex: 1; }
.toast-title { font-weight: 700; margin-bottom: 2px; }
.toast-msg { color: var(--text-secondary); font-size: .8rem; }
.toast.success {
  background: rgba(16,185,129,.12);
  border-color: rgba(16,185,129,.3);
  color: #34d399;
}
.toast.error {
  background: rgba(244,63,94,.12);
  border-color: rgba(244,63,94,.3);
  color: #fb7185;
}
.toast.info {
  background: rgba(99,102,241,.12);
  border-color: rgba(99,102,241,.3);
  color: var(--indigo-light);
}
.toast.warn {
  background: rgba(245,158,11,.12);
  border-color: rgba(245,158,11,.3);
  color: #fbbf24;
}

/* ─── Scrollbar ──────────────────────────────────────────────────────── */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,.12); border-radius: 100px; }

/* ─── Responsive ─────────────────────────────────────────────────────── */
@media (max-width: 820px) {
  .main { padding: 1.5rem 1rem 3rem; }
  .panels-grid, .bucket-selection-grid {
    grid-template-columns: 1fr;
  }
  .panels-arrow { flex-direction: row; padding-top: 0; }
  .panels-arrow .arrow-line { width: 30px; height: 1px; background: linear-gradient(90deg, transparent, rgba(99,102,241,.4), transparent); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-bar { gap: 4px; }
  .step span { display: none; }
  .step-connector { width: 20px; }
}

/* ─── v2 Additions ─────────────────────────────────────────────────────── */

/* Header actions */
.header-actions { display: flex; align-items: center; gap: 10px; }
.header-btn { padding: 7px 14px; font-size: .8rem; position: relative; }
.username-label { font-size: .8rem; color: var(--text-muted); }

/* Jobs badge */
.jobs-badge {
  position: absolute; top: -4px; right: -4px;
  min-width: 18px; height: 18px; border-radius: 100px;
  background: var(--indigo); color: #fff;
  font-size: .65rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  padding: 0 4px;
}

/* Jobs Drawer */
.jobs-drawer {
  position: fixed; top: 0; right: -480px; bottom: 0;
  width: 460px; max-width: 95vw;
  background: rgba(5,8,18,.92);
  backdrop-filter: blur(20px);
  border-left: 1px solid var(--glass-border);
  z-index: 200;
  transition: right .3s cubic-bezier(.4,0,.2,1);
  overflow: hidden; display: flex; flex-direction: column;
}
.jobs-drawer.open { right: 0; }
.drawer-backdrop {
  position: fixed; inset: 0; z-index: 199;
  background: rgba(0,0,0,.5);
  backdrop-filter: blur(2px);
}
.jobs-drawer-inner { display: flex; flex-direction: column; height: 100%; }
.jobs-drawer-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.2rem 1.5rem;
  border-bottom: 1px solid var(--glass-border);
  flex-shrink: 0;
}
.jobs-drawer-title {
  display: flex; align-items: center; gap: 8px;
  font-size: .95rem; font-weight: 700;
}
.jobs-list {
  flex: 1; overflow-y: auto; padding: 1rem 1.5rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,.1) transparent;
}
.jobs-empty {
  color: var(--text-muted); font-size: .85rem;
  text-align: center; padding: 2rem 0;
}

/* Job card in drawer */
.job-card {
  background: rgba(255,255,255,.04);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  margin-bottom: 10px;
  animation: fadeSlideIn .25s ease;
}
.job-card-header {
  display: flex; align-items: flex-start; gap: 10px; margin-bottom: 10px;
}
.job-status-dot {
  width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; margin-top: 6px;
}
.job-status-dot.running  { background: var(--indigo); box-shadow: 0 0 6px var(--indigo); animation: pulse-dot 1.5s infinite; }
.job-status-dot.done     { background: var(--emerald); }
.job-status-dot.error    { background: var(--rose); }
.job-status-dot.cancelled { background: var(--text-muted); }
.job-status-dot.interrupted { background: var(--amber); }
.job-card-info { flex: 1; min-width: 0; }
.job-card-route {
  font-size: .82rem; font-family: var(--mono);
  color: var(--text-secondary); overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.job-card-route .src { color: var(--indigo-light); }
.job-card-route .dst { color: var(--cyan-light); }
.job-card-meta {
  font-size: .72rem; color: var(--text-muted); margin-top: 4px;
}
.job-card-status {
  font-size: .7rem; font-weight: 700; padding: 2px 8px;
  border-radius: 100px; flex-shrink: 0;
  text-transform: uppercase; letter-spacing: .04em;
}
.job-card-status.running  { background: rgba(99,102,241,.15); color: var(--indigo-light); border: 1px solid rgba(99,102,241,.3); }
.job-card-status.done     { background: rgba(16,185,129,.15); color: #34d399; border: 1px solid rgba(16,185,129,.3); }
.job-card-status.error    { background: rgba(244,63,94,.12); color: #fb7185; border: 1px solid rgba(244,63,94,.3); }
.job-card-status.cancelled { background: rgba(255,255,255,.06); color: var(--text-muted); border: 1px solid var(--glass-border); }
.job-card-status.interrupted { background: rgba(245,158,11,.12); color: #fbbf24; border: 1px solid rgba(245,158,11,.3); }

.job-progress-mini {
  height: 4px; border-radius: 100px;
  background: rgba(255,255,255,.06);
  overflow: hidden; margin-bottom: 10px;
}
.job-progress-mini-fill {
  height: 100%; border-radius: 100px;
  background: linear-gradient(90deg, var(--indigo), var(--cyan));
  transition: width .8s ease;
}
.job-card-actions { display: flex; gap: 8px; }
.job-card-actions .btn { padding: 5px 12px; font-size: .75rem; }

/* Profile loader */
.profile-loader {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 1rem;
}
.profile-loader .select-wrap { flex: 1; }
.profile-save-btn { padding: 8px 12px; font-size: .8rem; flex-shrink: 0; }

/* Modal */
.modal-overlay {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(0,0,0,.6); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  padding: 1rem;
}
.modal-card {
  background: #0d1117;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: 2rem;
  width: 100%; max-width: 420px;
  box-shadow: 0 24px 64px rgba(0,0,0,.6);
  animation: cardIn .3s cubic-bezier(.34,1.56,.64,1);
}
@keyframes cardIn {
  from { opacity: 0; transform: scale(.95) translateY(10px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}
.modal-title { font-size: 1rem; font-weight: 700; margin-bottom: 6px; }
.modal-subtitle { font-size: .82rem; color: var(--text-muted); }
.modal-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 1.2rem; }
.form-error {
  background: rgba(244,63,94,.1); border: 1px solid rgba(244,63,94,.3);
  border-radius: var(--radius-sm); color: #fb7185;
  font-size: .82rem; padding: 10px 12px; margin-top: .5rem;
}

/* ─── Wipe Button & Modal ──────────────────────────────────────────────────── */
.wipe-btn { color: var(--rose) !important; border-color: rgba(244,63,94,.2) !important; }
.wipe-btn:hover { background: rgba(244,63,94,.08) !important; }

.wipe-modal-card { text-align: center; }
.wipe-modal-icon { font-size: 3rem; margin-bottom: .75rem; }
.wipe-list {
  list-style: none; text-align: left;
  background: rgba(244,63,94,.06);
  border: 1px solid rgba(244,63,94,.15);
  border-radius: var(--radius-sm);
  padding: .8rem 1rem; margin: .8rem 0;
  font-size: .83rem; color: var(--text-secondary);
  display: flex; flex-direction: column; gap: 6px;
}
.wipe-warning {
  font-size: .78rem; color: var(--amber);
  background: rgba(245,158,11,.08);
  border: 1px solid rgba(245,158,11,.2);
  border-radius: var(--radius-sm);
  padding: 8px 12px; margin-top: .5rem;
  text-align: left;
}
