/* ===================================================================
   LeadPulse B2B • Master SaaS Stylesheet (Cloud Edition)
   Modern Glassmorphism, Dark/Light Themes, Emerald SaaS Aesthetics
   =================================================================== */

:root, [data-theme="light"] {
  --bg-body: #F8FAFC;
  --bg-card: #FFFFFF;
  --bg-subtle: #F1F5F9;
  --bg-glass: rgba(255, 255, 255, 0.95);
  --border-subtle: #E2E8F0;
  --border-glow: rgba(16, 185, 129, 0.3);
  --text-main: #0F172A;
  --text-muted: #475569;
  --text-dim: #64748B;
  --emerald-primary: #10B981;
  --emerald-hover: #059669;
  --emerald-glow: rgba(16, 185, 129, 0.2);
  --emerald-dark: #047857;
  --emerald-neon: #059669;
  --blue-primary: #3B82F6;
  --red-primary: #EF4444;
  --amber-primary: #F59E0B;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-full: 9999px;
  --shadow-card: 0 4px 15px rgba(0, 0, 0, 0.05);
  --shadow-elevated: 0 10px 25px rgba(0, 0, 0, 0.08);
  --shadow-glow: 0 4px 15px rgba(16, 185, 129, 0.15);
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="dark"] {
  --bg-body: #0A0E17;
  --bg-card: #111827;
  --bg-subtle: #1F2937;
  --bg-glass: rgba(17, 24, 39, 0.85);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(16, 185, 129, 0.4);
  --text-main: #F9FAFB;
  --text-muted: #9CA3AF;
  --text-dim: #6B7280;
  --emerald-primary: #10B981;
  --emerald-hover: #059669;
  --emerald-glow: rgba(16, 185, 129, 0.3);
  --emerald-dark: #047857;
  --emerald-neon: #00E599;
  --shadow-card: 0 4px 25px -2px rgba(0, 0, 0, 0.6);
  --shadow-elevated: 0 15px 40px -5px rgba(0, 0, 0, 0.8);
  --shadow-glow: 0 0 25px rgba(16, 185, 129, 0.2);
}

