/* ==========================================================================
   London Beauty Salon SEO Lead & WhatsApp Outreach Agent - Design System
   Aesthetic: Luxury Obsidian Glassmorphism with Emerald & 24K Gold Accents
   ========================================================================== */

:root {
  /* Color Palette */
  --bg-primary: #080b12;
  --bg-secondary: #0e1422;
  --bg-card: rgba(18, 25, 41, 0.75);
  --bg-card-hover: rgba(24, 34, 56, 0.85);
  --bg-glass: rgba(255, 255, 255, 0.03);
  --bg-input: #121929;
  
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-card: rgba(255, 255, 255, 0.12);
  --border-active: rgba(245, 158, 11, 0.5);
  
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-gold: #fbbf24;
  
  /* Brand Highlights */
  --gold-primary: #f59e0b;
  --gold-glow: rgba(245, 158, 11, 0.25);
  --emerald-whatsapp: #25D366;
  --emerald-dark: #128C7E;
  --emerald-glow: rgba(37, 211, 102, 0.25);
  --purple-accent: #a855f7;
  --cyan-accent: #06b6d4;
  --rose-accent: #f43f5e;
  
  /* Typography */
  --font-display: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  
  /* Shadows & Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  
  --shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.6), 0 0 1px 1px var(--border-card);
  --shadow-hover: 0 20px 40px -12px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(245, 158, 11, 0.35);
  --shadow-whatsapp: 0 8px 24px -6px rgba(37, 211, 102, 0.4);
}

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

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

/* Ambient Glow Orbs */
.glow-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(140px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.45;
}

.glow-top-left {
  top: -150px;
  left: -100px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.2), transparent 70%);
}

.glow-bottom-right {
  bottom: 0;
  right: -100px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(37, 211, 102, 0.15), rgba(14, 165, 233, 0.1) 60%, transparent 80%);
}

/* Header */
.app-header {
  position: relative;
  z-index: 10;
  padding: 32px 24px 24px;
  border-bottom: 1px solid var(--border-subtle);
  background: linear-gradient(180deg, rgba(14, 20, 34, 0.85) 0%, rgba(8, 11, 18, 0.95) 100%);
  backdrop-filter: blur(16px);
}

.header-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  flex-wrap: wrap;
}

.brand-section {
  max-width: 760px;
}

.brand-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--gold-primary);
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.25);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  margin-bottom: 12px;
}

.live-pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--emerald-whatsapp);
  box-shadow: 0 0 10px var(--emerald-whatsapp);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

.main-title {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.gradient-text {
  background: linear-gradient(135deg, #fbbf24 0%, #25D366 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.subtitle {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.header-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 14px;
}

.action-buttons-wrap {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

/* Specialist Profile Card */
.specialist-profile-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(18, 25, 41, 0.85);
  border: 1px solid rgba(245, 158, 11, 0.3);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4), inset 0 0 15px rgba(245, 158, 11, 0.05);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  max-width: 520px;
  backdrop-filter: blur(12px);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.specialist-profile-card:hover {
  border-color: rgba(245, 158, 11, 0.5);
  transform: translateY(-1px);
}

.specialist-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f59e0b 0%, #25D366 100%);
  color: #04070d;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 10px rgba(245, 158, 11, 0.35);
}

.specialist-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.specialist-name-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.specialist-name {
  font-family: var(--font-display);
  font-size: 0.925rem;
  font-weight: 700;
  color: var(--text-primary);
}

.specialist-tagline {
  font-size: 0.75rem;
  color: #cbd5e1;
  line-height: 1.3;
}

.specialist-links {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
}

.profile-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.725rem;
  color: #38bdf8;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}

.profile-link:hover {
  color: #7dd3fc;
  text-decoration: underline;
}

.linkedin-link {
  color: #38bdf8;
}

.divider-dot {
  color: var(--text-muted);
  font-size: 0.7rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #000;
  font-weight: 700;
  box-shadow: 0 4px 15px var(--gold-glow);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #fbbf24 0%, #b45309 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px var(--gold-glow);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-whatsapp {
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  color: #ffffff;
  font-weight: 700;
  box-shadow: var(--shadow-whatsapp);
}

.btn-whatsapp:hover {
  background: linear-gradient(135deg, #2ae771 0%, #0e7065 100%);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.5);
}

.btn-sms {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.35);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
}

.btn-sms:hover {
  background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(14, 165, 233, 0.45);
  color: #ffffff;
}

.btn-outline-emerald {
  background: rgba(37, 211, 102, 0.1);
  color: #25D366;
  border: 1px solid rgba(37, 211, 102, 0.3);
}

.btn-outline-emerald:hover {
  background: rgba(37, 211, 102, 0.2);
  border-color: #25D366;
}

.btn-sm {
  padding: 6px 12px;
  font-size: 0.8rem;
  border-radius: var(--radius-sm);
}

/* Main Layout */

/* ==========================================================================
   UK City Selector Bar (London, Manchester, Birmingham, Leeds, etc.)
   ========================================================================== */
.city-selector-bar {
  position: relative;
  z-index: 9;
  background: linear-gradient(180deg, rgba(14, 20, 34, 0.88) 0%, rgba(9, 13, 22, 0.95) 100%);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 12px 24px;
}

.city-selector-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.city-selector-lead {
  display: flex;
  align-items: center;
  gap: 10px;
}

.city-pin-icon {
  font-size: 1.25rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 0 8px rgba(245, 158, 11, 0.5));
}

