/* ═══════════════════════════════════════════════════════════════
   TxTRIA SMS Command Center — Design System
   ═══════════════════════════════════════════════════════════════ */

/* ─── Design Tokens ─── */
:root {
  /* Backgrounds */
  --bg-base: #06080f;
  --bg-surface: #0b0f1a;
  --bg-elevated: #111728;
  --bg-hover: #161d30;
  --bg-input: #0e1322;

  /* Borders */
  --border: #1a2138;
  --border-strong: #252e48;
  --border-focus: #3b82f6;

  /* Text */
  --text-primary: #eef1f8;
  --text-secondary: #8892b0;
  --text-tertiary: #5a6380;

  /* Accent */
  --accent: #3b82f6;
  --accent-hover: #5b9aff;
  --accent-muted: rgba(59, 130, 246, 0.12);
  --accent-glow: rgba(59, 130, 246, 0.25);

  /* Semantic */
  --success: #10b981;
  --success-muted: rgba(16, 185, 129, 0.12);
  --warning: #f59e0b;
  --warning-muted: rgba(245, 158, 11, 0.12);
  --danger: #ef4444;
  --danger-muted: rgba(239, 68, 68, 0.12);

  /* Brand */
  --verizon: #cd040b;
  --verizon-muted: rgba(205, 4, 11, 0.12);
  --nonvz: #3b82f6;
  --nonvz-muted: rgba(59, 130, 246, 0.12);

  /* Spacing */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 20px;
  --sp-6: 24px;
  --sp-8: 32px;
  --sp-10: 40px;

  /* Radius */
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 14px;
  --radius-xl: 18px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.3);
  --shadow: 0 4px 16px rgba(0,0,0,0.25);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.4);
  --shadow-glow: 0 0 20px rgba(59, 130, 246, 0.15);

  /* Sidebar */
  --sidebar-width: 240px;

  /* Transitions */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg-base);
  color: var(--text-primary);
  min-height: 100vh;
  display: flex;
  line-height: 1.5;
}

::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-tertiary); }

input, select, textarea, button { font-family: inherit; }

::selection {
  background: var(--accent);
  color: #fff;
}

/* ─── Typography ─── */
.mono { font-family: 'JetBrains Mono', 'Fira Code', monospace; }

.text-xs { font-size: 0.7rem; }
.text-sm { font-size: 0.8rem; }
.text-base { font-size: 1rem; }
.text-lg { font-size: 1.15rem; }
.text-xl { font-size: 1.35rem; }
.text-2xl { font-size: 1.65rem; }
.text-3xl { font-size: 2rem; }

.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.font-black { font-weight: 900; }

.text-muted { color: var(--text-secondary); }
.text-faint { color: var(--text-tertiary); }
.text-accent { color: var(--accent); }
.text-success { color: var(--success); }
.text-warning { color: var(--warning); }
.text-danger { color: var(--danger); }

/* ─── Layout: Sidebar ─── */
.sidebar {
  width: var(--sidebar-width);
  min-height: 100vh;
  background: var(--bg-surface);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  z-index: 100;
  padding: var(--sp-3) var(--sp-4);
}

.sidebar-logo {
  padding: 0 var(--sp-2) var(--sp-3);
  border-bottom: 1px solid var(--border);
  margin-bottom: var(--sp-3);
  flex-shrink: 0;
}

.sidebar-logo h1 {
  font-size: 1.3rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, var(--accent), #60a5fa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.sidebar-logo .subtitle {
  font-size: 0.55rem;
  font-weight: 700;
  color: var(--text-tertiary);
  letter-spacing: 0.14em;
  margin-top: 2px;
  text-transform: uppercase;
}

/* ─── Provider Switcher ─── */
.provider-switcher {
  display: flex;
  gap: 2px;
  padding: 3px;
  background: var(--bg-base);
  border-radius: var(--radius);
  margin-bottom: var(--sp-3);
  flex-shrink: 0;
}

.provider-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 5px 6px;
  border: none;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text-tertiary);
  font-size: 0.7rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s var(--ease);
  font-family: inherit;
}

.provider-btn:hover { color: var(--text-secondary); }
.provider-btn.active {
  background: var(--bg-elevated);
  color: var(--text-primary);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-strong);
}
.provider-btn[data-provider="txtria"].active { border-color: #0ea5e9; color: #0ea5e9; }
.provider-btn[data-provider="tells"].active { border-color: #8b5cf6; color: #8b5cf6; }

.provider-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 1px;
  overflow-y: auto;
  overflow-x: hidden;
  flex: 1;
  margin-right: -4px;
  padding-right: 4px;
}

.nav-section-label {
  font-size: 0.6rem;
  font-weight: 700;
  color: var(--text-tertiary);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: var(--sp-3) var(--sp-3) var(--sp-1);
}

.nav-item {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  width: 100%;
  padding: 6px var(--sp-3);
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.82rem;
  cursor: pointer;
  transition: all 0.15s var(--ease);
  text-align: left;
  position: relative;
}

.nav-item:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}

