:root {
  --bg-dark: #090813;
  --bg-sidebar: #0e0a1c;
  --bg-card: rgba(20, 16, 35, 0.85);
  --bg-card-hover: rgba(28, 23, 48, 0.9);
  --bg-input: #120e24;
  --border-color: rgba(168, 85, 247, 0.18);
  --border-focus: #a855f7;

  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  --primary: #8b5cf6;
  --primary-hover: #7c3aed;
  --primary-glow: rgba(139, 92, 246, 0.4);

  --whatsapp: #25d366;
  --whatsapp-hover: #1eb956;
  --whatsapp-glow: rgba(37, 211, 102, 0.3);

  --accent-purple: #a855f7;
  --accent-cyan: #06b6d4;
  --accent-gold: #f59e0b;
  --accent-red: #ef4444;
  --accent-green: #10b981;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-full: 9999px;

  --shadow-card: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  --transition-fast: 0.18s ease;
  --transition-normal: 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

body {
  background-color: var(--bg-dark);
  background-image: 
    radial-gradient(at 0% 0%, rgba(59, 130, 246, 0.12) 0px, transparent 50%),
    radial-gradient(at 100% 100%, rgba(168, 85, 247, 0.1) 0px, transparent 50%);
  background-attachment: fixed;
  color: var(--text-main);
  min-height: 100vh;
  overflow-x: hidden;
}

/* APP LAYOUT */
.app-layout {
  display: flex;
  min-height: 100vh;
  width: 100vw;
  overflow-x: hidden;
}

/* MAIN CONTENT FULL-SCREEN FLEX EXPANSION */
.main-content {
  flex: 1 1 auto;
  min-width: 0;
  width: 100%;
  padding: 24px;
  overflow-y: auto;
  transition: all var(--transition-normal);
}

.tab-pane {
  display: none;
  width: 100%;
}

.tab-pane.active {
  display: block;
  width: 100%;
  animation: fadeIn 0.22s ease;
}

/* SIDEBAR */
.sidebar {
  width: 270px;
  background: var(--bg-sidebar);
  border-right: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  backdrop-filter: blur(16px);
  z-index: 20;
  transition: width var(--transition-normal);
  overflow-x: hidden;
}

.sidebar.collapsed {
  width: 76px;
}

.sidebar.collapsed .brand-text,
.sidebar.collapsed .status-indicator,
.sidebar.collapsed .nav-item span,
.sidebar.collapsed .nav-parent-title span,
.sidebar.collapsed .nav-parent-chevron,
.sidebar.collapsed .profile-info {
  display: none !important;
}

.sidebar.collapsed .nav-item,
.sidebar.collapsed .nav-parent-header {
  justify-content: center;
  padding-left: 0;
  padding-right: 0;
}

.sidebar.collapsed .nav-item i,
.sidebar.collapsed .nav-parent-title i {
  margin-right: 0 !important;
  font-size: 1.2rem;
}

.sidebar.collapsed .nav-child-container {
  display: none !important;
}

.sidebar.collapsed .sidebar-header {
  padding: 24px 10px;
}

.sidebar.collapsed .brand-logo {
  margin-bottom: 0;
  justify-content: center;
}

.sidebar.collapsed .agency-mini-profile {
  justify-content: center;
  padding: 12px;
}

/* ==========================================================================
   ULTRA-STYLISH SIDEBAR TOGGLE BUTTON & TOP HEADER
   ========================================================================== */
.top-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(12, 16, 23, 0.75);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 14px 22px;
  margin-bottom: 22px;
  backdrop-filter: blur(16px);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
  transition: all var(--transition-normal);
}

.header-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.menu-toggle {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(168, 85, 247, 0.2));
  border: 1px solid rgba(59, 130, 246, 0.4);
  color: #60a5fa;
  font-size: 17px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  flex-shrink: 0;
  user-select: none;
}

.menu-toggle:hover {
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  color: #ffffff;
  border-color: #3b82f6;
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.55);
  transform: scale(1.08);
}

.menu-toggle:active {
  transform: scale(0.95);
}


.sidebar-header {
  padding: 24px 20px;
  border-bottom: 1px solid var(--border-color);
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.logo-icon {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: #fff;
  box-shadow: 0 0 16px var(--primary-glow);
}

.brand-name {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 1px;
  background: linear-gradient(90deg, #ffffff, #93c5fd);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: block;
}

.brand-sub {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--text-muted);
}

.status-indicator {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.25);
  color: #34d399;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

.pulse-dot {
  width: 7px;
  height: 7px;
  background: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 8px #10b981;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.sidebar-nav {
  padding: 14px 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  overflow-y: auto;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 11px 14px;
  background: transparent;
  border: none;
  border-radius: var(--radius-md);
  color: var(--text-muted);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
  text-align: left;
  position: relative;
}

.nav-item i {
  font-size: 15px;
  width: 20px;
  text-align: center;
}

.nav-item:hover {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-main);
}

.nav-item.active {
  background: linear-gradient(90deg, rgba(59, 130, 246, 0.18), rgba(59, 130, 246, 0.04));
  border-left: 3px solid var(--primary);
  color: #fff;
}

.nav-item.active i {
  color: var(--primary);
}

/* PARENT ACCORDION NAVIGATION GROUPS */
.nav-parent-group {
  margin: 3px 0;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-parent-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  cursor: pointer;
  user-select: none;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.4px;
  color: #94a3b8;
  transition: all 0.2s ease;
  background: rgba(0, 0, 0, 0.15);
}

.nav-parent-header:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #f1f5f9;
}

.nav-parent-title {
  display: flex;
  align-items: center;
  gap: 9px;
}

.nav-parent-title i {
  font-size: 13px;
  width: 16px;
  text-align: center;
}

.nav-parent-chevron {
  font-size: 10px;
  transition: transform 0.3s ease;
  color: #64748b;
}

.nav-parent-group.open .nav-parent-chevron {
  transform: rotate(180deg);
}

.nav-child-container {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 0 4px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nav-parent-group.open .nav-child-container {
  max-height: 500px;
  padding: 4px 6px 6px 6px;
}

.nav-child-item {
  padding: 9px 12px 9px 20px !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  border-radius: 8px !important;
  background: transparent;
  color: #cbd5e1;
}

.nav-child-item i {
  font-size: 13px !important;
  width: 16px !important;
}

.nav-child-item:hover {
  background: rgba(255, 255, 255, 0.05) !important;
  color: #fff !important;
  transform: translateX(2px);
}

.nav-child-item.active {
  background: linear-gradient(90deg, rgba(59, 130, 246, 0.22), rgba(99, 102, 241, 0.08)) !important;
  border-left: 3px solid #3b82f6 !important;
  color: #fff !important;
  font-weight: 700 !important;
}

.badge-hot {
  margin-left: auto;
  background: linear-gradient(135deg, #ef4444, #f97316);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: var(--radius-full);
}

.badge-reminder {
  margin-left: auto;
  background: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.4);
  font-size: 10px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: var(--radius-full);
}

/* CUSTOM PHONE TESTER */
.custom-phone-tester {
  background: rgba(255, 255, 255, 0.03);
  border: 1px dashed rgba(37, 211, 102, 0.3);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-top: 20px;
}

.custom-phone-tester h4 {
  font-size: 13px;
  font-weight: 700;
  color: #4ade80;
  margin-bottom: 4px;
}

.phone-input-group {
  display: flex;
  gap: 10px;
}

/* SOCIAL IDEAS GRID */
.social-ideas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 20px;
}