.city-selector-texts {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.city-selector-eyebrow {
  font-family: var(--font-display);
  font-size: 0.725rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--gold-primary);
  text-transform: uppercase;
}

.city-selector-helper {
  font-size: 0.725rem;
  color: var(--text-secondary);
}

.city-controls-cluster {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.city-dropdown-box {
  display: flex;
  align-items: center;
  gap: 8px;
}

.city-dropdown-label {
  font-size: 0.775rem;
  color: #fbbf24;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 700;
}

.city-dropdown-select {
  background: #111827;
  border: 1.5px solid rgba(245, 158, 11, 0.5);
  border-radius: var(--radius-full);
  color: #fbbf24;
  padding: 7px 16px;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  outline: none;
  cursor: pointer;
  box-shadow: 0 2px 12px rgba(245, 158, 11, 0.2);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.city-dropdown-select:hover,
.city-dropdown-select:focus {
  border-color: #fbbf24;
  box-shadow: 0 0 16px rgba(245, 158, 11, 0.4);
  background: #1a2234;
}

.city-pills-list {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.city-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 13px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  color: var(--text-secondary);
  font-family: var(--font-display);
  font-size: 0.825rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.city-pill-btn:hover {
  background: rgba(255, 255, 255, 0.09);
  color: var(--text-primary);
  border-color: rgba(245, 158, 11, 0.3);
  transform: translateY(-1px);
}

.city-pill-btn.active {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.25) 0%, rgba(37, 211, 102, 0.22) 100%);
  border-color: var(--gold-primary);
  color: #ffffff;
  box-shadow: 0 2px 12px rgba(245, 158, 11, 0.3), inset 0 0 8px rgba(245, 158, 11, 0.1);
  font-weight: 700;
}

.city-counter {
  background: rgba(255, 255, 255, 0.12);
  padding: 1px 6px;
  border-radius: var(--radius-full);
  font-size: 0.675rem;
  font-weight: 700;
  color: #cbd5e1;
}

.city-pill-btn.active .city-counter {
  background: var(--gold-primary);
  color: #080b12;
  font-weight: 800;
}

.select-city-input {
  border-color: rgba(245, 158, 11, 0.45);
  color: #fbbf24;
  font-weight: 600;
}

.city-pill-featured {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.18) 0%, rgba(245, 158, 11, 0.06) 100%);
  border-color: rgba(245, 158, 11, 0.55);
  color: #fef08a;
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.2);
}

.city-pill-featured:hover {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.3) 0%, rgba(245, 158, 11, 0.12) 100%);
  border-color: #fbbf24;
  box-shadow: 0 0 18px rgba(245, 158, 11, 0.35);
}

.city-pill-featured.active {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.38) 0%, rgba(37, 211, 102, 0.28) 100%);
  border-color: #fbbf24;
  color: #ffffff;
  box-shadow: 0 0 18px rgba(245, 158, 11, 0.45), inset 0 0 10px rgba(245, 158, 11, 0.15);
}

.start-here-tag {
  display: inline-block;
  background: #f59e0b;
  color: #080b12;
  font-size: 0.625rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 1px 6px;
  border-radius: 4px;
  margin-left: 4px;
  vertical-align: middle;
  animation: pulse-gold 2.2s infinite ease-in-out;
}

@keyframes pulse-gold {
  0%, 100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.7); }
  50% { box-shadow: 0 0 0 4px rgba(245, 158, 11, 0); }
}