.nav-item.active {
  background: var(--accent-muted);
  color: var(--accent);
  border-color: rgba(59, 130, 246, 0.08);
}

.nav-item.active::before {
  content: '';
  position: absolute;
  left: -20px;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 20px;
  background: var(--accent);
  border-radius: 0 3px 3px 0;
}

.nav-item svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  opacity: 0.7;
}

.nav-item.active svg { opacity: 1; }

.nav-divider {
  height: 1px;
  background: var(--border);
  margin: var(--sp-3) var(--sp-3);
}

/* Sidebar balance */
.balance-card {
  margin-top: auto;
  padding: var(--sp-3);
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.08), rgba(16, 185, 129, 0.02));
  border: 1px solid rgba(16, 185, 129, 0.15);
  border-radius: var(--radius);
  flex-shrink: 0;
}

.balance-card .balance-label {
  font-size: 0.6rem;
  font-weight: 700;
  color: var(--text-tertiary);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.balance-card .balance-value {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--success);
  font-family: 'JetBrains Mono', monospace;
  margin-top: var(--sp-1);
}

/* Live indicator */
.live-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--success);
  margin-right: 6px;
  animation: pulse-dot 2s ease infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4); }
  50% { opacity: 0.7; box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
}

/* ─── Layout: Main ─── */
.main-content {
  margin-left: var(--sidebar-width);
  flex: 1;
  max-height: 100vh;
  overflow-y: auto;
  overflow-x: hidden;
}

.content-wrapper {
  max-width: 1100px;
  margin: 0 auto;
  padding: var(--sp-8) var(--sp-10);
}

/* ─── Page Header ─── */
.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--sp-6);
}

.page-title {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.page-subtitle {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: var(--sp-1);
}

.page-meta {
  font-size: 0.75rem;
  color: var(--text-tertiary);
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}

/* ─── Cards ─── */
.card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--sp-6);
  margin-bottom: var(--sp-5);
  transition: border-color 0.2s var(--ease);
}

.card:hover {
  border-color: var(--border-strong);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--sp-5);
}

.card-title {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-tertiary);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.card-flush { padding: 0; }
.card-flush .card-header { padding: var(--sp-5) var(--sp-6) 0; }
.card-flush .card-body { padding: 0; }

/* ─── Stat Cards ─── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-4);
  margin-bottom: var(--sp-5);
}

.stat-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--sp-5);
  position: relative;
  overflow: hidden;
  transition: all 0.2s var(--ease);
}

.stat-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-1px);
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  opacity: 0;
  transition: opacity 0.2s var(--ease);
}

.stat-card:hover::before { opacity: 1; }
.stat-card.accent-blue::before { background: var(--accent); opacity: 1; }
.stat-card.accent-green::before { background: var(--success); opacity: 1; }
.stat-card.accent-amber::before { background: var(--warning); opacity: 1; }
.stat-card.accent-red::before { background: var(--danger); opacity: 1; }

.stat-label {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-tertiary);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: var(--sp-2);
}

.stat-value {
  font-size: 1.65rem;
  font-weight: 800;
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.stat-sub {
  font-size: 0.7rem;
  color: var(--text-tertiary);
  margin-top: var(--sp-1);
}

/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: var(--sp-2) var(--sp-4);
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.15s var(--ease);
  white-space: nowrap;
  line-height: 1.5;
}

.btn:active { transform: scale(0.97); }

.btn-primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.btn-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  box-shadow: var(--shadow-glow);
}

.btn-success {
  background: var(--success);
  color: #fff;
  border-color: var(--success);
}
.btn-success:hover {
  background: #0fd992;
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.2);
}

.btn-danger {
  background: var(--danger);
  color: #fff;
  border-color: var(--danger);
}
.btn-danger:hover {
  background: #f87171;
}

.btn-outline {
  background: transparent;
  border-color: var(--border-strong);
  color: var(--text-secondary);
}
.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-muted);
}

.btn-ghost {
  background: transparent;
  border-color: transparent;
  color: var(--text-secondary);
}
.btn-ghost:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}

.btn-sm {
  padding: var(--sp-1) var(--sp-2);
  font-size: 0.75rem;
  border-radius: var(--radius-sm);
}

.btn-lg {
  padding: var(--sp-3) var(--sp-6);
  font-size: 1rem;
  border-radius: var(--radius);
}

.btn-block {
  width: 100%;
  padding: var(--sp-3) var(--sp-6);
  font-size: 1rem;
}

.btn-icon {
  width: 32px;
  height: 32px;
  padding: 0;
  border-radius: var(--radius-sm);
}

.btn-icon.btn-sm {
  width: 26px;
  height: 26px;
}

/* ─── Form Controls ─── */
.form-group {
  margin-bottom: var(--sp-4);
}