.social-idea-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition-normal);
}

.social-idea-card:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(168, 85, 247, 0.4);
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(168, 85, 247, 0.15);
}

.social-card-platform {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 800;
  color: #c084fc;
  background: rgba(168, 85, 247, 0.15);
  padding: 3px 10px;
  border-radius: var(--radius-full);
  margin-bottom: 12px;
}

.social-card-title {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
  line-height: 1.4;
}

.social-hook-box {
  background: rgba(59, 130, 246, 0.1);
  border-left: 3px solid var(--primary);
  padding: 10px 14px;
  font-size: 13px;
  color: #93c5fd;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin-bottom: 12px;
  font-style: italic;
}

.social-content-text {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 14px;
  white-space: pre-line;
}

.social-hashtags {
  font-size: 11.5px;
  color: #60a5fa;
  margin-bottom: 14px;
}

.social-cta-box {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.2);
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  color: #34d399;
  font-weight: 600;
}

.lead-match-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: var(--radius-full);
  margin-top: 4px;
}

.match-high { background: rgba(16, 185, 129, 0.2); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.4); }
.match-auto { background: rgba(59, 130, 246, 0.2); color: #60a5fa; border: 1px solid rgba(59, 130, 246, 0.4); }
.match-custom { background: rgba(245, 158, 11, 0.2); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.4); }

.lead-count-badge {
  margin-left: auto;
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

.sidebar-footer {
  padding: 16px 20px;
  border-top: 1px solid var(--border-color);
}

.agency-mini-profile {
  display: flex;
  align-items: center;
  gap: 12px;
}

.agency-mini-profile .avatar {
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--border-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: #93c5fd;
}

.profile-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-main);
}

.profile-desc {
  font-size: 11px;
  color: var(--text-dim);
}

/* MAIN CONTENT */
.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 28px 36px;
  max-width: 1400px;
}

/* TOP HEADER */
.top-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
}

.top-header h1 {
  font-size: 24px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.5px;
}

.top-header p {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 2px;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  font-size: 13px;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--transition-fast);
  text-decoration: none;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 14px var(--primary-glow);
}
.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--border-color);
  color: var(--text-main);
}
.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
}

.btn-whatsapp {
  background: var(--whatsapp);
  color: #fff;
  box-shadow: 0 4px 14px var(--whatsapp-glow);
}
.btn-whatsapp:hover {
  background: var(--whatsapp-hover);
  transform: translateY(-1px);
}

.btn-outline-whatsapp {
  background: transparent;
  border-color: var(--whatsapp);
  color: var(--whatsapp);
}
.btn-outline-whatsapp:hover {
  background: rgba(37, 211, 102, 0.15);
}

.btn-success {
  background: var(--accent-green);
  color: #fff;
}
.btn-success:hover {
  background: #059669;
}

.btn-danger {
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.3);
  color: #f87171;
}
.btn-danger:hover {
  background: #ef4444;
  color: #fff;
}

.btn-gradient {
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  color: #fff;
  box-shadow: 0 4px 18px rgba(139, 92, 246, 0.35);
}
.btn-gradient:hover {
  opacity: 0.95;
  transform: translateY(-1px);
}

.btn-lg {
  padding: 12px 24px;
  font-size: 14px;
}

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

.btn-block {
  width: 100%;
}

.btn-group {
  display: flex;
  gap: 10px;
}

/* TABS */
.tab-pane {
  display: none;
  animation: fadeIn 0.25s ease forwards;
}

.tab-pane.active {
  display: block;
}

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

/* STAT CARDS */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 24px;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  backdrop-filter: blur(16px);
  border-radius: var(--radius-lg);
  padding: 22px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: var(--shadow-card);
  transition: var(--transition-fast);
}

.stat-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

.stat-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

.icon-blue { background: rgba(59, 130, 246, 0.15); color: #60a5fa; }
.icon-green { background: rgba(37, 211, 102, 0.15); color: #4ade80; }
.icon-purple { background: rgba(168, 85, 247, 0.15); color: #c084fc; }
.icon-gold { background: rgba(245, 158, 11, 0.15); color: #fbbf24; }

.stat-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
}

.stat-value {
  font-size: 26px;
  font-weight: 800;
  color: #fff;
  margin-top: 2px;
}

/* DAILY TASK CARD */
.daily-task-card {
  background: linear-gradient(135deg, rgba(18, 24, 38, 0.85), rgba(15, 23, 42, 0.95));
  border: 1px solid rgba(59, 130, 246, 0.35);
  margin-bottom: 24px;
}

.daily-tasks-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.task-checkbox-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  padding: 16px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition-fast);
}

.task-checkbox-item:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(59, 130, 246, 0.4);
}

.task-checkbox-item input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: #3b82f6;
  margin-top: 3px;
  cursor: pointer;
}

.task-info strong {
  display: block;
  font-size: 14px;
  color: #fff;
  margin-bottom: 3px;
}

.task-info span {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.4;
  display: block;
}

/* NOTIFIER STATUS BAR */
.reminder-notifier-bar {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.9), rgba(15, 23, 42, 0.98));
  border: 1px solid rgba(59, 130, 246, 0.4);
  margin-bottom: 24px;
}

.notifier-info {
  display: flex;
  align-items: center;
  gap: 16px;
}

.notifier-bell-icon {
  width: 48px;
  height: 48px;
  background: rgba(59, 130, 246, 0.2);
  border: 1px solid rgba(59, 130, 246, 0.4);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: #60a5fa;
}

.pulse-bell {
  animation: bellPulse 2s infinite ease-in-out;
}

@keyframes bellPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); box-shadow: 0 0 16px rgba(59, 130, 246, 0.5); }
}

.notifier-controls {
  display: flex;
  gap: 10px;
}

/* PITCH STAGES KANBAN GRID */
.pitch-stages-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.pitch-stage-column {
  background: rgba(18, 24, 38, 0.6);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 450px;
}

.column-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-color);
}