optgroup {
  background: #0f172a;
  color: #fbbf24;
  font-weight: 700;
  font-size: 0.85rem;
}

optgroup option {
  background: #0b1120;
  color: #e2e8f0;
  font-weight: 500;
  padding: 6px 10px;
}

/* Category Tabs Navigation */
.category-tabs-nav {
  max-width: 1400px;
  margin: 0 auto;
  padding: 16px 24px 0 24px;
  position: relative;
  z-index: 6;
}

.category-tabs-container {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 6px;
  background: rgba(13, 19, 33, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-full);
  backdrop-filter: blur(16px);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
  scrollbar-width: none;
}

.category-tabs-container::-webkit-scrollbar {
  display: none;
}

.category-tab {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius-full);
  color: var(--text-secondary);
  font-family: var(--font-display);
  font-size: 0.925rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
}

.category-tab:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.1);
}

.category-tab.active {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.18) 0%, rgba(37, 211, 102, 0.2) 100%);
  border-color: var(--emerald-whatsapp);
  color: #ffffff;
  box-shadow: 0 4px 18px rgba(37, 211, 102, 0.25), inset 0 0 12px rgba(37, 211, 102, 0.08);
}

.category-icon {
  font-size: 1.2rem;
  line-height: 1;
}

.category-badge {
  background: rgba(255, 255, 255, 0.1);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  transition: all 0.2s ease;
}

.category-tab.active .category-badge {
  background: var(--emerald-whatsapp);
  color: #04070d;
  font-weight: 800;
}

.main-content {
  position: relative;
  z-index: 5;
  max-width: 1400px;
  margin: 0 auto;
  padding: 24px;
}

/* Metrics Grid */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.metric-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.metric-card:hover {
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.metric-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.metric-label {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
}

.metric-value {
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.metric-sub {
  font-size: 0.775rem;
  color: var(--text-muted);
}

.progress-bar-container {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-top: 8px;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #f59e0b, #25D366);
  border-radius: var(--radius-full);
  transition: width 0.4s ease;
}

/* Badges */
.badge {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  letter-spacing: 0.02em;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.badge-emerald {
  background: rgba(37, 211, 102, 0.12);
  color: #25D366;
  border: 1px solid rgba(37, 211, 102, 0.25);
}

.badge-gold {
  background: rgba(245, 158, 11, 0.12);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.25);
}

.badge-purple {
  background: rgba(168, 85, 247, 0.12);
  color: #c084fc;
  border: 1px solid rgba(168, 85, 247, 0.25);
}

.badge-cyan {
  background: rgba(6, 182, 212, 0.12);
  color: #22d3ee;
  border: 1px solid rgba(6, 182, 212, 0.25);
}

/* Pitch Script Banner */
.pitch-banner {
  background: linear-gradient(135deg, rgba(18, 25, 41, 0.9) 0%, rgba(14, 28, 38, 0.85) 100%);
  border: 1px solid rgba(37, 211, 102, 0.25);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 24px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(12px);
}

.pitch-banner-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #25D366;
  margin-bottom: 6px;
}

.pitch-preview-text {
  font-size: 0.875rem;
  color: #cbd5e1;
  font-style: italic;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.pitch-preview-text.pitch-preview-full {
  display: block;
  -webkit-line-clamp: unset;
  overflow: visible;
  font-style: normal;
  line-height: 1.55;
}

.pitch-brand-link {
  color: #fbbf24;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.pitch-template {
  display: grid;
  gap: 12px;
  margin-bottom: 24px;
}

.pitch-template-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

.pitch-template-hint {
  color: var(--muted, #94a3b8);
  font-size: 13px;
  margin: 4px 0 0;
}

.pitch-bubble {
  max-width: 620px;
  background: linear-gradient(180deg, #0c3d36 0%, #0a2f2a 100%);
  border: 1px solid rgba(37, 211, 102, 0.32);
  border-radius: 22px 22px 22px 8px;
  padding: 20px 22px 18px;
  color: #e8fff6;
  font-size: 0.95rem;
  line-height: 1.6;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
}

.pitch-bubble strong { color: #fff; }

.pitch-demo-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(100%, 320px);
  margin: 14px 0;
  padding: 13px 18px;
  border-radius: 12px;
  background: #25d366;
  color: #052e16 !important;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(37, 211, 102, 0.28);
}

.pitch-demo-btn:hover { filter: brightness(1.06); }

.pitch-mini {
  display: grid;
  gap: 8px;
  margin: 12px 0 4px;
  padding: 12px;
  border-radius: 14px;
  background: rgba(7, 94, 84, 0.18);
  border: 1px solid rgba(37, 211, 102, 0.2);
}

.pitch-mini-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #25d366;
}

.pitch-mini .pitch-demo-btn {
  width: 100%;
  margin: 0;
}

.pitch-banner-actions {
  flex-shrink: 0;
}

/* Toolbar & Filters */
.toolbar-section {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 14px 18px;
  margin-bottom: 16px;
}

.toolbar-search {
  position: relative;
  flex: 1;
  min-width: 280px;
  max-width: 480px;
  display: flex;
  align-items: center;
}

.search-icon {
  position: absolute;
  left: 14px;
  color: var(--text-muted);
  pointer-events: none;
}

.toolbar-search input {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 10px 38px 10px 42px;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.875rem;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.toolbar-search input:focus {
  border-color: var(--gold-primary);
  box-shadow: 0 0 0 2px var(--gold-glow);
}

.clear-btn {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.85rem;
  display: none;
}

.clear-btn:hover {
  color: var(--text-primary);
}

.toolbar-filters {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.filter-label {
  font-size: 0.8rem;
  color: var(--text-secondary);
  font-weight: 600;
  white-space: nowrap;
}

.select-input {
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 9px 14px;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.85rem;
  outline: none;
  cursor: pointer;
  transition: border-color 0.2s ease;
}

.select-input:focus {
  border-color: var(--gold-primary);
}

.view-toggle {
  display: flex;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 3px;
}

.view-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.view-btn.active {
  background: rgba(255, 255, 255, 0.12);
  color: var(--text-primary);
}

/* Results Status Bar */
.results-meta-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding: 0 4px;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.results-meta-bar strong {
  color: var(--text-primary);
}

.active-filters-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-pill {
  font-size: 0.75rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.filter-pill:hover {
  background: rgba(255, 255, 255, 0.15);
}

/* Leads Grid View */
.leads-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.salon-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.25s ease, border-color 0.25s ease;
  backdrop-filter: blur(12px);
  overflow: hidden;
}

.salon-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, #f59e0b, #25D366);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.salon-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-active);
  box-shadow: var(--shadow-hover);
  background: var(--bg-card-hover);
}

.salon-card:hover::before {
  opacity: 1;
}

.card-top {
  margin-bottom: 14px;
}

.card-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 8px;
}

.salon-name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
}

.borough-tag {
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.25);
  color: #fbbf24;
  font-size: 0.725rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
}

.card-rating-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  margin-bottom: 12px;
}