.form-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: var(--sp-2);
}

.form-hint {
  font-size: 0.7rem;
  color: var(--text-tertiary);
  margin-top: var(--sp-1);
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
}

.input {
  width: 100%;
  padding: var(--sp-2) var(--sp-3);
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 0.9rem;
  transition: all 0.15s var(--ease);
  line-height: 1.5;
}

.input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-muted);
}

.input::placeholder {
  color: var(--text-tertiary);
}

.textarea {
  width: 100%;
  padding: var(--sp-3);
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 0.9rem;
  font-family: 'JetBrains Mono', monospace;
  resize: vertical;
  min-height: 90px;
  transition: all 0.15s var(--ease);
  line-height: 1.6;
}

.textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-muted);
}

select.input {
  appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%235a6380' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
}

.form-row {
  display: grid;
  gap: var(--sp-4);
}
.form-row-2 { grid-template-columns: 1fr 1fr; }
.form-row-3 { grid-template-columns: 1fr 1fr 1fr; }
.form-row-4 { grid-template-columns: 1fr 1fr 1fr 1fr; }
.form-row-5 { grid-template-columns: 1fr 1fr 1fr 1fr 1fr; }

/* ─── Badges ─── */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 700;
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.02em;
  line-height: 1.6;
}

.badge-success { background: var(--success-muted); color: var(--success); }
.badge-danger { background: var(--danger-muted); color: var(--danger); }
.badge-warning { background: var(--warning-muted); color: var(--warning); }
.badge-info { background: var(--accent-muted); color: var(--accent); }
.badge-verizon { background: var(--verizon-muted); color: var(--verizon); }
.badge-nonvz { background: var(--nonvz-muted); color: var(--nonvz); }
.badge-neutral { background: var(--bg-elevated); color: var(--text-secondary); }

/* ─── Toggle Switch ─── */
.toggle {
  position: relative;
  display: inline-block;
  width: 40px;
  height: 22px;
  flex-shrink: 0;
}

.toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle .slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--border-strong);
  border-radius: 22px;
  transition: all 0.2s var(--ease);
}

.toggle .slider::before {
  content: '';
  position: absolute;
  height: 16px;
  width: 16px;
  left: 3px;
  bottom: 3px;
  background: var(--text-secondary);
  border-radius: 50%;
  transition: all 0.2s var(--ease);
}

.toggle input:checked + .slider {
  background: var(--accent);
}

.toggle input:checked + .slider::before {
  transform: translateX(18px);
  background: #fff;
}

.toggle-row {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-4);
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: all 0.2s var(--ease);
}

.toggle-row.active {
  opacity: 1 !important;
  background: var(--success-muted);
  border-color: rgba(16, 185, 129, 0.2);
}

.toggle-label {
  font-size: 0.85rem;
  font-weight: 600;
}

.toggle-hint {
  font-size: 0.7rem;
  color: var(--text-tertiary);
  margin-left: auto;
}

/* ─── Campaign Cards ─── */
.campaign-item {
  padding: var(--sp-4) var(--sp-5);
  border-bottom: 1px solid var(--border);
  transition: background 0.15s var(--ease);
}

.campaign-item:last-child { border-bottom: none; }
.campaign-item:hover { background: var(--bg-hover); }

.campaign-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--sp-3);
}

.campaign-name {
  font-weight: 700;
  font-size: 0.95rem;
}

.campaign-brand {
  font-size: 0.7rem;
  color: var(--text-tertiary);
  margin-left: var(--sp-2);
  font-weight: 500;
}

.campaign-actions {
  display: flex;
  gap: var(--sp-1);
  align-items: center;
}

.campaign-stats {
  font-size: 0.75rem;
  color: var(--text-tertiary);
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2) var(--sp-4);
  margin-top: var(--sp-2);
}

.campaign-stats span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.campaign-stat-val {
  color: var(--text-secondary);
  font-family: 'JetBrains Mono', monospace;
  font-weight: 600;
}

/* ─── Progress Bar ─── */
.progress-bar {
  height: 6px;
  background: var(--border);
  border-radius: 3px;
  overflow: hidden;
  margin: var(--sp-2) 0;
}

.progress-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.6s var(--ease);
  background: var(--accent);
}

.progress-fill.complete {
  background: var(--success);
}

/* ─── Data Table ─── */
.data-table-head {
  display: grid;
  gap: var(--sp-2);
  padding: var(--sp-3) var(--sp-4);
  border-bottom: 2px solid var(--border);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-tertiary);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.data-row {
  display: grid;
  gap: var(--sp-2);
  align-items: center;
  padding: var(--sp-2) var(--sp-4);
  border-bottom: 1px solid var(--border);
  font-size: 0.85rem;
  transition: background 0.1s var(--ease);
}