.col-title {
  font-size: 13px;
  font-weight: 800;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.stage-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.dot-blue { background: #3b82f6; box-shadow: 0 0 8px #3b82f6; }
.dot-yellow { background: #f59e0b; box-shadow: 0 0 8px #f59e0b; }
.dot-purple { background: #a855f7; box-shadow: 0 0 8px #a855f7; }
.dot-green { background: #10b981; box-shadow: 0 0 8px #10b981; }

.pitch-cards-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow-y: auto;
  max-height: 520px;
}

.pitch-action-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 14px;
  transition: var(--transition-fast);
}

.pitch-action-card:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(59, 130, 246, 0.4);
  transform: translateY(-2px);
}

.pitch-action-card h5 {
  font-size: 13.5px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}

.pitch-problem-tag {
  font-size: 11px;
  color: #fbbf24;
  font-weight: 600;
  margin-bottom: 8px;
  display: block;
}

.pitch-body-preview {
  background: rgba(0, 0, 0, 0.3);
  border-left: 2px solid #3b82f6;
  padding: 8px 10px;
  font-size: 11.5px;
  color: #cbd5e1;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin-bottom: 10px;
  line-height: 1.4;
}

.empty-state-card {
  padding: 24px 12px;
  text-align: center;
  font-size: 12px;
  color: var(--text-dim);
}

/* RESPONSIVE */
@media (max-width: 1200px) {
  .pitch-stages-grid { grid-template-columns: repeat(1, 1fr); }
}

/* SOURCE & MATCH BADGES */
.badge-source-auto {
  background: rgba(59, 130, 246, 0.18);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.4);
  font-size: 10px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.badge-source-apollo {
  background: rgba(168, 85, 247, 0.18);
  color: #c084fc;
  border: 1px solid rgba(168, 85, 247, 0.4);
  font-size: 10px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.badge-source-manual {
  background: rgba(245, 158, 11, 0.18);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.4);
  font-size: 10px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* WHY REACH THEM CALLOUT BOX */
.why-reach-box {
  background: rgba(0, 0, 0, 0.35);
  border-left: 3px solid #f59e0b;
  padding: 6px 10px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 11.5px;
  color: #fde68a;
  line-height: 1.4;
  margin-top: 6px;
  max-width: 320px;
}

.why-reach-box strong {
  color: #fff;
  display: block;
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 2px;
}

/* BUDGET ADVISOR CARD */
.budget-advisor-card {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.9), rgba(18, 24, 38, 0.85));
  border: 1px solid rgba(16, 185, 129, 0.3);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.5);
}

.budget-input-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr 1.5fr 1.5fr;
  gap: 16px;
  margin-bottom: 20px;
}

.budget-recommendation-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 22px;
  animation: fadeIn 0.3s ease;
}

.budget-verdict-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-color);
}

.verdict-tag {
  font-size: 16px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 8px;
}

.verdict-save { color: #38bdf8; }
.verdict-run { color: #34d399; }
.verdict-scale { color: #c084fc; }

.budget-stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}

.budget-mini-stat {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
  padding: 12px 16px;
}

.budget-mini-stat span {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 700;
  display: block;
}

.budget-mini-stat strong {
  font-size: 18px;
  color: #fff;
  font-weight: 800;
  margin-top: 4px;
  display: block;
}

.budget-detailed-strategy {
  background: rgba(59, 130, 246, 0.06);
  border-left: 3px solid #3b82f6;
  padding: 14px 18px;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-size: 13.5px;
  line-height: 1.6;
  color: #e2e8f0;
}

/* LOCKSCREEN OVERLAY */
.lockscreen-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 15, 29, 0.96);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  transition: var(--transition-normal);
}

.lockscreen-card {
  background: linear-gradient(135deg, rgba(18, 24, 38, 0.95), rgba(15, 23, 42, 0.98));
  border: 1px solid rgba(59, 130, 246, 0.35);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.8), 0 0 30px rgba(59, 130, 246, 0.2);
  border-radius: var(--radius-xl);
  padding: 36px 32px;
  width: 90%;
  max-width: 440px;
  text-align: center;
  animation: fadeIn 0.3s ease;
}

.lock-shield-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(59, 130, 246, 0.15);
  border: 1px solid rgba(59, 130, 246, 0.4);
  color: #60a5fa;
  font-size: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px auto;
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.3);
}

.lockscreen-card h2 {
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 6px;
}

.pin-input-wrap input {
  text-align: center;
  font-size: 20px;
  letter-spacing: 4px;
  font-weight: 800;
  padding: 14px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(59, 130, 246, 0.4);
  border-radius: var(--radius-md);
  color: #fff;
  width: 100%;
}

.pin-input-wrap input:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 16px rgba(59, 130, 246, 0.4);
}

/* CARDS */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  backdrop-filter: blur(16px);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  margin-bottom: 24px;
}

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

.card-header h3 {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
}

.card-body {
  padding: 24px;
}

.card-body.p-0 {
  padding: 0;
}

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

/* ACTION BANNER */
.card-action-banner {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.8), rgba(15, 23, 42, 0.95));
  border: 1px solid rgba(59, 130, 246, 0.3);
  position: relative;
  overflow: hidden;
}

.card-action-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.25), transparent 70%);
  pointer-events: none;
}

.badge-pill {
  display: inline-block;
  background: rgba(59, 130, 246, 0.2);
  color: #93c5fd;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  margin-bottom: 12px;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.banner-content h2 {
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 8px;
}

.banner-content p {
  font-size: 14px;
  color: var(--text-muted);
  max-width: 750px;
  line-height: 1.6;
  margin-bottom: 20px;
}

.banner-buttons {
  display: flex;
  gap: 12px;
}

.dashboard-grid {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* LOGS LIST */
.logs-container {
  max-height: 320px;
  overflow-y: auto;
}

.log-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  border-bottom: 1px solid var(--border-color);
  font-size: 13px;
  transition: var(--transition-fast);
}

.log-item:hover {
  background: rgba(255, 255, 255, 0.02);
}

.log-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.log-badge {
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-weight: 700;
}

.log-badge.whatsapp { background: rgba(37, 211, 102, 0.15); color: #4ade80; }
.log-badge.email { background: rgba(59, 130, 246, 0.15); color: #60a5fa; }

.empty-state {
  padding: 36px;
  text-align: center;
  color: var(--text-dim);
  font-size: 14px;
}

/* FORMS */
.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

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

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
select,
textarea {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-main);
  font-size: 14px;
  outline: none;
  transition: var(--transition-fast);
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.25);
}

.code-textarea {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  line-height: 1.6;
  resize: vertical;
}

/* MARKET SELECTOR PILLS */
.market-selector-pills {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.pill-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition-fast);
}

.pill-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.pill-btn.active {
  background: rgba(59, 130, 246, 0.2);
  border-color: #3b82f6;
  color: #93c5fd;
  box-shadow: 0 0 12px var(--primary-glow);
}

/* HUNTER FORM */
.hunter-form {
  display: grid;
  grid-template-columns: 2fr 2fr 1fr auto;
  gap: 16px;
  align-items: flex-end;
}