[dir="rtl"] {
  direction: rtl;
  text-align: right;
}
[dir="rtl"] .hero-title, [dir="rtl"] .section-title, [dir="rtl"] .section-subtitle {
  text-align: center;
}
[dir="rtl"] .ms-1, [dir="rtl"] .ms-2, [dir="rtl"] .ms-3 {
  margin-left: 0 !important;
  margin-right: 0.5rem !important;
}
[dir="rtl"] .me-1, [dir="rtl"] .me-2, [dir="rtl"] .me-3 {
  margin-right: 0 !important;
  margin-left: 0.5rem !important;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Accessibility: Skip-to-content link & Universal Focus Styles */
.skip-to-content {
  position: absolute;
  top: -100px;
  left: 1rem;
  background: #059669;
  color: #FFFFFF !important;
  padding: 0.75rem 1.25rem;
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
  z-index: 99999;
  text-decoration: none;
  transition: top 0.2s ease-in-out;
}
.skip-to-content:focus {
  top: 1rem;
  outline: 3px solid #FFFFFF;
  outline-offset: 2px;
}

:focus-visible {
  outline: 2.5px solid var(--emerald-primary);
  outline-offset: 3px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-body);
  color: var(--text-main);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

h1, h2, h3, h4, .font-heading {
  font-family: 'Outfit', sans-serif;
  letter-spacing: -0.02em;
}

a {
  color: var(--emerald-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}
a:hover {
  color: var(--emerald-hover);
}

/* Layout Utilities */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

.d-flex { display: flex; }
.align-items-center { align-items: center; }
.justify-content-between { justify-content: space-between; }
.justify-content-center { justify-content: center; }
.flex-column { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 1rem; }
.gap-4 { gap: 1.5rem; }
.gap-5 { gap: 2rem; }

.row {
  display: flex;
  flex-wrap: wrap;
  margin: -0.75rem;
}
.col-12 { flex: 0 0 100%; max-width: 100%; padding: 0.75rem; }
.col-md-6 { flex: 0 0 100%; max-width: 100%; padding: 0.75rem; }
.col-md-4 { flex: 0 0 100%; max-width: 100%; padding: 0.75rem; }
.col-md-3 { flex: 0 0 100%; max-width: 100%; padding: 0.75rem; }

@media (min-width: 768px) {
  .col-md-6 { flex: 0 0 50%; max-width: 50%; }
  .col-md-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
  .col-md-3 { flex: 0 0 25%; max-width: 25%; }
}

.text-center { text-align: center; }
.text-end { text-align: right; }
.fw-bold { font-weight: 700; }
.small { font-size: 0.85rem; }
.text-main { color: var(--text-main); }
.text-muted { color: var(--text-muted); }
.text-dim { color: var(--text-dim); }
.text-emerald { color: var(--emerald-primary); }
.text-blue { color: var(--blue-primary); }
.text-red { color: var(--red-primary); }

.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.mt-5 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mb-5 { margin-bottom: 2rem; }
.me-1 { margin-right: 0.25rem; }
.me-2 { margin-right: 0.5rem; }
.ms-1 { margin-left: 0.25rem; }
.ms-2 { margin-left: 0.5rem; }

/* Accessibility Screen Reader Utility */
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* Buttons & Accessible CTA System (Min. Touch Target 44x44px) */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 44px;
  padding: 0.75rem 1.4rem;
  font-size: 0.92rem;
  font-weight: 700;
  border-radius: var(--radius-md);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
  font-family: inherit;
  box-sizing: border-box;
  text-align: center;
}
.btn:active {
  transform: scale(0.98);
}
.btn-sm {
  min-height: 38px;
  padding: 0.45rem 0.95rem;
  font-size: 0.82rem;
  border-radius: var(--radius-sm);
}
.btn-lg {
  min-height: 48px;
  padding: 0.9rem 1.9rem;
  font-size: 1.05rem;
  border-radius: var(--radius-lg);
}

/* Primary CTA - Conversion Action (Inscription, Essai Gratuit) */
.btn-cta-primary,
.btn-green {
  background: linear-gradient(135deg, #10B981 0%, #059669 100%);
  color: #FFFFFF !important;
  border-color: #059669;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.35);
  font-weight: 800;
  letter-spacing: -0.01em;
}
.btn-cta-primary:hover,
.btn-green:hover {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  box-shadow: 0 6px 22px rgba(16, 185, 129, 0.45);
  transform: translateY(-2px);
  color: #FFFFFF !important;
}

/* Primary Blue CTA - Passerelles & API Tokens */
.btn-blue {
  background: linear-gradient(135deg, #2563EB 0%, #1D4ED8 100%);
  color: #FFFFFF !important;
  border-color: #1D4ED8;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
  font-weight: 700;
}
.btn-blue:hover {
  background: linear-gradient(135deg, #1D4ED8 0%, #1E40AF 100%);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.45);
  transform: translateY(-2px);
  color: #FFFFFF !important;
}

/* Secondary CTA - Découverte, Démo, Exploration */
.btn-cta-secondary,
.btn-outline {
  background: var(--bg-card);
  border-color: var(--border-subtle);
  color: var(--text-main);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}
.btn-cta-secondary:hover,
.btn-outline:hover {
  background: var(--bg-subtle);
  border-color: var(--emerald-primary);
  color: var(--emerald-primary);
  transform: translateY(-1px);
}

/* Tertiary / Ghost CTA - Actions Mineures & Navigation */
.btn-cta-tertiary,
.btn-ghost {
  background: transparent;
  border-color: transparent;
  color: var(--text-muted);
}
.btn-cta-tertiary:hover,
.btn-ghost:hover {
  background: var(--bg-subtle);
  color: var(--text-main);
}

/* Loading & Disabled Button State */
.btn:disabled,
.btn[aria-disabled="true"],
.btn-loading {
  opacity: 0.65;
  cursor: not-allowed !important;
  pointer-events: none !important;
  transform: none !important;
  box-shadow: none !important;
}

.btn-danger {
  background: rgba(239, 68, 68, 0.12);
  color: #DC2626;
  border-color: rgba(239, 68, 68, 0.3);
}
.btn-danger:hover {
  background: #DC2626;
  color: #FFFFFF;
}

@media (max-width: 768px) {
  .btn, .btn-sm {
    min-height: 44px; /* Minimum touch target requirement on mobile devices */
  }
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.badge-green {
  background: rgba(16, 185, 129, 0.15);
  color: #10B981;
  border: 1px solid rgba(16, 185, 129, 0.3);
}
.badge-blue {
  background: rgba(59, 130, 246, 0.15);
  color: #3B82F6;
  border: 1px solid rgba(59, 130, 246, 0.3);
}
.badge-amber {
  background: rgba(245, 158, 11, 0.15);
  color: #F59E0B;
  border: 1px solid rgba(245, 158, 11, 0.3);
}
.badge-red {
  background: rgba(239, 68, 68, 0.15);
  color: #EF4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
}
.badge-black {
  background: #FFFFFF !important;
  color: #000000 !important;
  border: 1.5px solid #CBD5E1 !important;
  font-weight: 800 !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}
.badge-purple {
  background: #FAF5FF;
  color: #7E22CE;
  border: 1px solid #E9D5FF;
}

/* Form Controls & Accessible Inline Validation */
.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 0.45rem;
}
.form-label-required::after {
  content: " *";
  color: #EF4444;
  font-weight: 800;
}
.form-control, .form-select {
  width: 100%;
  min-height: 44px;
  padding: 0.7rem 1rem;
  background: var(--bg-subtle);
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-main);
  font-size: 0.92rem;
  font-family: inherit;
  outline: none;
  box-sizing: border-box;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}
.form-control:focus, .form-select:focus {
  border-color: var(--emerald-primary);
  box-shadow: 0 0 0 3px var(--emerald-glow);
}
.form-select-sm {
  min-height: 38px;
  padding: 0.4rem 0.75rem;
  font-size: 0.82rem;
}

/* Accessible Validation Feedback */
.form-control.is-invalid, .form-select.is-invalid {
  border-color: #EF4444 !important;
  background-color: rgba(254, 242, 242, 0.4) !important;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2) !important;
}
.form-control.is-valid, .form-select.is-valid {
  border-color: #10B981 !important;
  background-color: rgba(240, 253, 244, 0.3) !important;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15) !important;
}
.invalid-feedback {
  display: none;
  font-size: 0.80rem;
  color: #DC2626;
  margin-top: 0.35rem;
  font-weight: 600;
  align-items: center;
  gap: 5px;
}
.valid-feedback {
  display: none;
  font-size: 0.80rem;
  color: #059669;
  margin-top: 0.35rem;
  font-weight: 600;
  align-items: center;
  gap: 5px;
}
.form-control.is-invalid ~ .invalid-feedback,
.form-select.is-invalid ~ .invalid-feedback,
.password-field-wrapper.is-invalid + .invalid-feedback,
.password-field-wrapper:has(.is-invalid) + .invalid-feedback,
.password-field-wrapper .form-control.is-invalid ~ .invalid-feedback {
  display: flex !important;
}
.form-control.is-valid ~ .valid-feedback,
.form-select.is-valid ~ .valid-feedback {
  display: flex;
}

/* Password Toggle Visibility Component */
.password-field-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}
.password-field-wrapper .form-control {
  padding-right: 44px !important;
}
.password-toggle-btn {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: #94A3B8;
  cursor: pointer;
  padding: 6px 10px;
  font-size: 0.95rem;
  line-height: 1;
  border-radius: 6px;
  transition: color 0.15s ease, background-color 0.15s ease;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
}
.password-toggle-btn:hover {
  color: #10B981;
  background-color: rgba(16, 185, 129, 0.08);
}
.password-toggle-btn:focus-visible {
  outline: 2px solid #10B981;
  outline-offset: 1px;
}

