/* ==========================================================================
   SupaWhats SaaS - Ultra-Modern Enterprise Design System (2026 Edition)
   Font: Plus Jakarta Sans | Colors: Slate / Teal / Emerald / Glassmorphism
   ========================================================================== */

:root {
  --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  
  /* Brand Palette */
  --color-brand-teal: #0d9488;
  --color-brand-teal-hover: #0f766e;
  --color-brand-wa: #25d366;
  --color-brand-wa-dark: #128c7e;

  /* Accent Colors */
  --accent-blue: #3b82f6;
  --accent-indigo: #6366f1;
  --accent-purple: #8b5cf6;
  --accent-rose: #f43f5e;
  --accent-amber: #f59e0b;
  --accent-emerald: #10b981;

  /* Light Theme Surfaces */
  --bg-app: #f8fafc;
  --bg-sidebar: #0f172a;
  --bg-card: #ffffff;
  --bg-card-subtle: #f1f5f9;
  
  /* Text */
  --text-main: #0f172a;
  --text-muted: #64748b;
  --text-subtle: #94a3b8;
  
  /* Borders & Shadows */
  --border-light: #e2e8f0;
  --border-focus: #0d9488;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 16px -2px rgba(15, 23, 42, 0.06), 0 2px 4px -2px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 12px 28px -4px rgba(15, 23, 42, 0.1), 0 4px 12px -2px rgba(15, 23, 42, 0.05);
  --shadow-teal: 0 6px 20px rgba(13, 148, 136, 0.28);
  
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-pill: 9999px;
  
  --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base System Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: var(--font-main);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html, body {
  height: 100%;
  background-color: var(--bg-app);
  color: var(--text-main);
  overflow-x: hidden;
}

body {
  display: flex;
  min-height: 100vh;
}

#app {
  display: flex;
  width: 100%;
  min-height: 100vh;
  position: relative;
}

.hidden {
  display: none !important;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: rgba(241, 245, 249, 0.8);
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Mobile Topbar Navigation */
.mobile-topbar {
  display: none;
  height: 60px;
  background-color: var(--bg-sidebar);
  padding: 0 20px;
  align-items: center;
  justify-content: space-between;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.mobile-hamburger-btn {
  background: none;
  border: none;
  color: #ffffff;
  font-size: 22px;
  cursor: pointer;
  padding: 6px;
}

.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  z-index: 80;
}

.sidebar-overlay.active {
  display: block;
}

/* Sidebar Navigation */
.sidebar {
  width: 270px;
  background-color: var(--bg-sidebar);
  color: #f8fafc;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  box-shadow: 4px 0 24px rgba(0, 0, 0, 0.12);
  z-index: 90;
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1), transform 0.3s ease;
}

.btn-sidebar-collapse {
  background: rgba(255, 255, 255, 0.08);
  color: #94a3b8;
  border: 1px solid rgba(255, 255, 255, 0.12);
  width: 28px;
  height: 28px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.btn-sidebar-collapse:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
}

/* Collapsed Sidebar State */
.sidebar.collapsed {
  width: 72px;
}

.sidebar.collapsed .sidebar-brand h2,
.sidebar.collapsed .nav-item-text,
.sidebar.collapsed .user-details {
  display: none !important;
}

.sidebar.collapsed .sidebar-header {
  padding: 16px 10px;
  align-items: center;
}

.sidebar.collapsed .sidebar-brand {
  justify-content: center !important;
}

.sidebar.collapsed .btn-sidebar-collapse i {
  transform: rotate(180deg);
}

.sidebar.collapsed .credit-badge-pill {
  padding: 6px 10px;
  justify-content: center;
  font-size: 11px;
}

.sidebar.collapsed .nav-item {
  justify-content: center;
  padding: 12px 8px;
  gap: 0;
  transform: none !important;
}

.sidebar.collapsed .nav-item i {
  font-size: 18px;
  margin: 0;
}

.sidebar.collapsed .sidebar-footer {
  padding: 12px 8px;
  justify-content: center;
  flex-direction: column;
  gap: 8px;
}

.sidebar-header {
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.sidebar-header i.brand-icon {
  font-size: 32px;
  color: var(--color-brand-wa);
  filter: drop-shadow(0 0 12px rgba(37, 211, 102, 0.6));
  animation: pulseLogo 3s infinite ease-in-out;
}

@keyframes pulseLogo {
  0%, 100% { transform: scale(1); filter: drop-shadow(0 0 10px rgba(37, 211, 102, 0.5)); }
  50% { transform: scale(1.05); filter: drop-shadow(0 0 18px rgba(37, 211, 102, 0.8)); }
}

.sidebar-header h2 {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: #ffffff;
}

.sidebar-header span.brand-tag {
  color: var(--color-brand-wa);
}

.credit-badge-pill {
  background: linear-gradient(135deg, #0d9488 0%, #0f766e 100%);
  color: #ffffff;
  padding: 7px 16px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  box-shadow: 0 4px 12px rgba(13, 148, 136, 0.35);
  transition: var(--transition-fast);
}

.credit-badge-pill:hover {
  transform: translateY(-1px) scale(1.02);
  box-shadow: 0 6px 16px rgba(13, 148, 136, 0.45);
}

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

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 16px;
  color: #94a3b8;
  text-decoration: none;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 14px;
  transition: var(--transition-fast);
  cursor: pointer;
  position: relative;
}

.nav-item:hover {
  background-color: rgba(255, 255, 255, 0.06);
  color: #ffffff;
  transform: translateX(4px);
}

.nav-item.active {
  background: linear-gradient(135deg, #0d9488 0%, #0f766e 100%);
  color: #ffffff;
  box-shadow: var(--shadow-teal);
  font-weight: 700;
}

.nav-item.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 20%;
  bottom: 20%;
  width: 4px;
  background-color: var(--color-brand-wa);
  border-radius: 0 4px 4px 0;
}

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

.sidebar-footer {
  padding: 16px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: #0b1120;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.user-avatar {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #0d9488 0%, #2563eb 100%);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 16px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  position: relative;
}

.user-avatar::after {
  content: '';
  position: absolute;
  bottom: 1px;
  right: 1px;
  width: 10px;
  height: 10px;
  background-color: #22c55e;
  border: 2px solid #0b1120;
  border-radius: 50%;
}

.user-details h4 {
  font-size: 14px;
  color: #f8fafc;
  font-weight: 700;
}

.user-details p {
  font-size: 11px;
  color: #64748b;
  font-weight: 500;
}

.btn-logout-icon {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #94a3b8;
  font-size: 16px;
  cursor: pointer;
  padding: 9px;
  border-radius: var(--radius-sm);
  transition: var(--transition-fast);
}

.btn-logout-icon:hover {
  color: #ef4444;
  background-color: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.3);
  transform: scale(1.08);
}