.hunter-form .form-group {
  margin-bottom: 0;
}

/* CRM TOOLBAR */
.crm-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.search-box {
  position: relative;
  flex: 1;
  max-width: 400px;
}

.search-box i {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-dim);
}

.search-box input {
  padding-left: 44px;
}

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

.filter-group select {
  width: auto;
}

/* TABLES */
.table-responsive {
  overflow-x: auto;
}

.custom-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.custom-table th {
  background: rgba(0, 0, 0, 0.2);
  padding: 14px 20px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-dim);
  border-bottom: 1px solid var(--border-color);
}

.custom-table td {
  padding: 16px 20px;
  font-size: 13px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  vertical-align: middle;
}

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

.lead-biz-name {
  font-weight: 700;
  color: #fff;
  display: block;
}

.lead-biz-source {
  font-size: 11px;
  color: var(--text-dim);
}

.status-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 700;
}

.status-new { background: rgba(59, 130, 246, 0.15); color: #60a5fa; border: 1px solid rgba(59, 130, 246, 0.3); }
.status-whatsapp { background: rgba(37, 211, 102, 0.15); color: #4ade80; border: 1px solid rgba(37, 211, 102, 0.3); }
.status-email { background: rgba(168, 85, 247, 0.15); color: #c084fc; border: 1px solid rgba(168, 85, 247, 0.3); }
.status-replied { background: rgba(245, 158, 11, 0.15); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.3); }
.status-sample { background: rgba(236, 72, 153, 0.15); color: #f472b6; border: 1px solid rgba(236, 72, 153, 0.3); }
.status-converted { background: rgba(16, 185, 129, 0.2); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.4); }
.status-on-hold { background: rgba(251, 146, 60, 0.18); color: #fb923c; border: 1px solid rgba(251, 146, 60, 0.4); }

.action-buttons-cell {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* OUTREACH GRID */
.outreach-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.info-alert {
  display: flex;
  gap: 12px;
  background: rgba(59, 130, 246, 0.08);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: var(--radius-md);
  padding: 14px;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.info-alert i {
  color: var(--primary);
  font-size: 16px;
  margin-top: 2px;
}

.info-alert strong {
  color: #fff;
  display: block;
  margin-bottom: 4px;
}

/* WHATSAPP MOCKUP */
.whatsapp-mockup {
  background: #0b141a;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

.wa-chat-header {
  background: #202c33;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.wa-avatar {
  width: 36px;
  height: 36px;
  background: #128c7e;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.wa-chat-name {
  font-size: 14px;
  font-weight: 700;
  color: #e9edef;
}

.wa-chat-status {
  font-size: 11px;
  color: #8696a0;
}

.wa-chat-body {
  padding: 20px;
  background-color: #0b141a;
  min-height: 220px;
  display: flex;
  flex-direction: column;
}

.wa-bubble {
  background: #005c4b;
  color: #e9edef;
  padding: 14px 18px;
  border-radius: 12px 12px 2px 12px;
  max-width: 85%;
  align-self: flex-end;
  font-size: 13.5px;
  line-height: 1.5;
  white-space: pre-wrap;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* EMAIL PREVIEW */
.email-preview-box {
  background: #0f172a;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.email-meta {
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid var(--border-color);
  font-size: 13px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: var(--text-muted);
}

.email-meta strong {
  color: #fff;
}

.email-body-content {
  padding: 20px;
  font-size: 14px;
  line-height: 1.6;
  color: #e2e8f0;
}

.email-body-content ul {
  padding-left: 20px;
  margin: 12px 0;
}

.email-body-content p {
  margin-bottom: 12px;
}

/* SETTINGS & TEMPLATES GRID */
.settings-grid,
.template-editor-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

/* MODAL */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999;
  padding: 16px;
  overflow-y: auto;
}

.modal-overlay.active {
  display: flex;
  animation: fadeIn 0.2s ease;
}

.modal-card {
  background: #0f1624;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 580px;
  max-height: 90vh;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.85);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
}

.modal-header {
  padding: 16px 22px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
  background: #111a2e;
}

.modal-header h3 {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  margin: 0;
}

.btn-close {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 24px;
  cursor: pointer;
  line-height: 1;
  padding: 0 4px;
  transition: color 0.2s ease;
}

.btn-close:hover {
  color: #fff;
}

.modal-body {
  padding: 20px 22px;
  overflow-y: auto;
  flex: 1 1 auto;
  max-height: calc(90vh - 75px);
}

/* SLEEK CUSTOM SCROLLBAR FOR MODALS */
.modal-body::-webkit-scrollbar,
.modal-overlay::-webkit-scrollbar {
  width: 7px;
}

.modal-body::-webkit-scrollbar-track,
.modal-overlay::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.25);
  border-radius: 4px;
}

.modal-body::-webkit-scrollbar-thumb,
.modal-overlay::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
}

.modal-body::-webkit-scrollbar-thumb:hover,
.modal-overlay::-webkit-scrollbar-thumb:hover {
  background: rgba(96, 165, 250, 0.6);
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  position: sticky;
  bottom: 0;
  background: #0f1624;
  z-index: 5;
}

/* TOASTS */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  background: #1e293b;
  border: 1px solid var(--border-color);
  color: #fff;
  padding: 12px 20px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.5);
  animation: slideIn 0.25s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.toast.success { border-color: rgba(16, 185, 129, 0.5); }
.toast.error { border-color: rgba(239, 68, 68, 0.5); }

@keyframes slideIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* BANNER DESIGNER STUDIO */
.banner-designer-studio {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 24px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.canvas-wrapper {
  background: #000;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 100%;
}

.canvas-wrapper canvas {
  width: 100%;
  height: auto;
  max-height: 380px;
  object-fit: contain;
  display: block;
}

/* GROWTH BLUEPRINT */
.growth-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.roadmap-step {
  display: flex;
  gap: 16px;
  margin-bottom: 20px;
  position: relative;
}

.roadmap-step:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 19px;
  top: 42px;
  bottom: -16px;
  width: 2px;
  background: rgba(59, 130, 246, 0.3);
}

.step-number {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 14px;
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 0 12px var(--primary-glow);
}

.step-content h4 {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}

.step-content p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* PRICING TABLE MINI */
.pricing-table-mini {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  transition: var(--transition-fast);
}

.price-row:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(16, 185, 129, 0.4);
}

.price-tag {
  font-weight: 800;
  font-size: 14px;
  color: #34d399;
  background: rgba(16, 185, 129, 0.15);
  padding: 4px 12px;
  border-radius: var(--radius-full);
}

/* SCRIPTS GRID */
.scripts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.script-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 18px;
}

.script-card h5 {
  font-size: 13px;
  font-weight: 700;
  color: #fbbf24;
  margin-bottom: 10px;
}