/* Theme Toggle */
.theme-toggle-btn {
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: all var(--transition-fast);
}
.theme-toggle-btn:hover {
  border-color: var(--emerald-primary);
  color: var(--emerald-primary);
}

/* Cards & Stats */
.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-card);
  transition: transform var(--transition-fast), border-color var(--transition-fast);
}
.stat-card:hover {
  border-color: var(--border-glow);
  transform: translateY(-2px);
}
.stat-number {
  font-size: 2.2rem;
  font-weight: 800;
  font-family: 'Outfit', sans-serif;
  margin-top: 0.35rem;
  line-height: 1.1;
}
.card-num-circle {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  font-size: 1rem;
}

/* Niche Cards */
.niche-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: all var(--transition-fast);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.niche-card:hover {
  transform: translateY(-4px);
  border-color: var(--emerald-primary);
  box-shadow: 0 10px 30px rgba(16, 185, 129, 0.15);
}
.niche-icon-box {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

/* Showcase Cards */
.usage-showcase-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform var(--transition-fast), border-color var(--transition-fast);
  margin-bottom: 3rem;
}
.usage-showcase-card:hover {
  border-color: var(--border-glow);
  transform: translateY(-3px);
}
.showcase-img-wrap {
  position: relative;
  overflow: hidden;
  background: #000000;
  cursor: pointer;
}
.showcase-img-wrap img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.4s ease;
}
.showcase-img-wrap:hover img {
  transform: scale(1.02);
}