/* Main Content View Container */
.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  background-color: var(--bg-app);
}

.page-header {
  padding: 32px 40px 18px 40px;
  background-color: #ffffff;
  border-bottom: 1px solid var(--border-light);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.page-header h1 {
  font-size: 26px;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.5px;
  margin-bottom: 4px;
}

.page-header p {
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 500;
}

.page-body {
  padding: 32px 40px 48px 40px;
}

/* Grids & Cards */
.cards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-md);
  padding: 30px;
  margin-bottom: 28px;
  transition: var(--transition-fast);
}

.card:hover {
  box-shadow: var(--shadow-lg);
  border-color: #cbd5e1;
}

.card-title {
  font-size: 19px;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.card-subtitle {
  font-size: 13.5px;
  color: var(--text-muted);
  margin-bottom: 24px;
  line-height: 1.5;
  font-weight: 500;
}

/* Metrics Row */
.metrics-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  margin-bottom: 32px;
}

.metric-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 18px;
  box-shadow: var(--shadow-md);
  transition: var(--transition-fast);
  position: relative;
  overflow: hidden;
}

.metric-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: transparent;
  transition: var(--transition-fast);
}

.metric-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.metric-card:hover::before {
  background: linear-gradient(90deg, var(--color-brand-teal), var(--color-brand-wa));
}