.data-row:hover {
  background: var(--bg-hover);
}

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

/* Log row specific columns */
.log-cols { grid-template-columns: 90px 1fr 90px 80px 80px 70px; }

/* DLR row columns */
.dlr-cols { grid-template-columns: 140px 130px 85px 80px 1fr; }

/* Analytics row columns */
.analytics-cols { grid-template-columns: 140px 1fr 70px 70px 60px 80px; }

/* Billing number row */
.billing-num-cols { grid-template-columns: 160px 80px 80px 100px 100px 100px; }
.billing-carrier-cols { grid-template-columns: 130px 100px 100px; }

/* ─── Message Groups ─── */
.msg-group {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--sp-4);
  margin-bottom: var(--sp-3);
  position: relative;
}

.msg-group:hover {
  border-color: var(--border-strong);
}

.msg-remove {
  position: absolute;
  top: var(--sp-2);
  right: var(--sp-3);
  background: none;
  border: none;
  color: var(--danger);
  cursor: pointer;
  font-size: 1.1rem;
  opacity: 0.5;
  transition: opacity 0.15s;
  padding: var(--sp-1);
}

.msg-remove:hover { opacity: 1; }

/* Carrier Checkboxes */
.carrier-checks {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  margin-bottom: var(--sp-3);
}

.carrier-check {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-input);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s var(--ease);
  user-select: none;
}

.carrier-check:hover {
  border-color: var(--border-strong);
}

.carrier-check.checked {
  border-color: var(--accent);
  background: var(--accent-muted);
  color: var(--accent);
}

.carrier-check.checked.vz {
  border-color: var(--verizon);
  background: var(--verizon-muted);
  color: var(--verizon);
}

.carrier-check input[type="checkbox"] {
  width: 14px;
  height: 14px;
  accent-color: var(--accent);
  cursor: pointer;
}

.carrier-check.vz input[type="checkbox"] {
  accent-color: var(--verizon);
}

.carrier-divider {
  width: 1px;
  height: 20px;
  background: var(--border);
  margin: 0 2px;
}

/* ─── Filter Tabs ─── */
.filter-tabs {
  display: flex;
  gap: var(--sp-2);
  margin-bottom: var(--sp-4);
}

.filter-tab {
  padding: var(--sp-1) var(--sp-3);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-secondary);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s var(--ease);
}

.filter-tab:hover {
  border-color: var(--border-strong);
  color: var(--text-primary);
}

.filter-tab.active {
  background: var(--accent-muted);
  border-color: rgba(59, 130, 246, 0.2);
  color: var(--accent);
}

/* ─── Empty State ─── */
.empty-state {
  text-align: center;
  padding: var(--sp-10) var(--sp-6);
  color: var(--text-tertiary);
}

.empty-state svg {
  width: 48px;
  height: 48px;
  margin-bottom: var(--sp-4);
  opacity: 0.3;
}

.empty-state p {
  font-size: 0.9rem;
  margin-bottom: var(--sp-2);
}

/* ─── Toast Notifications ─── */
.toast-container {
  position: fixed;
  bottom: var(--sp-6);
  right: var(--sp-6);
  z-index: 9999;
  display: flex;
  flex-direction: column-reverse;
  gap: var(--sp-2);
}

.toast {
  padding: var(--sp-3) var(--sp-5);
  border-radius: var(--radius);
  font-size: 0.85rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  min-width: 280px;
  max-width: 420px;
  box-shadow: var(--shadow-lg);
  animation: toast-in 0.3s var(--ease);
  border: 1px solid;
}

.toast-success {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.2);
  color: var(--success);
}

.toast-error {
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.2);
  color: var(--danger);
}

.toast-info {
  background: rgba(59, 130, 246, 0.12);
  border-color: rgba(59, 130, 246, 0.2);
  color: var(--accent);
}

.toast.removing {
  animation: toast-out 0.2s var(--ease) forwards;
}

