/* ============================================
   Outbound Engine — Recruitment AI OS
   HireMomentum Brand Theme (Deep Navy, Royal Blue, Vibrant Gold)
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  /* HireMomentum Core Palette */
  --hm-navy: #071A3A;
  --hm-royal: #0B4FB3;
  --hm-electric: #1261D8;
  --hm-gold: #FFD84D;
  --hm-gold-hover: #f5cb32;
  --hm-green: #1F9D68;
  --hm-red: #D34A4A;
  --hm-light: #f4f7fc;

  /* Sidebar */
  --sidebar-bg: #071A3A;
  --sidebar-border: #132a52;
  --sidebar-text: #9ab4db;
  --sidebar-text-active: #ffffff;
  --sidebar-active-bg: rgba(18, 97, 216, 0.16);
  --sidebar-active-border: #FFD84D;
  --sidebar-hover: #0c244d;

  /* Main & Surfaces */
  --main-bg: #f4f7fc;
  --card-bg: #ffffff;
  --card-border: #e2e8f0;
  --text-primary: #071A3A;
  --text-secondary: #52627a;
  --text-muted: #8899b2;

  /* Accents */
  --green-primary: #1F9D68;
  --green-dark: #157a4e;
  --green-light-bg: #ecfdf5;
  --green-light-text: #065f46;
  --lime-cta: #FFD84D;
  --lime-hover: #f5cb32;
  --red-dot: #D34A4A;
  --amber-bg: #fffbeb;
  --amber-text: #92400e;
  --blue-badge-bg: #dce8ff;
  --blue-badge-text: #0B4FB3;

  /* Banner */
  --banner-dark: #071A3A;
  --banner-border: rgba(255, 216, 77, 0.2);

  /* Radius & Shadows */
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --shadow-xs: 0 1px 2px rgba(7, 26, 58, 0.04);
  --shadow-sm: 0 1px 3px rgba(7, 26, 58, 0.08), 0 1px 2px rgba(7, 26, 58, 0.04);
  --shadow-md: 0 4px 12px rgba(7, 26, 58, 0.08), 0 2px 4px rgba(7, 26, 58, 0.04);
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--main-bg);
  color: var(--text-primary);
  height: 100vh;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── Layout ── */
#app { display: flex; height: 100vh; width: 100vw; }

/* ═══════════════════════════════════
   SIDEBAR — HireMomentum Brand
   ═══════════════════════════════════ */
.sidebar {
  width: 240px;
  background: var(--sidebar-bg);
  border-right: 1px solid var(--sidebar-border);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  overflow-y: auto;
}

.sidebar-brand {
  padding: 20px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--sidebar-border);
}