.stars {
  color: #fbbf24;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.reviews-count {
  color: var(--text-muted);
}

.category-tag {
  color: var(--text-secondary);
  font-size: 0.775rem;
  background: rgba(255, 255, 255, 0.05);
  padding: 2px 6px;
  border-radius: 4px;
}

.card-info-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
  font-size: 0.85rem;
}

.info-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: var(--text-secondary);
}

.info-item svg {
  flex-shrink: 0;
  margin-top: 3px;
}

.info-link {
  color: #38bdf8;
  text-decoration: none;
  word-break: break-all;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 500;
}

.info-link:hover {
  text-decoration: underline;
  color: #7dd3fc;
}

.info-phone {
  color: #e2e8f0;
  font-weight: 600;
  font-family: monospace;
}

/* SEO Pitch Opportunity Alert Box */
.seo-opp-box {
  background: rgba(14, 20, 34, 0.85);
  border: 1px solid rgba(245, 158, 11, 0.2);
  border-left: 3px solid var(--gold-primary);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  margin-bottom: 18px;
  font-size: 0.8rem;
}

.seo-opp-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}

.seo-opp-tag {
  color: #fbbf24;
  font-weight: 700;
  font-size: 0.725rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.seo-opp-audit {
  color: #cbd5e1;
  line-height: 1.4;
  margin-bottom: 4px;
}

.seo-opp-impact {
  color: #25D366;
  font-weight: 600;
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Card Actions */
.card-bottom {
  border-top: 1px solid var(--border-subtle);
  padding-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.card-action-row {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.btn-pitch-wa {
  flex: 1;
  justify-content: center;
  padding: 10px 14px;
  font-size: 0.85rem;
}

.btn-icon-action {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  padding: 10px;
  border-radius: var(--radius-md);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.btn-icon-action:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--text-primary);
}

.status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.8rem;
}

.status-label {
  color: var(--text-muted);
}

.status-select {
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  padding: 4px 8px;
  font-size: 0.775rem;
  font-family: var(--font-body);
  outline: none;
  cursor: pointer;
}

/* Status Badges */
.status-badge {
  font-size: 0.725rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: var(--radius-full);
}

.status-badge-new {
  background: rgba(148, 163, 184, 0.15);
  color: #94a3b8;
}

.status-badge-contacted {
  background: rgba(37, 211, 102, 0.15);
  color: #25D366;
}

.status-badge-replied {
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
}

.status-badge-booked {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
}

.status-badge-won {
  background: rgba(168, 85, 247, 0.15);
  color: #c084fc;
}

/* Table View */
.leads-table-wrapper {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  overflow-x: auto;
  margin-bottom: 40px;
  backdrop-filter: blur(12px);
}

.leads-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.85rem;
}

.leads-table th {
  background: rgba(255, 255, 255, 0.03);
  padding: 14px 16px;
  font-weight: 600;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-subtle);
  white-space: nowrap;
}