.script-box {
  background: rgba(0, 0, 0, 0.3);
  border-left: 3px solid #3b82f6;
  padding: 12px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 12.5px;
  color: #e2e8f0;
  line-height: 1.5;
  font-style: italic;
}

/* EMAIL OPENED STATUS & AUDIT BUTTONS */
.status-opened, .status-email-opened {
  background: rgba(34, 197, 94, 0.15);
  color: #34d399;
  border: 1px solid rgba(34, 197, 94, 0.35);
  box-shadow: 0 0 10px rgba(34, 197, 94, 0.2);
  font-weight: 700;
}

.btn-audit {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(168, 85, 247, 0.2));
  color: #c7d2fe;
  border: 1px solid rgba(168, 85, 247, 0.4);
}

.btn-audit:hover {
  background: linear-gradient(135deg, #6366f1, #a855f7);
  color: #fff;
  border-color: transparent;
}

.log-badge.opened {
  background: rgba(34, 197, 94, 0.2);
  color: #34d399;
  border: 1px solid rgba(34, 197, 94, 0.4);
}

/* RESPONSIVE */
@media (max-width: 1024px) {
  .growth-grid, .scripts-grid, .banner-designer-studio { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .app-layout { flex-direction: column; }
  .sidebar { width: 100%; }
  .stats-grid { grid-template-columns: 1fr; }
  .hunter-form { grid-template-columns: 1fr; }
  .main-content { padding: 16px; }
}

/* === WHATSAPP AUTOMATION UI STYLES === */
.wa-connection-card {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.05), rgba(6, 78, 59, 0.15));
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: var(--radius-lg);
}

.wa-status-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.wa-status-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.wa-brand-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #25d366;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.badge-disconnected {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
  font-size: 13px;
  padding: 6px 14px;
  border-radius: 20px;
  font-weight: 600;
}

.badge-connected {
  background: rgba(34, 197, 94, 0.15);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.35);
  font-size: 13px;
  padding: 6px 14px;
  border-radius: 20px;
  font-weight: 600;
}

.badge-qr_ready {
  background: rgba(234, 179, 8, 0.15);
  color: #facc15;
  border: 1px solid rgba(234, 179, 8, 0.3);
  font-size: 13px;
  padding: 6px 14px;
  border-radius: 20px;
  font-weight: 600;
}

.badge-authenticating, .badge-initializing {
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.3);
  font-size: 13px;
  padding: 6px 14px;
  border-radius: 20px;
  font-weight: 600;
}

.wa-qr-container {
  background: rgba(15, 23, 42, 0.6);
  border: 1px dashed rgba(37, 211, 102, 0.3);
  border-radius: var(--radius-md);
  padding: 16px;
}

.wa-qr-box {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.wa-qr-img-wrap {
  position: relative;
  display: inline-block;
}

.wa-qr-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(15, 23, 42, 0.85);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 8px;
  color: #60a5fa;
  font-size: 14px;
}

.wa-qr-instructions ol {
  margin-left: 20px;
  margin-top: 8px;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.8;
}

.wa-qr-instructions strong {
  color: #fff;
}

.wa-connected-box {
  background: rgba(34, 197, 94, 0.08);
  border: 1px solid rgba(34, 197, 94, 0.25);
  border-radius: var(--radius-md);
  padding: 14px 18px;
}

.campaign-progress-card {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(96, 165, 250, 0.3);
  border-radius: var(--radius-md);
  padding: 16px;
}

.progress-bar-container {
  width: 100%;
  height: 10px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #25d366, #10b981);
  transition: width 0.3s ease;
}

.countdown-timer-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(30, 41, 59, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 10px 14px;
}

.countdown-clock {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: monospace;
  font-size: 18px;
  font-weight: 700;
  color: #facc15;
}

.countdown-desc {
  font-size: 12px;
  color: var(--text-muted);
}

.campaign-action-btns {
  display: flex;
  gap: 10px;
}

.wa-logs-card {
  background: #0f172a;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 12px;
}

.wa-logs-card h4 {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 8px;
  color: #94a3b8;
}

.wa-logs-box {
  max-height: 160px;
  overflow-y: auto;
  font-family: monospace;
  font-size: 11px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.wa-log-item {
  padding: 4px 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.03);
}

.wa-log-item.success { color: #4ade80; border-left: 2px solid #22c55e; }
.wa-log-item.error { color: #f87171; border-left: 2px solid #ef4444; }
.wa-log-item.warning { color: #facc15; border-left: 2px solid #eab308; }
.wa-log-item.info { color: #93c5fd; border-left: 2px solid #3b82f6; }

/* === CRM MULTI-SELECT BULK ACTION BAR === */
.crm-bulk-bar {
  position: sticky;
  top: 10px;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  background: linear-gradient(135deg, #1e293b, #0f172a);
  border: 1px solid rgba(59, 130, 246, 0.4);
  border-radius: var(--radius-lg);
  padding: 12px 18px;
  margin-bottom: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 15px rgba(59, 130, 246, 0.2);
  animation: slideDownFade 0.25s ease-out;
}

@keyframes slideDownFade {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

.bulk-count-badge {
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.3);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
}

.bulk-bar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.bulk-status-group select {
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(59, 130, 246, 0.3);
  color: var(--text-color);
  padding: 6px 12px;
  border-radius: var(--radius-md);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.bulk-status-group select:hover {
  border-color: #60a5fa;
  box-shadow: 0 0 10px rgba(96, 165, 250, 0.2);
}

.badge-category {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: linear-gradient(135deg, rgba(147, 51, 234, 0.15), rgba(236, 72, 153, 0.15));
  color: #c084fc;
  border: 1px solid rgba(192, 132, 252, 0.3);
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 10px;
  font-weight: 600;
  white-space: nowrap;
}

.badge-hot-lead {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.25), rgba(239, 68, 68, 0.25));
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.5);
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 10.5px;
  font-weight: 700;
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.25);
  animation: pulseFire 1.5s infinite alternate;
}

@keyframes pulseFire {
  from { box-shadow: 0 0 4px rgba(245, 158, 11, 0.3); }
  to { box-shadow: 0 0 12px rgba(245, 158, 11, 0.7); }
}

.hot-lead-row {
  background: rgba(245, 158, 11, 0.08) !important;
  border-left: 3px solid #f59e0b !important;
}

.selected-row {
  background: rgba(59, 130, 246, 0.08) !important;
  border-left: 3px solid #3b82f6 !important;
}

/* === TEMPLATE STUDIO GRID === */
.template-studio-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.template-card-box {
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 18px;
}

.btn-xs {
  padding: 3px 8px;
  font-size: 11px;
}

@media (max-width: 1024px) {
  .template-studio-grid {
    grid-template-columns: 1fr;
  }
}

/* === AUTO-STYLING VARIABLE & FORMAT CHIPS === */
.btn-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border-radius: 6px;
  font-family: inherit;
  transition: all 0.2s ease;
  user-select: none;
}

.btn-chip:hover {
  filter: brightness(1.2);
  transform: translateY(-1px);
}

.btn-chip:active {
  transform: translateY(0);
}

/* INVOICE MODAL SYSTEM */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(8px);
  align-items: center;
  justify-content: center;
  z-index: 999;
  padding: 16px;
  overflow-y: auto;
}