@keyframes toast-in {
  from { opacity: 0; transform: translateY(12px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes toast-out {
  to { opacity: 0; transform: translateY(-8px) scale(0.95); }
}

/* ─── Skeleton Loader ─── */
.skeleton {
  background: linear-gradient(90deg, var(--bg-elevated) 25%, var(--bg-hover) 50%, var(--bg-elevated) 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.5s ease infinite;
  border-radius: var(--radius-sm);
}

.skeleton-text {
  height: 14px;
  margin-bottom: var(--sp-2);
}

.skeleton-title {
  height: 20px;
  width: 60%;
  margin-bottom: var(--sp-3);
}

.skeleton-stat {
  height: 32px;
  width: 80%;
}

.skeleton-block {
  height: 80px;
}

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

/* ─── Chart Container ─── */
.chart-container {
  position: relative;
  width: 100%;
  max-height: 200px;
}

.chart-container canvas {
  max-height: 200px;
}

.chart-mini {
  max-height: 120px;
}

.chart-mini canvas {
  max-height: 120px;
}

/* ─── View System ─── */
.view {
  display: none;
  animation: view-in 0.25s var(--ease);
}

.view.active {
  display: block;
}

@keyframes view-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ─── DNC List ─── */
.dnc-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--sp-2) var(--sp-3);
  border-bottom: 1px solid var(--border);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
}

.dnc-item:hover {
  background: var(--bg-hover);
}

.dnc-remove {
  color: var(--danger);
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  opacity: 0.5;
  padding: var(--sp-1);
  transition: opacity 0.15s;
}

.dnc-remove:hover { opacity: 1; }

/* ─── File Upload ─── */
.file-upload {
  position: relative;
  border: 2px dashed var(--border-strong);
  border-radius: var(--radius);
  padding: var(--sp-6);
  text-align: center;
  cursor: pointer;
  transition: all 0.2s var(--ease);
}

.file-upload:hover {
  border-color: var(--accent);
  background: var(--accent-muted);
}

.file-upload input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.file-upload-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.file-upload-label strong {
  color: var(--accent);
}

.csv-info {
  padding: var(--sp-3) var(--sp-4);
  background: var(--success-muted);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  color: var(--success);
  margin-top: var(--sp-3);
}

/* ─── Section Headers ─── */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--sp-3);
}

.section-title {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.section-title.blue { color: var(--accent); }
.section-title.red { color: var(--verizon); }
.section-title.amber { color: var(--warning); }

/* ─── Drip Step Card ─── */
.drip-card {
  background: var(--bg-surface);
  border: 1px solid var(--warning-muted);
  border-radius: var(--radius);
  padding: var(--sp-4);
  margin-bottom: var(--sp-3);
}

.drip-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--sp-3);
}

.drip-messages {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-4);
}

/* ─── Code / Callback URL ─── */
.code-inline {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: var(--accent);
  background: var(--accent-muted);
  padding: 2px 6px;
  border-radius: 4px;
}

/* ─── Settings Number Row ─── */
.number-row {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-2) var(--sp-3);
  border-bottom: 1px solid var(--border);
  font-size: 0.85rem;
}

.number-row:hover { background: var(--bg-hover); }

.number-row .number-val {
  font-family: 'JetBrains Mono', monospace;
  flex: 1;
}

.number-row .number-tid {
  font-size: 0.7rem;
  color: var(--text-tertiary);
}

/* ─── Inline Result ─── */
.result-box {
  padding: var(--sp-3) var(--sp-4);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  margin-top: var(--sp-3);
  border: 1px solid;
}

.result-success {
  background: var(--success-muted);
  border-color: rgba(16, 185, 129, 0.2);
  color: var(--success);
}

.result-error {
  background: var(--danger-muted);
  border-color: rgba(239, 68, 68, 0.2);
  color: var(--danger);
}

/* ─── Utilities ─── */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.items-end { align-items: flex-end; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: var(--sp-1); }
.gap-2 { gap: var(--sp-2); }
.gap-3 { gap: var(--sp-3); }
.gap-4 { gap: var(--sp-4); }
.gap-6 { gap: var(--sp-6); }
.ml-auto { margin-left: auto; }
.mt-2 { margin-top: var(--sp-2); }
.mt-3 { margin-top: var(--sp-3); }
.mt-4 { margin-top: var(--sp-4); }
.mb-2 { margin-bottom: var(--sp-2); }
.mb-3 { margin-bottom: var(--sp-3); }
.mb-4 { margin-bottom: var(--sp-4); }
.mb-5 { margin-bottom: var(--sp-5); }
.p-4 { padding: var(--sp-4); }
.w-full { width: 100%; }
.text-right { text-align: right; }
.text-center { text-align: center; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.overflow-auto { overflow-y: auto; }
.max-h-400 { max-height: 400px; }
.max-h-500 { max-height: 500px; }
.max-h-600 { max-height: 600px; }
.hidden { display: none; }
.border-t { border-top: 1px solid var(--border); padding-top: var(--sp-4); margin-top: var(--sp-4); }

/* ─── Back Button ─── */
.back-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  background: none;
  border: none;
  padding: var(--sp-1) 0;
  margin-bottom: var(--sp-3);
  transition: color 0.15s;
}
.back-btn:hover { color: var(--accent); }
.back-btn svg { width: 16px; height: 16px; }

/* ─── Campaign Detail ─── */
.detail-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: var(--sp-5);
}

.detail-meta {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-3);
  font-size: 0.85rem;
}