.leads-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-primary);
  vertical-align: middle;
}

.leads-table tr:hover {
  background: rgba(255, 255, 255, 0.02);
}

.table-salon-name {
  font-weight: 700;
  font-family: var(--font-display);
  color: var(--text-primary);
  margin-bottom: 2px;
}

.table-salon-cat {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  background: var(--bg-card);
  border: 1px dashed var(--border-card);
  border-radius: var(--radius-lg);
  margin-bottom: 40px;
}

.empty-icon {
  font-size: 3rem;
  margin-bottom: 16px;
}

.empty-state h3 {
  font-size: 1.25rem;
  margin-bottom: 8px;
  font-family: var(--font-display);
}

.empty-state p {
  color: var(--text-muted);
  margin-bottom: 20px;
}

/* Modals */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(4, 7, 13, 0.8);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  background: #0e1526;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 620px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(245, 158, 11, 0.2);
  transform: scale(0.95);
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-overlay.active .modal-card {
  transform: scale(1);
}

.modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.modal-badge {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--gold-primary);
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}

.modal-header h2 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
}

.modal-close {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.25rem;
  cursor: pointer;
  padding: 4px;
}

.modal-close:hover {
  color: var(--text-primary);
}

.modal-body {
  padding: 20px 24px;
}

.modal-instruction {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 14px;
}

.template-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.chip {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  color: #38bdf8;
  font-family: monospace;
  font-size: 0.775rem;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.2s ease;
}

.chip:hover {
  background: rgba(56, 189, 248, 0.15);
  border-color: #38bdf8;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.form-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.text-input, .textarea-input {
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.875rem;
  outline: none;
  transition: border-color 0.2s ease;
}

.text-input:focus, .textarea-input:focus {
  border-color: var(--gold-primary);
  box-shadow: 0 0 0 2px var(--gold-glow);
}

.preview-box {
  background: rgba(14, 20, 34, 0.95);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px;
  margin-top: 14px;
}

.preview-label {
  font-size: 0.725rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}

.preview-content {
  font-size: 0.85rem;
  color: #cbd5e1;
  font-style: italic;
  line-height: 1.5;
}

.modal-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.span-2 {
  grid-column: span 2;
}

/* Toast Notifications */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #0f172a;
  border: 1px solid #25D366;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(37, 211, 102, 0.25);
  color: #ffffff;
  padding: 12px 18px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.875rem;
  font-weight: 500;
  z-index: 2000;
  transform: translateY(100px);
  opacity: 0;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

.toast-icon {
  background: #25D366;
  color: #000;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: bold;
}