.modal-content {
  background: #0f1624;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 580px;
  max-height: 90vh;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.85);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
  animation: fadeIn 0.2s ease;
}

/* ==========================================================================
   CUSTOM ATTACHMENT DROPZONE & BADGE STYLING
   ========================================================================== */
.attachment-upload-box {
  margin-top: 4px;
  margin-bottom: 4px;
}

.attachment-dropzone {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(15, 23, 42, 0.6);
  border: 1.5px dashed rgba(59, 130, 246, 0.35);
  border-radius: 10px;
  padding: 10px 14px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  user-select: none;
}

.attachment-dropzone:hover {
  background: rgba(59, 130, 246, 0.1);
  border-color: rgba(59, 130, 246, 0.7);
  box-shadow: 0 0 16px rgba(59, 130, 246, 0.2);
  transform: translateY(-1px);
}

.attachment-dropzone:active {
  transform: translateY(0);
}

.dropzone-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(168, 85, 247, 0.2));
  border: 1px solid rgba(59, 130, 246, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #60a5fa;
  font-size: 15px;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.attachment-dropzone:hover .dropzone-icon {
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.dropzone-text {
  display: flex;
  flex-direction: column;
}

.dropzone-text strong {
  font-size: 12.5px;
  color: #f1f5f9;
  font-weight: 600;
}

.dropzone-text span {
  font-size: 10.5px;
  color: #94a3b8;
}

.attachment-file-badge {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 10px;
  padding: 8px 12px;
  animation: fadeIn 0.25s ease;
}

.file-badge-left {
  display: flex;
  align-items: center;
  gap: 10px;
  overflow: hidden;
}

.file-name {
  font-size: 12px;
  font-weight: 700;
  color: #f8fafc;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 260px;
}

.file-size {
  font-size: 10.5px;
  color: #34d399;
  font-weight: 600;
}

.btn-remove-attachment {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 6px;
  padding: 5px 10px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: all 0.2s ease;
}

.btn-remove-attachment:hover {
  background: #ef4444;
  color: #ffffff;
  border-color: #ef4444;
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.4);
}

/* ==========================================================================
   SALES PIPELINE (KANBAN BOARD) STYLING
   ========================================================================== */
.pipeline-summary-bar {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.pipeline-stat-pill {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 10px 16px;
  font-size: 13px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.kanban-board-container {
  display: grid;
  grid-template-columns: repeat(6, minmax(270px, 1fr));
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 16px;
  min-height: calc(100vh - 280px);
}

.kanban-column {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 270px);
  transition: all 0.25s ease;
}

.kanban-column.drag-over {
  background: rgba(59, 130, 246, 0.12);
  border-color: #3b82f6;
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.3);
}

.kanban-column-header {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top-left-radius: var(--radius-md);
  border-top-right-radius: var(--radius-md);
}

.header-new { border-top: 3px solid #3b82f6; }
.header-whatsapp { border-top: 3px solid #25d366; }
.header-email { border-top: 3px solid #a855f7; }
.header-hold { border-top: 3px solid #fb923c; }
.header-replied { border-top: 3px solid #f59e0b; }
.header-sample { border-top: 3px solid #ec4899; }
.header-converted { border-top: 3px solid #10b981; }

.column-title {
  font-size: 13px;
  color: #f1f5f9;
  display: flex;
  align-items: center;
  gap: 6px;
}

.column-count-badge {
  background: rgba(255, 255, 255, 0.1);
  color: #f8fafc;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

.kanban-cards-list {
  padding: 12px;
  overflow-y: auto;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 100px;
}

.kanban-card {
  background: rgba(24, 32, 50, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 12px 14px;
  cursor: grab;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  user-select: none;
  position: relative;
}

.kanban-card:hover {
  transform: translateY(-2px);
  border-color: rgba(59, 130, 246, 0.4);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.kanban-card:active {
  cursor: grabbing;
}

.kanban-card.dragging {
  opacity: 0.8;
}

/* ==========================================================================
   MAX AI VOICE WIDGET
   ========================================================================== */
.max-widget {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.max-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #ec4899, #be185d);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 24px;
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(236, 72, 153, 0.5);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  z-index: 2;
}

.max-icon:hover {
  transform: scale(1.1);
}

.max-status-pulse {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  background: rgba(236, 72, 153, 0.4);
  border-radius: 50%;
  z-index: 1;
  opacity: 0;
  pointer-events: none;
}

.max-widget.listening .max-status-pulse {
  animation: maxPulseAnim 1.5s infinite;
}

.max-widget.listening .max-icon {
  background: linear-gradient(135deg, #ef4444, #b91c1c);
  box-shadow: 0 10px 25px rgba(239, 68, 68, 0.6);
}

@keyframes maxPulseAnim {
  0% { transform: translate(-50%, -50%) scale(1); opacity: 0.8; }
  100% { transform: translate(-50%, -50%) scale(2.5); opacity: 0; }
}

.max-tooltip {
  position: absolute;
  right: 80px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(236, 72, 153, 0.4);
  color: #fff;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transform: translateX(10px);
  transition: all 0.3s ease;
}

.max-widget:hover .max-tooltip {
  opacity: 1;
  transform: translateX(0);
}

.max-widget.listening .max-tooltip {
  opacity: 1;
  transform: translateX(0);
  background: rgba(239, 68, 68, 0.9);
  border-color: #ef4444;
}

.card-biz-name {
  font-size: 13.5px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 3px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-owner-name {
  font-size: 12px;
  color: #cbd5e1;
  margin-bottom: 6px;
}

.card-tags-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.card-tag-pill {
  font-size: 10.5px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
  color: #94a3b8;
}

.card-actions-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 8px;
  margin-top: 6px;
}

.card-days-ago {
  font-size: 10.5px;
  color: #64748b;
}

.kanban-empty-drop {
  border: 1.5px dashed rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 18px 10px;
  text-align: center;
  color: #64748b;
  font-size: 11.5px;
}

/* ==========================================================================
   RESPONSIVE DESIGN & SCREEN RESOLUTION ADAPTABILITY
   ========================================================================== */

/* 1. Large Laptops (<= 1400px) */
@media (max-width: 1400px) {
  .stats-grid {
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)) !important;
  }

  .kanban-board-container {
    grid-template-columns: repeat(6, minmax(260px, 1fr)) !important;
  }
}

/* 2. Standard Laptops & Small Desktops (<= 1200px) */
@media (max-width: 1200px) {
  .sidebar {
    width: 240px;
  }

  .sidebar.collapsed {
    width: 72px;
  }

  .top-header {
    padding: 14px 20px;
  }

  .crm-toolbar {
    flex-wrap: wrap;
    gap: 12px;
  }

  .crm-toolbar .filter-group {
    flex-wrap: wrap;
    width: 100%;
  }

  .stats-grid {
    grid-template-columns: repeat(3, 1fr) !important;
  }
}

/* 3. Tablets & iPads (<= 992px) */
@media (max-width: 992px) {
  .app-layout {
    position: relative;
  }

  .sidebar {
    position: fixed;
    top: 0;
    left: -290px;
    bottom: 0;
    width: 270px !important;
    z-index: 1000;
    box-shadow: 10px 0 30px rgba(0,0,0,0.85);
    transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .sidebar.mobile-open {
    left: 0 !important;
  }

  .sidebar.collapsed {
    left: -290px !important;
  }

  .main-content {
    width: 100% !important;
    margin-left: 0 !important;
    padding: 16px 16px 40px 16px;
  }

  .top-header {
    border-radius: var(--radius-md);
    margin-bottom: 16px;
  }

  .header-subtitle {
    display: none;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  .kanban-board-container {
    grid-template-columns: repeat(6, minmax(250px, 1fr)) !important;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .crm-bulk-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .bulk-bar-actions {
    flex-wrap: wrap;
    width: 100%;
  }
}

/* 4. Mobile & Mini Tablets (<= 768px) */
@media (max-width: 768px) {
  .top-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 14px;
  }

  .header-left {
    width: 100%;
    justify-content: space-between;
  }

  .header-right {
    width: 100%;
    flex-wrap: wrap;
    gap: 8px;
  }

  .header-right .btn {
    flex: 1;
    font-size: 11.5px;
    justify-content: center;
  }

  .stats-grid {
    grid-template-columns: 1fr !important;
  }

  .stat-card {
    padding: 14px;
  }

  .search-box {
    width: 100%;
  }

  .filter-group {
    flex-direction: column;
    width: 100%;
  }

  .filter-group select,
  .filter-group input,
  .filter-group .btn {
    width: 100% !important;
  }

  .modal-card,
  .modal-content {
    width: 95vw !important;
    max-height: 94vh !important;
    margin: 10px auto;
  }

  .custom-table {
    font-size: 12px;
  }

  .custom-table th,
  .custom-table td {
    padding: 10px 8px;
  }

  .action-buttons-cell {
    flex-wrap: wrap;
  }

  .pipeline-summary-bar {
    flex-direction: column;
  }

  .pipeline-stat-pill {
    width: 100%;
    justify-content: space-between;
  }
}

/* 5. Extra Small Devices (<= 480px) */
@media (max-width: 480px) {
  body {
    font-size: 13px;
  }

  .header-title-box h1 {
    font-size: 16px !important;
  }

  .stat-value {
    font-size: 20px !important;
  }

  .card-header {
    padding: 14px;
  }

  .card-body {
    padding: 14px;
  }

  .btn {
    padding: 8px 12px;
    font-size: 12px;
  }

  .attachment-dropzone {
    flex-direction: column;
    text-align: center;
  }

  .dropzone-icon {
    margin: 0 auto;
  }
}

/* ===================================== */
/* LEAD JOURNEY TIMELINE STYLES          */
/* ===================================== */

.journey-timeline {
  position: relative;
  padding: 10px 0 10px 40px;
}

.journey-timeline::before {
  content: '';
  position: absolute;
  left: 18px;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(to bottom, rgba(139, 92, 246, 0.5), rgba(59, 130, 246, 0.3), rgba(16, 185, 129, 0.3));
  border-radius: 3px;
}

.journey-step {
  position: relative;
  margin-bottom: 8px;
  animation: fadeSlideUp 0.35s ease forwards;
  opacity: 0;
}

.journey-step:nth-child(1) { animation-delay: 0.05s; }
.journey-step:nth-child(2) { animation-delay: 0.1s; }
.journey-step:nth-child(3) { animation-delay: 0.15s; }
.journey-step:nth-child(4) { animation-delay: 0.2s; }
.journey-step:nth-child(5) { animation-delay: 0.25s; }
.journey-step:nth-child(6) { animation-delay: 0.3s; }
.journey-step:nth-child(7) { animation-delay: 0.35s; }
.journey-step:nth-child(8) { animation-delay: 0.4s; }
.journey-step:nth-child(9) { animation-delay: 0.45s; }
.journey-step:nth-child(10) { animation-delay: 0.5s; }
.journey-step:nth-child(n+11) { animation-delay: 0.55s; }

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

.journey-step-icon {
  position: absolute;
  left: -40px;
  top: 14px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  z-index: 2;
  box-shadow: 0 0 0 4px var(--bg-dark), 0 4px 12px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.journey-step:hover .journey-step-icon {
  transform: scale(1.12);
  box-shadow: 0 0 0 4px var(--bg-dark), 0 6px 20px rgba(139, 92, 246, 0.3);
}

.journey-step-content {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 14px 18px;
  transition: all var(--transition-fast);
  position: relative;
}

.journey-step:hover .journey-step-content {
  border-color: rgba(139, 92, 246, 0.3);
  background: var(--bg-card-hover);
}

.journey-step-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 4px;
}

.journey-step-title {
  font-size: 14px;
  font-weight: 700;
  color: #e2e8f0;
  line-height: 1.4;
}

.journey-step-time {
  font-size: 11px;
  color: #64748b;
  white-space: nowrap;
  flex-shrink: 0;
  font-weight: 500;
}

.journey-step-note {
  font-size: 12.5px;
  color: #94a3b8;
  line-height: 1.5;
  margin-top: 4px;
}

.journey-step-actions {
  display: flex;
  gap: 4px;
  margin-top: 8px;
  align-items: center;
}

.journey-step-tag {
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 6px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

/* Icon Colors by Type */
.js-icon-lead_created   { background: linear-gradient(135deg, #3b82f6, #06b6d4); color: #fff; }
.js-icon-whatsapp_sent  { background: linear-gradient(135deg, #22c55e, #16a34a); color: #fff; }
.js-icon-email_sent     { background: linear-gradient(135deg, #3b82f6, #6366f1); color: #fff; }
.js-icon-email_opened   { background: linear-gradient(135deg, #f59e0b, #f97316); color: #fff; }
.js-icon-follow_up      { background: linear-gradient(135deg, #8b5cf6, #a855f7); color: #fff; }
.js-icon-call_made      { background: linear-gradient(135deg, #06b6d4, #0ea5e9); color: #fff; }
.js-icon-response_received { background: linear-gradient(135deg, #10b981, #059669); color: #fff; }
.js-icon-audit_sent     { background: linear-gradient(135deg, #6366f1, #8b5cf6); color: #fff; }
.js-icon-meeting        { background: linear-gradient(135deg, #ec4899, #f43f5e); color: #fff; }
.js-icon-note           { background: linear-gradient(135deg, #94a3b8, #64748b); color: #fff; }
.js-icon-waiting        { background: linear-gradient(135deg, #f59e0b, #eab308); color: #fff; }
.js-icon-paused         { background: linear-gradient(135deg, #f97316, #ef4444); color: #fff; }
.js-icon-stopped        { background: linear-gradient(135deg, #ef4444, #dc2626); color: #fff; }
.js-icon-converted      { background: linear-gradient(135deg, #10b981, #22c55e); color: #fff; box-shadow: 0 0 0 4px var(--bg-dark), 0 0 16px rgba(16, 185, 129, 0.4); }

/* Converted step glow */
.journey-step-converted .journey-step-content {
  border-color: rgba(16, 185, 129, 0.4);
  background: rgba(16, 185, 129, 0.06);
}

/* Stopped step muted */
.journey-step-stopped .journey-step-content {
  border-color: rgba(239, 68, 68, 0.3);
  opacity: 0.75;
}

.journey-step .btn-delete-step {
  opacity: 0;
  transition: opacity 0.2s ease;
}

.journey-step:hover .btn-delete-step {
  opacity: 1;
}

@media (max-width: 768px) {
  .journey-timeline {
    padding-left: 32px;
  }
  .journey-step-icon {
    left: -32px;
    width: 28px;
    height: 28px;
    font-size: 12px;
  }
  .journey-timeline::before {
    left: 13px;
  }
  .journey-step-content {
    padding: 12px 14px;
  }
  .journey-step-title {
    font-size: 13px;
  }
}

/* ==========================================================================
   LEAD SCORING & PRIORITY TAGS
   ========================================================================== */
.badge-score {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 9px;
  border-radius: 20px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.2px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
}

.badge-score:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.badge-score .score-label {
  font-size: 10px;
  font-weight: 600;
  opacity: 0.9;
}

/* 1. DEAL READY (50+ PTS / Replied / Converted) */
.badge-score-deal-ready {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.25), rgba(245, 158, 11, 0.3));
  color: #fef08a;
  border: 1px solid rgba(245, 158, 11, 0.6);
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.35);
  animation: pulseGold 2s infinite alternate;
}

/* 2. HIGH INTENT (30+ PTS / 2+ Email Opens) */
.badge-score-high-intent {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.25), rgba(236, 72, 153, 0.3));
  color: #f472b6;
  border: 1px solid rgba(236, 72, 153, 0.5);
}

/* 3. WARM (10+ PTS / 1 Email Open) */
.badge-score-warm {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.2), rgba(59, 130, 246, 0.25));
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.4);
}

/* 4. COLD (<10 PTS) */
.badge-score-cold {
  background: rgba(148, 163, 184, 0.12);
  color: #94a3b8;
  border: 1px solid rgba(148, 163, 184, 0.2);
}

@keyframes pulseGold {
  0% { box-shadow: 0 0 5px rgba(245, 158, 11, 0.2); }
  100% { box-shadow: 0 0 14px rgba(245, 158, 11, 0.6); }
}

/* ==========================================================================
   PURPLE & NEON EMERALD DASHBOARD THEME STYLES (Reference Image Inspired)
   ========================================================================== */
.dash-metrics-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 20px;
  margin-bottom: 24px !important;
}

.metric-pill-card {
  background: rgba(20, 16, 35, 0.85);
  border: 1px solid rgba(168, 85, 247, 0.2);
  border-radius: 16px;
  padding: 20px 24px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  transition: all 0.25s ease;
}

.metric-pill-card:hover {
  border-color: rgba(168, 85, 247, 0.45);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(168, 85, 247, 0.15);
}

.metric-pill-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  font-weight: 800;
  color: #94a3b8;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.live-dot-green { color: #10b981; text-shadow: 0 0 8px #10b981; font-size: 10px; }
.live-dot-orange { color: #f97316; text-shadow: 0 0 8px #f97316; font-size: 10px; }
.live-dot-gold { color: #f59e0b; text-shadow: 0 0 8px #f59e0b; font-size: 10px; }

.metric-pill-value {
  font-size: 28px;
  font-weight: 800;
  color: #ffffff;
  margin: 8px 0 6px;
  letter-spacing: -0.5px;
}

.metric-pill-sub {
  font-size: 11.5px;
  font-weight: 600;
}

/* MAIN DASHBOARD CHARTS & SUBSCRIPTIONS GRID (3 CARDS SIDE-BY-SIDE) */
.dash-charts-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1.3fr;
  gap: 20px;
  margin-bottom: 24px !important;
}

.dash-card {
  background: rgba(20, 16, 35, 0.85);
  border: 1px solid rgba(168, 85, 247, 0.2);
  border-radius: 18px;
  padding: 22px 24px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.dash-card-title {
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
}

.dash-growth-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
  color: #34d399;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 2px 8px;
  border-radius: 20px;
  margin-left: 8px;
}

/* RADIAL RING GAUGE */
.radial-gauge-container {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding-top: 8px;
}

.gauge-center-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

.gauge-percentage {
  font-size: 24px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1;
}

.gauge-label {
  font-size: 11px;
  color: #94a3b8;
  font-weight: 600;
  margin-top: 4px;
}

/* OPERATIONAL WIDGETS GRID */
.dash-row3-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 20px;
  margin-bottom: 24px !important;
}

.dash-action-widgets-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

/* TODAY'S ACTIVITY STREAM - FULL WIDTH AT BOTTOM */
.dash-activity-full {
  width: 100%;
  background: rgba(20, 16, 35, 0.85);
  border: 1px solid rgba(168, 85, 247, 0.25);
  border-radius: 18px;
  padding: 24px 28px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  margin-bottom: 24px !important;
}

.dash-activity-full .activity-stream-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 320px;
  overflow-y: auto;
  padding-right: 4px;
}

.activity-row-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 10px 14px;
  border-radius: 10px;
  transition: background 0.2s ease;
}

.activity-row-item:hover {
  background: rgba(255, 255, 255, 0.06);
}

.activity-item-title {
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
}

.activity-item-sub {
  font-size: 11px;
  color: #94a3b8;
}

.activity-badge-in {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.4);
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 12px;
}

.activity-badge-out {
  background: rgba(239, 68, 68, 0.2);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.4);
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 12px;
}

@media (max-width: 1024px) {
  .dash-charts-grid { grid-template-columns: 1fr; }
  .dash-action-widgets-grid { grid-template-columns: 1fr; }
}

@media (max-width: 1100px) {
  .dash-metrics-strip { grid-template-columns: repeat(2, 1fr); }
  .dash-grid-main { grid-template-columns: 1fr; }
  .dash-widgets-grid { grid-template-columns: 1fr; }