.detail-meta dt {
  color: var(--text-tertiary);
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.detail-meta dd {
  color: var(--text-primary);
  font-family: 'JetBrains Mono', monospace;
  margin-bottom: var(--sp-3);
}

.msg-preview {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: var(--sp-3);
  margin-bottom: var(--sp-2);
  font-size: 0.8rem;
  line-height: 1.5;
}

.msg-preview-label {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-tertiary);
  margin-bottom: var(--sp-1);
}

.record-row {
  display: grid;
  grid-template-columns: 130px 100px 1fr 70px;
  gap: var(--sp-2);
  padding: var(--sp-2) var(--sp-4);
  border-bottom: 1px solid var(--border);
  font-size: 0.8rem;
  align-items: center;
}

.record-row:hover { background: var(--bg-hover); }

/* ─── Template Card ─── */
.template-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--sp-5);
  transition: all 0.2s var(--ease);
  position: relative;
}

.template-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-1px);
}

.template-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--sp-4);
}

.template-body-preview {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.5;
  background: var(--bg-input);
  border-radius: var(--radius-sm);
  padding: var(--sp-3);
  margin: var(--sp-3) 0;
  max-height: 80px;
  overflow: hidden;
  position: relative;
}

.template-body-preview::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 24px;
  background: linear-gradient(transparent, var(--bg-input));
}

.template-meta {
  display: flex;
  gap: var(--sp-2);
  align-items: center;
  font-size: 0.75rem;
  color: var(--text-tertiary);
}

.template-actions {
  display: flex;
  gap: var(--sp-2);
  margin-top: var(--sp-3);
  padding-top: var(--sp-3);
  border-top: 1px solid var(--border);
}

/* ─── Brand Card ─── */
.brand-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--sp-6);
  margin-bottom: var(--sp-5);
  position: relative;
  overflow: hidden;
}

.brand-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
}

.brand-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: var(--sp-5);
}

.brand-name {
  font-size: 1.2rem;
  font-weight: 800;
}

.brand-color-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
  margin-right: var(--sp-2);
  vertical-align: middle;
}

.brand-section {
  margin-bottom: var(--sp-5);
}

.brand-section-title {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-tertiary);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: var(--sp-3);
}

.td-number-tag {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-1) var(--sp-3);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  margin: 0 var(--sp-1) var(--sp-1) 0;
}

.td-number-tag button {
  background: none;
  border: none;
  color: var(--danger);
  cursor: pointer;
  font-size: 0.9rem;
  opacity: 0.5;
  padding: 0;
}

.td-number-tag button:hover { opacity: 1; }

/* ─── Reports ─── */
.report-chart-container {
  position: relative;
  height: 280px;
  margin-bottom: var(--sp-5);
}

.report-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-4);
}

.report-brand-row {
  display: grid;
  grid-template-columns: 1fr 100px 100px 100px;
  gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-4);
  border-bottom: 1px solid var(--border);
  align-items: center;
}

.report-brand-row:hover { background: var(--bg-hover); }

/* ─── Responsive ─── */
@media (max-width: 1024px) {
  .sidebar { width: 200px; }
  .main-content { margin-left: 200px; }
  :root { --sidebar-width: 200px; }
  .content-wrapper { padding: var(--sp-6) var(--sp-5); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .form-row-5 { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  .sidebar {
    width: 100%;
    min-height: auto;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: auto;
    flex-direction: row;
    padding: var(--sp-2) var(--sp-3);
    overflow-x: auto;
    z-index: 100;
  }

  .sidebar-logo { display: none; }
  .nav-section-label { display: none; }
  .nav-divider { display: none; }
  .balance-card { display: none; }
  .sidebar-nav { flex-direction: row; gap: 2px; }

  .nav-item {
    padding: var(--sp-2);
    font-size: 0.7rem;
    white-space: nowrap;
  }

  .nav-item::before { display: none; }
  .nav-item svg { width: 14px; height: 14px; }

  .main-content { margin-left: 0; margin-top: 48px; }
  .content-wrapper { padding: var(--sp-4); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .form-row-2, .form-row-3, .form-row-5 { grid-template-columns: 1fr; }
  .log-cols { grid-template-columns: 70px 1fr 70px 60px; }
  .drip-messages { grid-template-columns: 1fr; }
  .dlr-two-col { grid-template-columns: 1fr !important; }
}

/* ─── DLR Analytics ─── */
.dlr-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-4);
  margin-bottom: var(--sp-4);
}

.heatmap-grid {
  display: grid;
  grid-template-columns: repeat(24, 1fr);
  gap: 3px;
  padding: var(--sp-3) var(--sp-4);
}

.heatmap-cell {
  aspect-ratio: 1;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--text-secondary);
  min-height: 36px;
  position: relative;
  cursor: default;
  transition: transform 0.1s;
}
.heatmap-cell:hover { transform: scale(1.15); z-index: 1; }