/* Footer */
.app-footer {
  border-top: 1px solid var(--border-subtle);
  background: #06090e;
  padding: 24px;
  margin-top: 40px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-links {
  display: flex;
  gap: 12px;
  align-items: center;
}

.footer-links em {
  color: var(--gold-primary);
  font-style: normal;
}

/* WhatsApp API Verification Elements */
.tab-api-pill {
  background: rgba(37, 211, 102, 0.15);
  color: #25D366;
  border: 1px solid rgba(37, 211, 102, 0.35);
  border-radius: var(--radius-full);
  font-size: 0.65rem;
  font-weight: 700;
  padding: 1px 7px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  letter-spacing: 0.02em;
}

.category-tab.active .tab-api-pill {
  background: #25D366;
  color: #04070d;
  border-color: #25D366;
}

.wa-api-card-banner {
  background: linear-gradient(135deg, rgba(37, 211, 102, 0.08) 0%, rgba(18, 140, 126, 0.12) 100%);
  border: 1px solid rgba(37, 211, 102, 0.25);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  margin: 10px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.wa-api-card-left {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.775rem;
  color: #d1fae5;
}

.pulse-emerald-dot {
  width: 8px;
  height: 8px;
  background-color: #25D366;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
  animation: pulseEmerald 2s infinite;
}

@keyframes pulseEmerald {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 7px rgba(37, 211, 102, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

.btn-api-recheck {
  background: rgba(37, 211, 102, 0.12);
  color: #25D366;
  border: 1px solid rgba(37, 211, 102, 0.35);
  border-radius: var(--radius-sm);
  padding: 3px 8px;
  font-size: 0.7rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.2s ease;
}

.btn-api-recheck:hover {
  background: rgba(37, 211, 102, 0.25);
  border-color: #25D366;
  transform: translateY(-1px);
}

.btn-api-recheck.checking {
  opacity: 0.7;
  pointer-events: none;
}

/* API Verification Modal */
.api-audit-box {
  background: #090d16;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px;
  font-family: monospace;
  font-size: 0.8rem;
  line-height: 1.6;
  color: #a7f3d0;
  margin-top: 14px;
  overflow-x: auto;
}

.api-audit-row {
  display: flex;
  justify-content: space-between;
  padding: 4px 0;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.08);
}

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

.api-audit-label {
  color: var(--text-secondary);
}

.api-audit-val {
  color: #25D366;
  font-weight: bold;
}

/* Audit & Page 1 Roadmap Styling */
.btn-outline-gold {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.825rem;
  font-weight: 600;
  cursor: pointer;
  background: rgba(245, 158, 11, 0.1);
  color: var(--gold-primary);
  border: 1px solid rgba(245, 158, 11, 0.45);
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.15);
  transition: all 0.2s ease;
}

.btn-outline-gold:hover {
  background: rgba(245, 158, 11, 0.2);
  border-color: var(--gold-primary);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.3);
}

.btn-audit {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(168, 85, 247, 0.2));
  color: #c084fc;
  border: 1px solid rgba(168, 85, 247, 0.35);
  transition: all 0.2s ease;
}

.btn-audit:hover {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.3), rgba(168, 85, 247, 0.4));
  border-color: #c084fc;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(168, 85, 247, 0.3);
}

.audit-modal-card {
  max-width: 880px;
  width: 95%;
}

.audit-lead-subinfo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 6px;
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.audit-lead-subinfo a {
  color: #38bdf8;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.audit-tabs-nav {
  display: flex;
  gap: 6px;
  padding: 8px 24px 0;
  background: rgba(10, 15, 26, 0.7);
  border-bottom: 1px solid var(--border-subtle);
  overflow-x: auto;
}

.audit-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.audit-tab-btn:hover {
  color: var(--text-primary);
}

.audit-tab-btn.active {
  color: var(--gold-primary);
  border-bottom-color: var(--gold-primary);
}

.audit-modal-body {
  padding: 24px;
  max-height: calc(85vh - 180px);
  overflow-y: auto;
}

/* Audit Scorecard Hero Block */
.audit-hero-block {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 20px;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 24px;
}

@media (max-width: 700px) {
  .audit-hero-block {
    grid-template-columns: 1fr;
  }
}

.score-dial-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(8, 11, 18, 0.6);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px;
  text-align: center;
}

.score-circle {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  border: 6px solid #f59e0b;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.15) 0%, transparent 80%);
}

.score-num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: #f59e0b;
  line-height: 1;
}

.score-max {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.score-status {
  font-size: 0.8rem;
  font-weight: 700;
  color: #f59e0b;
  margin-top: 4px;
}

.score-bars-list {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}

.score-bar-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.score-bar-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
}

.score-bar-track {
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  overflow: hidden;
}

.score-bar-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Condition Diagnostics Grid */
.audit-section-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.condition-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}

.condition-card {
  background: rgba(14, 20, 34, 0.65);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.condition-card.critical {
  border-left: 3px solid #f43f5e;
  background: rgba(244, 63, 94, 0.05);
}

.condition-card.warning {
  border-left: 3px solid #f59e0b;
  background: rgba(245, 158, 11, 0.05);
}

.condition-card.positive {
  border-left: 3px solid #10b981;
  background: rgba(16, 185, 129, 0.05);
}

.condition-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.condition-tag {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: 4px;
}

.condition-card.critical .condition-tag {
  background: rgba(244, 63, 94, 0.2);
  color: #f43f5e;
}

.condition-card.warning .condition-tag {
  background: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
}

.condition-card.positive .condition-tag {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
}

.condition-card-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
}