/* Pricing Cards */
.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 2.25rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  transition: all var(--transition-fast);
}
.pricing-card:hover {
  transform: translateY(-5px);
  border-color: var(--emerald-primary);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}
.pricing-card.popular {
  border-color: var(--emerald-primary);
  box-shadow: 0 10px 35px var(--emerald-glow);
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.05) 0%, var(--bg-card) 40%);
}
.pricing-badge-top {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #10B981 0%, #059669 100%);
  color: #FFFFFF;
  padding: 0.35rem 1.1rem;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
}
.pricing-price {
  font-size: 3rem;
  font-weight: 900;
  font-family: 'Outfit', sans-serif;
  color: var(--text-main);
  line-height: 1;
  margin: 1.25rem 0 0.5rem 0;
}
.pricing-period {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 500;
}
.pricing-features-list {
  list-style: none;
  margin: 1.75rem 0;
  padding: 0;
}
.pricing-features-list li {
  padding: 0.65rem 0;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.92rem;
  color: var(--text-main);
  border-bottom: 1px dashed var(--border-subtle);
}
.pricing-features-list li i {
  color: var(--emerald-primary);
}

/* Admin Table */
.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}
.admin-table th {
  background: var(--bg-subtle);
  padding: 0.85rem 1rem;
  text-align: left;
  font-weight: 700;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-subtle);
}
.admin-table td {
  padding: 1rem;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-main);
  vertical-align: middle;
}
.admin-table tr:hover {
  background: var(--bg-subtle);
}

.admin-badge-plan {
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.75rem;
}
.plan-basic { background: rgba(107, 114, 128, 0.2); color: #9CA3AF; }
.plan-premium { background: rgba(59, 130, 246, 0.2); color: #60A5FA; }
.plan-business { background: rgba(16, 185, 129, 0.2); color: #34D399; }

/* Modals */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(6px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-fast);
  overflow-y: auto;
}
.modal-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}
.modal-box {
  background: var(--bg-card);
  border: 2.5px solid #10B981 !important;
  border-radius: 20px !important;
  max-width: 540px;
  width: 100%;
  max-height: 88vh;
  overflow-y: auto;
  padding: 2rem;
  box-shadow: 0 16px 50px rgba(16, 185, 129, 0.28) !important;
  transform: scale(0.95);
  transition: transform var(--transition-fast);
  position: relative;
}
.modal-backdrop.active .modal-box {
  transform: scale(1);
}
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}
.modal-close-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #F1F5F9;
  border: 1.5px solid #CBD5E1;
  color: #0F172A;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  line-height: 1;
  flex-shrink: 0;
}
.modal-close-btn:hover {
  background: #FEE2E2 !important;
  border-color: #EF4444 !important;
  color: #DC2626 !important;
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.35);
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.toast {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-elevated);
  border-radius: var(--radius-md);
  padding: 0.9rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: var(--text-main);
  animation: slideInRight 0.25s ease-out;
}
@keyframes slideInRight {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* Dashboard Shell & Architecture */
.app-shell-showcase {
  display: flex;
  min-height: 100vh;
  background: var(--bg-body);
}

.app-sidebar-showcase {
  width: 80px;
  background: var(--bg-card);
  border-right: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.25rem 0;
  flex-shrink: 0;
  position: sticky;
  top: 0;
  height: 100vh;
}

.sidebar-brand-btn {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, #10B981 0%, #059669 100%);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
  margin-bottom: 2rem;
}

.sidebar-menu-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  flex: 1;
}