.heatmap-label {
  font-size: 0.65rem;
  color: var(--text-tertiary);
  text-align: center;
  padding-top: 2px;
}

.health-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.health-excellent { background: rgba(16,185,129,0.15); color: var(--success); }
.health-good { background: rgba(59,130,246,0.15); color: var(--accent); }
.health-warning { background: rgba(245,158,11,0.15); color: var(--warning); }
.health-critical { background: rgba(239,68,68,0.15); color: var(--danger); }

.creative-cols { grid-template-columns: 1fr 80px 80px 80px 100px; }
.error-cols { grid-template-columns: 1fr 80px 100px; }
.number-cols { grid-template-columns: 120px 80px 80px 80px 100px 80px; }

.rate-bar {
  height: 6px;
  border-radius: 3px;
  background: var(--bg-hover);
  overflow: hidden;
  min-width: 60px;
}
.rate-bar-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.3s;
}

.trend-up { color: var(--success); }
.trend-down { color: var(--danger); }
.trend-stable { color: var(--text-tertiary); }

/* Number health cards */
.nh-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--sp-5);
  margin-bottom: var(--sp-4);
  position: relative;
  overflow: hidden;
}
.nh-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
}
.nh-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--sp-4);
}
.nh-card-number {
  font-size: 1.1rem;
  font-weight: 700;
  font-family: 'SF Mono', 'Fira Code', monospace;
}
.nh-card-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-3);
  margin-bottom: var(--sp-4);
}
.nh-mini-stat {
  text-align: center;
}
.nh-mini-stat .label { font-size: 0.7rem; color: var(--text-tertiary); margin-bottom: 2px; }
.nh-mini-stat .value { font-size: 1rem; font-weight: 700; }
.nh-sparkline {
  height: 50px;
}

/* ─── War Room (Tier 3) ─── */
.wr-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--sp-5);
  margin-bottom: var(--sp-3);
  position: relative;
  transition: border-color 0.2s;
}
.wr-card:hover { border-color: var(--border-strong); }

.wr-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--sp-2);
}

.wr-card-rate {
  font-size: 1.3rem;
  font-weight: 800;
  font-family: 'JetBrains Mono', monospace;
  color: var(--success);
}

.wr-card-stats {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: var(--sp-2);
  margin-top: var(--sp-3);
}

.wr-stat {
  text-align: center;
}
.wr-stat .label {
  font-size: 0.65rem;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 2px;
}
.wr-stat .value {
  font-size: 0.95rem;
  font-weight: 700;
  font-family: 'JetBrains Mono', monospace;
}

.wr-redis-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-3);
  padding: var(--sp-4);
}

/* ─── Worker Health (Tier 3) ─── */
.wh-worker-cols {
  display: grid;
  grid-template-columns: 1fr 100px 80px 100px 1fr;
  gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-4);
  border-bottom: 1px solid var(--border);
  align-items: center;
}
.wh-worker-cols:hover { background: var(--bg-hover); }

/* ─── P&L (Tier 3) ─── */
.pnl-cols {
  display: grid;
  grid-template-columns: 1.5fr 100px 90px 90px 90px 90px 90px 70px;
  gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-4);
  border-bottom: 1px solid var(--border);
  align-items: center;
}
.pnl-cols:hover { background: var(--bg-hover); }

/* ─── Live indicator pulse ─── */
.live-dot {
  width: 8px;
  height: 8px;
  background: var(--success);
  border-radius: 50%;
  display: inline-block;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(16,185,129,0.5); }
  70% { box-shadow: 0 0 0 8px rgba(16,185,129,0); }
  100% { box-shadow: 0 0 0 0 rgba(16,185,129,0); }
}

/* ─── Responsive overrides for Tier 3 ─── */
@media (max-width: 1024px) {
  .wr-card-stats { grid-template-columns: repeat(4, 1fr); }
  .pnl-cols { grid-template-columns: 1fr 80px 70px 70px 70px 70px 70px 60px; font-size: 0.75rem; }
}

@media (max-width: 768px) {
  .wr-card-stats { grid-template-columns: repeat(2, 1fr); }
  .pnl-cols { grid-template-columns: 1fr 70px 70px 70px; }
}

/* ─── Quick Stats Top Bar ─── */
.quick-stats-bar {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: 8px var(--sp-6);
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
}

.qs-item {
  display: flex;
  align-items: center;
  gap: 6px;
}
.qs-label {
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.qs-value {
  font-size: 0.85rem;
  font-weight: 700;
  font-family: 'JetBrains Mono', monospace;
  color: var(--text-primary);
}
.qs-sublabel {
  font-size: 0.6rem;
  color: var(--text-tertiary);
}
.qs-divider {
  width: 1px;
  height: 20px;
  background: var(--border);
}

/* ─── Notification Bell ─── */
.notification-bell {
  position: relative;
  cursor: pointer;
  padding: 6px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  transition: all 0.15s;
}
.notification-bell:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}