.condition-card-desc {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.45;
}

.condition-card-fix {
  font-size: 0.75rem;
  color: #38bdf8;
  font-weight: 600;
  margin-top: auto;
  padding-top: 6px;
  border-top: 1px dashed rgba(255, 255, 255, 0.08);
}

/* Missed Opportunity Callout */
.missed-opp-banner {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.1), rgba(245, 158, 11, 0.08));
  border: 1px solid rgba(239, 68, 68, 0.25);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.missed-opp-stat {
  display: flex;
  flex-direction: column;
}

.missed-opp-val {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  color: #f87171;
}

.missed-opp-lbl {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

/* 4-Phase Roadmap Component */
.roadmap-timeline {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 24px;
}

.roadmap-phase-card {
  background: rgba(14, 20, 34, 0.7);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  position: relative;
  transition: all 0.2s ease;
}

.roadmap-phase-card:hover {
  border-color: rgba(245, 158, 11, 0.4);
  transform: translateX(4px);
}

.phase-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  flex-wrap: wrap;
  gap: 8px;
}

.phase-number-badge {
  font-size: 0.75rem;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  background: rgba(245, 158, 11, 0.18);
  color: var(--gold-primary);
  border: 1px solid rgba(245, 158, 11, 0.35);
}

.phase-timeline-span {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 600;
}

.phase-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: #f8fafc;
  margin-bottom: 8px;
}

.phase-tasks-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
}

.phase-tasks-list li {
  font-size: 0.82rem;
  color: var(--text-secondary);
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.phase-tasks-list li::before {
  content: "✔";
  color: #10b981;
  font-size: 0.8rem;
  font-weight: bold;
}

.phase-impact-tag {
  background: rgba(6, 182, 212, 0.1);
  border: 1px solid rgba(6, 182, 212, 0.25);
  color: #38bdf8;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Client Reply Preview Boxes */
.reply-pitch-box {
  background: #090d16;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px;
  font-family: inherit;
  font-size: 0.85rem;
  line-height: 1.6;
  color: #f8fafc;
  white-space: pre-wrap;
  margin-bottom: 16px;
  max-height: 320px;
  overflow-y: auto;
}

.reply-box-toolbar {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-bottom: 14px;
}

/* Footer Actions for Audit Modal */
.audit-modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  border-top: 1px solid var(--border-subtle);
  background: rgba(8, 11, 18, 0.95);
  flex-wrap: wrap;
  gap: 12px;
}

.audit-footer-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.audit-status-tag {
  font-size: 0.78rem;
  color: var(--text-secondary);
  font-weight: 600;
}

.audit-footer-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* Print Stylesheet for Client PDF Export */
@media print {
  body {
    background: #fff !important;
    color: #111 !important;
  }
  .app-header, .category-tabs-nav, .toolbar-section, .metrics-grid, .pitch-banner, .results-meta-bar, .leads-grid, .leads-table-wrapper, .app-footer, .glow-orb, .audit-tabs-nav, .modal-close, .audit-modal-footer {
    display: none !important;
  }
  .modal-overlay {
    position: static !important;
    background: transparent !important;
    backdrop-filter: none !important;
    padding: 0 !important;
    opacity: 1 !important;
    pointer-events: auto !important;
  }
  .modal-card {
    background: #fff !important;
    border: none !important;
    box-shadow: none !important;
    max-width: 100% !important;
    max-height: none !important;
    color: #111 !important;
  }
  .condition-card, .roadmap-phase-card, .audit-hero-block {
    background: #f8fafc !important;
    border: 1px solid #cbd5e1 !important;
    color: #111 !important;
    break-inside: avoid;
  }
  .score-dial-wrap {
    background: #fff !important;
    border: 1px solid #cbd5e1 !important;
  }
  .score-num {
    color: #d97706 !important;
  }
  .score-circle {
    border-color: #d97706 !important;
  }
  .phase-title, .audit-section-title, .modal-header h2 {
    color: #0f172a !important;
  }
  .phase-tasks-list li {
    color: #334155 !important;
  }
}

/* Responsive Breakpoints */
@media (max-width: 900px) {
  .header-container {
    flex-direction: column;
  }
  .leads-grid {
    grid-template-columns: 1fr;
  }
  .toolbar-section {
    flex-direction: column;
    align-items: stretch;
  }
  .toolbar-search {
    max-width: 100%;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .span-2 {
    grid-column: span 1;
  }
  .audit-modal-footer {
    flex-direction: column;
    align-items: stretch;
  }
  .audit-footer-actions {
    justify-content: flex-end;
  }
}

/* Instagram Profile & Action Styling */
.btn-instagram {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  color: #ffffff !important;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(220, 39, 67, 0.35);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  border: none;
  text-decoration: none;
  padding: 8px 12px;
  border-radius: var(--radius-md);
  font-size: 0.8rem;
  white-space: nowrap;
}

.btn-instagram:hover {
  background: linear-gradient(45deg, #f39f42 0%, #eb774c 25%, #e13550 50%, #d62c72 75%, #c52392 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(220, 39, 67, 0.55);
  color: #ffffff !important;
}

.btn-instagram svg {
  flex-shrink: 0;
}

.instagram-info-item {
  background: rgba(225, 48, 108, 0.06);
  border: 1px solid rgba(225, 48, 108, 0.22);
  border-radius: var(--radius-sm);
  padding: 6px 10px !important;
  margin-top: 3px;
  margin-bottom: 3px;
}

.instagram-handle-link {
  color: #fb7185 !important;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: color 0.2s;
}

.instagram-handle-link:hover {
  color: #fda4af !important;
  text-decoration: underline;
}

.instagram-follower-pill {
  background: linear-gradient(135deg, rgba(244, 63, 94, 0.2) 0%, rgba(188, 24, 136, 0.2) 100%);
  border: 1px solid rgba(244, 63, 94, 0.3);
  color: #fecdd3;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: var(--radius-full);
}

.ig-gradient-text {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 700;
}

/* Page 2 Instagram Hub Enhancements */
.nav-page-switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #f8fafc;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  text-decoration: none;
  transition: all 0.2s ease;
}

.nav-page-switch:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.3);
  color: #ffffff;
  transform: translateY(-1px);
}