.sidebar-nav-btn {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition-fast);
}
.sidebar-nav-btn:hover {
  background: var(--bg-subtle);
  color: var(--text-main);
  border-color: var(--border-subtle);
}
.sidebar-nav-btn.active {
  background: rgba(16, 185, 129, 0.15);
  color: var(--emerald-primary);
  border-color: rgba(16, 185, 129, 0.35);
}

.sidebar-bottom-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.app-content-showcase {
  flex: 1;
  padding: 1.75rem 2rem;
  overflow-y: auto;
  max-width: 1600px;
}

.showcase-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-subtle);
}

.dispatch-toggle-bar {
  display: inline-flex;
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 4px;
  gap: 4px;
}
.dispatch-toggle-btn {
  border: none;
  background: transparent;
  color: var(--text-muted);
  padding: 0.45rem 1.1rem;
  border-radius: var(--radius-full);
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all var(--transition-fast);
}
.dispatch-toggle-btn.active.mode-direct {
  background: #10B981;
  color: #FFFFFF;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.35);
}
.dispatch-toggle-btn.active.mode-token {
  background: #3B82F6;
  color: #FFFFFF;
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.35);
}

.metric-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 0.4rem 1rem;
  font-size: 0.82rem;
}

.showcase-top-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}
@media (max-width: 1200px) {
  .showcase-top-grid { grid-template-columns: 1fr; }
}

.showcase-map-card, .showcase-cards-box, .showcase-widgets-box {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 1.25rem;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
}

.map-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

#homeLeafletMapContainer {
  min-height: 280px;
  flex: 1;
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  border: 1px solid var(--border-subtle);
}

.map-search-overlay {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 0.4rem 0.85rem;
  margin-top: 0.75rem;
}
.map-pill-btn {
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  border-radius: var(--radius-full);
  padding: 0.2rem 0.65rem;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
}
.map-pill-btn.active {
  background: var(--emerald-primary);
  color: #FFFFFF;
  border-color: var(--emerald-primary);
}

.business-cards-scroll {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  overflow-y: auto;
  max-height: 320px;
  padding-right: 4px;
}
.business-card-item {
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.85rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}
.business-card-item:hover, .business-card-item.selected {
  border-color: var(--emerald-primary);
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.15);
}

.qualification-widget-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
  margin-bottom: 0.75rem;
}
.gauge-track {
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-top: 0.35rem;
}
.gauge-fill {
  height: 100%;
  background: linear-gradient(90deg, #10B981, #34D399);
  border-radius: var(--radius-full);
}
.widget-action-icon-btn {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.widget-action-icon-btn:hover {
  background: var(--emerald-primary);
  color: #FFFFFF;
  border-color: var(--emerald-primary);
}

.showcase-bottom-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}
@media (max-width: 992px) {
  .showcase-bottom-grid { grid-template-columns: 1fr; }
}

.smartphone-preview-box {
  width: 290px;
  height: 480px;
  border: 10px solid #1E293B;
  border-radius: 36px;
  background: #0B141A;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  margin: 0 auto;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.smartphone-notch {
  width: 100px;
  height: 18px;
  background: #1E293B;
  border-bottom-left-radius: 12px;
  border-bottom-right-radius: 12px;
  margin: 0 auto;
}
.smartphone-screen {
  flex: 1;
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  overflow-y: auto;
  font-size: 0.8rem;
}
.chat-bubble {
  max-width: 82%;
  padding: 0.6rem 0.85rem;
  border-radius: 12px;
  line-height: 1.4;
}
.chat-bubble-out {
  background: #005C4B;
  color: #E9EDEF;
  align-self: flex-end;
  border-top-right-radius: 2px;
}
.chat-bubble-in {
  background: #202C33;
  color: #D1D7DB;
  align-self: flex-start;
  border-top-left-radius: 2px;
}

/* Leads Table */
.prospects-table-container {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  box-shadow: var(--shadow-card);
  margin-top: 1.5rem;
}
.leads-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}
.leads-table th {
  background: var(--bg-subtle);
  padding: 0.75rem 1rem;
  text-align: left;
  font-weight: 700;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-subtle);
}
.leads-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-main);
}
.leads-table tr:hover {
  background: var(--bg-subtle);
}