.metric-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.metric-icon.blue { background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%); color: var(--accent-blue); }
.metric-icon.green { background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%); color: var(--accent-emerald); }
.metric-icon.red { background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%); color: var(--accent-rose); }
.metric-icon.purple { background: linear-gradient(135deg, #faf5ff 0%, #f3e8ff 100%); color: var(--accent-purple); }

.metric-info h3 {
  font-size: 26px;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.5px;
}

.metric-info p {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 600;
}

/* Dual Connection Cards */
.dual-connect-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-bottom: 28px;
}

.status-badge-container {
  display: flex;
  justify-content: center;
  margin-bottom: 22px;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 22px;
  border-radius: var(--radius-pill);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.3px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.status-badge.connected { background: linear-gradient(135deg, #15803d 0%, #166534 100%); color: #ffffff; }
.status-badge.disconnected { background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%); color: #ffffff; }
.status-badge.connecting { background: linear-gradient(135deg, #d97706 0%, #b45309 100%); color: #ffffff; }

.qr-box-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 22px;
}

.qr-box {
  width: 230px;
  height: 230px;
  border: 2px dashed #86efac;
  border-radius: var(--radius-lg);
  background-color: #f0fdf4;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px;
  text-align: center;
  transition: var(--transition-fast);
}

.qr-box i.wa-active-icon { font-size: 54px; color: var(--color-brand-wa); filter: drop-shadow(0 0 10px rgba(37, 211, 102, 0.4)); }
.qr-box p.active-label { color: #166534; font-weight: 800; font-size: 15px; }
.qr-img { width: 190px; height: 190px; object-fit: contain; border-radius: var(--radius-md); box-shadow: var(--shadow-sm); }
.connect-note { text-align: center; color: var(--text-muted); font-size: 13px; line-height: 1.5; margin-bottom: 22px; font-weight: 500; }

.btn-disconnect {
  width: 100%;
  padding: 12px 20px;
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: white;
  border: none;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: var(--transition-fast);
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.25);
}

.btn-disconnect:hover {
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(239, 68, 68, 0.35);
}

/* 3-Step Bulk UI Layout */
.bulk-step-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-md);
  padding: 30px;
  margin-bottom: 28px;
  transition: var(--transition-fast);
}

.bulk-step-card:hover {
  box-shadow: var(--shadow-lg);
}

.step-number-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0d9488 0%, #0f766e 100%);
  color: white;
  font-weight: 800;
  font-size: 14px;
  margin-right: 12px;
  box-shadow: 0 2px 8px rgba(13, 148, 136, 0.3);
}

.step-header { display: flex; align-items: center; margin-bottom: 20px; }
.step-header h3 { font-size: 19px; font-weight: 800; color: var(--text-main); }

/* 4-Media Type Tabs */
.media-tabs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.media-tab-btn {
  padding: 12px 16px;
  background-color: var(--bg-card-subtle);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: var(--transition-fast);
}

.media-tab-btn:hover { background-color: #e2e8f0; color: var(--text-main); }
.media-tab-btn.active {
  background: linear-gradient(135deg, #0d9488 0%, #0f766e 100%);
  color: #ffffff;
  border-color: #0d9488;
  box-shadow: var(--shadow-teal);
}

/* CTA Interactive Buttons Section */
.cta-box-card {
  background-color: #f8fafc;
  border: 1.5px dashed var(--color-brand-teal);
  border-radius: var(--radius-md);
  padding: 22px;
  margin-top: 20px;
}

.cta-box-card h4 {
  font-size: 15px;
  font-weight: 800;
  color: var(--color-brand-teal);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.dual-sender-banner {
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  border: 1px solid #86efac;
  border-radius: var(--radius-md);
  padding: 18px 22px;
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 26px;
}

.dual-sender-banner i { font-size: 30px; color: #16a34a; }
.dual-sender-banner h4 { font-size: 15px; font-weight: 800; color: #14532d; }
.dual-sender-banner p { font-size: 13px; color: #166534; margin-top: 2px; font-weight: 500; }

/* Form Elements */
.form-group { margin-bottom: 22px; }
.form-group label { display: block; font-size: 13.5px; font-weight: 700; color: #1e293b; margin-bottom: 8px; }

.form-control {
  width: 100%;
  padding: 12px 18px;
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-md);
  font-size: 14px;
  color: var(--text-main);
  background-color: #ffffff;
  outline: none;
  transition: var(--transition-fast);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.form-control:focus {
  border-color: var(--border-focus);
  background-color: #ffffff;
  box-shadow: 0 0 0 4px rgba(13, 148, 136, 0.16);
}

/* Schedule Campaign Date-Picker & Template Pills UI Improvements */
input[type="datetime-local"].form-control {
  max-width: 320px;
  padding: 10px 16px;
  font-weight: 600;
  color: #0f172a;
  background-color: #ffffff;
  border: 1.5px solid #cbd5e1;
  border-radius: var(--radius-md);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

input[type="datetime-local"].form-control:focus {
  border-color: #0d9488;
  box-shadow: 0 0 0 4px rgba(13, 148, 136, 0.15);
}

.tmpl-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  margin: 4px 6px 4px 0;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border: 1.5px solid #cbd5e1;
  border-radius: 20px;
  color: #334155;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.tmpl-pill-btn i {
  color: #0d9488;
  font-size: 13px;
}

.tmpl-pill-btn:hover {
  background: linear-gradient(135deg, #0d9488 0%, #0f766e 100%);
  color: #ffffff;
  border-color: #0d9488;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(13, 148, 136, 0.3);
}

.tmpl-pill-btn:hover i {
  color: #ffffff;
}

/* Modern File Input Styling */
input[type="file"].form-control {
  padding: 10px 14px;
  background: #f8fafc;
  cursor: pointer;
  display: flex;
  align-items: center;
}

input[type="file"].form-control::file-selector-button {
  background: linear-gradient(135deg, #0d9488 0%, #0f766e 100%);
  color: #ffffff;
  border: none;
  padding: 9px 18px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 700;
  margin-right: 14px;
  cursor: pointer;
  transition: var(--transition-fast);
  box-shadow: 0 2px 8px rgba(13, 148, 136, 0.3);
}

input[type="file"].form-control::file-selector-button:hover {
  background: linear-gradient(135deg, #0f766e 0%, #115e59 100%);
  transform: translateY(-1px);
}

textarea.form-control { min-height: 120px; resize: vertical; line-height: 1.5; }
.field-hint { font-size: 12px; color: var(--text-muted); margin-top: 6px; font-weight: 500; }

/* Buttons */
.btn-teal {
  width: 100%;
  padding: 14px 24px;
  background: linear-gradient(135deg, #0d9488 0%, #0f766e 100%);
  color: white;
  border: none;
  border-radius: var(--radius-md);
  font-size: 15px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  transition: var(--transition-fast);
  box-shadow: var(--shadow-teal);
}

.btn-teal:hover {
  background: linear-gradient(135deg, #0f766e 0%, #115e59 100%);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(13, 148, 136, 0.4);
}

.btn-teal:active {
  transform: scale(0.98);
}

.btn-excel {
  padding: 9px 18px;
  background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: var(--transition-fast);
  box-shadow: 0 2px 8px rgba(22, 163, 74, 0.25);
}

.btn-excel:hover {
  background: linear-gradient(135deg, #15803d 0%, #166534 100%);
  transform: translateY(-1px);
}

/* ==========================================================================
   Split-Screen Modern SaaS Login Layout
   ========================================================================== */
.login-container {
  min-height: 100vh;
  width: 100vw;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(ellipse at 50% 20%, #1e293b 0%, #090d16 100%);
  padding: 24px;
  box-sizing: border-box;
  overflow-y: auto;
  position: fixed;
  inset: 0;
  z-index: 9999;
}

.login-wrapper {
  display: flex;
  max-width: 1080px;
  width: 100%;
  min-height: 640px;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 25px 60px -12px rgba(0, 0, 0, 0.7), 0 0 50px rgba(13, 148, 136, 0.15);
  backdrop-filter: blur(24px);
  position: relative;
  margin: auto;
}

/* Left Side Showcase Panel */
.login-showcase-panel {
  flex: 1.15;
  background: linear-gradient(145deg, #0b1329 0%, #064e3b 100%);
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  overflow: hidden;
}

.showcase-glow-bg {
  position: absolute;
  top: -60px;
  right: -60px;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(37, 211, 102, 0.25) 0%, transparent 70%);
  filter: blur(40px);
  pointer-events: none;
}

.showcase-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  height: 100%;
  justify-content: space-between;
  gap: 20px;
}

.showcase-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.showcase-brand-icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: rgba(37, 211, 102, 0.15);
  border: 1px solid rgba(37, 211, 102, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  color: #25d366;
  box-shadow: 0 0 20px rgba(37, 211, 102, 0.3);
  flex-shrink: 0;
}

.showcase-brand-text h2 {
  font-size: 21px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}

.badge-pro-pill {
  font-size: 10px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 9999px;
  background: linear-gradient(135deg, #0d9488, #25d366);
  color: #ffffff;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.showcase-brand-text p {
  font-size: 12.5px;
  color: #94a3b8;
  margin: 2px 0 0 0;
  font-weight: 500;
}

.showcase-image-wrapper {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
  margin: 4px 0;
  background: #020617;
}

.showcase-hero-img {
  width: 100%;
  height: auto;
  max-height: 290px;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.showcase-image-wrapper:hover .showcase-hero-img {
  transform: scale(1.02);
}

.showcase-floating-badge {
  position: absolute;
  bottom: 12px;
  left: 12px;
  right: 12px;
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(37, 211, 102, 0.35);
  border-radius: 14px;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.badge-icon-shield {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: rgba(37, 211, 102, 0.2);
  color: #25d366;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  flex-shrink: 0;
}

.badge-text-box {
  display: flex;
  flex-direction: column;
}

.badge-title {
  font-size: 12px;
  font-weight: 800;
  color: #ffffff;
}

.badge-subtitle {
  font-size: 10.5px;
  color: #34d399;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 1px;
}

.showcase-feature-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.showcase-feature-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 600;
  color: #cbd5e1;
  background: rgba(255, 255, 255, 0.05);
  padding: 7px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.showcase-feature-item i.text-emerald { color: #34d399; }
.showcase-feature-item i.text-teal { color: #2dd4bf; }
.showcase-feature-item i.text-blue { color: #60a5fa; }

/* Right Side Form Panel */
.login-form-panel {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  padding: 36px 32px;
  position: relative;
}

.login-card-inner {
  width: 100%;
  max-width: 360px;
  display: flex;
  flex-direction: column;
}

.login-logo-chip {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px auto;
  font-size: 26px;
  color: var(--color-brand-wa);
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.18);
}

.login-header {
  text-align: center;
  margin-bottom: 20px;
}

.login-header h2 {
  font-size: 22px;
  font-weight: 900;
  color: #0f172a;
  letter-spacing: -0.5px;
  margin-bottom: 4px;
}

.login-header p {
  font-size: 12.5px;
  color: #64748b;
  margin: 0;
  font-weight: 500;
}

/* Subtle Footer Section inside Login Card */
.login-footer-section {
  margin-top: 20px;
  padding-top: 14px;
  border-top: 1px solid #f8fafc;
  text-align: center;
}

.login-footer-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 500;
  margin-bottom: 5px;
}

.login-footer-links a {
  color: #94a3b8;
  text-decoration: none;
  transition: color 0.2s ease;
}

.login-footer-links a:hover {
  color: #64748b;
  text-decoration: underline;
}

.login-footer-links .sep {
  color: #cbd5e1;
  font-size: 9px;
}

.login-footer-copyright p {
  font-size: 10.5px;
  font-weight: 500;
  color: #94a3b8;
  margin: 0;
}

/* Responsive Breakpoints */
@media (max-width: 900px) {
  .login-wrapper {
    flex-direction: column;
    max-width: 460px;
    margin: 20px auto;
  }
  .login-showcase-panel {
    padding: 24px 20px;
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  .showcase-hero-img {
    max-height: 180px;
  }
  .login-form-panel {
    padding: 28px 20px;
  }
}

.error-banner {
  background-color: #fef2f2;
  border: 1px solid #fecaca;
  color: #dc2626;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: 13px;
  margin-bottom: 20px;
  font-weight: 600;
}

/* Table Design */
.table-container {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

table.data-table { width: 100%; border-collapse: collapse; text-align: left; }
table.data-table th { background-color: var(--bg-card-subtle); padding: 14px 20px; font-size: 12.5px; font-weight: 800; color: #475569; border-bottom: 1px solid var(--border-light); text-transform: uppercase; letter-spacing: 0.5px; }
table.data-table td { padding: 16px 20px; font-size: 14px; color: var(--text-main); border-bottom: 1px solid #f1f5f9; font-weight: 500; }
table.data-table tr:hover td { background-color: #f8fafc; }
table.data-table tr:last-child td { border-bottom: none; }

.progress-container { margin-top: 20px; background-color: #f1f5f9; border-radius: var(--radius-md); padding: 20px; border: 1px solid var(--border-light); }
.progress-bar-bg { width: 100%; height: 12px; background-color: #e2e8f0; border-radius: 6px; overflow: hidden; margin-bottom: 12px; }
.progress-bar-fill { height: 100%; background: linear-gradient(90deg, #0d9488, #25d366); width: 0%; transition: width 0.3s ease; }
.progress-info { display: flex; justify-content: space-between; font-size: 13px; font-weight: 700; color: #334155; }

.log-box {
  margin-top: 16px;
  background-color: #0f172a;
  color: #38bdf8;
  font-family: monospace;
  font-size: 12px;
  padding: 16px;
  border-radius: var(--radius-md);
  max-height: 160px;
  overflow-y: auto;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.4);
}

.group-select-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
  max-height: 200px;
  overflow-y: auto;
  border: 1.5px solid var(--border-light);
  padding: 16px;
  border-radius: var(--radius-md);
  background-color: #ffffff;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  animation: fadeIn 0.2s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-card {
  background: #ffffff;
  border-radius: 24px;
  padding: 40px;
  max-width: 460px;
  width: 90%;
  text-align: center;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
  animation: scaleUp 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes scaleUp {
  from { transform: scale(0.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.modal-icon-warning { font-size: 58px; color: #dc2626; margin-bottom: 18px; filter: drop-shadow(0 4px 10px rgba(220, 38, 38, 0.3)); }
.modal-card h3 { font-size: 23px; color: var(--text-main); font-weight: 800; margin-bottom: 10px; }
.modal-card p { font-size: 14px; color: var(--text-muted); line-height: 1.5; margin-bottom: 26px; font-weight: 500; }

/* Review Category Badges */
.review-category-badge {
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: inline-block;
}

.review-category-badge.cafe { background-color: #fef3c7; color: #d97706; }
.review-category-badge.hotel { background-color: #dbeafe; color: #2563eb; }
.review-category-badge.education { background-color: #e0e7ff; color: #4f46e5; }
.review-category-badge.gym { background-color: #ecfdf5; color: #059669; }
.review-category-badge.salon { background-color: #fce7f3; color: #db2777; }
.review-category-badge.custom { background-color: #f1f5f9; color: #475569; }

/* Modern Toast Notification Container & Items */
.toast-container {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 100000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast-item {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 300px;
  max-width: 420px;
  background: #ffffff;
  color: var(--text-main);
  padding: 14px 20px;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 30px -5px rgba(15, 23, 42, 0.18), 0 4px 10px -2px rgba(15, 23, 42, 0.1);
  border-left: 5px solid var(--color-brand-teal);
  font-size: 14px;
  font-weight: 600;
  animation: toastSlideIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  transition: var(--transition-fast);
}

.toast-item.success { border-left-color: #22c55e; }
.toast-item.error { border-left-color: #ef4444; }
.toast-item.warning { border-left-color: #f59e0b; }
.toast-item.info { border-left-color: #3b82f6; }

.toast-item i { font-size: 18px; }
.toast-item.success i { color: #22c55e; }
.toast-item.error i { color: #ef4444; }
.toast-item.warning i { color: #f59e0b; }
.toast-item.info i { color: #3b82f6; }

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

.toast-item.fade-out {
  opacity: 0;
  transform: translateY(-10px);
}

/* Mobile Responsiveness Rules */
@media (max-width: 992px) {
  .mobile-topbar { display: flex; }
  .sidebar-overlay { display: none; }
  .sidebar {
    position: fixed;
    top: 60px;
    bottom: 0;
    left: 0;
    transform: translateX(-100%);
  }
  .sidebar.mobile-open {
    transform: translateX(0);
  }
  .main-content {
    margin-top: 60px;
  }
  .metrics-row { grid-template-columns: repeat(2, 1fr); }
  .cards-grid, .dual-connect-grid { grid-template-columns: 1fr; }
  .page-header { padding: 24px 20px 14px 20px; }
  .page-body { padding: 20px 20px 32px 20px; }
}

@media (max-width: 576px) {
  .metrics-row { grid-template-columns: 1fr; }
  .toast-container { right: 12px; left: 12px; top: 12px; }
  .toast-item { min-width: auto; width: 100%; }
}

/* Recharge Pill Buttons for Admin Table */
.btn-recharge-pill {
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 800;
  border: none;
  color: white;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: var(--transition-fast);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}
.btn-recharge-pill.green {
  background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
}
.btn-recharge-pill.green:hover {
  background: linear-gradient(135deg, #15803d 0%, #166534 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(22, 163, 74, 0.3);
}
.btn-recharge-pill.blue {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
}
.btn-recharge-pill.blue:hover {
  background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.3);
}

/* Smart Review Campaign Action Buttons */
.btn-review-action {
  padding: 8px 14px;
  color: #ffffff !important;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-decoration: none !important;
  transition: var(--transition-fast);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  width: 100%;
}
.btn-review-action.indigo,
.btn-review-action.blue {
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
}
.btn-review-action.indigo:hover,
.btn-review-action.blue:hover {
  background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(99, 102, 241, 0.35);
}
.btn-review-action.emerald,
.btn-review-action.green {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}
.btn-review-action.emerald:hover,
.btn-review-action.green:hover {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(16, 185, 129, 0.35);
}
.btn-review-action.teal {
  background: linear-gradient(135deg, #0d9488 0%, #0f766e 100%);
}
.btn-review-action.teal:hover {
  background: linear-gradient(135deg, #0f766e 0%, #115e59 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(13, 148, 136, 0.35);
}
.btn-review-action.rose,
.btn-review-action.red {
  background: linear-gradient(135deg, #f43f5e 0%, #e11d48 100%);
}
.btn-review-action.rose:hover,
.btn-review-action.red:hover {
  background: linear-gradient(135deg, #e11d48 0%, #be123c 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(244, 63, 94, 0.35);
}

/* Flow Builder Interactive Canvas Styles */
.canvas-node {
  transition: box-shadow 0.2s ease, filter 0.2s ease;
  user-select: none;
}
.canvas-node:hover {
  filter: brightness(1.08);
}
.canvas-node.selected {
  box-shadow: 0 0 0 3px #38bdf8, 0 8px 24px rgba(0,0,0,0.6) !important;
}
.port-in, .port-out {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.port-in:hover, .port-out:hover {
  transform: translateY(-50%) scale(1.4) !important;
  box-shadow: 0 0 12px #38bdf8;
}
.palette-node {
  transition: transform 0.2s ease, filter 0.2s ease;
}
.palette-node:hover {
  transform: translateX(4px);
  filter: brightness(1.15);
}
.flow-wire {
  stroke: #22c55e;
  stroke-width: 3.5;
  fill: none;
  stroke-linecap: round;
  cursor: pointer;
  transition: stroke 0.2s, stroke-width 0.2s;
  pointer-events: stroke;
}
.flow-wire:hover {
  stroke: #ef4444 !important;
  stroke-width: 5 !important;
}
.flow-wire-delete-btn {
  cursor: pointer;
  fill: #ef4444;
  transition: transform 0.2s;
}
.flow-wire-delete-btn:hover {
  transform: scale(1.3);
}
.flow-temp-wire {
  stroke: #38bdf8;
  stroke-width: 3;
  stroke-dasharray: 6,4;
  fill: none;
  stroke-linecap: round;
  pointer-events: none;
  animation: flowDashAnim 1s linear infinite;
}
@keyframes flowDashAnim {
  to { stroke-dashoffset: -20; }
}
.port-connecting-source {
  box-shadow: 0 0 0 4px #22c55e, 0 0 15px #22c55e !important;
  transform: translateY(-50%) scale(1.35) !important;
}
.port-connecting-target {
  animation: portPulseAnim 0.8s ease-in-out infinite alternate !important;
  box-shadow: 0 0 0 4px #0ea5e9, 0 0 15px #0ea5e9 !important;
}
@keyframes portPulseAnim {
  from { transform: translateY(-50%) scale(1.1); }
  to { transform: translateY(-50%) scale(1.55); }
}
.node-executing {
  animation: nodeExecutingGlow 1.1s ease-in-out infinite alternate !important;
  border: 2px solid #22c55e !important;
}
@keyframes nodeExecutingGlow {
  from { box-shadow: 0 0 10px #22c55e, 0 0 20px #22c55e; }
  to { box-shadow: 0 0 25px #22c55e, 0 0 50px rgba(34,197,94,0.8); }
}
.node-completed {
  border: 2px solid #10b981 !important;
  box-shadow: 0 0 12px rgba(16,185,129,0.6) !important;
}

/* ==========================================================================
   GOOGLE & MICROSOFT ENTERPRISE SAAS DESIGN OVERHAUL (2026 EDITION)
   ========================================================================== */

/* Modern Top Header Action Bar */
.top-header-bar {
  height: 64px;
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  position: sticky;
  top: 0;
  z-index: 70;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.03);
}

.top-header-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #64748b;
}

.top-header-breadcrumb .active-crumb {
  color: #0f172a;
  font-weight: 800;
}

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

.server-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f0fdf4;
  color: #166534;
  border: 1px solid #bbf7d0;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
}

.server-status-dot {
  width: 8px;
  height: 8px;
  background-color: #22c55e;
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.8);
  animation: pulseDot 2s infinite ease-in-out;
}

@keyframes pulseDot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.25); opacity: 0.7; }
}

/* Modernized Sidebar Styling */
.sidebar {
  background: linear-gradient(180deg, #0f172a 0%, #020617 100%);
  border-right: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-item {
  border-left: 3px solid transparent;
}

.nav-item.active {
  background: linear-gradient(90deg, rgba(79, 70, 229, 0.25) 0%, rgba(79, 70, 229, 0.05) 100%);
  border-left-color: #6366f1;
  color: #ffffff;
  box-shadow: none;
}

.nav-item.active i {
  color: #818cf8;
}

/* Modern Card Improvements */
.card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.04), 0 1px 2px -1px rgba(0, 0, 0, 0.04);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.08), 0 4px 10px -2px rgba(15, 23, 42, 0.04);
}

/* Modern Table Enhancements */
.table-container {
  border-radius: 12px;
  border: 1px solid #e2e8f0;
}

table.data-table th {
  background-color: #f8fafc;
  color: #475569;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.6px;
  padding: 14px 18px;
  border-bottom: 1px solid #e2e8f0;
}

table.data-table td {
  padding: 15px 18px;
  border-bottom: 1px solid #f1f5f9;
  font-size: 13.5px;
}

table.data-table tr:hover td {
  background-color: #f8fafc;
}

/* Clean Pill Badges */
.status-badge {
  padding: 4px 12px;
  font-size: 11px;
  font-weight: 800;
  border-radius: 20px;
  letter-spacing: 0.4px;
}

.status-badge.active,
.status-badge.connected {
  background: #dcfce7 !important;
  color: #166534 !important;
}

.status-badge.pending {
  background: #fef3c7 !important;
  color: #92400e !important;
}

.status-badge.disconnected {
  background: #fee2e2 !important;
  color: #991b1b !important;
}

/* Form Controls Polish */
.form-control {
  border: 1.5px solid #cbd5e1;
  border-radius: 10px;
  padding: 11px 16px;
  font-size: 13.5px;
  transition: all 0.2s ease;
}

.form-control:focus {
  border-color: #4f46e5;
  box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.12);
}

/* Buttons Polish */
.btn-teal {
  background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%);
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.3);
  border-radius: 10px;
}

.btn-teal:hover {
  background: linear-gradient(135deg, #4338ca 0%, #3730a3 100%);
  box-shadow: 0 6px 20px rgba(79, 70, 229, 0.4);
}

/* ==========================================================================
   3-Step Guided Bulk Messaging Hub & Pro Tips System
   ========================================================================== */
.bulk-stepper-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 24px;
  background: #ffffff;
  padding: 12px 18px;
  border-radius: 16px;
  border: 1.5px solid #e2e8f0;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.03);
}

.bulk-step-tab {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  padding: 8px 16px;
  border-radius: 12px;
  transition: all 0.25s ease;
  flex: 1;
  border: 1.5px solid transparent;
}

.bulk-step-tab:hover {
  background: #f8fafc;
}

.bulk-step-tab.active {
  background: #f0fdf4;
  border-color: #86efac;
}

.step-num {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: #e2e8f0;
  color: #475569;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 14px;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.bulk-step-tab.active .step-num {
  background: #10b981;
  color: #ffffff;
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.35);
}

.bulk-step-tab.completed .step-num {
  background: #0d9488;
  color: #ffffff;
}

.step-info strong {
  display: block;
  font-size: 13.5px;
  font-weight: 800;
  color: #0f172a;
}

.step-info span {
  display: block;
  font-size: 11px;
  color: #64748b;
  font-weight: 500;
  margin-top: 1px;
}

.stepper-arrow {
  color: #cbd5e1;
  font-size: 13px;
  flex-shrink: 0;
}

/* Audience Choice Cards */
.audience-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin-top: 8px;
  margin-bottom: 18px;
}

.audience-choice-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 2px solid #e2e8f0;
  background: #ffffff;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.audience-choice-card:hover {
  border-color: #cbd5e1;
  transform: translateY(-1px);
}

.audience-choice-card.active {
  border-color: #0d9488;
  background: #f0fdfa;
  box-shadow: 0 4px 14px rgba(13, 148, 136, 0.12);
}

.choice-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #f1f5f9;
  color: #0d9488;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
  transition: all 0.2s;
}

.audience-choice-card.active .choice-icon {
  background: #0d9488;
  color: #ffffff;
}

.choice-content strong {
  display: block;
  font-size: 13px;
  font-weight: 800;
  color: #0f172a;
}

.choice-content span {
  display: block;
  font-size: 11px;
  color: #64748b;
  margin-top: 2px;
}

.choice-check {
  margin-left: auto;
  font-size: 16px;
  color: #0d9488;
  opacity: 0;
  transition: opacity 0.2s;
}

.audience-choice-card.active .choice-check {
  opacity: 1;
}

.audience-source-panel {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 16px 18px;
  margin-top: 8px;
}

/* Variable Chips */
.variable-chip-btn {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: 20px;
  padding: 4px 12px;
  font-size: 11.5px;
  font-weight: 700;
  color: #334155;
  cursor: pointer;
  transition: all 0.15s ease;
}

.variable-chip-btn:hover {
  background: #e2e8f0;
  color: #0f172a;
  border-color: #94a3b8;
  transform: translateY(-1px);
}

/* Pro Tips Grid & Card Items */
.pro-tips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 12px;
  margin-top: 10px;
}

.tip-card-item {
  display: flex;
  gap: 10px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid #d1fae5;
  border-radius: 12px;
  padding: 12px 14px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.tip-badge-icon {
  font-size: 18px;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 2px;
}

.tip-card-item strong {
  display: block;
  font-size: 12.5px;
  font-weight: 800;
  color: #065f46;
  margin-bottom: 2px;
}

.tip-card-item p {
  margin: 0;
  font-size: 11.5px;
  color: #047857;
  line-height: 1.45;
}

@media (max-width: 800px) {
  .bulk-stepper-container {
    flex-direction: column;
    align-items: stretch;
  }
  .stepper-arrow {
    display: none;
  }
}

/* ==========================================================================
   Collapsible Pro Tips FAQ Slider Accordion
   ========================================================================== */
.pro-tips-faq-accordion {
  background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
  border: 1.5px solid #a7f3d0;
  border-radius: 14px;
  overflow: hidden;
  margin-top: 22px;
  box-shadow: 0 2px 10px rgba(16, 185, 129, 0.05);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.pro-tips-faq-summary {
  padding: 14px 18px;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  user-select: none;
  transition: background 0.2s ease;
}

.pro-tips-faq-summary::-webkit-details-marker {
  display: none;
}

.pro-tips-faq-summary:hover {
  background: rgba(16, 185, 129, 0.08);
}

.pro-tips-faq-toggle {
  font-size: 11.5px;
  font-weight: 700;
  color: #047857;
  background: #d1fae5;
  border: 1px solid #a7f3d0;
  padding: 5px 14px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  transition: all 0.2s;
}

.pro-tips-faq-toggle .lbl-close {
  display: none;
}

.pro-tips-faq-accordion[open] .pro-tips-faq-toggle {
  background: #a7f3d0;
  color: #065f46;
}

.pro-tips-faq-accordion[open] .pro-tips-faq-toggle .lbl-open {
  display: none;
}

.pro-tips-faq-accordion[open] .pro-tips-faq-toggle .lbl-close {
  display: inline;
}

.pro-tips-faq-content {
  padding: 14px 18px 18px 18px;
  border-top: 1px solid #d1fae5;
  animation: fadeInDown 0.25s ease-out;
}

/* ==========================================================================
   WEBSITE LEADS & WEBHOOK ENGINE UI/UX OVERHAUL
   ========================================================================== */

.wh-page-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  flex-wrap: wrap;
  padding: 28px 40px 22px 40px;
  background-color: #ffffff;
  border-bottom: 1px solid var(--border-light);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
  margin-bottom: 0;
}

.wh-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: #0284c7;
  background: #e0f2fe;
  border: 1px solid #bae6fd;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 8px;
}

.wh-header-title {
  font-size: 24px;
  font-weight: 800;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 6px 0;
  letter-spacing: -0.3px;
}

.wh-header-icon-box {
  color: #0284c7;
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  width: 42px;
  height: 42px;
  border-radius: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.wh-header-desc {
  font-size: 13.5px;
  color: #64748b;
  margin: 0;
  max-width: 780px;
  line-height: 1.5;
}

.wh-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.wh-live-indicator {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #15803d;
  font-size: 12px;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 30px;
}

.wh-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
  animation: whPulse 2s infinite;
}

@keyframes whPulse {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 8px rgba(34, 197, 94, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
  }
}

.wh-btn-test {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  color: #ffffff !important;
  border: none !important;
  font-size: 12.5px;
  font-weight: 700;
  padding: 10px 20px;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.25);
  transition: all 0.2s ease;
}

.wh-btn-test:hover {
  background: linear-gradient(135deg, #0369a1 0%, #075985 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(2, 132, 199, 0.35);
}

/* KPI Metric Cards */
.wh-metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.wh-metric-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 18px 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
  position: relative;
  overflow: hidden;
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.wh-metric-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
}

.wh-metric-card.purple-glow {
  background: linear-gradient(135deg, #ffffff 0%, #faf5ff 100%);
  border: 1.5px solid #e9d5ff;
}

.wh-metric-card.purple-glow:hover {
  border-color: #c084fc;
  box-shadow: 0 6px 20px rgba(147, 51, 234, 0.12);
}

.wh-metric-card.emerald-glow {
  background: linear-gradient(135deg, #ffffff 0%, #f0fdf4 100%);
  border: 1.5px solid #bbf7d0;
}

.wh-metric-card.emerald-glow:hover {
  border-color: #86efac;
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.12);
}

.wh-metric-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.wh-metric-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.wh-metric-icon.blue {
  background: #e0f2fe;
  color: #0284c7;
}

.wh-metric-icon.purple {
  background: #f3e8ff;
  color: #9333ea;
}

.wh-metric-icon.green {
  background: #dcfce7;
  color: #16a34a;
}

.wh-metric-tag {
  font-size: 10.5px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 12px;
}

.wh-metric-tag.blue {
  background: #f0f9ff;
  color: #0369a1;
  border: 1px solid #bae6fd;
}

.wh-metric-tag.purple {
  background: #f3e8ff;
  color: #7e22ce;
  border: 1px solid #d8b4fe;
}

.wh-metric-tag.green {
  background: #f0fdf4;
  color: #15803d;
  border: 1px solid #bbf7d0;
}

.wh-metric-title {
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: #64748b;
  margin-bottom: 4px;
}

.wh-metric-num {
  font-size: 32px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.1;
  letter-spacing: -0.5px;
}

.wh-metric-num.purple-val {
  color: #7e22ce;
}

.wh-metric-num.green-val {
  color: #059669;
}

.wh-metric-desc {
  font-size: 11.5px;
  color: #94a3b8;
  margin-top: 6px;
}

/* Integration Hub Card */
.wh-integration-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 22px;
  margin-bottom: 24px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.wh-integration-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
}

.wh-card-h2 {
  font-size: 16px;
  font-weight: 800;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 4px 0;
}

.wh-card-sub {
  font-size: 12.5px;
  color: #64748b;
  margin: 0;
}

/* Modern Segmented Tab Bar */
.wh-nav-tabs {
  display: flex;
  gap: 6px;
  background: #f1f5f9;
  padding: 5px;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  width: fit-content;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.wh-tab-btn {
  background: transparent;
  border: none;
  padding: 8px 18px;
  font-size: 12px;
  font-weight: 700;
  color: #64748b;
  border-radius: 7px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: all 0.2s ease;
}

.wh-tab-btn:hover {
  color: #0f172a;
}

.wh-tab-btn.active {
  background: #ffffff !important;
  color: #0284c7 !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08) !important;
}

.wh-tab-btn.active.ghost-active {
  background: #ffffff !important;
  color: #9333ea !important;
  box-shadow: 0 2px 6px rgba(147, 51, 234, 0.15) !important;
}

.wh-tab-badge {
  background: #f3e8ff;
  color: #7e22ce;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 6px;
  margin-left: 2px;
}

/* Code Bar & Copy Button */
.wh-code-box {
  display: flex;
  align-items: center;
  background: #0f172a;
  border: 1.5px solid #1e293b;
  border-radius: 10px;
  padding: 6px 8px 6px 16px;
  gap: 12px;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

.wh-code-box.purple {
  border-color: #581c87;
  background: #190c29;
}

.wh-code-input {
  background: transparent !important;
  border: none !important;
  color: #38bdf8 !important;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  flex: 1 !important;
  outline: none !important;
  box-shadow: none !important;
  padding: 6px 0 !important;
}

.wh-code-box.purple .wh-code-input {
  color: #d8b4fe !important;
}

.wh-copy-btn {
  background: #0284c7;
  color: #ffffff !important;
  border: none !important;
  font-size: 12px;
  font-weight: 700;
  padding: 9px 18px;
  border-radius: 7px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  transition: all 0.2s;
}

.wh-copy-btn:hover {
  background: #0369a1;
  transform: translateY(-1px);
}

.wh-copy-btn.purple {
  background: #9333ea;
}

.wh-copy-btn.purple:hover {
  background: #7e22ce;
}

/* Ghost Explanation Box */
.wh-ghost-banner {
  background: linear-gradient(135deg, #faf5ff 0%, #f3e8ff 100%);
  border: 1px solid #d8b4fe;
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 14px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.wh-ghost-banner-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: #9333ea;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.wh-ghost-banner-title {
  font-size: 13.5px;
  font-weight: 800;
  color: #6b21a8;
  margin: 0 0 3px 0;
}

.wh-ghost-banner-text {
  font-size: 12px;
  color: #581c87;
  margin: 0;
  line-height: 1.45;
}

/* Guide Grid */
.wh-guide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.wh-guide-item {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 12px 14px;
  transition: all 0.2s;
}

.wh-guide-item:hover {
  background: #ffffff;
  border-color: #cbd5e1;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.wh-guide-item-title {
  font-size: 12.5px;
  font-weight: 800;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 4px;
}

.wh-guide-item-desc {
  font-size: 11.5px;
  color: #475569;
  line-height: 1.45;
  margin: 0;
}

/* Configuration Grid: Left Integration, Right Settings */
.wh-config-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 24px;
  align-items: stretch;
}

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

.wh-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 22px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.wh-leads-full-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 22px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
  margin-bottom: 24px;
  width: 100%;
  box-sizing: border-box;
}

/* Form Settings Styling */
.wh-form-section {
  margin-bottom: 16px;
}

.wh-toggle-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.2s;
}

.wh-toggle-row:hover {
  background: #f1f5f9;
}

.wh-toggle-info {
  display: flex;
  flex-direction: column;
}

.wh-toggle-title {
  font-size: 13px;
  font-weight: 700;
  color: #0f172a;
}

.wh-toggle-sub {
  font-size: 11px;
  color: #64748b;
  margin-top: 2px;
}

.wh-var-chips {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.btn-webhook-var-tag {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #334155;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s;
}

.btn-webhook-var-tag:hover {
  background: #e2e8f0;
  color: #0f172a;
  border-color: #94a3b8;
}

.wh-alert-box {
  background: #f0fdf4;
  border: 1.5px solid #bbf7d0;
  border-radius: 10px;
  padding: 14px;
  margin-top: 14px;
}

.wh-alert-box-header {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 800;
  color: #15803d;
  cursor: pointer;
}

.wh-btn-submit {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  color: #ffffff !important;
  border: none !important;
  font-size: 13px;
  font-weight: 800;
  padding: 12px 20px;
  border-radius: 8px;
  cursor: pointer;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.25);
  transition: all 0.2s;
  margin-top: 16px;
}

.wh-btn-submit:hover {
  background: linear-gradient(135deg, #0369a1 0%, #075985 100%);
  transform: translateY(-1px);
}

/* Live Leads Table Styling */
.wh-table-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}

.wh-filter-group {
  display: flex;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  padding: 3px;
  border-radius: 8px;
  gap: 2px;
}

.lead-filter-btn {
  background: transparent;
  border: none;
  padding: 5px 10px;
  font-size: 11px;
  font-weight: 700;
  color: #64748b;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
}

.lead-filter-btn.active {
  background: #ffffff !important;
  color: #0f172a !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08) !important;
}

.lead-filter-btn[data-filter="ghost"].active {
  color: #7e22ce !important;
}

.lead-filter-btn[data-filter="submitted"].active {
  color: #047857 !important;
}

.wh-table-wrap {
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  overflow-x: auto;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.wh-data-table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
}

.wh-data-table th {
  background: #f8fafc;
  color: #475569;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 10px 12px;
  border-bottom: 1px solid #e2e8f0;
  text-align: left;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wh-data-table td {
  padding: 11px 12px;
  border-bottom: 1px solid #f1f5f9;
  font-size: 12px;
  vertical-align: middle;
  overflow: hidden;
}

.wh-data-table tr:last-child td {
  border-bottom: none;
}

.wh-data-table tr:hover {
  background: #f8fafc;
}

.wh-data-table tr.ghost-row {
  background: #fdfaff;
}

.wh-data-table tr.ghost-row:hover {
  background: #faf5ff;
}

.wh-lead-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  flex-shrink: 0;
}

.wh-lead-avatar.standard {
  background: #e0f2fe;
  color: #0284c7;
}

.wh-lead-avatar.ghost {
  background: #f3e8ff;
  color: #9333ea;
}


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