.nav-page-switch.active-indicator {
  border-color: #e1306c;
  background: rgba(225, 48, 108, 0.15);
  color: #fda4af;
}

.ig-header-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  background: linear-gradient(45deg, rgba(240, 148, 51, 0.15), rgba(220, 39, 67, 0.15), rgba(188, 24, 136, 0.15));
  border: 1px solid rgba(220, 39, 67, 0.35);
  font-size: 0.75rem;
  font-weight: 700;
  color: #fda4af;
  margin-bottom: 8px;
}

.ig-stat-card {
  background: rgba(18, 25, 41, 0.7);
  border: 1px solid rgba(225, 48, 108, 0.2);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(12px);
}

.ig-stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, #f09433, #dc2743, #bc1888);
}

.ig-stat-number {
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 800;
  background: linear-gradient(45deg, #f09433, #dc2743, #bc1888);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
}

.ig-stat-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  font-weight: 600;
}

.ig-audit-box {
  background: linear-gradient(135deg, rgba(225, 48, 108, 0.08) 0%, rgba(131, 58, 180, 0.08) 100%);
  border: 1px solid rgba(225, 48, 108, 0.25);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  margin: 10px 0;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.ig-audit-box .ig-audit-icon {
  font-size: 1.1rem;
  flex-shrink: 0;
  line-height: 1.2;
}

.ig-audit-box .ig-audit-text {
  font-size: 0.8rem;
  color: #fecdd3;
  line-height: 1.45;
}

.ig-audit-box .ig-audit-label {
  font-weight: 700;
  color: #fb7185;
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 2px;
}

.lead-card-instagram {
  border-top: 3px solid transparent;
  background-image: linear-gradient(rgba(18, 25, 41, 0.85), rgba(18, 25, 41, 0.85)), linear-gradient(90deg, #f09433, #dc2743, #bc1888);
  background-origin: border-box;
  background-clip: padding-box, border-box;
}

.lead-card-instagram:hover {
  border-color: rgba(220, 39, 67, 0.6);
  box-shadow: 0 16px 36px -10px rgba(220, 39, 67, 0.25), 0 0 0 1px rgba(220, 39, 67, 0.4);
}

.category-tab.tab-ig-active {
  border-bottom: 3px solid #dc2743;
  color: #f8fafc;
}