/* ===================================================================
   SCREENSHOT 1, 2, 3 IDENTICAL LUXURY SAAS STYLES
   =================================================================== */

/* Glowing Container & Border Utilities */
.card-glow-emerald {
  border: 1px solid rgba(16, 185, 129, 0.45) !important;
  box-shadow: 0 0 25px rgba(16, 185, 129, 0.18) !important;
}
.border-glow-emerald {
  border-color: rgba(16, 185, 129, 0.5) !important;
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.25);
}

/* Toggle Switch matching Screenshots */
.saas-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  user-select: none;
}
.saas-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.saas-slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: #2D3748;
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 24px;
}
.saas-slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 3px;
  bottom: 3px;
  background-color: #E2E8F0;
  transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}
.saas-switch input:checked + .saas-slider {
  background-color: #10B981;
  border-color: #10B981;
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.6);
}
.saas-switch input:checked + .saas-slider:before {
  transform: translateX(20px);
  background-color: #FFFFFF;
}

/* Niche & Category Tags (Screenshot 1) */
.niche-tag-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-md);
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}
.niche-tag-item:hover {
  border-color: var(--emerald-primary);
  color: #FFFFFF;
}
.niche-tag-item.active {
  background: rgba(16, 185, 129, 0.15);
  border-color: var(--emerald-primary);
  color: var(--emerald-primary);
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.25);
}

/* Neon Emerald Leaflet Pin */
.neon-map-pin {
  width: 22px;
  height: 22px;
  background: #10B981;
  border: 2px solid #FFFFFF;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  box-shadow: 0 0 14px #10B981, 0 0 4px #000000;
  position: relative;
  cursor: pointer;
  transition: transform 0.2s;
}
.neon-map-pin:hover {
  transform: rotate(-45deg) scale(1.2);
}
.neon-map-pin::after {
  content: '';
  width: 8px;
  height: 8px;
  margin: 5px 0 0 5px;
  background: #0A0E17;
  position: absolute;
  border-radius: 50%;
}

/* Pill Badges (Screenshots 1, 2, 3) */
.pill-active-green {
  background: rgba(16, 185, 129, 0.18);
  color: #10B981;
  border: 1px solid rgba(16, 185, 129, 0.4);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.74rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.pill-no-site {
  background: rgba(245, 158, 11, 0.15);
  color: #F59E0B;
  border: 1px solid rgba(245, 158, 11, 0.35);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.74rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.pill-dark-badge {
  background: #1F2937;
  color: #9CA3AF;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.74rem;
  font-weight: 700;
}
.pill-cyan-badge {
  background: rgba(6, 182, 212, 0.18);
  color: #06B6D4;
  border: 1px solid rgba(6, 182, 212, 0.4);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.74rem;
  font-weight: 700;
}

/* WhatsApp 3D iPhone Simulator (Screenshot 2) */
.iphone-simulator-card {
  width: 320px;
  background: #0B141A;
  border: 9px solid #1E293B;
  border-radius: 46px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7), 0 0 20px rgba(16, 185, 129, 0.15);
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  margin: 0 auto;
}
.iphone-island-bar {
  width: 100%;
  padding: 8px 18px 4px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #0B141A;
  font-size: 0.7rem;
  color: #FFFFFF;
  font-weight: 600;
}
.dynamic-island-notch {
  width: 76px;
  height: 18px;
  background: #000000;
  border-radius: 14px;
}
.wa-chat-header-bar {
  background: #1F2C34;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.wa-chat-contact-info {
  display: flex;
  align-items: center;
  gap: 8px;
}
.wa-chat-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #10B981;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
}
.wa-chat-body-canvas {
  flex: 1;
  min-height: 290px;
  padding: 12px;
  background-color: #0B141A;
  background-image: radial-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow-y: auto;
}
.wa-chat-date-pill {
  align-self: center;
  background: #182229;
  color: #8696A0;
  font-size: 0.65rem;
  padding: 2px 8px;
  border-radius: 6px;
  text-transform: uppercase;
}
.wa-msg-bubble-sent {
  align-self: flex-end;
  background: #005C4B;
  color: #E9EDEF;
  padding: 8px 12px;
  border-radius: 10px 10px 2px 10px;
  max-width: 86%;
  font-size: 0.78rem;
  line-height: 1.35;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}