.brand-icon {
  width: 36px; height: 36px;
  background: #ffffff;
  border-radius: 8px;
  border: 1.5px solid var(--hm-gold);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 16px; color: var(--hm-navy);
  flex-shrink: 0;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.brand-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-text { display: flex; flex-direction: column; }
.brand-name { color: #fff; font-weight: 800; font-size: 14px; line-height: 1.3; letter-spacing: -0.2px; }
.brand-niche { color: var(--hm-gold); font-size: 11px; font-weight: 600; }

.sidebar-nav { padding: 20px 12px; flex: 1; }

.nav-section {
  color: #6079a3; font-size: 10px; font-weight: 700;
  letter-spacing: 0.6px; margin: 16px 0 8px 12px;
  text-transform: uppercase;
}

.nav-item {
  display: flex; align-items: center; gap: 12px;
  padding: 9px 12px; text-decoration: none;
  color: var(--sidebar-text); font-size: 13px; font-weight: 500;
  border-radius: var(--radius-sm); margin-bottom: 4px;
  transition: all 0.15s; position: relative;
}

.nav-item .icon { font-size: 16px; width: 16px; height: 16px; }

.nav-item:hover {
  background: var(--sidebar-hover); color: var(--sidebar-text-active);
}

.nav-item.active {
  background: var(--sidebar-active-bg); color: var(--sidebar-text-active);
  font-weight: 600;
}
.nav-item.active::before {
  content: ''; position: absolute; left: -12px; top: 10%; height: 80%; width: 3px;
  background: var(--sidebar-active-border); border-radius: 0 4px 4px 0;
}

.nav-badge {
  margin-left: auto; background: #132a52; color: var(--hm-gold);
  font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 12px;
}
.nav-badge.blue { background: var(--hm-royal); color: #fff; }

.sidebar-footer {
  padding: 16px 18px; border-top: 1px solid var(--sidebar-border);
  display: flex; align-items: center; gap: 12px;
  cursor: pointer;
}
.sidebar-footer:hover { background: var(--sidebar-hover); }

.avatar {
  width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; color: #fff; flex-shrink: 0;
  background: linear-gradient(135deg, var(--hm-royal) 0%, var(--hm-electric) 100%);
  border: 1.5px solid var(--hm-gold);
}
.avatar.purple { background: linear-gradient(135deg, var(--hm-royal) 0%, var(--hm-electric) 100%); }

.footer-info { display: flex; flex-direction: column; flex: 1; }
.footer-name { color: #fff; font-size: 13px; font-weight: 600; }
.footer-role { color: #9ab4db; font-size: 11px; font-weight: 500; }
.logout-icon { width: 16px; height: 16px; color: #9ab4db; }

/* ═══════════════════════════════════
   MAIN CONTENT
   ═══════════════════════════════════ */
.main { flex: 1; display: flex; flex-direction: column; overflow: hidden; }

/* Top header bar */
.top-bar {
  height: 60px; background: var(--card-bg);
  border-bottom: 1px solid var(--card-border);
  padding: 0 24px; display: flex; align-items: center; justify-content: space-between;
  flex-shrink: 0;
}
.top-bar-left h1 { font-size: 18px; font-weight: 700; color: var(--text-primary); }
.top-bar-left .subtitle { font-size: 13px; color: var(--text-secondary); font-weight: 400; margin-top: 2px; }

.top-bar-right { display: flex; align-items: center; gap: 14px; }
.search-input {
  background: #f9fafb; border: 1px solid var(--card-border);
  border-radius: var(--radius-sm); padding: 8px 12px 8px 34px;
  font-size: 13px; color: var(--text-primary); width: 220px; outline: none;
  font-family: inherit; transition: border-color 0.15s;
}
.search-input:focus { border-color: #93c5fd; background: #fff; }
.search-wrapper { position: relative; display: flex; align-items: center; }
.search-wrapper::before {
  content: '🔍'; position: absolute; left: 10px;
  font-size: 12px; opacity: 0.5;
}
.search-shortcut {
  position: absolute; right: 10px; font-size: 11px;
  background: #f3f4f6; color: #9ca3af; padding: 2px 6px;
  border-radius: 4px; border: 1px solid #e5e7eb;
}
.icon-btn {
  width: 36px; height: 36px; border-radius: var(--radius-sm);
  border: 1px solid var(--card-border); background: var(--card-bg);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: var(--text-secondary);
}
.icon-btn:hover { background: #f4f7fc; color: var(--hm-royal); }
.btn-new-campaign {
  background: var(--hm-royal); color: #fff; border: none;
  padding: 8px 16px; border-radius: var(--radius-sm);
  font-size: 13px; font-weight: 700; cursor: pointer;
  display: flex; align-items: center; gap: 6px; font-family: inherit;
  box-shadow: 0 2px 6px rgba(11, 79, 179, 0.25);
  transition: all 0.15s ease;
}
.btn-new-campaign:hover { background: var(--hm-electric); transform: translateY(-1px); }
.header-avatar {
  width: 32px; height: 32px; border-radius: 50%;
  background: linear-gradient(135deg, var(--hm-royal) 0%, var(--hm-electric) 100%);
  border: 1.5px solid var(--hm-gold);
  color: #fff; font-size: 12px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}

/* Scrollable content */
.content { flex: 1; overflow-y: auto; padding: 24px 32px; }

/* Tab panels */
.tab { display: none; }
.tab.active { display: block; animation: fadeUp 0.2s ease-out; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(3px); } to { opacity: 1; transform: translateY(0); } }

/* ═══════════════════════════════════
   HERO BANNER — HireMomentum Navy/Royal Gradient
   ═══════════════════════════════════ */
.hero {
  background: linear-gradient(135deg, #071A3A 0%, #0B4FB3 100%);
  border-radius: var(--radius-lg); padding: 28px 32px;
  color: #fff; margin-bottom: 24px;
  border: 1px solid rgba(255, 216, 77, 0.25);
  box-shadow: 0 8px 24px rgba(7, 26, 58, 0.15);
}
.hero-top { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 12px; }
.hero-welcome { font-size: 22px; font-weight: 800; letter-spacing: -0.3px; }
.hero-niche { font-size: 13px; color: var(--hm-gold); margin-top: 4px; font-weight: 600; }

.status-pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(31, 157, 104, 0.18); border: 1px solid rgba(31, 157, 104, 0.35);
  color: #4ade80; font-size: 12px; font-weight: 700;
  padding: 6px 14px; border-radius: 20px; white-space: nowrap;
}
.status-dot {
  width: 8px; height: 8px; background: #22c55e; border-radius: 50%;
  box-shadow: 0 0 6px #22c55e;
  animation: blink 2s infinite;
}
@keyframes blink { 50% { opacity: 0.5; } }

.hero-desc {
  font-size: 15px; color: #dce8ff; line-height: 1.6; margin-bottom: 20px; max-width: 700px;
}
.hero-desc strong { color: #fff; font-weight: 700; }

.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; }
.btn-lime {
  background: var(--hm-gold); color: var(--hm-navy); border: none;
  padding: 10px 18px; border-radius: var(--radius-sm);
  font-size: 13px; font-weight: 800; cursor: pointer;
  display: inline-flex; align-items: center; gap: 8px; font-family: inherit;
  box-shadow: 0 2px 8px rgba(255, 216, 77, 0.3);
  transition: all 0.15s ease;
}
.btn-lime:hover { background: var(--hm-gold-hover); transform: translateY(-1px); }
.btn-outline {
  background: transparent; color: #cbd5e1;
  border: 1px solid rgba(255,255,255,0.18);
  padding: 10px 18px; border-radius: var(--radius-sm);
  font-size: 13px; font-weight: 600; cursor: pointer;
  display: inline-flex; align-items: center; gap: 8px; font-family: inherit;
  transition: background 0.15s;
}
.btn-outline:hover { background: rgba(255,255,255,0.08); }

/* ═══════════════════════════════════
   STATS ROW — 5 cards
   ═══════════════════════════════════ */
.stats-row {
  display: grid; grid-template-columns: repeat(5, 1fr);
  gap: 16px; margin-bottom: 24px;
}
.stat-card {
  background: var(--card-bg); border: 1px solid var(--card-border);
  border-radius: var(--radius-md); padding: 18px 20px;
  box-shadow: var(--shadow-xs);
}
.stat-val { font-size: 24px; font-weight: 800; color: var(--text-primary); letter-spacing: -0.5px; line-height: 1.2; }
.stat-lbl { font-size: 12px; color: var(--text-secondary); font-weight: 500; margin-top: 4px; }

/* ═══════════════════════════════════
   DASHBOARD GRID — 2 columns
   ═══════════════════════════════════ */
.dash-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 24px; }

.panel {
  background: var(--card-bg); border: 1px solid var(--card-border);
  border-radius: var(--radius-md); padding: 20px; box-shadow: var(--shadow-xs);
}
.panel-head {
  display: flex; align-items: center; justify-content: space-between;
  padding-bottom: 16px; margin-bottom: 16px; border-bottom: 1px solid var(--card-border);
}
.panel-title { font-size: 15px; font-weight: 700; display: flex; align-items: center; gap: 10px; }
.icon-square {
  width: 28px; height: 28px; border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
}
.icon-square svg { width: 14px; height: 14px; }
.icon-square.green { background: #dcfce7; color: #166534; }
.icon-square.orange { background: #ffedd5; color: #9a3412; }

.panel-link {
  font-size: 13px; color: #2563eb; font-weight: 600; cursor: pointer;
  text-decoration: none;
}
.panel-link:hover { text-decoration: underline; }

/* Draft preview rows */
.draft-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 0; border-bottom: 1px solid #f3f4f6; cursor: pointer;
  transition: background 0.1s;
}
.draft-row:last-child { border-bottom: none; }
.draft-row:hover { background: #fafbfc; margin: 0 -8px; padding-left: 8px; padding-right: 8px; border-radius: 6px; }

.draft-left { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.draft-company { font-weight: 600; font-size: 14px; color: var(--text-primary); }
.draft-contact { font-size: 13px; color: #64748b; }
.draft-subject { font-size: 13px; color: #9ca3af; font-style: italic; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 400px; }

.draft-right { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.tag-job {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11px; font-weight: 600; color: #b45309;
  background: #fffbeb; padding: 2px 8px; border-radius: 4px;
}
.tag-job::before { content: '●'; color: var(--red-dot); font-size: 8px; }
.draft-arrow { color: #d1d5db; font-size: 14px; }

/* Signal toggle rows */
.sig-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 0; border-bottom: 1px dashed #f3f4f6;
}
.sig-row:last-child { border-bottom: none; }
.sig-name { font-size: 13px; font-weight: 600; color: var(--text-primary); display: flex; align-items: center; gap: 6px; }
.sig-name::before { content: '●'; font-size: 8px; }
.sig-right { display: flex; align-items: center; gap: 10px; }
.sig-count { font-weight: 700; font-size: 13px; color: var(--text-primary); }

/* Toggle switch */
.toggle { position: relative; display: inline-block; width: 36px; height: 20px; }
.toggle input { opacity: 0; width: 0; height: 0; }
.toggle-slider {
  position: absolute; cursor: pointer; inset: 0;
  background: #d1d5db; border-radius: 20px; transition: 0.2s;
}
.toggle-slider::before {
  content: ''; position: absolute; height: 14px; width: 14px;
  left: 3px; bottom: 3px; background: #fff; border-radius: 50%; transition: 0.2s;
}
.toggle input:checked + .toggle-slider { background: var(--green-primary); }
.toggle input:checked + .toggle-slider::before { transform: translateX(16px); }

/* ═══════════════════════════════════
   APPROVALS PAGE
   ═══════════════════════════════════ */
.page-header { margin-bottom: 16px; }
.page-title { font-size: 20px; font-weight: 800; color: var(--text-primary); }
.page-subtitle { font-size: 12px; color: var(--text-secondary); }
.page-count { margin-top: 6px; font-size: 16px; font-weight: 800; }
.page-count .count-num { color: var(--green-primary); font-weight: 600; font-size: 14px; }

/* ═══════════════════════════════════
   APPROVALS SUBTABS (NEW, APPROVED, REJECTED)
   ═══════════════════════════════════ */
.approvals-subtabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  margin-bottom: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-xs);
}

.app-subtab {
  padding: 16px 24px;
  cursor: pointer;
  border-right: 1px solid var(--card-border);
  position: relative;
  transition: all 0.15s ease;
  user-select: none;
  background: #ffffff;
}

.app-subtab:last-child {
  border-right: none;
}

.app-subtab:hover {
  background: #f8fafc;
}

.app-subtab-lbl {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-secondary);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.app-subtab-val {
  font-size: 26px;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.1;
}

.app-subtab.active {
  background: #ffffff;
}

.app-subtab.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--hm-royal);
  border-radius: 3px 3px 0 0;
}

.notice {
  background: var(--banner-dark); color: #e2e8f0; border-radius: var(--radius-md);
  padding: 12px 16px; font-size: 12px; line-height: 1.5;
  display: flex; align-items: center; gap: 10px; margin-bottom: 20px;
  border: 1px solid rgba(255, 216, 77, 0.15);
}
.notice .check-icon {
  width: 22px; height: 22px; background: rgba(31,157,104,0.25);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 12px; flex-shrink: 0; color: #4ade80;
}
.notice em { color: var(--hm-gold); font-weight: 700; font-style: normal; }

.approval-cards { display: flex; flex-direction: column; gap: 16px; }

.a-card {
  background: var(--card-bg); border: 1px solid var(--card-border);
  border-radius: var(--radius-lg); padding: 20px; box-shadow: var(--shadow-xs);
  transition: all 0.3s ease;
}
.a-card.removing {
  opacity: 0; transform: translateX(80px);
  max-height: 0; padding: 0 20px; margin: 0; overflow: hidden;
  transition: all 0.35s ease;
}

.a-card-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 10px; }
.a-card-company { font-size: 16px; font-weight: 800; color: var(--text-primary); }
.a-card-contact { font-size: 13px; color: var(--text-secondary); margin-top: 1px; }

.badges { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.badge {
  font-size: 11px; font-weight: 600; padding: 3px 8px; border-radius: 4px;
  display: inline-flex; align-items: center; gap: 4px; white-space: nowrap;
}
.badge.job { color: #c2410c; }
.badge.job::before { content: '•'; color: #ea580c; font-size: 13px; margin-right: 1px; line-height: 1; }
.badge.verified { color: var(--green-dark); }
.badge.verified::before { content: '•'; color: var(--green-primary); font-size: 13px; margin-right: 1px; line-height: 1; }
.badge.time { color: var(--text-secondary); }

.a-meta {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  font-size: 12px; color: var(--text-secondary);
  padding-bottom: 14px; margin-bottom: 16px; border-bottom: 1px solid var(--card-border);
}
.a-meta strong { color: var(--text-primary); }
.role-pill {
  color: var(--text-secondary); font-size: 11px; font-weight: 500;
  padding: 0 4px;
}

.email-preview {
  margin-bottom: 16px;
}
.email-subject {
  font-weight: 700; font-size: 13px; color: var(--text-primary);
  margin-bottom: 12px;
}
.email-body {
  font-size: 13px; color: #374151; line-height: 1.6;
  white-space: pre-wrap;
}
.editable {
  padding: 4px 6px; margin: -4px -6px; border-radius: 4px;
  border: 1px solid transparent; outline: none;
  transition: all 0.15s ease;
}
.editable:hover {
  background-color: #f4f7fc; border-color: #cbd5e1;
}
.editable:focus {
  background-color: #fff; border-color: var(--hm-electric);
  box-shadow: 0 0 0 2px rgba(18, 97, 216, 0.15);
}

.a-card-footer { display: flex; align-items: center; justify-content: space-between; }
.copy-pass { font-size: 11px; color: var(--green-dark); font-weight: 700; }
.a-card-btns { display: flex; gap: 8px; }
.btn-approve {
  background: linear-gradient(135deg, var(--hm-royal) 0%, var(--hm-electric) 100%);
  color: #ffffff; border: none;
  padding: 8px 18px; border-radius: var(--radius-sm);
  font-size: 12px; font-weight: 700; cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px; font-family: inherit;
  box-shadow: 0 2px 6px rgba(11, 79, 179, 0.25);
  transition: all 0.15s ease;
}
.btn-approve:hover {
  background: linear-gradient(135deg, #093f8f 0%, #0e52b8 100%);
  transform: translateY(-1px);
}
.btn-reject {
  background: transparent; color: var(--text-secondary);
  border: 1px solid var(--card-border); padding: 8px 14px;
  border-radius: var(--radius-sm); font-size: 12px; font-weight: 600;
  cursor: pointer; display: inline-flex; align-items: center; gap: 6px;
  transition: background 0.15s;
}
.btn-reject:hover { background: #f4f7fc; color: var(--text-primary); }

/* ── AI Video Generation & Campaign Enrollment Components ── */
.video-gen-box {
  background: linear-gradient(135deg, #071A3A 0%, #0B4FB3 100%);
  border: 1px solid rgba(255, 216, 77, 0.25);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  color: #ffffff;
  margin: 16px 0;
  box-shadow: 0 4px 14px rgba(7, 26, 58, 0.2);
  animation: fadeIn 0.3s ease-out;
}

.video-gen-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.video-gen-title {
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #f8fafc;
}

.video-gen-status-pill {
  font-size: 11px;
  font-weight: 700;
  background: rgba(255, 216, 77, 0.15);
  border: 1px solid rgba(255, 216, 77, 0.35);
  color: var(--hm-gold);
  padding: 2px 8px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.video-progress-track {
  background: rgba(255, 255, 255, 0.15);
  height: 6px;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 10px;
  position: relative;
}

.video-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #FFD84D, #1261D8, #1F9D68);
  width: 0%;
  border-radius: 4px;
  animation: genProgress 5.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes genProgress {
  0% { width: 4%; }
  25% { width: 35%; }
  60% { width: 72%; }
  85% { width: 90%; }
  100% { width: 100%; }
}

.video-gen-sub {
  font-size: 11px;
  color: #94a3b8;
  display: flex;
  align-items: center;
  gap: 6px;
}

.video-player-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-lg);
  padding: 16px;
  margin: 16px 0;
  animation: fadeIn 0.4s ease-out;
}

.video-player-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.video-player-title {
  font-size: 13px;
  font-weight: 700;
  color: #1e293b;
  display: flex;
  align-items: center;
  gap: 8px;
}

.video-ready-badge {
  font-size: 11px;
  font-weight: 700;
  background: #dcfce7;
  color: #15803d;
  border: 1px solid #bbf7d0;
  padding: 2px 8px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.video-frame-wrapper {
  max-width: 440px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  background: #000000;
  border: 1px solid #cbd5e1;
}

.video-frame-wrapper video {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}

.campaign-enroll-box {
  margin-top: 14px;
  padding: 11px 15px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s ease;
}

.campaign-enroll-box.adding {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1e40af;
  font-weight: 600;
}

.campaign-enroll-box.enrolled {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #15803d;
  font-weight: 600;
  animation: popIn 0.3s ease-out;
}

.spin-icon {
  display: inline-block;
  animation: rotateSpin 1s linear infinite;
}

@keyframes rotateSpin {
  100% { transform: rotate(360deg); }
}

@keyframes popIn {
  from { opacity: 0; transform: scale(0.98); }
  to { opacity: 1; transform: scale(1); }
}

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

/* ═══════════════════════════════════
   SIGNALS TAB
   ═══════════════════════════════════ */
.signals-alert {
  background: #f5f3ff;
  border: 1px solid #ddd6fe;
  color: #5b21b6;
  border-radius: var(--radius-md);
  padding: 12px 16px;
  font-size: 13px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}
.signals-alert svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: #7c3aed;
}

.signals-top-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
}

.sig-name-container {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.sig-icon-box {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid #f1f5f9;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  flex-shrink: 0;
  box-shadow: 0 1px 2px rgba(0,0,0,0.02);
}
.sig-icon-box svg {
  width: 18px;
  height: 18px;
  stroke-width: 1.5;
}
.sig-header-icon {
  width: 32px;
  height: 32px;
  background: #fef3c7;
  color: #d97706;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.sig-header-icon svg {
  width: 18px;
  height: 18px;
  stroke-width: 2;
}
.sig-row-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}
.sig-row-sub {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 2px;
}
.sig-count-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  margin-right: 12px;
}
.sig-count-num {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1;
}
.sig-count-lbl {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

.chart-container {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.chart-bars {
  display: flex;
  align-items: flex-end;
  justify-content: space-around;
  height: 180px;
  padding: 20px 0 10px;
  border-bottom: 1px solid var(--card-border);
}
.chart-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 48px;
}
.chart-val {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-primary);
}
.chart-bar {
  width: 32px;
  border-radius: 4px 4px 0 0;
  transition: height 0.3s ease;
}
.chart-lbl {
  font-size: 11px;
  color: var(--text-secondary);
  font-weight: 500;
  text-align: center;
  white-space: nowrap;
}
.chart-legend {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding-top: 16px;
}
.legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-secondary);
  font-weight: 500;
}
.legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.signals-section { margin-top: 8px; }
.signals-header {
  display: flex; align-items: center; gap: 12px;
  font-size: 16px; font-weight: 700; margin-bottom: 20px;
}
.sig-table { width: 100%; border-collapse: collapse; }
.sig-table th {
  text-align: left; font-size: 11px; text-transform: uppercase;
  letter-spacing: 0.5px; color: var(--text-secondary); font-weight: 700;
  padding: 12px 16px; border-bottom: 1px solid var(--card-border);
}
.sig-table td {
  padding: 16px; border-bottom: 1px solid var(--card-border);
  font-size: 14px; vertical-align: middle;
}
.sig-row-item:hover { background: #f8fafc; }

.sig-company-name { font-weight: 600; color: var(--text-primary); display: flex; align-items: center; gap: 8px; }
.sig-company-name .chevron { font-size: 18px; color: #94a3b8; line-height: 1; }

.movement-badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: var(--radius-sm);
}
.movement-badge.blue { background: #eff6ff; color: #1d4ed8; }
.movement-badge.blue .dot { width: 6px; height: 6px; background: #3b82f6; border-radius: 50%; }

/* ═══════════════════════════════════
   OUTREACH TAB
   ═══════════════════════════════════ */
.outreach-stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 14px; margin-bottom: 20px;
}

/* ═══════════════════════════════════
   MODALS
   ═══════════════════════════════════ */
.modal-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(15,23,42,0.65); backdrop-filter: blur(3px);
  z-index: 100; align-items: center; justify-content: center;
}
.modal-overlay.open { display: flex; }
.modal {
  background: var(--card-bg); border-radius: var(--radius-lg);
  width: 92%; max-width: 640px; padding: 24px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.25); max-height: 85vh; overflow-y: auto;
}
.modal-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 18px;
}
.modal-title { font-size: 16px; font-weight: 800; }
.modal-close {
  background: none; border: none; font-size: 18px;
  color: var(--text-secondary); cursor: pointer;
}

.sim-step {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 10px 0; border-bottom: 1px dashed #f3f4f6;
}
.sim-num {
  width: 26px; height: 26px; border-radius: 50%;
  background: #f1f5f9; color: #6b7280;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 11px; flex-shrink: 0;
}
.sim-num.done { background: #dcfce7; color: #166534; }
.sim-num.running { background: #dbeafe; color: #1e40af; animation: blink 0.8s infinite; }
.sim-text { font-size: 13px; font-weight: 500; color: var(--text-primary); }
.sim-sub { font-size: 11px; color: var(--text-secondary); }

/* Architecture steps */
.arch-step {
  background: #f8fafc; border: 1px solid #e5e7eb;
  border-radius: var(--radius-md); padding: 10px 14px;
  display: flex; align-items: center; gap: 12px; margin-bottom: 8px;
}
.arch-num { font-weight: 700; color: #2563eb; font-size: 14px; width: 20px; }
.arch-label { font-weight: 700; font-size: 13px; color: var(--text-primary); }
.arch-desc { font-size: 11px; color: var(--text-secondary); }

/* ═══════════════════════════════════
   TOAST
   ═══════════════════════════════════ */
.toast {
  position: fixed; bottom: 20px; right: 20px;
  background: var(--banner-dark); color: #fff;
  padding: 10px 18px; border-radius: var(--radius-md);
  font-size: 12px; font-weight: 600; box-shadow: 0 8px 24px rgba(0,0,0,0.25);
  border-left: 3px solid var(--lime-cta); z-index: 200;
  opacity: 0; transform: translateY(8px);
  transition: all 0.25s ease; pointer-events: none;
}
.toast.show { opacity: 1; transform: translateY(0); }