.notif-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  min-width: 14px;
  height: 14px;
  border-radius: 7px;
  background: var(--danger);
  color: #fff;
  font-size: 0.55rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
}

.notification-dropdown {
  position: absolute;
  top: 40px;
  right: 0;
  width: 360px;
  max-height: 400px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  z-index: 200;
  overflow: hidden;
}

.notif-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--sp-3) var(--sp-4);
  border-bottom: 1px solid var(--border);
}

.notif-list {
  max-height: 340px;
  overflow-y: auto;
}

.notif-item {
  padding: var(--sp-3) var(--sp-4);
  border-bottom: 1px solid var(--border);
  font-size: 0.8rem;
  cursor: default;
  transition: background 0.1s;
}
.notif-item:hover { background: var(--bg-hover); }
.notif-item.unread { border-left: 3px solid var(--accent); }

/* ─── Inbound SMS (Tier 4) ─── */
.inbound-cols {
  display: grid;
  grid-template-columns: 120px 120px 1fr 80px 100px 140px;
  gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-4);
  border-bottom: 1px solid var(--border);
  align-items: center;
}
.inbound-cols:hover { background: var(--bg-hover); }

.code-inline {
  background: var(--bg-base);
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8em;
  border: 1px solid var(--border);
}

/* ─── Drip Step Progress (Tier 3.5) ─── */
.drip-progress-track {
  display: flex;
  align-items: center;
  gap: 0;
}

.drip-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: 60px;
}

.drip-step-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--bg-hover);
  border: 2px solid var(--border-strong);
  transition: all 0.2s;
}

.drip-step.active .drip-step-dot {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 8px var(--accent-glow);
  animation: pulse 2s infinite;
}

.drip-step.done .drip-step-dot {
  background: var(--success);
  border-color: var(--success);
}

.drip-step-label {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-tertiary);
}
.drip-step.active .drip-step-label { color: var(--accent); }
.drip-step.done .drip-step-label { color: var(--success); }

.drip-step-connector {
  flex: 1;
  height: 2px;
  background: var(--border-strong);
  min-width: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.drip-step-connector.done { background: var(--success); }
.drip-step-connector span {
  position: absolute;
  top: -14px;
}

/* ─── Provider Tabs (Dashboard) ─── */
.provider-tabs {
  display: flex;
  gap: 0;
  margin-bottom: var(--sp-5);
  border-bottom: 2px solid var(--border);
}

.provider-tab {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: var(--sp-3) var(--sp-5);
  border: none;
  background: transparent;
  color: var(--text-tertiary);
  font-size: 0.9rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.15s var(--ease);
  position: relative;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
}

.provider-tab:hover {
  color: var(--text-secondary);
  background: var(--bg-hover);
}

.provider-tab.active {
  color: var(--text-primary);
}

.provider-tab[data-provider="txtria"].active {
  color: #0ea5e9;
  border-bottom-color: #0ea5e9;
}

.provider-tab[data-provider="tells"].active {
  color: #8b5cf6;
  border-bottom-color: #8b5cf6;
}

.provider-tab-compare.active {
  color: var(--text-primary);
  border-bottom-color: var(--accent);
}

.provider-tab-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* Provider Panels */
.provider-panel {
  display: none;
  animation: view-in 0.2s var(--ease);
}
.provider-panel.active {
  display: block;
}

/* Provider-themed cards */
.provider-card-txtria {
  border-top: 3px solid #0ea5e9;
}
.provider-card-txtria .card-title {
  color: #0ea5e9;
}

.provider-card-tells {
  border-top: 3px solid #8b5cf6;
}
.provider-card-tells .card-title {
  color: #8b5cf6;
}

/* ─── Sub-Tabs (for merged views) ─── */
.sub-tabs {
  display: flex;
  gap: 0;
  margin-bottom: var(--sp-5);
  border-bottom: 1px solid var(--border);
}

.sub-tab {
  padding: var(--sp-2) var(--sp-4);
  border: none;
  background: transparent;
  color: var(--text-tertiary);
  font-size: 0.8rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.15s var(--ease);
  position: relative;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}

.sub-tab:hover {
  color: var(--text-secondary);
  background: var(--bg-hover);
}

.sub-tab.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* Sub-panels */
.analytics-sub-panel,
.inbound-sub-panel,
.pnl-sub-panel {
  display: none;
  animation: view-in 0.2s var(--ease);
}
.analytics-sub-panel.active,
.inbound-sub-panel.active,
.pnl-sub-panel.active {
  display: block;
}

/* ─── Modal Overlay ─── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
  z-index: 10000;
  animation: fadeIn 0.15s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