.wa-msg-meta {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 4px;
  margin-top: 4px;
  font-size: 0.64rem;
  color: rgba(255, 255, 255, 0.65);
}
.wa-check-blue {
  color: #53BDEB;
  font-size: 0.72rem;
}
.wa-input-bottom-bar {
  background: #1F2C34;
  padding: 8px 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.wa-input-fake-field {
  flex: 1;
  background: #2A3942;
  border-radius: 20px;
  padding: 6px 12px;
  font-size: 0.75rem;
  color: #8696A0;
}

/* Anti-Ban Circular Speedometers (Screenshot 2) */
.speedometer-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
}
.speedometer-svg {
  width: 140px;
  height: 80px;
}
.speedometer-center-val {
  font-size: 1.45rem;
  font-weight: 800;
  font-family: 'Outfit', sans-serif;
  color: #F9FAFB;
  margin-top: -30px;
}
.speedometer-label {
  font-size: 0.75rem;
  color: #9CA3AF;
  font-weight: 600;
  margin-top: 2px;
}

/* Campaign Analytics 6 KPI Sparklines (Screenshot 2) */
.analytics-spark-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1rem;
}
@media (max-width: 1200px) {
  .analytics-spark-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
  .analytics-spark-grid { grid-template-columns: 1fr; }
}

.analytics-spark-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1rem 1.15rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 110px;
  transition: all var(--transition-fast);
}
.analytics-spark-card:hover {
  border-color: rgba(16, 185, 129, 0.4);
  transform: translateY(-2px);
}
.spark-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 600;
}
.spark-card-val {
  font-size: 1.6rem;
  font-weight: 800;
  font-family: 'Outfit', sans-serif;
  color: var(--text-main);
  line-height: 1.1;
  margin: 0.35rem 0;
}
.spark-svg-curve {
  width: 100%;
  height: 28px;
  overflow: visible;
}

/* Admin Table Custom Badges & Permissions (Screenshot 3) */
.admin-glow-table-card {
  background: var(--bg-card);
  border: 1px solid rgba(16, 185, 129, 0.4);
  border-radius: var(--radius-xl);
  box-shadow: 0 0 25px rgba(16, 185, 129, 0.15);
  padding: 1.5rem;
}
.admin-key-slot-box {
  background: #1F2937;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 0.45rem 0.85rem;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: monospace;
  font-size: 0.84rem;
  color: #D1D5DB;
}

/* ===================================================================
   MASTER FOOTER PROFESSIONNEL SAAS UNIVERSEL
   =================================================================== */
.saas-footer-master {
  background: #FFFFFF !important;
  border-top: 1.5px solid var(--border-subtle, #E2E8F0) !important;
  margin-top: 4.5rem !important;
  padding: 3.5rem 2rem 2rem 2rem !important;
  width: 100% !important;
  color: var(--text-main, #0F172A) !important;
  box-sizing: border-box !important;
}
.footer-link-item {
  text-decoration: none !important;
  color: var(--text-main, #0F172A) !important;
  display: block;
  transition: all 0.15s ease;
  padding: 4px 0;
}
.footer-link-item:hover {
  color: #10B981 !important;
  transform: translateX(3px);
}
.footer-feature-item {
  display: flex;
  align-items: flex-start;
  line-height: 1.45;
}
.hover-emerald:hover {
  color: #10B981 !important;
}


/* Mode de Règlement & PayPal Badge - Haute Lisibilité Texte Noir */
#dropUserPaymentMethod {
  color: #000000 !important;
  font-weight: 700 !important;
}
#dropUserPaymentMethod span,
#dropUserPaymentMethod strong,
#dropUserPaymentMethod b {
  color: #000000 !important;
}
#dropUserPaymentMethod .fa-paypal {
  color: #0079C1 !important;
}
